Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60a for Wine 0.9.18. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4 | # |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5 | # Report bugs to <wine-devel@winehq.org>. |
| 6 | # |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22 | setopt NO_GLOB_SUBST |
| 23 | else |
| 24 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 26 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 27 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 28 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 29 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 30 | # PATH needs CR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 31 | # Avoid depending upon Character Ranges. |
| 32 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 33 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 34 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35 | as_cr_digits='0123456789' |
| 36 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 37 | |
| 38 | # The user is always right. |
| 39 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 40 | echo "#! /bin/sh" >conf$$.sh |
| 41 | echo "exit 0" >>conf$$.sh |
| 42 | chmod +x conf$$.sh |
| 43 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 44 | PATH_SEPARATOR=';' |
| 45 | else |
| 46 | PATH_SEPARATOR=: |
| 47 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 48 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 49 | fi |
| 50 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 51 | # Support unset when possible. |
| 52 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 53 | as_unset=unset |
| 54 | else |
| 55 | as_unset=false |
| 56 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 57 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 58 | |
| 59 | # IFS |
| 60 | # We need space, tab and new line, in precisely that order. Quoting is |
| 61 | # there to prevent editors from complaining about space-tab. |
| 62 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 63 | # splitting by setting IFS to empty value.) |
| 64 | as_nl=' |
| 65 | ' |
| 66 | IFS=" "" $as_nl" |
| 67 | |
| 68 | # Find who we are. Look in the path if we contain no directory separator. |
| 69 | case $0 in |
| 70 | *[\\/]* ) as_myself=$0 ;; |
| 71 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 72 | for as_dir in $PATH |
| 73 | do |
| 74 | IFS=$as_save_IFS |
| 75 | test -z "$as_dir" && as_dir=. |
| 76 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 77 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 78 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 79 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 80 | ;; |
| 81 | esac |
| 82 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 83 | # in which case we are not to be found in the path. |
| 84 | if test "x$as_myself" = x; then |
| 85 | as_myself=$0 |
| 86 | fi |
| 87 | if test ! -f "$as_myself"; then |
| 88 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 89 | { (exit 1); exit 1; } |
| 90 | fi |
| 91 | |
| 92 | # Work around bugs in pre-3.0 UWIN ksh. |
| 93 | for as_var in ENV MAIL MAILPATH |
| 94 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 95 | done |
| 96 | PS1='$ ' |
| 97 | PS2='> ' |
| 98 | PS4='+ ' |
| 99 | |
| 100 | # NLS nuisances. |
| 101 | for as_var in \ |
| 102 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 103 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 104 | LC_TELEPHONE LC_TIME |
| 105 | do |
| 106 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 107 | eval $as_var=C; export $as_var |
| 108 | else |
| 109 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 110 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 111 | done |
| 112 | |
| 113 | # Required to use basename. |
| 114 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 116 | as_expr=expr |
| 117 | else |
| 118 | as_expr=false |
| 119 | fi |
| 120 | |
| 121 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 122 | as_basename=basename |
| 123 | else |
| 124 | as_basename=false |
| 125 | fi |
| 126 | |
| 127 | |
| 128 | # Name of the executable. |
| 129 | as_me=`$as_basename -- "$0" || |
| 130 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 131 | X"$0" : 'X\(//\)$' \| \ |
| 132 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 133 | echo X/"$0" | |
| 134 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 135 | s//\1/ |
| 136 | q |
| 137 | } |
| 138 | /^X\/\(\/\/\)$/{ |
| 139 | s//\1/ |
| 140 | q |
| 141 | } |
| 142 | /^X\/\(\/\).*/{ |
| 143 | s//\1/ |
| 144 | q |
| 145 | } |
| 146 | s/.*/./; q'` |
| 147 | |
| 148 | # CDPATH. |
| 149 | $as_unset CDPATH |
| 150 | |
| 151 | |
| 152 | if test "x$CONFIG_SHELL" = x; then |
| 153 | if (eval ":") 2>/dev/null; then |
| 154 | as_have_required=yes |
| 155 | else |
| 156 | as_have_required=no |
| 157 | fi |
| 158 | |
| 159 | if test $as_have_required = yes && (eval ": |
| 160 | (as_func_return () { |
| 161 | (exit \$1) |
| 162 | } |
| 163 | as_func_success () { |
| 164 | as_func_return 0 |
| 165 | } |
| 166 | as_func_failure () { |
| 167 | as_func_return 1 |
| 168 | } |
| 169 | as_func_ret_success () { |
| 170 | return 0 |
| 171 | } |
| 172 | as_func_ret_failure () { |
| 173 | return 1 |
| 174 | } |
| 175 | |
| 176 | exitcode=0 |
| 177 | if as_func_success; then |
| 178 | : |
| 179 | else |
| 180 | exitcode=1 |
| 181 | echo as_func_success failed. |
| 182 | fi |
| 183 | |
| 184 | if as_func_failure; then |
| 185 | exitcode=1 |
| 186 | echo as_func_failure succeeded. |
| 187 | fi |
| 188 | |
| 189 | if as_func_ret_success; then |
| 190 | : |
| 191 | else |
| 192 | exitcode=1 |
| 193 | echo as_func_ret_success failed. |
| 194 | fi |
| 195 | |
| 196 | if as_func_ret_failure; then |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_failure succeeded. |
| 199 | fi |
| 200 | |
| 201 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 202 | : |
| 203 | else |
| 204 | exitcode=1 |
| 205 | echo positional parameters were not saved. |
| 206 | fi |
| 207 | |
| 208 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 209 | |
| 210 | ( |
| 211 | as_lineno_1=\$LINENO |
| 212 | as_lineno_2=\$LINENO |
| 213 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 214 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 215 | ") 2> /dev/null; then |
| 216 | : |
| 217 | else |
| 218 | as_candidate_shells= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 220 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 221 | do |
| 222 | IFS=$as_save_IFS |
| 223 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 224 | case $as_dir in |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 225 | /*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 226 | for as_base in sh bash ksh sh5; do |
| 227 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 228 | done;; |
| 229 | esac |
| 230 | done |
| 231 | IFS=$as_save_IFS |
| 232 | |
| 233 | |
| 234 | for as_shell in $as_candidate_shells $SHELL; do |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 235 | # Try only shells that exist, to save several forks. |
| 236 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 237 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 238 | # Be Bourne compatible |
| 239 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 240 | emulate sh |
| 241 | NULLCMD=: |
| 242 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 243 | # is contrary to our usage. Disable this feature. |
| 244 | alias -g '${1+"$@"}'='"$@"' |
| 245 | setopt NO_GLOB_SUBST |
| 246 | else |
| 247 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 248 | fi |
| 249 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 250 | DUALCASE=1; export DUALCASE # for MKS sh |
| 251 | |
| 252 | : |
| 253 | _ASEOF |
| 254 | }; then |
| 255 | CONFIG_SHELL=$as_shell |
| 256 | as_have_required=yes |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 257 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 258 | # Be Bourne compatible |
| 259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 260 | emulate sh |
| 261 | NULLCMD=: |
| 262 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 263 | # is contrary to our usage. Disable this feature. |
| 264 | alias -g '${1+"$@"}'='"$@"' |
| 265 | setopt NO_GLOB_SUBST |
| 266 | else |
| 267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 268 | fi |
| 269 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 270 | DUALCASE=1; export DUALCASE # for MKS sh |
| 271 | |
| 272 | : |
| 273 | (as_func_return () { |
| 274 | (exit $1) |
| 275 | } |
| 276 | as_func_success () { |
| 277 | as_func_return 0 |
| 278 | } |
| 279 | as_func_failure () { |
| 280 | as_func_return 1 |
| 281 | } |
| 282 | as_func_ret_success () { |
| 283 | return 0 |
| 284 | } |
| 285 | as_func_ret_failure () { |
| 286 | return 1 |
| 287 | } |
| 288 | |
| 289 | exitcode=0 |
| 290 | if as_func_success; then |
| 291 | : |
| 292 | else |
| 293 | exitcode=1 |
| 294 | echo as_func_success failed. |
| 295 | fi |
| 296 | |
| 297 | if as_func_failure; then |
| 298 | exitcode=1 |
| 299 | echo as_func_failure succeeded. |
| 300 | fi |
| 301 | |
| 302 | if as_func_ret_success; then |
| 303 | : |
| 304 | else |
| 305 | exitcode=1 |
| 306 | echo as_func_ret_success failed. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_failure; then |
| 310 | exitcode=1 |
| 311 | echo as_func_ret_failure succeeded. |
| 312 | fi |
| 313 | |
| 314 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 315 | : |
| 316 | else |
| 317 | exitcode=1 |
| 318 | echo positional parameters were not saved. |
| 319 | fi |
| 320 | |
| 321 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 322 | |
| 323 | ( |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 324 | as_lineno_1=$LINENO |
| 325 | as_lineno_2=$LINENO |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 326 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 327 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 328 | |
| 329 | _ASEOF |
| 330 | }; then |
| 331 | break |
| 332 | fi |
| 333 | |
| 334 | fi |
| 335 | |
| 336 | done |
| 337 | |
| 338 | if test "x$CONFIG_SHELL" != x; then |
| 339 | for as_var in BASH_ENV ENV |
| 340 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 341 | done |
| 342 | export CONFIG_SHELL |
| 343 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 344 | fi |
| 345 | |
| 346 | |
| 347 | if test $as_have_required = no; then |
| 348 | echo This script requires a shell more modern than all the |
| 349 | echo shells that I found on your system. Please install a |
| 350 | echo modern shell, or manually run the script under such a |
| 351 | echo shell if you do have one. |
| 352 | { (exit 1); exit 1; } |
| 353 | fi |
| 354 | |
| 355 | |
| 356 | fi |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | |
| 361 | |
| 362 | (eval "as_func_return () { |
| 363 | (exit \$1) |
| 364 | } |
| 365 | as_func_success () { |
| 366 | as_func_return 0 |
| 367 | } |
| 368 | as_func_failure () { |
| 369 | as_func_return 1 |
| 370 | } |
| 371 | as_func_ret_success () { |
| 372 | return 0 |
| 373 | } |
| 374 | as_func_ret_failure () { |
| 375 | return 1 |
| 376 | } |
| 377 | |
| 378 | exitcode=0 |
| 379 | if as_func_success; then |
| 380 | : |
| 381 | else |
| 382 | exitcode=1 |
| 383 | echo as_func_success failed. |
| 384 | fi |
| 385 | |
| 386 | if as_func_failure; then |
| 387 | exitcode=1 |
| 388 | echo as_func_failure succeeded. |
| 389 | fi |
| 390 | |
| 391 | if as_func_ret_success; then |
| 392 | : |
| 393 | else |
| 394 | exitcode=1 |
| 395 | echo as_func_ret_success failed. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_failure; then |
| 399 | exitcode=1 |
| 400 | echo as_func_ret_failure succeeded. |
| 401 | fi |
| 402 | |
| 403 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 404 | : |
| 405 | else |
| 406 | exitcode=1 |
| 407 | echo positional parameters were not saved. |
| 408 | fi |
| 409 | |
| 410 | test \$exitcode = 0") || { |
| 411 | echo No shell found that supports shell functions. |
| 412 | echo Please tell autoconf@gnu.org about your system, |
| 413 | echo including any error possibly output before this |
| 414 | echo message |
| 415 | } |
| 416 | |
| 417 | |
| 418 | |
| 419 | as_lineno_1=$LINENO |
| 420 | as_lineno_2=$LINENO |
| 421 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 422 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 423 | |
| 424 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 425 | # uniformly replaced by the line number. The first 'sed' inserts a |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 426 | # line-number line after each line using $LINENO; the second 'sed' |
| 427 | # does the real work. The second script uses 'N' to pair each |
| 428 | # line-number line with the line containing $LINENO, and appends |
| 429 | # trailing '-' during substitution so that $LINENO is not a special |
| 430 | # case at line end. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 431 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 432 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 433 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 434 | sed -n ' |
| 435 | p |
| 436 | /[$]LINENO/= |
| 437 | ' <$as_myself | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 438 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 439 | s/[$]LINENO.*/&-/ |
| 440 | t lineno |
| 441 | b |
| 442 | :lineno |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 443 | N |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 444 | :loop |
| 445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 446 | t loop |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 447 | s/-\n.*// |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 448 | ' >$as_me.lineno && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 449 | chmod +x "$as_me.lineno" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 450 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 451 | { (exit 1); exit 1; }; } |
| 452 | |
| 453 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 454 | # (the dirname of $[0] is not the place where we might find the |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 455 | # original and so on. Autoconf is especially sensitive to this). |
| 456 | . "./$as_me.lineno" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 457 | # Exit status is that of the last command. |
| 458 | exit |
| 459 | } |
| 460 | |
| 461 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 462 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 463 | as_dirname=dirname |
| 464 | else |
| 465 | as_dirname=false |
| 466 | fi |
| 467 | |
| 468 | ECHO_C= ECHO_N= ECHO_T= |
| 469 | case `echo -n x` in |
| 470 | -n*) |
| 471 | case `echo 'x\c'` in |
| 472 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 473 | *) ECHO_C='\c';; |
| 474 | esac;; |
| 475 | *) |
| 476 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 477 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 478 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 479 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 480 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 481 | as_expr=expr |
| 482 | else |
| 483 | as_expr=false |
| 484 | fi |
| 485 | |
| 486 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 487 | if test -d conf$$.dir; then |
| 488 | rm -f conf$$.dir/conf$$.file |
| 489 | else |
| 490 | rm -f conf$$.dir |
| 491 | mkdir conf$$.dir |
| 492 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 493 | echo >conf$$.file |
| 494 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 495 | as_ln_s='ln -s' |
| 496 | # ... but there are two gotchas: |
| 497 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 498 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 499 | # In both cases, we have to default to `cp -p'. |
| 500 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 501 | as_ln_s='cp -p' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 503 | as_ln_s=ln |
| 504 | else |
| 505 | as_ln_s='cp -p' |
| 506 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 508 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 509 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 510 | if mkdir -p . 2>/dev/null; then |
| 511 | as_mkdir_p=: |
| 512 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 513 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 514 | as_mkdir_p=false |
| 515 | fi |
| 516 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 517 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 518 | # systems may use methods other than mode bits to determine executability. |
| 519 | cat >conf$$.file <<_ASEOF |
| 520 | #! /bin/sh |
| 521 | exit 0 |
| 522 | _ASEOF |
| 523 | chmod +x conf$$.file |
| 524 | if test -x conf$$.file >/dev/null 2>&1; then |
| 525 | as_executable_p="test -x" |
| 526 | else |
| 527 | as_executable_p=: |
| 528 | fi |
| 529 | rm -f conf$$.file |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 530 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 531 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 532 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 533 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 534 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 535 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 536 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 537 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 538 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 539 | exec 7<&0 </dev/null 6>&1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 540 | |
| 541 | # Name of the host. |
| 542 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 543 | # so uname gets run too. |
| 544 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 545 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 546 | # |
| 547 | # Initializations. |
| 548 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 549 | ac_default_prefix=/usr/local |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 550 | ac_clean_files= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 551 | ac_config_libobj_dir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 552 | LIBOBJS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 553 | cross_compiling=no |
| 554 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 555 | MFLAGS= |
| 556 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 557 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 558 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 559 | # Identity of this package. |
| 560 | PACKAGE_NAME='Wine' |
| 561 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 562 | PACKAGE_VERSION='0.9.18' |
| 563 | PACKAGE_STRING='Wine 0.9.18' |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 564 | PACKAGE_BUGREPORT='wine-devel@winehq.org' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 565 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 566 | ac_unique_file="server/atom.c" |
| 567 | # Factoring default headers for most tests. |
| 568 | ac_includes_default="\ |
| 569 | #include <stdio.h> |
| 570 | #if HAVE_SYS_TYPES_H |
| 571 | # include <sys/types.h> |
| 572 | #endif |
| 573 | #if HAVE_SYS_STAT_H |
| 574 | # include <sys/stat.h> |
| 575 | #endif |
| 576 | #if STDC_HEADERS |
| 577 | # include <stdlib.h> |
| 578 | # include <stddef.h> |
| 579 | #else |
| 580 | # if HAVE_STDLIB_H |
| 581 | # include <stdlib.h> |
| 582 | # endif |
| 583 | #endif |
| 584 | #if HAVE_STRING_H |
| 585 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 586 | # include <memory.h> |
| 587 | # endif |
| 588 | # include <string.h> |
| 589 | #endif |
| 590 | #if HAVE_STRINGS_H |
| 591 | # include <strings.h> |
| 592 | #endif |
| 593 | #if HAVE_INTTYPES_H |
| 594 | # include <inttypes.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 595 | #endif |
| 596 | #if HAVE_STDINT_H |
| 597 | # include <stdint.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 598 | #endif |
| 599 | #if HAVE_UNISTD_H |
| 600 | # include <unistd.h> |
| 601 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 602 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 603 | ac_subst_vars='SHELL |
| 604 | PATH_SEPARATOR |
| 605 | PACKAGE_NAME |
| 606 | PACKAGE_TARNAME |
| 607 | PACKAGE_VERSION |
| 608 | PACKAGE_STRING |
| 609 | PACKAGE_BUGREPORT |
| 610 | exec_prefix |
| 611 | prefix |
| 612 | program_transform_name |
| 613 | bindir |
| 614 | sbindir |
| 615 | libexecdir |
| 616 | datarootdir |
| 617 | datadir |
| 618 | sysconfdir |
| 619 | sharedstatedir |
| 620 | localstatedir |
| 621 | includedir |
| 622 | oldincludedir |
| 623 | docdir |
| 624 | infodir |
| 625 | htmldir |
| 626 | dvidir |
| 627 | pdfdir |
| 628 | psdir |
| 629 | libdir |
| 630 | localedir |
| 631 | mandir |
| 632 | DEFS |
| 633 | ECHO_C |
| 634 | ECHO_N |
| 635 | ECHO_T |
| 636 | LIBS |
| 637 | build_alias |
| 638 | host_alias |
| 639 | target_alias |
| 640 | build |
| 641 | build_cpu |
| 642 | build_vendor |
| 643 | build_os |
| 644 | host |
| 645 | host_cpu |
| 646 | host_vendor |
| 647 | host_os |
| 648 | WIN16_FILES |
| 649 | WIN16_INSTALL |
| 650 | SET_MAKE |
| 651 | CC |
| 652 | CFLAGS |
| 653 | LDFLAGS |
| 654 | CPPFLAGS |
| 655 | ac_ct_CC |
| 656 | EXEEXT |
| 657 | OBJEXT |
| 658 | CXX |
| 659 | CXXFLAGS |
| 660 | ac_ct_CXX |
| 661 | CPPBIN |
| 662 | TOOLSDIR |
| 663 | XMKMF |
| 664 | CPP |
| 665 | X_CFLAGS |
| 666 | X_PRE_LIBS |
| 667 | X_LIBS |
| 668 | X_EXTRA_LIBS |
| 669 | LEX |
| 670 | LEXLIB |
| 671 | LEX_OUTPUT_ROOT |
| 672 | XLEX |
| 673 | BISON |
| 674 | AS |
| 675 | ac_ct_AS |
| 676 | LD |
| 677 | AR |
| 678 | RANLIB |
| 679 | STRIP |
| 680 | WINDRES |
| 681 | LN_S |
| 682 | LN |
| 683 | GREP |
| 684 | EGREP |
| 685 | LDCONFIG |
| 686 | INSTALL_PROGRAM |
| 687 | INSTALL_SCRIPT |
| 688 | INSTALL_DATA |
| 689 | LINT |
| 690 | LINTFLAGS |
| 691 | FONTFORGE |
| 692 | PKG_CONFIG |
| 693 | PRELINK |
| 694 | LIBPTHREAD |
| 695 | XLIB |
| 696 | XFILES |
| 697 | OPENGLFILES |
| 698 | GLU32FILES |
| 699 | OPENGL_LIBS |
| 700 | GLUT_LIBS |
| 701 | GLUT32FILES |
| 702 | NASLIBS |
| 703 | XML2LIBS |
| 704 | XML2INCL |
| 705 | XSLTLIBS |
| 706 | XSLTINCL |
| 707 | HALINCL |
| 708 | CURSESLIBS |
| 709 | sane_devel |
| 710 | SANELIBS |
| 711 | SANEINCL |
| 712 | gphoto2_devel |
| 713 | gphoto2port_devel |
| 714 | GPHOTO2LIBS |
| 715 | GPHOTO2INCL |
| 716 | ICULIBS |
| 717 | RESOLVLIBS |
| 718 | LCMSLIBS |
| 719 | LDAPLIBS |
| 720 | FREETYPELIBS |
| 721 | FREETYPEINCL |
| 722 | ft_devel |
| 723 | ft_devel2 |
| 724 | FONTSSUBDIRS |
| 725 | ARTSCCONFIG |
| 726 | ARTSLIBS |
| 727 | ARTSINCL |
| 728 | ESDCONFIG |
| 729 | ESDLIBS |
| 730 | ESDINCL |
| 731 | ALSALIBS |
| 732 | AUDIOIOLIBS |
| 733 | EXTRACFLAGS |
| 734 | BUILTINFLAG |
| 735 | DLLEXT |
| 736 | DLLFLAGS |
| 737 | DLLIBS |
| 738 | LDSHARED |
| 739 | LDDLLFLAGS |
| 740 | LIBEXT |
| 741 | IMPLIBEXT |
| 742 | DLLTOOL |
| 743 | DLLWRAP |
| 744 | LDEXECFLAGS |
| 745 | LDEXERPATH |
| 746 | LDDLLRPATH |
| 747 | COREFOUNDATIONLIB |
| 748 | IOKITLIB |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 749 | COREAUDIO |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 750 | CROSSTEST |
| 751 | CROSSCC |
| 752 | CROSSWINDRES |
| 753 | LDPATH |
| 754 | CRTLIBS |
| 755 | SOCKETLIBS |
| 756 | MAIN_BINARY |
| 757 | EXTRA_BINARIES |
| 758 | LDD |
| 759 | LIBOBJS |
| 760 | LTLIBOBJS' |
| 761 | ac_subst_files='MAKE_RULES |
| 762 | MAKE_DLL_RULES |
| 763 | MAKE_IMPLIB_RULES |
| 764 | MAKE_TEST_RULES |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 765 | MAKE_PROG_RULES' |
| 766 | ac_precious_vars='build_alias |
| 767 | host_alias |
| 768 | target_alias |
| 769 | CC |
| 770 | CFLAGS |
| 771 | LDFLAGS |
| 772 | CPPFLAGS |
| 773 | CXX |
| 774 | CXXFLAGS |
| 775 | CCC |
| 776 | XMKMF |
| 777 | CPP' |
| 778 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 779 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 780 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 781 | ac_init_help= |
| 782 | ac_init_version=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 783 | # The variables have the same names as the options, with |
| 784 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 785 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 786 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 787 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 788 | no_recursion= |
| 789 | prefix=NONE |
| 790 | program_prefix=NONE |
| 791 | program_suffix=NONE |
| 792 | program_transform_name=s,x,x, |
| 793 | silent= |
| 794 | site= |
| 795 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 796 | verbose= |
| 797 | x_includes=NONE |
| 798 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 799 | |
| 800 | # Installation directory options. |
| 801 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 802 | # and all the variables that are supposed to be based on exec_prefix |
| 803 | # by default will actually change. |
| 804 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 805 | # (The list follows the same order as the GNU Coding Standards.) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 806 | bindir='${exec_prefix}/bin' |
| 807 | sbindir='${exec_prefix}/sbin' |
| 808 | libexecdir='${exec_prefix}/libexec' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 809 | datarootdir='${prefix}/share' |
| 810 | datadir='${datarootdir}' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 811 | sysconfdir='${prefix}/etc' |
| 812 | sharedstatedir='${prefix}/com' |
| 813 | localstatedir='${prefix}/var' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 814 | includedir='${prefix}/include' |
| 815 | oldincludedir='/usr/include' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 816 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 817 | infodir='${datarootdir}/info' |
| 818 | htmldir='${docdir}' |
| 819 | dvidir='${docdir}' |
| 820 | pdfdir='${docdir}' |
| 821 | psdir='${docdir}' |
| 822 | libdir='${exec_prefix}/lib' |
| 823 | localedir='${datarootdir}/locale' |
| 824 | mandir='${datarootdir}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 825 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 826 | ac_prev= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 827 | ac_dashdash= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 828 | for ac_option |
| 829 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 830 | # If the previous option needs an argument, assign it. |
| 831 | if test -n "$ac_prev"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 832 | eval $ac_prev=\$ac_option |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 833 | ac_prev= |
| 834 | continue |
| 835 | fi |
| 836 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 837 | case $ac_option in |
| 838 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 839 | *) ac_optarg=yes ;; |
| 840 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 841 | |
| 842 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 843 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 844 | case $ac_dashdash$ac_option in |
| 845 | --) |
| 846 | ac_dashdash=yes ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 847 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 848 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 849 | ac_prev=bindir ;; |
| 850 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 851 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 852 | |
| 853 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 854 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 855 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 856 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 857 | |
| 858 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 859 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 860 | ac_prev=cache_file ;; |
| 861 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 862 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 863 | cache_file=$ac_optarg ;; |
| 864 | |
| 865 | --config-cache | -C) |
| 866 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 867 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 868 | -datadir | --datadir | --datadi | --datad) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 869 | ac_prev=datadir ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 870 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 871 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 872 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 873 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 874 | | --dataroo | --dataro | --datar) |
| 875 | ac_prev=datarootdir ;; |
| 876 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 877 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 878 | datarootdir=$ac_optarg ;; |
| 879 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 880 | -disable-* | --disable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 881 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 882 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 883 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 884 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 885 | { (exit 1); exit 1; }; } |
| 886 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 887 | eval enable_$ac_feature=no ;; |
| 888 | |
| 889 | -docdir | --docdir | --docdi | --doc | --do) |
| 890 | ac_prev=docdir ;; |
| 891 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 892 | docdir=$ac_optarg ;; |
| 893 | |
| 894 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 895 | ac_prev=dvidir ;; |
| 896 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 897 | dvidir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 898 | |
| 899 | -enable-* | --enable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 900 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 901 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 902 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 903 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 904 | { (exit 1); exit 1; }; } |
| 905 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 906 | eval enable_$ac_feature=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 907 | |
| 908 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 909 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 910 | | --exec | --exe | --ex) |
| 911 | ac_prev=exec_prefix ;; |
| 912 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 913 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 914 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 915 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 916 | |
| 917 | -gas | --gas | --ga | --g) |
| 918 | # Obsolete; use --with-gas. |
| 919 | with_gas=yes ;; |
| 920 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 921 | -help | --help | --hel | --he | -h) |
| 922 | ac_init_help=long ;; |
| 923 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 924 | ac_init_help=recursive ;; |
| 925 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 926 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 927 | |
| 928 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 929 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 930 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 931 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 932 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 933 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 934 | ac_prev=htmldir ;; |
| 935 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 936 | | --ht=*) |
| 937 | htmldir=$ac_optarg ;; |
| 938 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 939 | -includedir | --includedir | --includedi | --included | --include \ |
| 940 | | --includ | --inclu | --incl | --inc) |
| 941 | ac_prev=includedir ;; |
| 942 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 943 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 944 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 945 | |
| 946 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 947 | ac_prev=infodir ;; |
| 948 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 949 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 950 | |
| 951 | -libdir | --libdir | --libdi | --libd) |
| 952 | ac_prev=libdir ;; |
| 953 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 954 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 955 | |
| 956 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 957 | | --libexe | --libex | --libe) |
| 958 | ac_prev=libexecdir ;; |
| 959 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 960 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 961 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 962 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 963 | -localedir | --localedir | --localedi | --localed | --locale) |
| 964 | ac_prev=localedir ;; |
| 965 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 966 | localedir=$ac_optarg ;; |
| 967 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 968 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 969 | | --localstate | --localstat | --localsta | --localst | --locals) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 970 | ac_prev=localstatedir ;; |
| 971 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 972 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 973 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 974 | |
| 975 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 976 | ac_prev=mandir ;; |
| 977 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 978 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 979 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 980 | -nfp | --nfp | --nf) |
| 981 | # Obsolete; use --without-fp. |
| 982 | with_fp=no ;; |
| 983 | |
| 984 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 985 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 986 | no_create=yes ;; |
| 987 | |
| 988 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 989 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 990 | no_recursion=yes ;; |
| 991 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 992 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 993 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 994 | | --oldin | --oldi | --old | --ol | --o) |
| 995 | ac_prev=oldincludedir ;; |
| 996 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 997 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 998 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 999 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1000 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1001 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1002 | ac_prev=prefix ;; |
| 1003 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1004 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1005 | |
| 1006 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1007 | | --program-pre | --program-pr | --program-p) |
| 1008 | ac_prev=program_prefix ;; |
| 1009 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1010 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1011 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1012 | |
| 1013 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1014 | | --program-suf | --program-su | --program-s) |
| 1015 | ac_prev=program_suffix ;; |
| 1016 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1017 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1018 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1019 | |
| 1020 | -program-transform-name | --program-transform-name \ |
| 1021 | | --program-transform-nam | --program-transform-na \ |
| 1022 | | --program-transform-n | --program-transform- \ |
| 1023 | | --program-transform | --program-transfor \ |
| 1024 | | --program-transfo | --program-transf \ |
| 1025 | | --program-trans | --program-tran \ |
| 1026 | | --progr-tra | --program-tr | --program-t) |
| 1027 | ac_prev=program_transform_name ;; |
| 1028 | -program-transform-name=* | --program-transform-name=* \ |
| 1029 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1030 | | --program-transform-n=* | --program-transform-=* \ |
| 1031 | | --program-transform=* | --program-transfor=* \ |
| 1032 | | --program-transfo=* | --program-transf=* \ |
| 1033 | | --program-trans=* | --program-tran=* \ |
| 1034 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1035 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1036 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1037 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1038 | ac_prev=pdfdir ;; |
| 1039 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1040 | pdfdir=$ac_optarg ;; |
| 1041 | |
| 1042 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1043 | ac_prev=psdir ;; |
| 1044 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1045 | psdir=$ac_optarg ;; |
| 1046 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1047 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1048 | | -silent | --silent | --silen | --sile | --sil) |
| 1049 | silent=yes ;; |
| 1050 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1051 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1052 | ac_prev=sbindir ;; |
| 1053 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1054 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1055 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1056 | |
| 1057 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1058 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1059 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1060 | | --sha | --sh) |
| 1061 | ac_prev=sharedstatedir ;; |
| 1062 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1063 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1064 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1065 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1066 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1067 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1068 | -site | --site | --sit) |
| 1069 | ac_prev=site ;; |
| 1070 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1071 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1072 | |
| 1073 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1074 | ac_prev=srcdir ;; |
| 1075 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1076 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1077 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1078 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1079 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1080 | ac_prev=sysconfdir ;; |
| 1081 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1082 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1083 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1084 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1085 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1086 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1087 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1088 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1089 | |
| 1090 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1091 | verbose=yes ;; |
| 1092 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1093 | -version | --version | --versio | --versi | --vers | -V) |
| 1094 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1095 | |
| 1096 | -with-* | --with-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1097 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1098 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1099 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1100 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1101 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1102 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1103 | eval with_$ac_package=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1104 | |
| 1105 | -without-* | --without-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1106 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1107 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1108 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1109 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1110 | { (exit 1); exit 1; }; } |
| 1111 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1112 | eval with_$ac_package=no ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1113 | |
| 1114 | --x) |
| 1115 | # Obsolete; use --with-x. |
| 1116 | with_x=yes ;; |
| 1117 | |
| 1118 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1119 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1120 | ac_prev=x_includes ;; |
| 1121 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1122 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1123 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1124 | |
| 1125 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1126 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1127 | ac_prev=x_libraries ;; |
| 1128 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1129 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1130 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1131 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1132 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1133 | Try \`$0 --help' for more information." >&2 |
| 1134 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1135 | ;; |
| 1136 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1137 | *=*) |
| 1138 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1139 | # Reject names that are not valid shell variable names. |
| 1140 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1141 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1142 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1143 | eval $ac_envvar=\$ac_optarg |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1144 | export $ac_envvar ;; |
| 1145 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1146 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1147 | # FIXME: should be removed in autoconf 3.0. |
| 1148 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1149 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1150 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1151 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1152 | ;; |
| 1153 | |
| 1154 | esac |
| 1155 | done |
| 1156 | |
| 1157 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1158 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1159 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1160 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1161 | fi |
| 1162 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1163 | # Be sure to have absolute directory names. |
| 1164 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1165 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1166 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1167 | libdir localedir mandir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1168 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1169 | eval ac_val=\$$ac_var |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1170 | case $ac_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1171 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1172 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1173 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1174 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1175 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1176 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1177 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1178 | # There might be people who depend on the old broken behavior: `$host' |
| 1179 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1180 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1181 | build=$build_alias |
| 1182 | host=$host_alias |
| 1183 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1184 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1185 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1186 | if test "x$host_alias" != x; then |
| 1187 | if test "x$build_alias" = x; then |
| 1188 | cross_compiling=maybe |
| 1189 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1190 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1191 | elif test "x$build_alias" != "x$host_alias"; then |
| 1192 | cross_compiling=yes |
| 1193 | fi |
| 1194 | fi |
| 1195 | |
| 1196 | ac_tool_prefix= |
| 1197 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1198 | |
| 1199 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1200 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1201 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1202 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1203 | ac_ls_di=`ls -di .` && |
| 1204 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1205 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1206 | { (exit 1); exit 1; }; } |
| 1207 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1208 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1209 | { (exit 1); exit 1; }; } |
| 1210 | |
| 1211 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1212 | # Find the source files, if location was not specified. |
| 1213 | if test -z "$srcdir"; then |
| 1214 | ac_srcdir_defaulted=yes |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1215 | # Try the directory containing this script, then the parent directory. |
| 1216 | ac_confdir=`$as_dirname -- "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1217 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1218 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1219 | X"$0" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1220 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1221 | echo X"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1223 | s//\1/ |
| 1224 | q |
| 1225 | } |
| 1226 | /^X\(\/\/\)[^/].*/{ |
| 1227 | s//\1/ |
| 1228 | q |
| 1229 | } |
| 1230 | /^X\(\/\/\)$/{ |
| 1231 | s//\1/ |
| 1232 | q |
| 1233 | } |
| 1234 | /^X\(\/\).*/{ |
| 1235 | s//\1/ |
| 1236 | q |
| 1237 | } |
| 1238 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1239 | srcdir=$ac_confdir |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1240 | if test ! -r "$srcdir/$ac_unique_file"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1241 | srcdir=.. |
| 1242 | fi |
| 1243 | else |
| 1244 | ac_srcdir_defaulted=no |
| 1245 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1246 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1247 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1248 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1249 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1250 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1251 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1252 | ac_abs_confdir=`( |
| 1253 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1254 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1255 | pwd)` |
| 1256 | # When building in place, set srcdir=. |
| 1257 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1258 | srcdir=. |
| 1259 | fi |
| 1260 | # Remove unnecessary trailing slashes from srcdir. |
| 1261 | # Double slashes in file names in object file debugging info |
| 1262 | # mess up M-x gdb in Emacs. |
| 1263 | case $srcdir in |
| 1264 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1265 | esac |
| 1266 | for ac_var in $ac_precious_vars; do |
| 1267 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1268 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1269 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1270 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1271 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1272 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1273 | # |
| 1274 | # Report the --help message. |
| 1275 | # |
| 1276 | if test "$ac_init_help" = "long"; then |
| 1277 | # Omit some internal or obsolete options to make the list less imposing. |
| 1278 | # This message is too long to be a string in the A/UX 3.1 sh. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1279 | cat <<_ACEOF |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 1280 | \`configure' configures Wine 0.9.18 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1281 | |
| 1282 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1283 | |
| 1284 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1285 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1286 | |
| 1287 | Defaults for the options are specified in brackets. |
| 1288 | |
| 1289 | Configuration: |
| 1290 | -h, --help display this help and exit |
| 1291 | --help=short display options specific to this package |
| 1292 | --help=recursive display the short help of all the included packages |
| 1293 | -V, --version display version information and exit |
| 1294 | -q, --quiet, --silent do not print \`checking...' messages |
| 1295 | --cache-file=FILE cache test results in FILE [disabled] |
| 1296 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1297 | -n, --no-create do not create output files |
| 1298 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1299 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1300 | Installation directories: |
| 1301 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1302 | [$ac_default_prefix] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1303 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1304 | [PREFIX] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1305 | |
| 1306 | By default, \`make install' will install all the files in |
| 1307 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1308 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1309 | for instance \`--prefix=\$HOME'. |
| 1310 | |
| 1311 | For better control, use the options below. |
| 1312 | |
| 1313 | Fine tuning of the installation directories: |
| 1314 | --bindir=DIR user executables [EPREFIX/bin] |
| 1315 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1316 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1317 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1318 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1319 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1320 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1321 | --includedir=DIR C header files [PREFIX/include] |
| 1322 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1323 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1324 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1325 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1326 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1327 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1328 | --docdir=DIR documentation root [DATAROOTDIR/doc/wine] |
| 1329 | --htmldir=DIR html documentation [DOCDIR] |
| 1330 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1331 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1332 | --psdir=DIR ps documentation [DOCDIR] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1333 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1334 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1335 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1336 | |
| 1337 | X features: |
| 1338 | --x-includes=DIR X include files are in DIR |
| 1339 | --x-libraries=DIR X library files are in DIR |
| 1340 | |
| 1341 | System types: |
| 1342 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1343 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1344 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1345 | fi |
| 1346 | |
| 1347 | if test -n "$ac_init_help"; then |
| 1348 | case $ac_init_help in |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 1349 | short | recursive ) echo "Configuration of Wine 0.9.18:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1350 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1351 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1352 | |
| 1353 | Optional Features: |
| 1354 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1355 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1356 | --disable-win16 do not include Win16 support |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1357 | --enable-win64 build a Win64 emulator on AMD64 (won't run Win32 |
| 1358 | binaries) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1359 | |
| 1360 | Optional Packages: |
| 1361 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1362 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1363 | --without-opengl do not use OpenGL |
| 1364 | --without-curses do not use curses |
| 1365 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1366 | --with-x use the X Window System |
| 1367 | |
| 1368 | Some influential environment variables: |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1369 | CC C compiler command |
| 1370 | CFLAGS C compiler flags |
| 1371 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1372 | nonstandard directory <lib dir> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1373 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1374 | you have headers in a nonstandard directory <include dir> |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 1375 | CXX C++ compiler command |
| 1376 | CXXFLAGS C++ compiler flags |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1377 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1378 | CPP C preprocessor |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1379 | |
| 1380 | Use these variables to override the choices made by `configure' or to help |
| 1381 | it to find libraries and programs with nonstandard names/locations. |
| 1382 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1383 | Report bugs to <wine-devel@winehq.org>. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1384 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1385 | ac_status=$? |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1386 | fi |
| 1387 | |
| 1388 | if test "$ac_init_help" = "recursive"; then |
| 1389 | # If there are subdirs, report their specific --help. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1390 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1391 | test -d "$ac_dir" || continue |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1392 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1393 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1394 | case "$ac_dir" in |
| 1395 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1396 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1397 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1398 | # A ".." for each directory in $ac_dir_suffix. |
| 1399 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1400 | case $ac_top_builddir_sub in |
| 1401 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1402 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1403 | esac ;; |
| 1404 | esac |
| 1405 | ac_abs_top_builddir=$ac_pwd |
| 1406 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1407 | # for backward compatibility: |
| 1408 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1409 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1410 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1411 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1412 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1413 | ac_top_srcdir=$ac_top_builddir_sub |
| 1414 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1415 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1416 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1417 | ac_top_srcdir=$srcdir |
| 1418 | ac_abs_top_srcdir=$srcdir ;; |
| 1419 | *) # Relative name. |
| 1420 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1421 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1422 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1423 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1424 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1425 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1426 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1427 | # Check for guested configure. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1428 | if test -f "$ac_srcdir/configure.gnu"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1429 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1430 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1431 | elif test -f "$ac_srcdir/configure"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1432 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1433 | $SHELL "$ac_srcdir/configure" --help=recursive |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1434 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1435 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1436 | fi || ac_status=$? |
| 1437 | cd "$ac_pwd" || { ac_status=$?; break; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1438 | done |
| 1439 | fi |
| 1440 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1441 | test -n "$ac_init_help" && exit $ac_status |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1442 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1443 | cat <<\_ACEOF |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 1444 | Wine configure 0.9.18 |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 1445 | generated by GNU Autoconf 2.60a |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1446 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1447 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1448 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1449 | This configure script is free software; the Free Software Foundation |
| 1450 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1451 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1452 | exit |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1453 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1454 | cat >config.log <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1455 | This file contains any messages produced by compilers while |
| 1456 | running configure, to aid debugging if configure makes a mistake. |
| 1457 | |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 1458 | It was created by Wine $as_me 0.9.18, which was |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 1459 | generated by GNU Autoconf 2.60a. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1460 | |
| 1461 | $ $0 $@ |
| 1462 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1463 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1464 | exec 5>>config.log |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1465 | { |
| 1466 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1467 | ## --------- ## |
| 1468 | ## Platform. ## |
| 1469 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1470 | |
| 1471 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1472 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1473 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1474 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1475 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1476 | |
| 1477 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1478 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1479 | |
| 1480 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1481 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1482 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1483 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1484 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1485 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1486 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1487 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1488 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1489 | |
| 1490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1491 | for as_dir in $PATH |
| 1492 | do |
| 1493 | IFS=$as_save_IFS |
| 1494 | test -z "$as_dir" && as_dir=. |
| 1495 | echo "PATH: $as_dir" |
| 1496 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1497 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1498 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1499 | } >&5 |
| 1500 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1501 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1502 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1503 | |
| 1504 | ## ----------- ## |
| 1505 | ## Core tests. ## |
| 1506 | ## ----------- ## |
| 1507 | |
| 1508 | _ACEOF |
| 1509 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1510 | |
| 1511 | # Keep a trace of the command line. |
| 1512 | # Strip out --no-create and --no-recursion so they do not pile up. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1513 | # Strip out --silent because we don't want to record it for future runs. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1514 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1515 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1516 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1517 | ac_configure_args0= |
| 1518 | ac_configure_args1= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1519 | ac_must_keep_next=false |
| 1520 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1521 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1522 | for ac_arg |
| 1523 | do |
| 1524 | case $ac_arg in |
| 1525 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1526 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1527 | | -silent | --silent | --silen | --sile | --sil) |
| 1528 | continue ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1529 | *\'*) |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1530 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1531 | esac |
| 1532 | case $ac_pass in |
| 1533 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1534 | 2) |
| 1535 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1536 | if test $ac_must_keep_next = true; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1537 | ac_must_keep_next=false # Got value, back to normal. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1538 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1539 | case $ac_arg in |
| 1540 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1541 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1542 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1543 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1544 | case "$ac_configure_args0 " in |
| 1545 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1546 | esac |
| 1547 | ;; |
| 1548 | -* ) ac_must_keep_next=true ;; |
| 1549 | esac |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1550 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1551 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1552 | ;; |
| 1553 | esac |
| 1554 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1555 | done |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1556 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1557 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1558 | |
| 1559 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1560 | # config.log. We remove comments because anyway the quotes in there |
| 1561 | # would cause problems or look ugly. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1562 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1563 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1564 | trap 'exit_status=$? |
| 1565 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1566 | { |
| 1567 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1568 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1569 | cat <<\_ASBOX |
| 1570 | ## ---------------- ## |
| 1571 | ## Cache variables. ## |
| 1572 | ## ---------------- ## |
| 1573 | _ASBOX |
| 1574 | echo |
| 1575 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1576 | ( |
| 1577 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1578 | eval ac_val=\$$ac_var |
| 1579 | case $ac_val in #( |
| 1580 | *${as_nl}*) |
| 1581 | case $ac_var in #( |
| 1582 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1583 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1584 | esac |
| 1585 | case $ac_var in #( |
| 1586 | _ | IFS | as_nl) ;; #( |
| 1587 | *) $as_unset $ac_var ;; |
| 1588 | esac ;; |
| 1589 | esac |
| 1590 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1591 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1592 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1593 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1594 | sed -n \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1595 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1596 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1597 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1598 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1599 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1600 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1601 | esac | |
| 1602 | sort |
| 1603 | ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1604 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1605 | |
| 1606 | cat <<\_ASBOX |
| 1607 | ## ----------------- ## |
| 1608 | ## Output variables. ## |
| 1609 | ## ----------------- ## |
| 1610 | _ASBOX |
| 1611 | echo |
| 1612 | for ac_var in $ac_subst_vars |
| 1613 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1614 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1615 | case $ac_val in |
| 1616 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1617 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1618 | echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1619 | done | sort |
| 1620 | echo |
| 1621 | |
| 1622 | if test -n "$ac_subst_files"; then |
| 1623 | cat <<\_ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1624 | ## ------------------- ## |
| 1625 | ## File substitutions. ## |
| 1626 | ## ------------------- ## |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1627 | _ASBOX |
| 1628 | echo |
| 1629 | for ac_var in $ac_subst_files |
| 1630 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1631 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1632 | case $ac_val in |
| 1633 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1634 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1635 | echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1636 | done | sort |
| 1637 | echo |
| 1638 | fi |
| 1639 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1640 | if test -s confdefs.h; then |
| 1641 | cat <<\_ASBOX |
| 1642 | ## ----------- ## |
| 1643 | ## confdefs.h. ## |
| 1644 | ## ----------- ## |
| 1645 | _ASBOX |
| 1646 | echo |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1647 | cat confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1648 | echo |
| 1649 | fi |
| 1650 | test "$ac_signal" != 0 && |
| 1651 | echo "$as_me: caught signal $ac_signal" |
| 1652 | echo "$as_me: exit $exit_status" |
| 1653 | } >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1654 | rm -f core *.core core.conftest.* && |
| 1655 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1656 | exit $exit_status |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1657 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1658 | for ac_signal in 1 2 13 15; do |
| 1659 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1660 | done |
| 1661 | ac_signal=0 |
| 1662 | |
| 1663 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1664 | rm -f -r conftest* confdefs.h |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1665 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1666 | # Predefined preprocessor variables. |
| 1667 | |
| 1668 | cat >>confdefs.h <<_ACEOF |
| 1669 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1670 | _ACEOF |
| 1671 | |
| 1672 | |
| 1673 | cat >>confdefs.h <<_ACEOF |
| 1674 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1675 | _ACEOF |
| 1676 | |
| 1677 | |
| 1678 | cat >>confdefs.h <<_ACEOF |
| 1679 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1680 | _ACEOF |
| 1681 | |
| 1682 | |
| 1683 | cat >>confdefs.h <<_ACEOF |
| 1684 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1685 | _ACEOF |
| 1686 | |
| 1687 | |
| 1688 | cat >>confdefs.h <<_ACEOF |
| 1689 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1690 | _ACEOF |
| 1691 | |
| 1692 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1693 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1694 | # Prefer explicitly selected file to automatically selected ones. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1695 | if test -n "$CONFIG_SITE"; then |
| 1696 | set x "$CONFIG_SITE" |
| 1697 | elif test "x$prefix" != xNONE; then |
| 1698 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1699 | else |
| 1700 | set x "$ac_default_prefix/share/config.site" \ |
| 1701 | "$ac_default_prefix/etc/config.site" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1702 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1703 | shift |
| 1704 | for ac_site_file |
| 1705 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1706 | if test -r "$ac_site_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1707 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1708 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1709 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1710 | . "$ac_site_file" |
| 1711 | fi |
| 1712 | done |
| 1713 | |
| 1714 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1715 | # Some versions of bash will fail to source /dev/null (special |
| 1716 | # files actually), so we avoid doing that. |
| 1717 | if test -f "$cache_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1718 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1719 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1720 | case $cache_file in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1721 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1722 | *) . "./$cache_file";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1723 | esac |
| 1724 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1725 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1726 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1727 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1728 | >$cache_file |
| 1729 | fi |
| 1730 | |
| 1731 | # Check that the precious variables saved in the cache have kept the same |
| 1732 | # value. |
| 1733 | ac_cache_corrupted=false |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1734 | for ac_var in $ac_precious_vars; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1735 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1736 | eval ac_new_set=\$ac_env_${ac_var}_set |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1737 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1738 | eval ac_new_val=\$ac_env_${ac_var}_value |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1739 | case $ac_old_set,$ac_new_set in |
| 1740 | set,) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1741 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1742 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1743 | ac_cache_corrupted=: ;; |
| 1744 | ,set) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1745 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1746 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1747 | ac_cache_corrupted=: ;; |
| 1748 | ,);; |
| 1749 | *) |
| 1750 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1751 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1752 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1753 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1754 | echo "$as_me: former value: $ac_old_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1755 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1756 | echo "$as_me: current value: $ac_new_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1757 | ac_cache_corrupted=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1758 | fi;; |
| 1759 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1760 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1761 | if test "$ac_new_set" = set; then |
| 1762 | case $ac_new_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1763 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1764 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1765 | esac |
| 1766 | case " $ac_configure_args " in |
| 1767 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1768 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1769 | esac |
| 1770 | fi |
| 1771 | done |
| 1772 | if $ac_cache_corrupted; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1773 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1774 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1775 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1776 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1777 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1778 | fi |
| 1779 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1804 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1805 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1809 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1810 | |
| 1811 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1812 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1813 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1814 | ac_aux_dir= |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1815 | for ac_dir in tools "$srcdir"/tools; do |
| 1816 | if test -f "$ac_dir/install-sh"; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1817 | ac_aux_dir=$ac_dir |
| 1818 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1819 | break |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1820 | elif test -f "$ac_dir/install.sh"; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1821 | ac_aux_dir=$ac_dir |
| 1822 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1823 | break |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1824 | elif test -f "$ac_dir/shtool"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1825 | ac_aux_dir=$ac_dir |
| 1826 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1827 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1828 | fi |
| 1829 | done |
| 1830 | if test -z "$ac_aux_dir"; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1831 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5 |
| 1832 | echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1833 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1834 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1835 | |
| 1836 | # These three variables are undocumented and unsupported, |
| 1837 | # and are intended to be withdrawn in a future Autoconf release. |
| 1838 | # They can cause serious problems if a builder's source tree is in a directory |
| 1839 | # whose full name contains unusual characters. |
| 1840 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1841 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1842 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1843 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1844 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1845 | |
| 1846 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1847 | # Check whether --enable-win16 was given. |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1848 | if test "${enable_win16+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1849 | enableval=$enable_win16; |
| 1850 | fi |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1851 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1852 | # Check whether --enable-win64 was given. |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1853 | if test "${enable_win64+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1854 | enableval=$enable_win64; |
| 1855 | fi |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1856 | |
| 1857 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1858 | |
| 1859 | # Check whether --with-opengl was given. |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1860 | if test "${with_opengl+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1861 | withval=$with_opengl; |
| 1862 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1863 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1864 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1865 | # Check whether --with-curses was given. |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1866 | if test "${with_curses+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1867 | withval=$with_curses; |
| 1868 | fi |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1869 | |
| 1870 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1871 | # Check whether --with-wine-tools was given. |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1872 | if test "${with_wine_tools+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1873 | withval=$with_wine_tools; |
| 1874 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1875 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1876 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1877 | # Make sure we can run config.sub. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1878 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1879 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1880 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1881 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1882 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1883 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1884 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1885 | if test "${ac_cv_build+set}" = set; then |
| 1886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1887 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1888 | ac_build_alias=$build_alias |
| 1889 | test "x$ac_build_alias" = x && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1890 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1891 | test "x$ac_build_alias" = x && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1892 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1893 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1894 | { (exit 1); exit 1; }; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1895 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1896 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1897 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1898 | { (exit 1); exit 1; }; } |
| 1899 | |
| 1900 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1901 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1902 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1903 | case $ac_cv_build in |
| 1904 | *-*-*) ;; |
| 1905 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1906 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1907 | { (exit 1); exit 1; }; };; |
| 1908 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1909 | build=$ac_cv_build |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1910 | ac_save_IFS=$IFS; IFS='-' |
| 1911 | set x $ac_cv_build |
| 1912 | shift |
| 1913 | build_cpu=$1 |
| 1914 | build_vendor=$2 |
| 1915 | shift; shift |
| 1916 | # Remember, the first character of IFS is used to create $*, |
| 1917 | # except with old shells: |
| 1918 | build_os=$* |
| 1919 | IFS=$ac_save_IFS |
| 1920 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1921 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1922 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1923 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1924 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1925 | if test "${ac_cv_host+set}" = set; then |
| 1926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1927 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1928 | if test "x$host_alias" = x; then |
| 1929 | ac_cv_host=$ac_cv_build |
| 1930 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1931 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1932 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1933 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1934 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1935 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1936 | |
| 1937 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1938 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1939 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1940 | case $ac_cv_host in |
| 1941 | *-*-*) ;; |
| 1942 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1943 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1944 | { (exit 1); exit 1; }; };; |
| 1945 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1946 | host=$ac_cv_host |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1947 | ac_save_IFS=$IFS; IFS='-' |
| 1948 | set x $ac_cv_host |
| 1949 | shift |
| 1950 | host_cpu=$1 |
| 1951 | host_vendor=$2 |
| 1952 | shift; shift |
| 1953 | # Remember, the first character of IFS is used to create $*, |
| 1954 | # except with old shells: |
| 1955 | host_os=$* |
| 1956 | IFS=$ac_save_IFS |
| 1957 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1958 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1959 | |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1960 | case $host in |
| 1961 | x86_64*linux*) |
| 1962 | if test "x$enable_win64" != "xyes" |
| 1963 | then |
| 1964 | test -n "$CC" || CC="gcc -m32" |
| 1965 | test -n "$LD" || LD="ld -m elf_i386" |
| 1966 | test -n "$AS" || AS="as --32" |
Alex Woods | bbcf986 | 2005-02-10 19:09:08 +0000 | [diff] [blame] | 1967 | host_cpu="i386" |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1968 | fi |
| 1969 | ;; |
| 1970 | esac |
| 1971 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 1972 | case $host_cpu in |
| 1973 | *i[3456789]86*) |
| 1974 | if test "x$enable_win16" != "xno" |
| 1975 | then |
| 1976 | enable_win16="yes" |
| 1977 | fi |
| 1978 | ;; |
| 1979 | esac |
| 1980 | |
| 1981 | WIN16_FILES="\$(WIN16_FILES)" |
| 1982 | |
| 1983 | WIN16_INSTALL="\$(WIN16_INSTALL)" |
| 1984 | |
| 1985 | if test "x$enable_win16" != "xyes" |
| 1986 | then |
| 1987 | WIN16_FILES="" |
| 1988 | WIN16_INSTALL="" |
| 1989 | fi |
| 1990 | |
| 1991 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1992 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1993 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1994 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1995 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1997 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1998 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1999 | SHELL = /bin/sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2000 | all: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2001 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2002 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2003 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2004 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2005 | *@@@%%%=?*=@@@%%%*) |
| 2006 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2007 | *) |
| 2008 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2009 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2010 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2011 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2012 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2013 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2014 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2015 | SET_MAKE= |
| 2016 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2018 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2019 | SET_MAKE="MAKE=${MAKE-make}" |
| 2020 | fi |
| 2021 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2022 | ac_ext=c |
| 2023 | ac_cpp='$CPP $CPPFLAGS' |
| 2024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2027 | if test -n "$ac_tool_prefix"; then |
| 2028 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2029 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2030 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2031 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2032 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2034 | else |
| 2035 | if test -n "$CC"; then |
| 2036 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2037 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2039 | for as_dir in $PATH |
| 2040 | do |
| 2041 | IFS=$as_save_IFS |
| 2042 | test -z "$as_dir" && as_dir=. |
| 2043 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2045 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2047 | break 2 |
| 2048 | fi |
| 2049 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2050 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2051 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2052 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2053 | fi |
| 2054 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2055 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2056 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2057 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2058 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2059 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2060 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2061 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2062 | fi |
| 2063 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2064 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2065 | fi |
| 2066 | if test -z "$ac_cv_prog_CC"; then |
| 2067 | ac_ct_CC=$CC |
| 2068 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2069 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2070 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2071 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2072 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2074 | else |
| 2075 | if test -n "$ac_ct_CC"; then |
| 2076 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2077 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2079 | for as_dir in $PATH |
| 2080 | do |
| 2081 | IFS=$as_save_IFS |
| 2082 | test -z "$as_dir" && as_dir=. |
| 2083 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2084 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2085 | ac_cv_prog_ac_ct_CC="gcc" |
| 2086 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2087 | break 2 |
| 2088 | fi |
| 2089 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2090 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2091 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2092 | |
| 2093 | fi |
| 2094 | fi |
| 2095 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2096 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2097 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2098 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2099 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2100 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2101 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2102 | fi |
| 2103 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2104 | if test "x$ac_ct_CC" = x; then |
| 2105 | CC="" |
| 2106 | else |
| 2107 | case $cross_compiling:$ac_tool_warned in |
| 2108 | yes:) |
| 2109 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2110 | whose name does not start with the host triplet. If you think this |
| 2111 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2112 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2113 | whose name does not start with the host triplet. If you think this |
| 2114 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2115 | ac_tool_warned=yes ;; |
| 2116 | esac |
| 2117 | CC=$ac_ct_CC |
| 2118 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2119 | else |
| 2120 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2121 | fi |
| 2122 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2123 | if test -z "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2124 | if test -n "$ac_tool_prefix"; then |
| 2125 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2126 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2127 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2129 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2131 | else |
| 2132 | if test -n "$CC"; then |
| 2133 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2134 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2136 | for as_dir in $PATH |
| 2137 | do |
| 2138 | IFS=$as_save_IFS |
| 2139 | test -z "$as_dir" && as_dir=. |
| 2140 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2142 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2144 | break 2 |
| 2145 | fi |
| 2146 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2147 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2148 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2149 | |
| 2150 | fi |
| 2151 | fi |
| 2152 | CC=$ac_cv_prog_CC |
| 2153 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2154 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2155 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2156 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2157 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2158 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2159 | fi |
| 2160 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2161 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2162 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2163 | fi |
| 2164 | if test -z "$CC"; then |
| 2165 | # Extract the first word of "cc", so it can be a program name with args. |
| 2166 | set dummy cc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2167 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2169 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2171 | else |
| 2172 | if test -n "$CC"; then |
| 2173 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2174 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2175 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2177 | for as_dir in $PATH |
| 2178 | do |
| 2179 | IFS=$as_save_IFS |
| 2180 | test -z "$as_dir" && as_dir=. |
| 2181 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2183 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2184 | ac_prog_rejected=yes |
| 2185 | continue |
| 2186 | fi |
| 2187 | ac_cv_prog_CC="cc" |
| 2188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2189 | break 2 |
| 2190 | fi |
| 2191 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2192 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2193 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2194 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2195 | if test $ac_prog_rejected = yes; then |
| 2196 | # We found a bogon in the path, so make sure we never use it. |
| 2197 | set dummy $ac_cv_prog_CC |
| 2198 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2199 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2200 | # We chose a different compiler from the bogus one. |
| 2201 | # However, it has the same basename, so the bogon will be chosen |
| 2202 | # first if we set CC to just the basename; use the full file name. |
| 2203 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2204 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2205 | fi |
| 2206 | fi |
| 2207 | fi |
| 2208 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2209 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2210 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2211 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2212 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2213 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2214 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2215 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2216 | fi |
| 2217 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2218 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2219 | fi |
| 2220 | if test -z "$CC"; then |
| 2221 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2222 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2223 | do |
| 2224 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2225 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2226 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2227 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2228 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2230 | else |
| 2231 | if test -n "$CC"; then |
| 2232 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2233 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2235 | for as_dir in $PATH |
| 2236 | do |
| 2237 | IFS=$as_save_IFS |
| 2238 | test -z "$as_dir" && as_dir=. |
| 2239 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2241 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2242 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2243 | break 2 |
| 2244 | fi |
| 2245 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2246 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2247 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2248 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2249 | fi |
| 2250 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2251 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2252 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2253 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2254 | echo "${ECHO_T}$CC" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2255 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2256 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2257 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2258 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2259 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2260 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2261 | test -n "$CC" && break |
| 2262 | done |
| 2263 | fi |
| 2264 | if test -z "$CC"; then |
| 2265 | ac_ct_CC=$CC |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2266 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2267 | do |
| 2268 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2269 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2270 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2272 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2274 | else |
| 2275 | if test -n "$ac_ct_CC"; then |
| 2276 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2277 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2279 | for as_dir in $PATH |
| 2280 | do |
| 2281 | IFS=$as_save_IFS |
| 2282 | test -z "$as_dir" && as_dir=. |
| 2283 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2284 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2285 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2287 | break 2 |
| 2288 | fi |
| 2289 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2290 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2291 | IFS=$as_save_IFS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2292 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2293 | fi |
| 2294 | fi |
| 2295 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2296 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2297 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2298 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2299 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2300 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2301 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2302 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2303 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2304 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2305 | test -n "$ac_ct_CC" && break |
| 2306 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2307 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2308 | if test "x$ac_ct_CC" = x; then |
| 2309 | CC="" |
| 2310 | else |
| 2311 | case $cross_compiling:$ac_tool_warned in |
| 2312 | yes:) |
| 2313 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2314 | whose name does not start with the host triplet. If you think this |
| 2315 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2316 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2317 | whose name does not start with the host triplet. If you think this |
| 2318 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2319 | ac_tool_warned=yes ;; |
| 2320 | esac |
| 2321 | CC=$ac_ct_CC |
| 2322 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2323 | fi |
| 2324 | |
| 2325 | fi |
| 2326 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2327 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2328 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2329 | See \`config.log' for more details." >&5 |
| 2330 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2331 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2332 | { (exit 1); exit 1; }; } |
| 2333 | |
| 2334 | # Provide some information about the compiler. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2335 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2336 | ac_compiler=`set X $ac_compile; echo $2` |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2337 | { (ac_try="$ac_compiler --version >&5" |
| 2338 | case "(($ac_try" in |
| 2339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2340 | *) ac_try_echo=$ac_try;; |
| 2341 | esac |
| 2342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2343 | (eval "$ac_compiler --version >&5") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2344 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2346 | (exit $ac_status); } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2347 | { (ac_try="$ac_compiler -v >&5" |
| 2348 | case "(($ac_try" in |
| 2349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2350 | *) ac_try_echo=$ac_try;; |
| 2351 | esac |
| 2352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2353 | (eval "$ac_compiler -v >&5") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2354 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2356 | (exit $ac_status); } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2357 | { (ac_try="$ac_compiler -V >&5" |
| 2358 | case "(($ac_try" in |
| 2359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2360 | *) ac_try_echo=$ac_try;; |
| 2361 | esac |
| 2362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2363 | (eval "$ac_compiler -V >&5") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2364 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2366 | (exit $ac_status); } |
| 2367 | |
| 2368 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2369 | /* confdefs.h. */ |
| 2370 | _ACEOF |
| 2371 | cat confdefs.h >>conftest.$ac_ext |
| 2372 | cat >>conftest.$ac_ext <<_ACEOF |
| 2373 | /* end confdefs.h. */ |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2374 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2375 | int |
| 2376 | main () |
| 2377 | { |
| 2378 | |
| 2379 | ; |
| 2380 | return 0; |
| 2381 | } |
| 2382 | _ACEOF |
| 2383 | ac_clean_files_save=$ac_clean_files |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2384 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2385 | # Try to create an executable without -o first, disregard a.out. |
| 2386 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2387 | # of exeext. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2388 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2389 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2390 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2391 | # |
| 2392 | # List of possible output files, starting from the most likely. |
| 2393 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2394 | # only as a last resort. b.out is created by i960 compilers. |
| 2395 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2396 | # |
| 2397 | # The IRIX 6 linker writes into existing files which may not be |
| 2398 | # executable, retaining their permissions. Remove them first so a |
| 2399 | # subsequent execution test works. |
| 2400 | ac_rmfiles= |
| 2401 | for ac_file in $ac_files |
| 2402 | do |
| 2403 | case $ac_file in |
| 2404 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2405 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2406 | esac |
| 2407 | done |
| 2408 | rm -f $ac_rmfiles |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2409 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2410 | if { (ac_try="$ac_link_default" |
| 2411 | case "(($ac_try" in |
| 2412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2413 | *) ac_try_echo=$ac_try;; |
| 2414 | esac |
| 2415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2416 | (eval "$ac_link_default") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2417 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2419 | (exit $ac_status); }; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2420 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2421 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2422 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2423 | # so that the user can short-circuit this test for compilers unknown to |
| 2424 | # Autoconf. |
| 2425 | for ac_file in $ac_files |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2426 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2427 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2428 | case $ac_file in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2429 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
| 2430 | ;; |
| 2431 | [ab].out ) |
| 2432 | # We found the default executable, but exeext='' is most |
| 2433 | # certainly right. |
| 2434 | break;; |
| 2435 | *.* ) |
| 2436 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2437 | then :; else |
| 2438 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2439 | fi |
| 2440 | # We set ac_cv_exeext here because the later test for it is not |
| 2441 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2442 | # argument, so we may need to know it at that point already. |
| 2443 | # Even if this section looks crufty: it has the advantage of |
| 2444 | # actually working. |
| 2445 | break;; |
| 2446 | * ) |
| 2447 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2448 | esac |
| 2449 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2450 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2451 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2452 | else |
| 2453 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2455 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2456 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2457 | See \`config.log' for more details." >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2458 | echo "$as_me: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2459 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2460 | { (exit 77); exit 77; }; } |
| 2461 | fi |
| 2462 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2463 | ac_exeext=$ac_cv_exeext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2464 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2465 | echo "${ECHO_T}$ac_file" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2466 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2467 | # Check that the compiler produces executables we can run. If not, either |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2468 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2469 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2470 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2471 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2472 | # If not cross compiling, check that we can run a simple program. |
| 2473 | if test "$cross_compiling" != yes; then |
| 2474 | if { ac_try='./$ac_file' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2475 | { (case "(($ac_try" in |
| 2476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2477 | *) ac_try_echo=$ac_try;; |
| 2478 | esac |
| 2479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2480 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2481 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2483 | (exit $ac_status); }; }; then |
| 2484 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2485 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2486 | if test "$cross_compiling" = maybe; then |
| 2487 | cross_compiling=yes |
| 2488 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2489 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2490 | If you meant to cross compile, use \`--host'. |
| 2491 | See \`config.log' for more details." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2492 | echo "$as_me: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2493 | If you meant to cross compile, use \`--host'. |
| 2494 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2495 | { (exit 1); exit 1; }; } |
| 2496 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2497 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2498 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2499 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2500 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2501 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2502 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2503 | ac_clean_files=$ac_clean_files_save |
| 2504 | # Check that the compiler produces executables we can run. If not, either |
| 2505 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2506 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2507 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2508 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2509 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2510 | |
| 2511 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2512 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2513 | if { (ac_try="$ac_link" |
| 2514 | case "(($ac_try" in |
| 2515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2516 | *) ac_try_echo=$ac_try;; |
| 2517 | esac |
| 2518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2519 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2520 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2522 | (exit $ac_status); }; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2523 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2524 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2525 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2526 | # `rm'. |
| 2527 | for ac_file in conftest.exe conftest conftest.*; do |
| 2528 | test -f "$ac_file" || continue |
| 2529 | case $ac_file in |
| 2530 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2531 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2532 | break;; |
| 2533 | * ) break;; |
| 2534 | esac |
| 2535 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2536 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2537 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2538 | See \`config.log' for more details." >&5 |
| 2539 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2540 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2541 | { (exit 1); exit 1; }; } |
| 2542 | fi |
| 2543 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2544 | rm -f conftest$ac_cv_exeext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2545 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2546 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2547 | |
| 2548 | rm -f conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2549 | EXEEXT=$ac_cv_exeext |
| 2550 | ac_exeext=$EXEEXT |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2551 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2552 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2553 | if test "${ac_cv_objext+set}" = set; then |
| 2554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2555 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2556 | cat >conftest.$ac_ext <<_ACEOF |
| 2557 | /* confdefs.h. */ |
| 2558 | _ACEOF |
| 2559 | cat confdefs.h >>conftest.$ac_ext |
| 2560 | cat >>conftest.$ac_ext <<_ACEOF |
| 2561 | /* end confdefs.h. */ |
| 2562 | |
| 2563 | int |
| 2564 | main () |
| 2565 | { |
| 2566 | |
| 2567 | ; |
| 2568 | return 0; |
| 2569 | } |
| 2570 | _ACEOF |
| 2571 | rm -f conftest.o conftest.obj |
| 2572 | if { (ac_try="$ac_compile" |
| 2573 | case "(($ac_try" in |
| 2574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2575 | *) ac_try_echo=$ac_try;; |
| 2576 | esac |
| 2577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2578 | (eval "$ac_compile") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2579 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2581 | (exit $ac_status); }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2582 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2583 | test -f "$ac_file" || continue; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2584 | case $ac_file in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2585 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2586 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2587 | break;; |
| 2588 | esac |
| 2589 | done |
| 2590 | else |
| 2591 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2593 | |
| 2594 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2595 | See \`config.log' for more details." >&5 |
| 2596 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2597 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2598 | { (exit 1); exit 1; }; } |
| 2599 | fi |
| 2600 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2601 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2602 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2603 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2604 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2605 | OBJEXT=$ac_cv_objext |
| 2606 | ac_objext=$OBJEXT |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2607 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2608 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2609 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2611 | else |
| 2612 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2613 | /* confdefs.h. */ |
| 2614 | _ACEOF |
| 2615 | cat confdefs.h >>conftest.$ac_ext |
| 2616 | cat >>conftest.$ac_ext <<_ACEOF |
| 2617 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2618 | |
| 2619 | int |
| 2620 | main () |
| 2621 | { |
| 2622 | #ifndef __GNUC__ |
| 2623 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2624 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2625 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2626 | ; |
| 2627 | return 0; |
| 2628 | } |
| 2629 | _ACEOF |
| 2630 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2631 | if { (ac_try="$ac_compile" |
| 2632 | case "(($ac_try" in |
| 2633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2634 | *) ac_try_echo=$ac_try;; |
| 2635 | esac |
| 2636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2637 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2638 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2640 | rm -f conftest.er1 |
| 2641 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2643 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2644 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2645 | { (case "(($ac_try" in |
| 2646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2647 | *) ac_try_echo=$ac_try;; |
| 2648 | esac |
| 2649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2650 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2651 | ac_status=$? |
| 2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2653 | (exit $ac_status); }; } && |
| 2654 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2655 | { (case "(($ac_try" in |
| 2656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2657 | *) ac_try_echo=$ac_try;; |
| 2658 | esac |
| 2659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2660 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2661 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2663 | (exit $ac_status); }; }; then |
| 2664 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2665 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2666 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2668 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2669 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2670 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2671 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2673 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2674 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2675 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2676 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2677 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2678 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2679 | ac_test_CFLAGS=${CFLAGS+set} |
| 2680 | ac_save_CFLAGS=$CFLAGS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2681 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2682 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2683 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2685 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2686 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2687 | ac_c_werror_flag=yes |
| 2688 | ac_cv_prog_cc_g=no |
| 2689 | CFLAGS="-g" |
| 2690 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2691 | /* confdefs.h. */ |
| 2692 | _ACEOF |
| 2693 | cat confdefs.h >>conftest.$ac_ext |
| 2694 | cat >>conftest.$ac_ext <<_ACEOF |
| 2695 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2696 | |
| 2697 | int |
| 2698 | main () |
| 2699 | { |
| 2700 | |
| 2701 | ; |
| 2702 | return 0; |
| 2703 | } |
| 2704 | _ACEOF |
| 2705 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2706 | if { (ac_try="$ac_compile" |
| 2707 | case "(($ac_try" in |
| 2708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2709 | *) ac_try_echo=$ac_try;; |
| 2710 | esac |
| 2711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2712 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2713 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2715 | rm -f conftest.er1 |
| 2716 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2718 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2720 | { (case "(($ac_try" in |
| 2721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2722 | *) ac_try_echo=$ac_try;; |
| 2723 | esac |
| 2724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2725 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2726 | ac_status=$? |
| 2727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2728 | (exit $ac_status); }; } && |
| 2729 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2730 | { (case "(($ac_try" in |
| 2731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2732 | *) ac_try_echo=$ac_try;; |
| 2733 | esac |
| 2734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2735 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2736 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2738 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2739 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2740 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2741 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2743 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2744 | CFLAGS="" |
| 2745 | cat >conftest.$ac_ext <<_ACEOF |
| 2746 | /* confdefs.h. */ |
| 2747 | _ACEOF |
| 2748 | cat confdefs.h >>conftest.$ac_ext |
| 2749 | cat >>conftest.$ac_ext <<_ACEOF |
| 2750 | /* end confdefs.h. */ |
| 2751 | |
| 2752 | int |
| 2753 | main () |
| 2754 | { |
| 2755 | |
| 2756 | ; |
| 2757 | return 0; |
| 2758 | } |
| 2759 | _ACEOF |
| 2760 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2761 | if { (ac_try="$ac_compile" |
| 2762 | case "(($ac_try" in |
| 2763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2764 | *) ac_try_echo=$ac_try;; |
| 2765 | esac |
| 2766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2767 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2768 | ac_status=$? |
| 2769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2770 | rm -f conftest.er1 |
| 2771 | cat conftest.err >&5 |
| 2772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2773 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2775 | { (case "(($ac_try" in |
| 2776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2777 | *) ac_try_echo=$ac_try;; |
| 2778 | esac |
| 2779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2780 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2781 | ac_status=$? |
| 2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2783 | (exit $ac_status); }; } && |
| 2784 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2785 | { (case "(($ac_try" in |
| 2786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2787 | *) ac_try_echo=$ac_try;; |
| 2788 | esac |
| 2789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2790 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2791 | ac_status=$? |
| 2792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2793 | (exit $ac_status); }; }; then |
| 2794 | : |
| 2795 | else |
| 2796 | echo "$as_me: failed program was:" >&5 |
| 2797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2798 | |
| 2799 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2800 | CFLAGS="-g" |
| 2801 | cat >conftest.$ac_ext <<_ACEOF |
| 2802 | /* confdefs.h. */ |
| 2803 | _ACEOF |
| 2804 | cat confdefs.h >>conftest.$ac_ext |
| 2805 | cat >>conftest.$ac_ext <<_ACEOF |
| 2806 | /* end confdefs.h. */ |
| 2807 | |
| 2808 | int |
| 2809 | main () |
| 2810 | { |
| 2811 | |
| 2812 | ; |
| 2813 | return 0; |
| 2814 | } |
| 2815 | _ACEOF |
| 2816 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2817 | if { (ac_try="$ac_compile" |
| 2818 | case "(($ac_try" in |
| 2819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2820 | *) ac_try_echo=$ac_try;; |
| 2821 | esac |
| 2822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2823 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2824 | ac_status=$? |
| 2825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2826 | rm -f conftest.er1 |
| 2827 | cat conftest.err >&5 |
| 2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2829 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2830 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2831 | { (case "(($ac_try" in |
| 2832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2833 | *) ac_try_echo=$ac_try;; |
| 2834 | esac |
| 2835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2836 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2837 | ac_status=$? |
| 2838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2839 | (exit $ac_status); }; } && |
| 2840 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2841 | { (case "(($ac_try" in |
| 2842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2843 | *) ac_try_echo=$ac_try;; |
| 2844 | esac |
| 2845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2846 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2847 | ac_status=$? |
| 2848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2849 | (exit $ac_status); }; }; then |
| 2850 | ac_cv_prog_cc_g=yes |
| 2851 | else |
| 2852 | echo "$as_me: failed program was:" >&5 |
| 2853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2854 | |
| 2855 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2856 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2857 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2859 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2860 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2862 | fi |
| 2863 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2865 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2866 | fi |
| 2867 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2868 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2869 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2870 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2871 | elif test $ac_cv_prog_cc_g = yes; then |
| 2872 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2873 | CFLAGS="-g -O2" |
| 2874 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2875 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2876 | fi |
| 2877 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2878 | if test "$GCC" = yes; then |
| 2879 | CFLAGS="-O2" |
| 2880 | else |
| 2881 | CFLAGS= |
| 2882 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2883 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2884 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2885 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2886 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2888 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2889 | ac_cv_prog_cc_c89=no |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2890 | ac_save_CC=$CC |
| 2891 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2892 | /* confdefs.h. */ |
| 2893 | _ACEOF |
| 2894 | cat confdefs.h >>conftest.$ac_ext |
| 2895 | cat >>conftest.$ac_ext <<_ACEOF |
| 2896 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2897 | #include <stdarg.h> |
| 2898 | #include <stdio.h> |
| 2899 | #include <sys/types.h> |
| 2900 | #include <sys/stat.h> |
| 2901 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2902 | struct buf { int x; }; |
| 2903 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2904 | static char *e (p, i) |
| 2905 | char **p; |
| 2906 | int i; |
| 2907 | { |
| 2908 | return p[i]; |
| 2909 | } |
| 2910 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2911 | { |
| 2912 | char *s; |
| 2913 | va_list v; |
| 2914 | va_start (v,p); |
| 2915 | s = g (p, va_arg (v,int)); |
| 2916 | va_end (v); |
| 2917 | return s; |
| 2918 | } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2919 | |
| 2920 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2921 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2922 | These don't provoke an error unfortunately, instead are silently treated |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2923 | as 'x'. The following induces an error, until -std is added to get |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2924 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2925 | array size at least. It's necessary to write '\x00'==0 to get something |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2926 | that's true only with -std. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2927 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2928 | |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 2929 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2930 | inside strings and character constants. */ |
| 2931 | #define FOO(x) 'x' |
| 2932 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2933 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2934 | int test (int i, double x); |
| 2935 | struct s1 {int (*f) (int a);}; |
| 2936 | struct s2 {int (*f) (double a);}; |
| 2937 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2938 | int argc; |
| 2939 | char **argv; |
| 2940 | int |
| 2941 | main () |
| 2942 | { |
| 2943 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2944 | ; |
| 2945 | return 0; |
| 2946 | } |
| 2947 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2948 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2949 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2950 | do |
| 2951 | CC="$ac_save_CC $ac_arg" |
| 2952 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2953 | if { (ac_try="$ac_compile" |
| 2954 | case "(($ac_try" in |
| 2955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2956 | *) ac_try_echo=$ac_try;; |
| 2957 | esac |
| 2958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2959 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2960 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2962 | rm -f conftest.er1 |
| 2963 | cat conftest.err >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2965 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2966 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2967 | { (case "(($ac_try" in |
| 2968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2969 | *) ac_try_echo=$ac_try;; |
| 2970 | esac |
| 2971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2972 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2973 | ac_status=$? |
| 2974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2975 | (exit $ac_status); }; } && |
| 2976 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2977 | { (case "(($ac_try" in |
| 2978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2979 | *) ac_try_echo=$ac_try;; |
| 2980 | esac |
| 2981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2982 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2983 | ac_status=$? |
| 2984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2985 | (exit $ac_status); }; }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2986 | ac_cv_prog_cc_c89=$ac_arg |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2987 | else |
| 2988 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2990 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2991 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2992 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2993 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2994 | rm -f core conftest.err conftest.$ac_objext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2995 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2996 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2997 | rm -f conftest.$ac_ext |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2998 | CC=$ac_save_CC |
| 2999 | |
| 3000 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3001 | # AC_CACHE_VAL |
| 3002 | case "x$ac_cv_prog_cc_c89" in |
| 3003 | x) |
| 3004 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3005 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3006 | xno) |
| 3007 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3008 | echo "${ECHO_T}unsupported" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3009 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3010 | CC="$CC $ac_cv_prog_cc_c89" |
| 3011 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3012 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3013 | esac |
| 3014 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3015 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3016 | ac_ext=c |
| 3017 | ac_cpp='$CPP $CPPFLAGS' |
| 3018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3021 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3022 | ac_ext=cpp |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3023 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3024 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3025 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3026 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3027 | if test -z "$CXX"; then |
| 3028 | if test -n "$CCC"; then |
| 3029 | CXX=$CCC |
| 3030 | else |
| 3031 | if test -n "$ac_tool_prefix"; then |
| 3032 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3033 | do |
| 3034 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3035 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3036 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3037 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3038 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3040 | else |
| 3041 | if test -n "$CXX"; then |
| 3042 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3043 | else |
| 3044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3045 | for as_dir in $PATH |
| 3046 | do |
| 3047 | IFS=$as_save_IFS |
| 3048 | test -z "$as_dir" && as_dir=. |
| 3049 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3051 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3052 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3053 | break 2 |
| 3054 | fi |
| 3055 | done |
| 3056 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3057 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3058 | |
| 3059 | fi |
| 3060 | fi |
| 3061 | CXX=$ac_cv_prog_CXX |
| 3062 | if test -n "$CXX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3063 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3064 | echo "${ECHO_T}$CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3065 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3066 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3067 | echo "${ECHO_T}no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3068 | fi |
| 3069 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3070 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3071 | test -n "$CXX" && break |
| 3072 | done |
| 3073 | fi |
| 3074 | if test -z "$CXX"; then |
| 3075 | ac_ct_CXX=$CXX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3076 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3077 | do |
| 3078 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3079 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3080 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3081 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3082 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3084 | else |
| 3085 | if test -n "$ac_ct_CXX"; then |
| 3086 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3087 | else |
| 3088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3089 | for as_dir in $PATH |
| 3090 | do |
| 3091 | IFS=$as_save_IFS |
| 3092 | test -z "$as_dir" && as_dir=. |
| 3093 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3095 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3096 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3097 | break 2 |
| 3098 | fi |
| 3099 | done |
| 3100 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3101 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3102 | |
| 3103 | fi |
| 3104 | fi |
| 3105 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3106 | if test -n "$ac_ct_CXX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3107 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3108 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3109 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3110 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3111 | echo "${ECHO_T}no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3112 | fi |
| 3113 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3114 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3115 | test -n "$ac_ct_CXX" && break |
| 3116 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3117 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3118 | if test "x$ac_ct_CXX" = x; then |
| 3119 | CXX="g++" |
| 3120 | else |
| 3121 | case $cross_compiling:$ac_tool_warned in |
| 3122 | yes:) |
| 3123 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3124 | whose name does not start with the host triplet. If you think this |
| 3125 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3126 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3127 | whose name does not start with the host triplet. If you think this |
| 3128 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3129 | ac_tool_warned=yes ;; |
| 3130 | esac |
| 3131 | CXX=$ac_ct_CXX |
| 3132 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3133 | fi |
| 3134 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3135 | fi |
| 3136 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3137 | # Provide some information about the compiler. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3138 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3139 | ac_compiler=`set X $ac_compile; echo $2` |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3140 | { (ac_try="$ac_compiler --version >&5" |
| 3141 | case "(($ac_try" in |
| 3142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3143 | *) ac_try_echo=$ac_try;; |
| 3144 | esac |
| 3145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3146 | (eval "$ac_compiler --version >&5") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3147 | ac_status=$? |
| 3148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3149 | (exit $ac_status); } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3150 | { (ac_try="$ac_compiler -v >&5" |
| 3151 | case "(($ac_try" in |
| 3152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3153 | *) ac_try_echo=$ac_try;; |
| 3154 | esac |
| 3155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3156 | (eval "$ac_compiler -v >&5") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3157 | ac_status=$? |
| 3158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3159 | (exit $ac_status); } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3160 | { (ac_try="$ac_compiler -V >&5" |
| 3161 | case "(($ac_try" in |
| 3162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3163 | *) ac_try_echo=$ac_try;; |
| 3164 | esac |
| 3165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3166 | (eval "$ac_compiler -V >&5") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3167 | ac_status=$? |
| 3168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3169 | (exit $ac_status); } |
| 3170 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3171 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3172 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3173 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3175 | else |
| 3176 | cat >conftest.$ac_ext <<_ACEOF |
| 3177 | /* confdefs.h. */ |
| 3178 | _ACEOF |
| 3179 | cat confdefs.h >>conftest.$ac_ext |
| 3180 | cat >>conftest.$ac_ext <<_ACEOF |
| 3181 | /* end confdefs.h. */ |
| 3182 | |
| 3183 | int |
| 3184 | main () |
| 3185 | { |
| 3186 | #ifndef __GNUC__ |
| 3187 | choke me |
| 3188 | #endif |
| 3189 | |
| 3190 | ; |
| 3191 | return 0; |
| 3192 | } |
| 3193 | _ACEOF |
| 3194 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3195 | if { (ac_try="$ac_compile" |
| 3196 | case "(($ac_try" in |
| 3197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3198 | *) ac_try_echo=$ac_try;; |
| 3199 | esac |
| 3200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3201 | (eval "$ac_compile") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3202 | ac_status=$? |
| 3203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3204 | rm -f conftest.er1 |
| 3205 | cat conftest.err >&5 |
| 3206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3207 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3208 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3209 | { (case "(($ac_try" in |
| 3210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3211 | *) ac_try_echo=$ac_try;; |
| 3212 | esac |
| 3213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3214 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3215 | ac_status=$? |
| 3216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3217 | (exit $ac_status); }; } && |
| 3218 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3219 | { (case "(($ac_try" in |
| 3220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3221 | *) ac_try_echo=$ac_try;; |
| 3222 | esac |
| 3223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3224 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3225 | ac_status=$? |
| 3226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3227 | (exit $ac_status); }; }; then |
| 3228 | ac_compiler_gnu=yes |
| 3229 | else |
| 3230 | echo "$as_me: failed program was:" >&5 |
| 3231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3232 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3233 | ac_compiler_gnu=no |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3234 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3235 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3237 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3238 | |
| 3239 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3240 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3241 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3242 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3243 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3244 | ac_save_CXXFLAGS=$CXXFLAGS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3245 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3246 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3247 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3249 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3250 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3251 | ac_cxx_werror_flag=yes |
| 3252 | ac_cv_prog_cxx_g=no |
| 3253 | CXXFLAGS="-g" |
| 3254 | cat >conftest.$ac_ext <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3255 | /* confdefs.h. */ |
| 3256 | _ACEOF |
| 3257 | cat confdefs.h >>conftest.$ac_ext |
| 3258 | cat >>conftest.$ac_ext <<_ACEOF |
| 3259 | /* end confdefs.h. */ |
| 3260 | |
| 3261 | int |
| 3262 | main () |
| 3263 | { |
| 3264 | |
| 3265 | ; |
| 3266 | return 0; |
| 3267 | } |
| 3268 | _ACEOF |
| 3269 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3270 | if { (ac_try="$ac_compile" |
| 3271 | case "(($ac_try" in |
| 3272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3273 | *) ac_try_echo=$ac_try;; |
| 3274 | esac |
| 3275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3276 | (eval "$ac_compile") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3277 | ac_status=$? |
| 3278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3279 | rm -f conftest.er1 |
| 3280 | cat conftest.err >&5 |
| 3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3282 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3283 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3284 | { (case "(($ac_try" in |
| 3285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3286 | *) ac_try_echo=$ac_try;; |
| 3287 | esac |
| 3288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3289 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3290 | ac_status=$? |
| 3291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3292 | (exit $ac_status); }; } && |
| 3293 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3294 | { (case "(($ac_try" in |
| 3295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3296 | *) ac_try_echo=$ac_try;; |
| 3297 | esac |
| 3298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3299 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3300 | ac_status=$? |
| 3301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3302 | (exit $ac_status); }; }; then |
| 3303 | ac_cv_prog_cxx_g=yes |
| 3304 | else |
| 3305 | echo "$as_me: failed program was:" >&5 |
| 3306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3307 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3308 | CXXFLAGS="" |
| 3309 | cat >conftest.$ac_ext <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3310 | /* confdefs.h. */ |
| 3311 | _ACEOF |
| 3312 | cat confdefs.h >>conftest.$ac_ext |
| 3313 | cat >>conftest.$ac_ext <<_ACEOF |
| 3314 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3315 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3316 | int |
| 3317 | main () |
| 3318 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3319 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3320 | ; |
| 3321 | return 0; |
| 3322 | } |
| 3323 | _ACEOF |
| 3324 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3325 | if { (ac_try="$ac_compile" |
| 3326 | case "(($ac_try" in |
| 3327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3328 | *) ac_try_echo=$ac_try;; |
| 3329 | esac |
| 3330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3331 | (eval "$ac_compile") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3332 | ac_status=$? |
| 3333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3334 | rm -f conftest.er1 |
| 3335 | cat conftest.err >&5 |
| 3336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3337 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3338 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3339 | { (case "(($ac_try" in |
| 3340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3341 | *) ac_try_echo=$ac_try;; |
| 3342 | esac |
| 3343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3344 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3345 | ac_status=$? |
| 3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3347 | (exit $ac_status); }; } && |
| 3348 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3349 | { (case "(($ac_try" in |
| 3350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3351 | *) ac_try_echo=$ac_try;; |
| 3352 | esac |
| 3353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3354 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3355 | ac_status=$? |
| 3356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3357 | (exit $ac_status); }; }; then |
| 3358 | : |
| 3359 | else |
| 3360 | echo "$as_me: failed program was:" >&5 |
| 3361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3362 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3363 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3364 | CXXFLAGS="-g" |
| 3365 | cat >conftest.$ac_ext <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3366 | /* confdefs.h. */ |
| 3367 | _ACEOF |
| 3368 | cat confdefs.h >>conftest.$ac_ext |
| 3369 | cat >>conftest.$ac_ext <<_ACEOF |
| 3370 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3371 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3372 | int |
| 3373 | main () |
| 3374 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3375 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3376 | ; |
| 3377 | return 0; |
| 3378 | } |
| 3379 | _ACEOF |
| 3380 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3381 | if { (ac_try="$ac_compile" |
| 3382 | case "(($ac_try" in |
| 3383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3384 | *) ac_try_echo=$ac_try;; |
| 3385 | esac |
| 3386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3387 | (eval "$ac_compile") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3388 | ac_status=$? |
| 3389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3390 | rm -f conftest.er1 |
| 3391 | cat conftest.err >&5 |
| 3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3393 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3394 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3395 | { (case "(($ac_try" in |
| 3396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3397 | *) ac_try_echo=$ac_try;; |
| 3398 | esac |
| 3399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3400 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3401 | ac_status=$? |
| 3402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3403 | (exit $ac_status); }; } && |
| 3404 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3405 | { (case "(($ac_try" in |
| 3406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3407 | *) ac_try_echo=$ac_try;; |
| 3408 | esac |
| 3409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3410 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3411 | ac_status=$? |
| 3412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3413 | (exit $ac_status); }; }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3414 | ac_cv_prog_cxx_g=yes |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3415 | else |
| 3416 | echo "$as_me: failed program was:" >&5 |
| 3417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3418 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3419 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3420 | fi |
| 3421 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3423 | fi |
| 3424 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3426 | fi |
| 3427 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3429 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3430 | fi |
| 3431 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3432 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3433 | if test "$ac_test_CXXFLAGS" = set; then |
| 3434 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3435 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3436 | if test "$GXX" = yes; then |
| 3437 | CXXFLAGS="-g -O2" |
| 3438 | else |
| 3439 | CXXFLAGS="-g" |
| 3440 | fi |
| 3441 | else |
| 3442 | if test "$GXX" = yes; then |
| 3443 | CXXFLAGS="-O2" |
| 3444 | else |
| 3445 | CXXFLAGS= |
| 3446 | fi |
| 3447 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3448 | ac_ext=c |
| 3449 | ac_cpp='$CPP $CPPFLAGS' |
| 3450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3453 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3454 | if test -n "$ac_tool_prefix"; then |
| 3455 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. |
| 3456 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3457 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3458 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3459 | if test "${ac_cv_prog_CPPBIN+set}" = set; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3461 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3462 | if test -n "$CPPBIN"; then |
| 3463 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3464 | else |
| 3465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3466 | for as_dir in $PATH |
| 3467 | do |
| 3468 | IFS=$as_save_IFS |
| 3469 | test -z "$as_dir" && as_dir=. |
| 3470 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3472 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3473 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3474 | break 2 |
| 3475 | fi |
| 3476 | done |
| 3477 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3478 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3479 | |
| 3480 | fi |
| 3481 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3482 | CPPBIN=$ac_cv_prog_CPPBIN |
| 3483 | if test -n "$CPPBIN"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3484 | { echo "$as_me:$LINENO: result: $CPPBIN" >&5 |
| 3485 | echo "${ECHO_T}$CPPBIN" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3486 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3487 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3488 | echo "${ECHO_T}no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3489 | fi |
| 3490 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3491 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3492 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3493 | if test -z "$ac_cv_prog_CPPBIN"; then |
| 3494 | ac_ct_CPPBIN=$CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3495 | # Extract the first word of "cpp", so it can be a program name with args. |
| 3496 | set dummy cpp; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3497 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3499 | if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3501 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3502 | if test -n "$ac_ct_CPPBIN"; then |
| 3503 | ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test. |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3504 | else |
| 3505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3506 | for as_dir in $PATH |
| 3507 | do |
| 3508 | IFS=$as_save_IFS |
| 3509 | test -z "$as_dir" && as_dir=. |
| 3510 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3512 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3514 | break 2 |
| 3515 | fi |
| 3516 | done |
| 3517 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3518 | IFS=$as_save_IFS |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3519 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3520 | fi |
| 3521 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3522 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
| 3523 | if test -n "$ac_ct_CPPBIN"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3524 | { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5 |
| 3525 | echo "${ECHO_T}$ac_ct_CPPBIN" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3526 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3527 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3528 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3529 | fi |
| 3530 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3531 | if test "x$ac_ct_CPPBIN" = x; then |
| 3532 | CPPBIN="cpp" |
| 3533 | else |
| 3534 | case $cross_compiling:$ac_tool_warned in |
| 3535 | yes:) |
| 3536 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3537 | whose name does not start with the host triplet. If you think this |
| 3538 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3539 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3540 | whose name does not start with the host triplet. If you think this |
| 3541 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3542 | ac_tool_warned=yes ;; |
| 3543 | esac |
| 3544 | CPPBIN=$ac_ct_CPPBIN |
| 3545 | fi |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3546 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3547 | CPPBIN="$ac_cv_prog_CPPBIN" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3548 | fi |
| 3549 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3550 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3551 | { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
| 3552 | echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3553 | if test "${wine_cv_toolsdir+set}" = set; then |
| 3554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3555 | else |
| 3556 | if test -z "$with_wine_tools"; then |
| 3557 | if test "$cross_compiling" = "yes"; then |
| 3558 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 |
| 3559 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} |
| 3560 | { (exit 1); exit 1; }; } |
| 3561 | else |
| 3562 | wine_cv_toolsdir="\$(TOPOBJDIR)" |
| 3563 | fi |
| 3564 | elif test -d "$with_wine_tools/tools/winebuild"; then |
| 3565 | case $with_wine_tools in |
| 3566 | /*) wine_cv_toolsdir="$with_wine_tools" ;; |
| 3567 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; |
| 3568 | esac |
| 3569 | else |
| 3570 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 |
| 3571 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} |
| 3572 | { (exit 1); exit 1; }; } |
| 3573 | fi |
| 3574 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3575 | { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
| 3576 | echo "${ECHO_T}$wine_cv_toolsdir" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3577 | TOOLSDIR=$wine_cv_toolsdir |
| 3578 | |
| 3579 | |
| 3580 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3581 | ac_ext=c |
| 3582 | ac_cpp='$CPP $CPPFLAGS' |
| 3583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3586 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3587 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3588 | # On Suns, sometimes $CPP names a directory. |
| 3589 | if test -n "$CPP" && test -d "$CPP"; then |
| 3590 | CPP= |
| 3591 | fi |
| 3592 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3593 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3595 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3596 | # Double quotes because CPP needs to be expanded |
| 3597 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3598 | do |
| 3599 | ac_preproc_ok=false |
| 3600 | for ac_c_preproc_warn_flag in '' yes |
| 3601 | do |
| 3602 | # Use a header file that comes with gcc, so configuring glibc |
| 3603 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3604 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3605 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3606 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3607 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3608 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3609 | /* confdefs.h. */ |
| 3610 | _ACEOF |
| 3611 | cat confdefs.h >>conftest.$ac_ext |
| 3612 | cat >>conftest.$ac_ext <<_ACEOF |
| 3613 | /* end confdefs.h. */ |
| 3614 | #ifdef __STDC__ |
| 3615 | # include <limits.h> |
| 3616 | #else |
| 3617 | # include <assert.h> |
| 3618 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3619 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3620 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3621 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3622 | case "(($ac_try" in |
| 3623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3624 | *) ac_try_echo=$ac_try;; |
| 3625 | esac |
| 3626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3627 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3628 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3629 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3630 | rm -f conftest.er1 |
| 3631 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3633 | (exit $ac_status); } >/dev/null; then |
| 3634 | if test -s conftest.err; then |
| 3635 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3636 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3637 | else |
| 3638 | ac_cpp_err= |
| 3639 | fi |
| 3640 | else |
| 3641 | ac_cpp_err=yes |
| 3642 | fi |
| 3643 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3644 | : |
| 3645 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3646 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3648 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3649 | # Broken: fails on valid input. |
| 3650 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3651 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3652 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3653 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3654 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3655 | # OK, works on sane cases. Now check whether nonexistent headers |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3656 | # can be detected and how. |
| 3657 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3658 | /* confdefs.h. */ |
| 3659 | _ACEOF |
| 3660 | cat confdefs.h >>conftest.$ac_ext |
| 3661 | cat >>conftest.$ac_ext <<_ACEOF |
| 3662 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3663 | #include <ac_nonexistent.h> |
| 3664 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3665 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3666 | case "(($ac_try" in |
| 3667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3668 | *) ac_try_echo=$ac_try;; |
| 3669 | esac |
| 3670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3671 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3672 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3673 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3674 | rm -f conftest.er1 |
| 3675 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3677 | (exit $ac_status); } >/dev/null; then |
| 3678 | if test -s conftest.err; then |
| 3679 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3680 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3681 | else |
| 3682 | ac_cpp_err= |
| 3683 | fi |
| 3684 | else |
| 3685 | ac_cpp_err=yes |
| 3686 | fi |
| 3687 | if test -z "$ac_cpp_err"; then |
| 3688 | # Broken: success on invalid input. |
| 3689 | continue |
| 3690 | else |
| 3691 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3693 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3694 | # Passes both tests. |
| 3695 | ac_preproc_ok=: |
| 3696 | break |
| 3697 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3698 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3699 | rm -f conftest.err conftest.$ac_ext |
| 3700 | |
| 3701 | done |
| 3702 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3703 | rm -f conftest.err conftest.$ac_ext |
| 3704 | if $ac_preproc_ok; then |
| 3705 | break |
| 3706 | fi |
| 3707 | |
| 3708 | done |
| 3709 | ac_cv_prog_CPP=$CPP |
| 3710 | |
| 3711 | fi |
| 3712 | CPP=$ac_cv_prog_CPP |
| 3713 | else |
| 3714 | ac_cv_prog_CPP=$CPP |
| 3715 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3716 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3717 | echo "${ECHO_T}$CPP" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3718 | ac_preproc_ok=false |
| 3719 | for ac_c_preproc_warn_flag in '' yes |
| 3720 | do |
| 3721 | # Use a header file that comes with gcc, so configuring glibc |
| 3722 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3723 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3724 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3725 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3726 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3727 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3728 | /* confdefs.h. */ |
| 3729 | _ACEOF |
| 3730 | cat confdefs.h >>conftest.$ac_ext |
| 3731 | cat >>conftest.$ac_ext <<_ACEOF |
| 3732 | /* end confdefs.h. */ |
| 3733 | #ifdef __STDC__ |
| 3734 | # include <limits.h> |
| 3735 | #else |
| 3736 | # include <assert.h> |
| 3737 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3738 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3739 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3740 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3741 | case "(($ac_try" in |
| 3742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3743 | *) ac_try_echo=$ac_try;; |
| 3744 | esac |
| 3745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3746 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3747 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3748 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3749 | rm -f conftest.er1 |
| 3750 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3752 | (exit $ac_status); } >/dev/null; then |
| 3753 | if test -s conftest.err; then |
| 3754 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3755 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3756 | else |
| 3757 | ac_cpp_err= |
| 3758 | fi |
| 3759 | else |
| 3760 | ac_cpp_err=yes |
| 3761 | fi |
| 3762 | if test -z "$ac_cpp_err"; then |
| 3763 | : |
| 3764 | else |
| 3765 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3767 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3768 | # Broken: fails on valid input. |
| 3769 | continue |
| 3770 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3771 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3772 | rm -f conftest.err conftest.$ac_ext |
| 3773 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3774 | # OK, works on sane cases. Now check whether nonexistent headers |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3775 | # can be detected and how. |
| 3776 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3777 | /* confdefs.h. */ |
| 3778 | _ACEOF |
| 3779 | cat confdefs.h >>conftest.$ac_ext |
| 3780 | cat >>conftest.$ac_ext <<_ACEOF |
| 3781 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3782 | #include <ac_nonexistent.h> |
| 3783 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3784 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3785 | case "(($ac_try" in |
| 3786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3787 | *) ac_try_echo=$ac_try;; |
| 3788 | esac |
| 3789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3790 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3791 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3792 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3793 | rm -f conftest.er1 |
| 3794 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3796 | (exit $ac_status); } >/dev/null; then |
| 3797 | if test -s conftest.err; then |
| 3798 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3799 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3800 | else |
| 3801 | ac_cpp_err= |
| 3802 | fi |
| 3803 | else |
| 3804 | ac_cpp_err=yes |
| 3805 | fi |
| 3806 | if test -z "$ac_cpp_err"; then |
| 3807 | # Broken: success on invalid input. |
| 3808 | continue |
| 3809 | else |
| 3810 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3812 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3813 | # Passes both tests. |
| 3814 | ac_preproc_ok=: |
| 3815 | break |
| 3816 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3817 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3818 | rm -f conftest.err conftest.$ac_ext |
| 3819 | |
| 3820 | done |
| 3821 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3822 | rm -f conftest.err conftest.$ac_ext |
| 3823 | if $ac_preproc_ok; then |
| 3824 | : |
| 3825 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3826 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3827 | See \`config.log' for more details." >&5 |
| 3828 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3829 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3830 | { (exit 1); exit 1; }; } |
| 3831 | fi |
| 3832 | |
| 3833 | ac_ext=c |
| 3834 | ac_cpp='$CPP $CPPFLAGS' |
| 3835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3838 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3839 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3840 | { echo "$as_me:$LINENO: checking for X" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3841 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3842 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3843 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3844 | # Check whether --with-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3845 | if test "${with_x+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3846 | withval=$with_x; |
| 3847 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3848 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3849 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3850 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3851 | # The user explicitly disabled X. |
| 3852 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3853 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3854 | case $x_includes,$x_libraries in #( |
| 3855 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
| 3856 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
| 3857 | { (exit 1); exit 1; }; };; #( |
| 3858 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3860 | else |
| 3861 | # One or both of the vars are not set, and there is no cached value. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3862 | ac_x_includes=no ac_x_libraries=no |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3863 | rm -f -r conftest.dir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3864 | if mkdir conftest.dir; then |
| 3865 | cd conftest.dir |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3866 | cat >Imakefile <<'_ACEOF' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3867 | incroot: |
| 3868 | @echo incroot='${INCROOT}' |
| 3869 | usrlibdir: |
| 3870 | @echo usrlibdir='${USRLIBDIR}' |
| 3871 | libdir: |
| 3872 | @echo libdir='${LIBDIR}' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3873 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3874 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3875 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3876 | for ac_var in incroot usrlibdir libdir; do |
| 3877 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 3878 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3879 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 3880 | for ac_extension in a so sl; do |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3881 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 3882 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3883 | ac_im_usrlibdir=$ac_im_libdir; break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3884 | fi |
| 3885 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3886 | # Screen out bogus values from the imake configuration. They are |
| 3887 | # bogus both because they are the default anyway, and because |
| 3888 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3889 | case $ac_im_incroot in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3890 | /usr/include) ac_x_includes= ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3891 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3892 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3893 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3894 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3895 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3896 | esac |
| 3897 | fi |
| 3898 | cd .. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3899 | rm -f -r conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3900 | fi |
| 3901 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3902 | # Standard set of common directories for X headers. |
| 3903 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 3904 | ac_x_header_dirs=' |
| 3905 | /usr/X11/include |
| 3906 | /usr/X11R6/include |
| 3907 | /usr/X11R5/include |
| 3908 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3909 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3910 | /usr/include/X11 |
| 3911 | /usr/include/X11R6 |
| 3912 | /usr/include/X11R5 |
| 3913 | /usr/include/X11R4 |
| 3914 | |
| 3915 | /usr/local/X11/include |
| 3916 | /usr/local/X11R6/include |
| 3917 | /usr/local/X11R5/include |
| 3918 | /usr/local/X11R4/include |
| 3919 | |
| 3920 | /usr/local/include/X11 |
| 3921 | /usr/local/include/X11R6 |
| 3922 | /usr/local/include/X11R5 |
| 3923 | /usr/local/include/X11R4 |
| 3924 | |
| 3925 | /usr/X386/include |
| 3926 | /usr/x386/include |
| 3927 | /usr/XFree86/include/X11 |
| 3928 | |
| 3929 | /usr/include |
| 3930 | /usr/local/include |
| 3931 | /usr/unsupported/include |
| 3932 | /usr/athena/include |
| 3933 | /usr/local/x11r5/include |
| 3934 | /usr/lpp/Xamples/include |
| 3935 | |
| 3936 | /usr/openwin/include |
| 3937 | /usr/openwin/share/include' |
| 3938 | |
| 3939 | if test "$ac_x_includes" = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3940 | # Guess where to find include files, by looking for Xlib.h. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3941 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3942 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3943 | /* confdefs.h. */ |
| 3944 | _ACEOF |
| 3945 | cat confdefs.h >>conftest.$ac_ext |
| 3946 | cat >>conftest.$ac_ext <<_ACEOF |
| 3947 | /* end confdefs.h. */ |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3948 | #include <X11/Xlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3949 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3950 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3951 | case "(($ac_try" in |
| 3952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3953 | *) ac_try_echo=$ac_try;; |
| 3954 | esac |
| 3955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3956 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3957 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3958 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3959 | rm -f conftest.er1 |
| 3960 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3962 | (exit $ac_status); } >/dev/null; then |
| 3963 | if test -s conftest.err; then |
| 3964 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3965 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3966 | else |
| 3967 | ac_cpp_err= |
| 3968 | fi |
| 3969 | else |
| 3970 | ac_cpp_err=yes |
| 3971 | fi |
| 3972 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3973 | # We can compile using X headers with no special include directory. |
| 3974 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3975 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3976 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3978 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3979 | for ac_dir in $ac_x_header_dirs; do |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 3980 | if test -r "$ac_dir/X11/Xlib.h"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3981 | ac_x_includes=$ac_dir |
| 3982 | break |
| 3983 | fi |
| 3984 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3985 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3986 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3987 | rm -f conftest.err conftest.$ac_ext |
| 3988 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3989 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3990 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3991 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3992 | # See if we find them without any special options. |
| 3993 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3994 | ac_save_LIBS=$LIBS |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 3995 | LIBS="-lX11 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3996 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3997 | /* confdefs.h. */ |
| 3998 | _ACEOF |
| 3999 | cat confdefs.h >>conftest.$ac_ext |
| 4000 | cat >>conftest.$ac_ext <<_ACEOF |
| 4001 | /* end confdefs.h. */ |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 4002 | #include <X11/Xlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4003 | int |
| 4004 | main () |
| 4005 | { |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 4006 | XrmInitialize () |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4007 | ; |
| 4008 | return 0; |
| 4009 | } |
| 4010 | _ACEOF |
| 4011 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4012 | if { (ac_try="$ac_link" |
| 4013 | case "(($ac_try" in |
| 4014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4015 | *) ac_try_echo=$ac_try;; |
| 4016 | esac |
| 4017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4018 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4019 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4021 | rm -f conftest.er1 |
| 4022 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4024 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4026 | { (case "(($ac_try" in |
| 4027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4028 | *) ac_try_echo=$ac_try;; |
| 4029 | esac |
| 4030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4031 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4032 | ac_status=$? |
| 4033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4034 | (exit $ac_status); }; } && |
| 4035 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4036 | { (case "(($ac_try" in |
| 4037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4038 | *) ac_try_echo=$ac_try;; |
| 4039 | esac |
| 4040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4041 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4042 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4044 | (exit $ac_status); }; }; then |
| 4045 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4046 | # We can link X programs with no special library path. |
| 4047 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4048 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4049 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4051 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4052 | LIBS=$ac_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4053 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4054 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4055 | # Don't even attempt the hair of trying to link an X program! |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4056 | for ac_extension in a so sl; do |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 4057 | if test -r "$ac_dir/libX11.$ac_extension"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4058 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4059 | break 2 |
| 4060 | fi |
| 4061 | done |
| 4062 | done |
| 4063 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4064 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4065 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4066 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4067 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4068 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4069 | case $ac_x_includes,$ac_x_libraries in #( |
| 4070 | no,* | *,no | *\'*) |
| 4071 | # Didn't find X, or a directory has "'" in its name. |
| 4072 | ac_cv_have_x="have_x=no";; #( |
| 4073 | *) |
| 4074 | # Record where we found X for the cache. |
| 4075 | ac_cv_have_x="have_x=yes\ |
| 4076 | ac_x_includes='$ac_x_includes'\ |
| 4077 | ac_x_libraries='$ac_x_libraries'" |
| 4078 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4079 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4080 | ;; #( |
| 4081 | *) have_x=yes;; |
| 4082 | esac |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4083 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4084 | fi # $with_x != no |
| 4085 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4086 | if test "$have_x" != yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4087 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
| 4088 | echo "${ECHO_T}$have_x" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4089 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4090 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4091 | # If each of the values was on the command line, it overrides each guess. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4092 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 4093 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4094 | # Update the cache value to reflect the command line values. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4095 | ac_cv_have_x="have_x=yes\ |
| 4096 | ac_x_includes='$x_includes'\ |
| 4097 | ac_x_libraries='$x_libraries'" |
| 4098 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 4099 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4100 | fi |
| 4101 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4102 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4103 | # Not all programs may use this symbol, but it does not hurt to define it. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4104 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4105 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4106 | #define X_DISPLAY_MISSING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4107 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4108 | |
| 4109 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4110 | else |
| 4111 | if test -n "$x_includes"; then |
| 4112 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 4113 | fi |
| 4114 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4115 | # It would also be nice to do this for all -L options, not just this one. |
| 4116 | if test -n "$x_libraries"; then |
| 4117 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4118 | # For Solaris; some versions of Sun CC require a space after -R and |
| 4119 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4120 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4121 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4122 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 4123 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 4124 | ac_c_werror_flag=yes |
| 4125 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4126 | /* confdefs.h. */ |
| 4127 | _ACEOF |
| 4128 | cat confdefs.h >>conftest.$ac_ext |
| 4129 | cat >>conftest.$ac_ext <<_ACEOF |
| 4130 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4131 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4132 | int |
| 4133 | main () |
| 4134 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4135 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4136 | ; |
| 4137 | return 0; |
| 4138 | } |
| 4139 | _ACEOF |
| 4140 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4141 | if { (ac_try="$ac_link" |
| 4142 | case "(($ac_try" in |
| 4143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4144 | *) ac_try_echo=$ac_try;; |
| 4145 | esac |
| 4146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4147 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4148 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4150 | rm -f conftest.er1 |
| 4151 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4153 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4154 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4155 | { (case "(($ac_try" in |
| 4156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4157 | *) ac_try_echo=$ac_try;; |
| 4158 | esac |
| 4159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4160 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4161 | ac_status=$? |
| 4162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4163 | (exit $ac_status); }; } && |
| 4164 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4165 | { (case "(($ac_try" in |
| 4166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4167 | *) ac_try_echo=$ac_try;; |
| 4168 | esac |
| 4169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4170 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4171 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4173 | (exit $ac_status); }; }; then |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4174 | { echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4175 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4176 | X_LIBS="$X_LIBS -R$x_libraries" |
| 4177 | else |
| 4178 | echo "$as_me: failed program was:" >&5 |
| 4179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4180 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4181 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4182 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4183 | /* confdefs.h. */ |
| 4184 | _ACEOF |
| 4185 | cat confdefs.h >>conftest.$ac_ext |
| 4186 | cat >>conftest.$ac_ext <<_ACEOF |
| 4187 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4188 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4189 | int |
| 4190 | main () |
| 4191 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4192 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4193 | ; |
| 4194 | return 0; |
| 4195 | } |
| 4196 | _ACEOF |
| 4197 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4198 | if { (ac_try="$ac_link" |
| 4199 | case "(($ac_try" in |
| 4200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4201 | *) ac_try_echo=$ac_try;; |
| 4202 | esac |
| 4203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4204 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4205 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4207 | rm -f conftest.er1 |
| 4208 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4210 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4211 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4212 | { (case "(($ac_try" in |
| 4213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4214 | *) ac_try_echo=$ac_try;; |
| 4215 | esac |
| 4216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4217 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4218 | ac_status=$? |
| 4219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4220 | (exit $ac_status); }; } && |
| 4221 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4222 | { (case "(($ac_try" in |
| 4223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4224 | *) ac_try_echo=$ac_try;; |
| 4225 | esac |
| 4226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4227 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4228 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4230 | (exit $ac_status); }; }; then |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4231 | { echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4232 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4233 | X_LIBS="$X_LIBS -R $x_libraries" |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4234 | else |
| 4235 | echo "$as_me: failed program was:" >&5 |
| 4236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4237 | |
| 4238 | { echo "$as_me:$LINENO: result: neither works" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4239 | echo "${ECHO_T}neither works" >&6; } |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4240 | fi |
| 4241 | |
| 4242 | rm -f core conftest.err conftest.$ac_objext \ |
| 4243 | conftest$ac_exeext conftest.$ac_ext |
| 4244 | fi |
| 4245 | |
| 4246 | rm -f core conftest.err conftest.$ac_objext \ |
| 4247 | conftest$ac_exeext conftest.$ac_ext |
| 4248 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 4249 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4250 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4251 | |
| 4252 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4253 | # Do this before checking for the system-independent R6 libraries |
| 4254 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4255 | |
| 4256 | if test "$ISC" = yes; then |
| 4257 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 4258 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4259 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 4260 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4261 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4262 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 4263 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4264 | /* confdefs.h. */ |
| 4265 | _ACEOF |
| 4266 | cat confdefs.h >>conftest.$ac_ext |
| 4267 | cat >>conftest.$ac_ext <<_ACEOF |
| 4268 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4269 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4270 | /* Override any GCC internal prototype to avoid an error. |
| 4271 | Use char because int might match the return type of a GCC |
| 4272 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4273 | #ifdef __cplusplus |
| 4274 | extern "C" |
| 4275 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4276 | char XOpenDisplay (); |
| 4277 | int |
| 4278 | main () |
| 4279 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4280 | return XOpenDisplay (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4281 | ; |
| 4282 | return 0; |
| 4283 | } |
| 4284 | _ACEOF |
| 4285 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4286 | if { (ac_try="$ac_link" |
| 4287 | case "(($ac_try" in |
| 4288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4289 | *) ac_try_echo=$ac_try;; |
| 4290 | esac |
| 4291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4292 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4293 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4295 | rm -f conftest.er1 |
| 4296 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4298 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4300 | { (case "(($ac_try" in |
| 4301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4302 | *) ac_try_echo=$ac_try;; |
| 4303 | esac |
| 4304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4305 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4306 | ac_status=$? |
| 4307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4308 | (exit $ac_status); }; } && |
| 4309 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4310 | { (case "(($ac_try" in |
| 4311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4312 | *) ac_try_echo=$ac_try;; |
| 4313 | esac |
| 4314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4315 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4316 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4318 | (exit $ac_status); }; }; then |
| 4319 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4320 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4321 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4323 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4324 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 4325 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4326 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 4327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4328 | else |
| 4329 | ac_check_lib_save_LIBS=$LIBS |
| 4330 | LIBS="-ldnet $LIBS" |
| 4331 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4332 | /* confdefs.h. */ |
| 4333 | _ACEOF |
| 4334 | cat confdefs.h >>conftest.$ac_ext |
| 4335 | cat >>conftest.$ac_ext <<_ACEOF |
| 4336 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4337 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4338 | /* Override any GCC internal prototype to avoid an error. |
| 4339 | Use char because int might match the return type of a GCC |
| 4340 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4341 | #ifdef __cplusplus |
| 4342 | extern "C" |
| 4343 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4344 | char dnet_ntoa (); |
| 4345 | int |
| 4346 | main () |
| 4347 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4348 | return dnet_ntoa (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4349 | ; |
| 4350 | return 0; |
| 4351 | } |
| 4352 | _ACEOF |
| 4353 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4354 | if { (ac_try="$ac_link" |
| 4355 | case "(($ac_try" in |
| 4356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4357 | *) ac_try_echo=$ac_try;; |
| 4358 | esac |
| 4359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4360 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4361 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4363 | rm -f conftest.er1 |
| 4364 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4366 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4367 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4368 | { (case "(($ac_try" in |
| 4369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4370 | *) ac_try_echo=$ac_try;; |
| 4371 | esac |
| 4372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4373 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4374 | ac_status=$? |
| 4375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4376 | (exit $ac_status); }; } && |
| 4377 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4378 | { (case "(($ac_try" in |
| 4379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4380 | *) ac_try_echo=$ac_try;; |
| 4381 | esac |
| 4382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4383 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4384 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4386 | (exit $ac_status); }; }; then |
| 4387 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 4388 | else |
| 4389 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4391 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4392 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4393 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4394 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4395 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4396 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4397 | LIBS=$ac_check_lib_save_LIBS |
| 4398 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4399 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 4400 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4401 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4402 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4403 | fi |
| 4404 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 4405 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4406 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 4407 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4408 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 4409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4410 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4411 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4412 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4413 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4414 | /* confdefs.h. */ |
| 4415 | _ACEOF |
| 4416 | cat confdefs.h >>conftest.$ac_ext |
| 4417 | cat >>conftest.$ac_ext <<_ACEOF |
| 4418 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4419 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4420 | /* Override any GCC internal prototype to avoid an error. |
| 4421 | Use char because int might match the return type of a GCC |
| 4422 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4423 | #ifdef __cplusplus |
| 4424 | extern "C" |
| 4425 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4426 | char dnet_ntoa (); |
| 4427 | int |
| 4428 | main () |
| 4429 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4430 | return dnet_ntoa (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4431 | ; |
| 4432 | return 0; |
| 4433 | } |
| 4434 | _ACEOF |
| 4435 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4436 | if { (ac_try="$ac_link" |
| 4437 | case "(($ac_try" in |
| 4438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4439 | *) ac_try_echo=$ac_try;; |
| 4440 | esac |
| 4441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4442 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4443 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4445 | rm -f conftest.er1 |
| 4446 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4448 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4450 | { (case "(($ac_try" in |
| 4451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4452 | *) ac_try_echo=$ac_try;; |
| 4453 | esac |
| 4454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4455 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4456 | ac_status=$? |
| 4457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4458 | (exit $ac_status); }; } && |
| 4459 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4460 | { (case "(($ac_try" in |
| 4461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4462 | *) ac_try_echo=$ac_try;; |
| 4463 | esac |
| 4464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4465 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4466 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4468 | (exit $ac_status); }; }; then |
| 4469 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4470 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4471 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4473 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4474 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4475 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4476 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4477 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4478 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4479 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4480 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4481 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 4482 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4483 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4484 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4485 | fi |
| 4486 | |
| 4487 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4488 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4489 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4490 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4491 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4492 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4493 | |
| 4494 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 4495 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4496 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4497 | # needs -lnsl. |
| 4498 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4499 | # on Irix 5.2, according to T.E. Dickey. |
| 4500 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 4501 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4502 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 4503 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4504 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 4505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4506 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4507 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4508 | /* confdefs.h. */ |
| 4509 | _ACEOF |
| 4510 | cat confdefs.h >>conftest.$ac_ext |
| 4511 | cat >>conftest.$ac_ext <<_ACEOF |
| 4512 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4513 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 4514 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4515 | #define gethostbyname innocuous_gethostbyname |
| 4516 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4517 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4518 | which can conflict with char gethostbyname (); below. |
| 4519 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4520 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4521 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4522 | #ifdef __STDC__ |
| 4523 | # include <limits.h> |
| 4524 | #else |
| 4525 | # include <assert.h> |
| 4526 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4527 | |
| 4528 | #undef gethostbyname |
| 4529 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4530 | /* Override any GCC internal prototype to avoid an error. |
| 4531 | Use char because int might match the return type of a GCC |
| 4532 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4533 | #ifdef __cplusplus |
| 4534 | extern "C" |
| 4535 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4536 | char gethostbyname (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4537 | /* The GNU C library defines this for functions which it implements |
| 4538 | to always fail with ENOSYS. Some functions are actually named |
| 4539 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4540 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4541 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4542 | #endif |
| 4543 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4544 | int |
| 4545 | main () |
| 4546 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4547 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4548 | ; |
| 4549 | return 0; |
| 4550 | } |
| 4551 | _ACEOF |
| 4552 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4553 | if { (ac_try="$ac_link" |
| 4554 | case "(($ac_try" in |
| 4555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4556 | *) ac_try_echo=$ac_try;; |
| 4557 | esac |
| 4558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4559 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4560 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4562 | rm -f conftest.er1 |
| 4563 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4565 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4567 | { (case "(($ac_try" in |
| 4568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4569 | *) ac_try_echo=$ac_try;; |
| 4570 | esac |
| 4571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4572 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4573 | ac_status=$? |
| 4574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4575 | (exit $ac_status); }; } && |
| 4576 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4577 | { (case "(($ac_try" in |
| 4578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4579 | *) ac_try_echo=$ac_try;; |
| 4580 | esac |
| 4581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4582 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4583 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4585 | (exit $ac_status); }; }; then |
| 4586 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4587 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4588 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4590 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4591 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4592 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4593 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4594 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4595 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4596 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4597 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 4598 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4599 | |
| 4600 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4601 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 4602 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4603 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4605 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4606 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4607 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4608 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4609 | /* confdefs.h. */ |
| 4610 | _ACEOF |
| 4611 | cat confdefs.h >>conftest.$ac_ext |
| 4612 | cat >>conftest.$ac_ext <<_ACEOF |
| 4613 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4614 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4615 | /* Override any GCC internal prototype to avoid an error. |
| 4616 | Use char because int might match the return type of a GCC |
| 4617 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4618 | #ifdef __cplusplus |
| 4619 | extern "C" |
| 4620 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4621 | char gethostbyname (); |
| 4622 | int |
| 4623 | main () |
| 4624 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4625 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4626 | ; |
| 4627 | return 0; |
| 4628 | } |
| 4629 | _ACEOF |
| 4630 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4631 | if { (ac_try="$ac_link" |
| 4632 | case "(($ac_try" in |
| 4633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4634 | *) ac_try_echo=$ac_try;; |
| 4635 | esac |
| 4636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4637 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4638 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4640 | rm -f conftest.er1 |
| 4641 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4643 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4644 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4645 | { (case "(($ac_try" in |
| 4646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4647 | *) ac_try_echo=$ac_try;; |
| 4648 | esac |
| 4649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4650 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4651 | ac_status=$? |
| 4652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4653 | (exit $ac_status); }; } && |
| 4654 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4655 | { (case "(($ac_try" in |
| 4656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4657 | *) ac_try_echo=$ac_try;; |
| 4658 | esac |
| 4659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4660 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4661 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4663 | (exit $ac_status); }; }; then |
| 4664 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4665 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4666 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4668 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4669 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4670 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4671 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4672 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4673 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4674 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4675 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4676 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 4677 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4678 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4679 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4680 | fi |
| 4681 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4682 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4683 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 4684 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4685 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 4686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4687 | else |
| 4688 | ac_check_lib_save_LIBS=$LIBS |
| 4689 | LIBS="-lbsd $LIBS" |
| 4690 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4691 | /* confdefs.h. */ |
| 4692 | _ACEOF |
| 4693 | cat confdefs.h >>conftest.$ac_ext |
| 4694 | cat >>conftest.$ac_ext <<_ACEOF |
| 4695 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4696 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4697 | /* Override any GCC internal prototype to avoid an error. |
| 4698 | Use char because int might match the return type of a GCC |
| 4699 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4700 | #ifdef __cplusplus |
| 4701 | extern "C" |
| 4702 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4703 | char gethostbyname (); |
| 4704 | int |
| 4705 | main () |
| 4706 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4707 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4708 | ; |
| 4709 | return 0; |
| 4710 | } |
| 4711 | _ACEOF |
| 4712 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4713 | if { (ac_try="$ac_link" |
| 4714 | case "(($ac_try" in |
| 4715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4716 | *) ac_try_echo=$ac_try;; |
| 4717 | esac |
| 4718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4719 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4720 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4722 | rm -f conftest.er1 |
| 4723 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4725 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4727 | { (case "(($ac_try" in |
| 4728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4729 | *) ac_try_echo=$ac_try;; |
| 4730 | esac |
| 4731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4732 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4733 | ac_status=$? |
| 4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4735 | (exit $ac_status); }; } && |
| 4736 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4737 | { (case "(($ac_try" in |
| 4738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4739 | *) ac_try_echo=$ac_try;; |
| 4740 | esac |
| 4741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4742 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4743 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4745 | (exit $ac_status); }; }; then |
| 4746 | ac_cv_lib_bsd_gethostbyname=yes |
| 4747 | else |
| 4748 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4750 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4751 | ac_cv_lib_bsd_gethostbyname=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4752 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4753 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4754 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4755 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4756 | LIBS=$ac_check_lib_save_LIBS |
| 4757 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4758 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 4759 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4760 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 4761 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 4762 | fi |
| 4763 | |
| 4764 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4765 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4766 | |
| 4767 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4768 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 4769 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4770 | # on later versions), says Simon Leinen: it contains gethostby* |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 4771 | # variants that don't use the name server (or something). -lsocket |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4772 | # must be given before -lnsl if both are needed. We assume that |
| 4773 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4774 | { echo "$as_me:$LINENO: checking for connect" >&5 |
| 4775 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4776 | if test "${ac_cv_func_connect+set}" = set; then |
| 4777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4778 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4779 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4780 | /* confdefs.h. */ |
| 4781 | _ACEOF |
| 4782 | cat confdefs.h >>conftest.$ac_ext |
| 4783 | cat >>conftest.$ac_ext <<_ACEOF |
| 4784 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4785 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 4786 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4787 | #define connect innocuous_connect |
| 4788 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4789 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4790 | which can conflict with char connect (); below. |
| 4791 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4792 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4793 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4794 | #ifdef __STDC__ |
| 4795 | # include <limits.h> |
| 4796 | #else |
| 4797 | # include <assert.h> |
| 4798 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4799 | |
| 4800 | #undef connect |
| 4801 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4802 | /* Override any GCC internal prototype to avoid an error. |
| 4803 | Use char because int might match the return type of a GCC |
| 4804 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4805 | #ifdef __cplusplus |
| 4806 | extern "C" |
| 4807 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4808 | char connect (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4809 | /* The GNU C library defines this for functions which it implements |
| 4810 | to always fail with ENOSYS. Some functions are actually named |
| 4811 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4812 | #if defined __stub_connect || defined __stub___connect |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4813 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4814 | #endif |
| 4815 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4816 | int |
| 4817 | main () |
| 4818 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4819 | return connect (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4820 | ; |
| 4821 | return 0; |
| 4822 | } |
| 4823 | _ACEOF |
| 4824 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4825 | if { (ac_try="$ac_link" |
| 4826 | case "(($ac_try" in |
| 4827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4828 | *) ac_try_echo=$ac_try;; |
| 4829 | esac |
| 4830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4831 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4832 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4834 | rm -f conftest.er1 |
| 4835 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4837 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4838 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4839 | { (case "(($ac_try" in |
| 4840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4841 | *) ac_try_echo=$ac_try;; |
| 4842 | esac |
| 4843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4844 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4845 | ac_status=$? |
| 4846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4847 | (exit $ac_status); }; } && |
| 4848 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4849 | { (case "(($ac_try" in |
| 4850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4851 | *) ac_try_echo=$ac_try;; |
| 4852 | esac |
| 4853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4854 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4855 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4857 | (exit $ac_status); }; }; then |
| 4858 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4859 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4860 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4862 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4863 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4864 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4865 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4866 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4867 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4868 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4869 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 4870 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4871 | |
| 4872 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4873 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 4874 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4875 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 4876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4877 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4878 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4879 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4880 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4881 | /* confdefs.h. */ |
| 4882 | _ACEOF |
| 4883 | cat confdefs.h >>conftest.$ac_ext |
| 4884 | cat >>conftest.$ac_ext <<_ACEOF |
| 4885 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4886 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4887 | /* Override any GCC internal prototype to avoid an error. |
| 4888 | Use char because int might match the return type of a GCC |
| 4889 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4890 | #ifdef __cplusplus |
| 4891 | extern "C" |
| 4892 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4893 | char connect (); |
| 4894 | int |
| 4895 | main () |
| 4896 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4897 | return connect (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4898 | ; |
| 4899 | return 0; |
| 4900 | } |
| 4901 | _ACEOF |
| 4902 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4903 | if { (ac_try="$ac_link" |
| 4904 | case "(($ac_try" in |
| 4905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4906 | *) ac_try_echo=$ac_try;; |
| 4907 | esac |
| 4908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4909 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4910 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4912 | rm -f conftest.er1 |
| 4913 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4915 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4916 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4917 | { (case "(($ac_try" in |
| 4918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4919 | *) ac_try_echo=$ac_try;; |
| 4920 | esac |
| 4921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4922 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4923 | ac_status=$? |
| 4924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4925 | (exit $ac_status); }; } && |
| 4926 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4927 | { (case "(($ac_try" in |
| 4928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4929 | *) ac_try_echo=$ac_try;; |
| 4930 | esac |
| 4931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4932 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4933 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4935 | (exit $ac_status); }; }; then |
| 4936 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4937 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4938 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4940 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4941 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4942 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4943 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4944 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4945 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4946 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4947 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4948 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 4949 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4950 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4951 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4952 | fi |
| 4953 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4954 | fi |
| 4955 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4956 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4957 | { echo "$as_me:$LINENO: checking for remove" >&5 |
| 4958 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4959 | if test "${ac_cv_func_remove+set}" = set; then |
| 4960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4961 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4962 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4963 | /* confdefs.h. */ |
| 4964 | _ACEOF |
| 4965 | cat confdefs.h >>conftest.$ac_ext |
| 4966 | cat >>conftest.$ac_ext <<_ACEOF |
| 4967 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4968 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 4969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4970 | #define remove innocuous_remove |
| 4971 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4972 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4973 | which can conflict with char remove (); below. |
| 4974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4975 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4976 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4977 | #ifdef __STDC__ |
| 4978 | # include <limits.h> |
| 4979 | #else |
| 4980 | # include <assert.h> |
| 4981 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4982 | |
| 4983 | #undef remove |
| 4984 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4985 | /* Override any GCC internal prototype to avoid an error. |
| 4986 | Use char because int might match the return type of a GCC |
| 4987 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4988 | #ifdef __cplusplus |
| 4989 | extern "C" |
| 4990 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4991 | char remove (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4992 | /* The GNU C library defines this for functions which it implements |
| 4993 | to always fail with ENOSYS. Some functions are actually named |
| 4994 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4995 | #if defined __stub_remove || defined __stub___remove |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4996 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4997 | #endif |
| 4998 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4999 | int |
| 5000 | main () |
| 5001 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5002 | return remove (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5003 | ; |
| 5004 | return 0; |
| 5005 | } |
| 5006 | _ACEOF |
| 5007 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5008 | if { (ac_try="$ac_link" |
| 5009 | case "(($ac_try" in |
| 5010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5011 | *) ac_try_echo=$ac_try;; |
| 5012 | esac |
| 5013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5014 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5015 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5017 | rm -f conftest.er1 |
| 5018 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5020 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5022 | { (case "(($ac_try" in |
| 5023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5024 | *) ac_try_echo=$ac_try;; |
| 5025 | esac |
| 5026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5027 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5028 | ac_status=$? |
| 5029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5030 | (exit $ac_status); }; } && |
| 5031 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5032 | { (case "(($ac_try" in |
| 5033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5034 | *) ac_try_echo=$ac_try;; |
| 5035 | esac |
| 5036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5037 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5038 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5040 | (exit $ac_status); }; }; then |
| 5041 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5042 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5043 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5045 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5046 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5047 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5048 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5049 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5050 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5051 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5052 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 5053 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5054 | |
| 5055 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5056 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 5057 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5058 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 5059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5060 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5061 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5062 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5063 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5064 | /* confdefs.h. */ |
| 5065 | _ACEOF |
| 5066 | cat confdefs.h >>conftest.$ac_ext |
| 5067 | cat >>conftest.$ac_ext <<_ACEOF |
| 5068 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5069 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5070 | /* Override any GCC internal prototype to avoid an error. |
| 5071 | Use char because int might match the return type of a GCC |
| 5072 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5073 | #ifdef __cplusplus |
| 5074 | extern "C" |
| 5075 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5076 | char remove (); |
| 5077 | int |
| 5078 | main () |
| 5079 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5080 | return remove (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5081 | ; |
| 5082 | return 0; |
| 5083 | } |
| 5084 | _ACEOF |
| 5085 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5086 | if { (ac_try="$ac_link" |
| 5087 | case "(($ac_try" in |
| 5088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5089 | *) ac_try_echo=$ac_try;; |
| 5090 | esac |
| 5091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5092 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5093 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5095 | rm -f conftest.er1 |
| 5096 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5098 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5100 | { (case "(($ac_try" in |
| 5101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5102 | *) ac_try_echo=$ac_try;; |
| 5103 | esac |
| 5104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5105 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5106 | ac_status=$? |
| 5107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5108 | (exit $ac_status); }; } && |
| 5109 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5110 | { (case "(($ac_try" in |
| 5111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5112 | *) ac_try_echo=$ac_try;; |
| 5113 | esac |
| 5114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5115 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5116 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5118 | (exit $ac_status); }; }; then |
| 5119 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5120 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5121 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5123 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5124 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5125 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5126 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5127 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5128 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5129 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5130 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5131 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 5132 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5133 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5134 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5135 | fi |
| 5136 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5137 | fi |
| 5138 | |
| 5139 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5140 | { echo "$as_me:$LINENO: checking for shmat" >&5 |
| 5141 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5142 | if test "${ac_cv_func_shmat+set}" = set; then |
| 5143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5144 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5145 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5146 | /* confdefs.h. */ |
| 5147 | _ACEOF |
| 5148 | cat confdefs.h >>conftest.$ac_ext |
| 5149 | cat >>conftest.$ac_ext <<_ACEOF |
| 5150 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5151 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 5152 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5153 | #define shmat innocuous_shmat |
| 5154 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5155 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5156 | which can conflict with char shmat (); below. |
| 5157 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5158 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5159 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5160 | #ifdef __STDC__ |
| 5161 | # include <limits.h> |
| 5162 | #else |
| 5163 | # include <assert.h> |
| 5164 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5165 | |
| 5166 | #undef shmat |
| 5167 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5168 | /* Override any GCC internal prototype to avoid an error. |
| 5169 | Use char because int might match the return type of a GCC |
| 5170 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5171 | #ifdef __cplusplus |
| 5172 | extern "C" |
| 5173 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5174 | char shmat (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5175 | /* The GNU C library defines this for functions which it implements |
| 5176 | to always fail with ENOSYS. Some functions are actually named |
| 5177 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5178 | #if defined __stub_shmat || defined __stub___shmat |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5179 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5180 | #endif |
| 5181 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5182 | int |
| 5183 | main () |
| 5184 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5185 | return shmat (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5186 | ; |
| 5187 | return 0; |
| 5188 | } |
| 5189 | _ACEOF |
| 5190 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5191 | if { (ac_try="$ac_link" |
| 5192 | case "(($ac_try" in |
| 5193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5194 | *) ac_try_echo=$ac_try;; |
| 5195 | esac |
| 5196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5197 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5198 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5200 | rm -f conftest.er1 |
| 5201 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5203 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5205 | { (case "(($ac_try" in |
| 5206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5207 | *) ac_try_echo=$ac_try;; |
| 5208 | esac |
| 5209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5210 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5211 | ac_status=$? |
| 5212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5213 | (exit $ac_status); }; } && |
| 5214 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5215 | { (case "(($ac_try" in |
| 5216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5217 | *) ac_try_echo=$ac_try;; |
| 5218 | esac |
| 5219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5220 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5221 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5223 | (exit $ac_status); }; }; then |
| 5224 | ac_cv_func_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5225 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5226 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5228 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5229 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5230 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5231 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5232 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5233 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5234 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5235 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 5236 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5237 | |
| 5238 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5239 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 5240 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5241 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 5242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5243 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5244 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5245 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5246 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5247 | /* confdefs.h. */ |
| 5248 | _ACEOF |
| 5249 | cat confdefs.h >>conftest.$ac_ext |
| 5250 | cat >>conftest.$ac_ext <<_ACEOF |
| 5251 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5252 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5253 | /* Override any GCC internal prototype to avoid an error. |
| 5254 | Use char because int might match the return type of a GCC |
| 5255 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5256 | #ifdef __cplusplus |
| 5257 | extern "C" |
| 5258 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5259 | char shmat (); |
| 5260 | int |
| 5261 | main () |
| 5262 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5263 | return shmat (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5264 | ; |
| 5265 | return 0; |
| 5266 | } |
| 5267 | _ACEOF |
| 5268 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5269 | if { (ac_try="$ac_link" |
| 5270 | case "(($ac_try" in |
| 5271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5272 | *) ac_try_echo=$ac_try;; |
| 5273 | esac |
| 5274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5275 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5276 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5278 | rm -f conftest.er1 |
| 5279 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5281 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5283 | { (case "(($ac_try" in |
| 5284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5285 | *) ac_try_echo=$ac_try;; |
| 5286 | esac |
| 5287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5288 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5289 | ac_status=$? |
| 5290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5291 | (exit $ac_status); }; } && |
| 5292 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5293 | { (case "(($ac_try" in |
| 5294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5295 | *) ac_try_echo=$ac_try;; |
| 5296 | esac |
| 5297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5298 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5299 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5301 | (exit $ac_status); }; }; then |
| 5302 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5303 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5304 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5306 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5307 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5308 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5309 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5310 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5311 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5312 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5313 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5314 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 5315 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5316 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5317 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5318 | fi |
| 5319 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5320 | fi |
| 5321 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5322 | |
| 5323 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5324 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5325 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 5326 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 5327 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 5328 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 5329 | # These have to be linked with before -lX11, unlike the other |
| 5330 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5331 | # John Interrante, Karl Berry |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5332 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 5333 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5334 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 5335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5336 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5337 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 5338 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5339 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5340 | /* confdefs.h. */ |
| 5341 | _ACEOF |
| 5342 | cat confdefs.h >>conftest.$ac_ext |
| 5343 | cat >>conftest.$ac_ext <<_ACEOF |
| 5344 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5345 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5346 | /* Override any GCC internal prototype to avoid an error. |
| 5347 | Use char because int might match the return type of a GCC |
| 5348 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5349 | #ifdef __cplusplus |
| 5350 | extern "C" |
| 5351 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5352 | char IceConnectionNumber (); |
| 5353 | int |
| 5354 | main () |
| 5355 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5356 | return IceConnectionNumber (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5357 | ; |
| 5358 | return 0; |
| 5359 | } |
| 5360 | _ACEOF |
| 5361 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5362 | if { (ac_try="$ac_link" |
| 5363 | case "(($ac_try" in |
| 5364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5365 | *) ac_try_echo=$ac_try;; |
| 5366 | esac |
| 5367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5368 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5369 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5371 | rm -f conftest.er1 |
| 5372 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5374 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5376 | { (case "(($ac_try" in |
| 5377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5378 | *) ac_try_echo=$ac_try;; |
| 5379 | esac |
| 5380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5381 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5382 | ac_status=$? |
| 5383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5384 | (exit $ac_status); }; } && |
| 5385 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5386 | { (case "(($ac_try" in |
| 5387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5388 | *) ac_try_echo=$ac_try;; |
| 5389 | esac |
| 5390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5391 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5392 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5394 | (exit $ac_status); }; }; then |
| 5395 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5396 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5397 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5399 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5400 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5401 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5402 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5403 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5404 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5405 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5406 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5407 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 5408 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5409 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5410 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5411 | fi |
| 5412 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5413 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5414 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5415 | fi |
| 5416 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5417 | for ac_prog in flex lex |
| 5418 | do |
| 5419 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5420 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5421 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5423 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 5424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5425 | else |
| 5426 | if test -n "$LEX"; then |
| 5427 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 5428 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5430 | for as_dir in $PATH |
| 5431 | do |
| 5432 | IFS=$as_save_IFS |
| 5433 | test -z "$as_dir" && as_dir=. |
| 5434 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5435 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5436 | ac_cv_prog_LEX="$ac_prog" |
| 5437 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5438 | break 2 |
| 5439 | fi |
| 5440 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5441 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5442 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5443 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5444 | fi |
| 5445 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5446 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5447 | if test -n "$LEX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5448 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 5449 | echo "${ECHO_T}$LEX" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5450 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5451 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5452 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5453 | fi |
| 5454 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5455 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5456 | test -n "$LEX" && break |
| 5457 | done |
| 5458 | test -n "$LEX" || LEX=":" |
| 5459 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5460 | if test -z "$LEXLIB" |
| 5461 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5462 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 5463 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5464 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 5465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5466 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5467 | ac_check_lib_save_LIBS=$LIBS |
| 5468 | LIBS="-lfl $LIBS" |
| 5469 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5470 | /* confdefs.h. */ |
| 5471 | _ACEOF |
| 5472 | cat confdefs.h >>conftest.$ac_ext |
| 5473 | cat >>conftest.$ac_ext <<_ACEOF |
| 5474 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5475 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5476 | /* Override any GCC internal prototype to avoid an error. |
| 5477 | Use char because int might match the return type of a GCC |
| 5478 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5479 | #ifdef __cplusplus |
| 5480 | extern "C" |
| 5481 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5482 | char yywrap (); |
| 5483 | int |
| 5484 | main () |
| 5485 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5486 | return yywrap (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5487 | ; |
| 5488 | return 0; |
| 5489 | } |
| 5490 | _ACEOF |
| 5491 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5492 | if { (ac_try="$ac_link" |
| 5493 | case "(($ac_try" in |
| 5494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5495 | *) ac_try_echo=$ac_try;; |
| 5496 | esac |
| 5497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5498 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5499 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5501 | rm -f conftest.er1 |
| 5502 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5504 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5505 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5506 | { (case "(($ac_try" in |
| 5507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5508 | *) ac_try_echo=$ac_try;; |
| 5509 | esac |
| 5510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5511 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5512 | ac_status=$? |
| 5513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5514 | (exit $ac_status); }; } && |
| 5515 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5516 | { (case "(($ac_try" in |
| 5517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5518 | *) ac_try_echo=$ac_try;; |
| 5519 | esac |
| 5520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5521 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5522 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5524 | (exit $ac_status); }; }; then |
| 5525 | ac_cv_lib_fl_yywrap=yes |
| 5526 | else |
| 5527 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5529 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5530 | ac_cv_lib_fl_yywrap=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5531 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5532 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5533 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5534 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5535 | LIBS=$ac_check_lib_save_LIBS |
| 5536 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5537 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 5538 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5539 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 5540 | LEXLIB="-lfl" |
| 5541 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5542 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 5543 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5544 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 5545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5546 | else |
| 5547 | ac_check_lib_save_LIBS=$LIBS |
| 5548 | LIBS="-ll $LIBS" |
| 5549 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5550 | /* confdefs.h. */ |
| 5551 | _ACEOF |
| 5552 | cat confdefs.h >>conftest.$ac_ext |
| 5553 | cat >>conftest.$ac_ext <<_ACEOF |
| 5554 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5555 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5556 | /* Override any GCC internal prototype to avoid an error. |
| 5557 | Use char because int might match the return type of a GCC |
| 5558 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5559 | #ifdef __cplusplus |
| 5560 | extern "C" |
| 5561 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5562 | char yywrap (); |
| 5563 | int |
| 5564 | main () |
| 5565 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5566 | return yywrap (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5567 | ; |
| 5568 | return 0; |
| 5569 | } |
| 5570 | _ACEOF |
| 5571 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5572 | if { (ac_try="$ac_link" |
| 5573 | case "(($ac_try" in |
| 5574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5575 | *) ac_try_echo=$ac_try;; |
| 5576 | esac |
| 5577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5578 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5579 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5581 | rm -f conftest.er1 |
| 5582 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5584 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5586 | { (case "(($ac_try" in |
| 5587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5588 | *) ac_try_echo=$ac_try;; |
| 5589 | esac |
| 5590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5591 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5592 | ac_status=$? |
| 5593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5594 | (exit $ac_status); }; } && |
| 5595 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5596 | { (case "(($ac_try" in |
| 5597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5598 | *) ac_try_echo=$ac_try;; |
| 5599 | esac |
| 5600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5601 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5602 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5604 | (exit $ac_status); }; }; then |
| 5605 | ac_cv_lib_l_yywrap=yes |
| 5606 | else |
| 5607 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5609 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5610 | ac_cv_lib_l_yywrap=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5611 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5612 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5613 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5614 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5615 | LIBS=$ac_check_lib_save_LIBS |
| 5616 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5617 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 5618 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5619 | if test $ac_cv_lib_l_yywrap = yes; then |
| 5620 | LEXLIB="-ll" |
| 5621 | fi |
| 5622 | |
| 5623 | fi |
| 5624 | |
| 5625 | fi |
| 5626 | |
| 5627 | if test "x$LEX" != "x:"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5628 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 5629 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5630 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 5631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5632 | else |
| 5633 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 5634 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5635 | cat >conftest.l <<_ACEOF |
| 5636 | %% |
| 5637 | %% |
| 5638 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5639 | { (ac_try="$LEX conftest.l" |
| 5640 | case "(($ac_try" in |
| 5641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5642 | *) ac_try_echo=$ac_try;; |
| 5643 | esac |
| 5644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5645 | (eval "$LEX conftest.l") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5646 | ac_status=$? |
| 5647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5648 | (exit $ac_status); } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5649 | if test -f lex.yy.c; then |
| 5650 | ac_cv_prog_lex_root=lex.yy |
| 5651 | elif test -f lexyy.c; then |
| 5652 | ac_cv_prog_lex_root=lexyy |
| 5653 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5654 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5655 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 5656 | { (exit 1); exit 1; }; } |
| 5657 | fi |
| 5658 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5659 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 5660 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5661 | rm -f conftest.l |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5662 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 5663 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5664 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 5665 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5666 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 5667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5668 | else |
| 5669 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 5670 | # default is implementation-dependent. Figure out which it is, since |
| 5671 | # not all implementations provide the %pointer and %array declarations. |
| 5672 | ac_cv_prog_lex_yytext_pointer=no |
| 5673 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 5674 | ac_save_LIBS=$LIBS |
| 5675 | LIBS="$LIBS $LEXLIB" |
| 5676 | cat >conftest.$ac_ext <<_ACEOF |
| 5677 | `cat $LEX_OUTPUT_ROOT.c` |
| 5678 | _ACEOF |
| 5679 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5680 | if { (ac_try="$ac_link" |
| 5681 | case "(($ac_try" in |
| 5682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5683 | *) ac_try_echo=$ac_try;; |
| 5684 | esac |
| 5685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5686 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5687 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5689 | rm -f conftest.er1 |
| 5690 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5692 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5693 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5694 | { (case "(($ac_try" in |
| 5695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5696 | *) ac_try_echo=$ac_try;; |
| 5697 | esac |
| 5698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5699 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5700 | ac_status=$? |
| 5701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5702 | (exit $ac_status); }; } && |
| 5703 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5704 | { (case "(($ac_try" in |
| 5705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5706 | *) ac_try_echo=$ac_try;; |
| 5707 | esac |
| 5708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5709 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5710 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5712 | (exit $ac_status); }; }; then |
| 5713 | ac_cv_prog_lex_yytext_pointer=yes |
| 5714 | else |
| 5715 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5717 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5718 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5719 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5720 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5721 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5722 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5723 | LIBS=$ac_save_LIBS |
| 5724 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 5725 | |
| 5726 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5727 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 5728 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5729 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 5730 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5731 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5732 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5733 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5734 | |
| 5735 | fi |
| 5736 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5737 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 5738 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5739 | for ac_prog in $LEX flex lex |
| 5740 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5741 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5742 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5743 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5745 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 5746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5747 | else |
| 5748 | if test -n "$XLEX"; then |
| 5749 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 5750 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5752 | for as_dir in $PATH |
| 5753 | do |
| 5754 | IFS=$as_save_IFS |
| 5755 | test -z "$as_dir" && as_dir=. |
| 5756 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5758 | ac_cv_prog_XLEX="$ac_prog" |
| 5759 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5760 | break 2 |
| 5761 | fi |
| 5762 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5763 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5764 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5765 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5766 | fi |
| 5767 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5768 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5769 | if test -n "$XLEX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5770 | { echo "$as_me:$LINENO: result: $XLEX" >&5 |
| 5771 | echo "${ECHO_T}$XLEX" >&6; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5772 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5773 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5774 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5775 | fi |
| 5776 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5777 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5778 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5779 | done |
| 5780 | test -n "$XLEX" || XLEX="none" |
| 5781 | |
| 5782 | if test "$XLEX" = "none" |
| 5783 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5784 | { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5785 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 5786 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5787 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5788 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5789 | for ac_prog in bison |
| 5790 | do |
| 5791 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5792 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5793 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5794 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5795 | if test "${ac_cv_prog_BISON+set}" = set; then |
| 5796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5797 | else |
| 5798 | if test -n "$BISON"; then |
| 5799 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
| 5800 | else |
| 5801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5802 | for as_dir in $PATH |
| 5803 | do |
| 5804 | IFS=$as_save_IFS |
| 5805 | test -z "$as_dir" && as_dir=. |
| 5806 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5807 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5808 | ac_cv_prog_BISON="$ac_prog" |
| 5809 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5810 | break 2 |
| 5811 | fi |
| 5812 | done |
| 5813 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5814 | IFS=$as_save_IFS |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5815 | |
| 5816 | fi |
| 5817 | fi |
| 5818 | BISON=$ac_cv_prog_BISON |
| 5819 | if test -n "$BISON"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5820 | { echo "$as_me:$LINENO: result: $BISON" >&5 |
| 5821 | echo "${ECHO_T}$BISON" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5822 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5823 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5824 | echo "${ECHO_T}no" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5825 | fi |
| 5826 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5827 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5828 | test -n "$BISON" && break |
| 5829 | done |
| 5830 | test -n "$BISON" || BISON="none" |
| 5831 | |
| 5832 | if test "$BISON" = "none" |
| 5833 | then |
| 5834 | { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5 |
| 5835 | echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;} |
| 5836 | { (exit 1); exit 1; }; } |
| 5837 | fi |
| 5838 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5839 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5840 | for ac_prog in gas as |
| 5841 | do |
| 5842 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5843 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5844 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5846 | if test "${ac_cv_prog_AS+set}" = set; then |
| 5847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5848 | else |
| 5849 | if test -n "$AS"; then |
| 5850 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 5851 | else |
| 5852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5853 | for as_dir in $PATH |
| 5854 | do |
| 5855 | IFS=$as_save_IFS |
| 5856 | test -z "$as_dir" && as_dir=. |
| 5857 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5859 | ac_cv_prog_AS="$ac_tool_prefix$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5861 | break 2 |
| 5862 | fi |
| 5863 | done |
| 5864 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5865 | IFS=$as_save_IFS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5866 | |
| 5867 | fi |
| 5868 | fi |
| 5869 | AS=$ac_cv_prog_AS |
| 5870 | if test -n "$AS"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5871 | { echo "$as_me:$LINENO: result: $AS" >&5 |
| 5872 | echo "${ECHO_T}$AS" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5873 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5874 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5875 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5876 | fi |
| 5877 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5878 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5879 | test -n "$AS" && break |
| 5880 | done |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5881 | fi |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5882 | if test -z "$AS"; then |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5883 | ac_ct_AS=$AS |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5884 | for ac_prog in gas as |
| 5885 | do |
| 5886 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5887 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5888 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5889 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5890 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| 5891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5892 | else |
| 5893 | if test -n "$ac_ct_AS"; then |
| 5894 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 5895 | else |
| 5896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5897 | for as_dir in $PATH |
| 5898 | do |
| 5899 | IFS=$as_save_IFS |
| 5900 | test -z "$as_dir" && as_dir=. |
| 5901 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5903 | ac_cv_prog_ac_ct_AS="$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5904 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5905 | break 2 |
| 5906 | fi |
| 5907 | done |
| 5908 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5909 | IFS=$as_save_IFS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5910 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5911 | fi |
| 5912 | fi |
| 5913 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 5914 | if test -n "$ac_ct_AS"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5915 | { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
| 5916 | echo "${ECHO_T}$ac_ct_AS" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5917 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5918 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5919 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5920 | fi |
| 5921 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5922 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5923 | test -n "$ac_ct_AS" && break |
| 5924 | done |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5925 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5926 | if test "x$ac_ct_AS" = x; then |
| 5927 | AS="as" |
| 5928 | else |
| 5929 | case $cross_compiling:$ac_tool_warned in |
| 5930 | yes:) |
| 5931 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5932 | whose name does not start with the host triplet. If you think this |
| 5933 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5934 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5935 | whose name does not start with the host triplet. If you think this |
| 5936 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5937 | ac_tool_warned=yes ;; |
| 5938 | esac |
| 5939 | AS=$ac_ct_AS |
| 5940 | fi |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5941 | fi |
| 5942 | |
| 5943 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5944 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 5945 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5946 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5947 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5948 | if test "${ac_cv_prog_LD+set}" = set; then |
| 5949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5950 | else |
| 5951 | if test -n "$LD"; then |
| 5952 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 5953 | else |
| 5954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5955 | for as_dir in $PATH |
| 5956 | do |
| 5957 | IFS=$as_save_IFS |
| 5958 | test -z "$as_dir" && as_dir=. |
| 5959 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5960 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5961 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
| 5962 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5963 | break 2 |
| 5964 | fi |
| 5965 | done |
| 5966 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5967 | IFS=$as_save_IFS |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5968 | |
| 5969 | fi |
| 5970 | fi |
| 5971 | LD=$ac_cv_prog_LD |
| 5972 | if test -n "$LD"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5973 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 5974 | echo "${ECHO_T}$LD" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5975 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5976 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5977 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5978 | fi |
| 5979 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5980 | |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5981 | fi |
| 5982 | if test -z "$ac_cv_prog_LD"; then |
| 5983 | ac_ct_LD=$LD |
| 5984 | # Extract the first word of "ld", so it can be a program name with args. |
| 5985 | set dummy ld; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5986 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5988 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
| 5989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5990 | else |
| 5991 | if test -n "$ac_ct_LD"; then |
| 5992 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 5993 | else |
| 5994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5995 | for as_dir in $PATH |
| 5996 | do |
| 5997 | IFS=$as_save_IFS |
| 5998 | test -z "$as_dir" && as_dir=. |
| 5999 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6001 | ac_cv_prog_ac_ct_LD="ld" |
| 6002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6003 | break 2 |
| 6004 | fi |
| 6005 | done |
| 6006 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6007 | IFS=$as_save_IFS |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6008 | |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6009 | fi |
| 6010 | fi |
| 6011 | ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 6012 | if test -n "$ac_ct_LD"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6013 | { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
| 6014 | echo "${ECHO_T}$ac_ct_LD" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6015 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6016 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6017 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6018 | fi |
| 6019 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6020 | if test "x$ac_ct_LD" = x; then |
| 6021 | LD="ld" |
| 6022 | else |
| 6023 | case $cross_compiling:$ac_tool_warned in |
| 6024 | yes:) |
| 6025 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6026 | whose name does not start with the host triplet. If you think this |
| 6027 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6028 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6029 | whose name does not start with the host triplet. If you think this |
| 6030 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6031 | ac_tool_warned=yes ;; |
| 6032 | esac |
| 6033 | LD=$ac_ct_LD |
| 6034 | fi |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6035 | else |
| 6036 | LD="$ac_cv_prog_LD" |
| 6037 | fi |
| 6038 | |
| 6039 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6040 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6041 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6042 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6043 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6044 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6046 | else |
| 6047 | if test -n "$AR"; then |
| 6048 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6049 | else |
| 6050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6051 | for as_dir in $PATH |
| 6052 | do |
| 6053 | IFS=$as_save_IFS |
| 6054 | test -z "$as_dir" && as_dir=. |
| 6055 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6056 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6057 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6058 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6059 | break 2 |
| 6060 | fi |
| 6061 | done |
| 6062 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6063 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6064 | |
| 6065 | fi |
| 6066 | fi |
| 6067 | AR=$ac_cv_prog_AR |
| 6068 | if test -n "$AR"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6069 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6070 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6071 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6072 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6073 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6074 | fi |
| 6075 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6076 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6077 | fi |
| 6078 | if test -z "$ac_cv_prog_AR"; then |
| 6079 | ac_ct_AR=$AR |
| 6080 | # Extract the first word of "ar", so it can be a program name with args. |
| 6081 | set dummy ar; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6082 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6084 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6086 | else |
| 6087 | if test -n "$ac_ct_AR"; then |
| 6088 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6089 | else |
| 6090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6091 | for as_dir in $PATH |
| 6092 | do |
| 6093 | IFS=$as_save_IFS |
| 6094 | test -z "$as_dir" && as_dir=. |
| 6095 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6096 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6097 | ac_cv_prog_ac_ct_AR="ar" |
| 6098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6099 | break 2 |
| 6100 | fi |
| 6101 | done |
| 6102 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6103 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6104 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6105 | fi |
| 6106 | fi |
| 6107 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6108 | if test -n "$ac_ct_AR"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6109 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6110 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6111 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6112 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6113 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6114 | fi |
| 6115 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6116 | if test "x$ac_ct_AR" = x; then |
| 6117 | AR="ar" |
| 6118 | else |
| 6119 | case $cross_compiling:$ac_tool_warned in |
| 6120 | yes:) |
| 6121 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6122 | whose name does not start with the host triplet. If you think this |
| 6123 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6124 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6125 | whose name does not start with the host triplet. If you think this |
| 6126 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6127 | ac_tool_warned=yes ;; |
| 6128 | esac |
| 6129 | AR=$ac_ct_AR |
| 6130 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6131 | else |
| 6132 | AR="$ac_cv_prog_AR" |
| 6133 | fi |
| 6134 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6135 | if test -n "$ac_tool_prefix"; then |
| 6136 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6137 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6138 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6139 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6140 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 6142 | else |
| 6143 | if test -n "$RANLIB"; then |
| 6144 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6145 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6147 | for as_dir in $PATH |
| 6148 | do |
| 6149 | IFS=$as_save_IFS |
| 6150 | test -z "$as_dir" && as_dir=. |
| 6151 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6152 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6153 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6155 | break 2 |
| 6156 | fi |
| 6157 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6158 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6159 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6160 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6161 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6162 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6163 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 6164 | if test -n "$RANLIB"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6165 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6166 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 6167 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6168 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6169 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6170 | fi |
| 6171 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6172 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6173 | fi |
| 6174 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6175 | ac_ct_RANLIB=$RANLIB |
| 6176 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6177 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6178 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6179 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6180 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6182 | else |
| 6183 | if test -n "$ac_ct_RANLIB"; then |
| 6184 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6185 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6187 | for as_dir in $PATH |
| 6188 | do |
| 6189 | IFS=$as_save_IFS |
| 6190 | test -z "$as_dir" && as_dir=. |
| 6191 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6192 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6193 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6194 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6195 | break 2 |
| 6196 | fi |
| 6197 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6198 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6199 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6200 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6201 | fi |
| 6202 | fi |
| 6203 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6204 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6205 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6206 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6207 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6208 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6209 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6210 | fi |
| 6211 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6212 | if test "x$ac_ct_RANLIB" = x; then |
| 6213 | RANLIB=":" |
| 6214 | else |
| 6215 | case $cross_compiling:$ac_tool_warned in |
| 6216 | yes:) |
| 6217 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6218 | whose name does not start with the host triplet. If you think this |
| 6219 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6220 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6221 | whose name does not start with the host triplet. If you think this |
| 6222 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6223 | ac_tool_warned=yes ;; |
| 6224 | esac |
| 6225 | RANLIB=$ac_ct_RANLIB |
| 6226 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6227 | else |
| 6228 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 6229 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6230 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6231 | if test -n "$ac_tool_prefix"; then |
| 6232 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6233 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6234 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6236 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 6237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6238 | else |
| 6239 | if test -n "$STRIP"; then |
| 6240 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6241 | else |
| 6242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6243 | for as_dir in $PATH |
| 6244 | do |
| 6245 | IFS=$as_save_IFS |
| 6246 | test -z "$as_dir" && as_dir=. |
| 6247 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6248 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6249 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6251 | break 2 |
| 6252 | fi |
| 6253 | done |
| 6254 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6255 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6256 | |
| 6257 | fi |
| 6258 | fi |
| 6259 | STRIP=$ac_cv_prog_STRIP |
| 6260 | if test -n "$STRIP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6261 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 6262 | echo "${ECHO_T}$STRIP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6263 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6264 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6265 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6266 | fi |
| 6267 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6268 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6269 | fi |
| 6270 | if test -z "$ac_cv_prog_STRIP"; then |
| 6271 | ac_ct_STRIP=$STRIP |
| 6272 | # Extract the first word of "strip", so it can be a program name with args. |
| 6273 | set dummy strip; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6274 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6276 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 6277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6278 | else |
| 6279 | if test -n "$ac_ct_STRIP"; then |
| 6280 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6281 | else |
| 6282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6283 | for as_dir in $PATH |
| 6284 | do |
| 6285 | IFS=$as_save_IFS |
| 6286 | test -z "$as_dir" && as_dir=. |
| 6287 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6289 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6291 | break 2 |
| 6292 | fi |
| 6293 | done |
| 6294 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6295 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6296 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6297 | fi |
| 6298 | fi |
| 6299 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6300 | if test -n "$ac_ct_STRIP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6301 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 6302 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6303 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6304 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6305 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6306 | fi |
| 6307 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6308 | if test "x$ac_ct_STRIP" = x; then |
| 6309 | STRIP="strip" |
| 6310 | else |
| 6311 | case $cross_compiling:$ac_tool_warned in |
| 6312 | yes:) |
| 6313 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6314 | whose name does not start with the host triplet. If you think this |
| 6315 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6316 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6317 | whose name does not start with the host triplet. If you think this |
| 6318 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6319 | ac_tool_warned=yes ;; |
| 6320 | esac |
| 6321 | STRIP=$ac_ct_STRIP |
| 6322 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6323 | else |
| 6324 | STRIP="$ac_cv_prog_STRIP" |
| 6325 | fi |
| 6326 | |
| 6327 | if test -n "$ac_tool_prefix"; then |
| 6328 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 6329 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6330 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6331 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6332 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 6333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6334 | else |
| 6335 | if test -n "$WINDRES"; then |
| 6336 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 6337 | else |
| 6338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6339 | for as_dir in $PATH |
| 6340 | do |
| 6341 | IFS=$as_save_IFS |
| 6342 | test -z "$as_dir" && as_dir=. |
| 6343 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6344 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6345 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 6346 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6347 | break 2 |
| 6348 | fi |
| 6349 | done |
| 6350 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6351 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6352 | |
| 6353 | fi |
| 6354 | fi |
| 6355 | WINDRES=$ac_cv_prog_WINDRES |
| 6356 | if test -n "$WINDRES"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6357 | { echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 6358 | echo "${ECHO_T}$WINDRES" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6359 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6360 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6361 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6362 | fi |
| 6363 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6364 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6365 | fi |
| 6366 | if test -z "$ac_cv_prog_WINDRES"; then |
| 6367 | ac_ct_WINDRES=$WINDRES |
| 6368 | # Extract the first word of "windres", so it can be a program name with args. |
| 6369 | set dummy windres; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6370 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6371 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6372 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 6373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6374 | else |
| 6375 | if test -n "$ac_ct_WINDRES"; then |
| 6376 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 6377 | else |
| 6378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6379 | for as_dir in $PATH |
| 6380 | do |
| 6381 | IFS=$as_save_IFS |
| 6382 | test -z "$as_dir" && as_dir=. |
| 6383 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6384 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6385 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 6386 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6387 | break 2 |
| 6388 | fi |
| 6389 | done |
| 6390 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6391 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6392 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6393 | fi |
| 6394 | fi |
| 6395 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 6396 | if test -n "$ac_ct_WINDRES"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6397 | { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 6398 | echo "${ECHO_T}$ac_ct_WINDRES" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6399 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6400 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6401 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6402 | fi |
| 6403 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6404 | if test "x$ac_ct_WINDRES" = x; then |
| 6405 | WINDRES="false" |
| 6406 | else |
| 6407 | case $cross_compiling:$ac_tool_warned in |
| 6408 | yes:) |
| 6409 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6410 | whose name does not start with the host triplet. If you think this |
| 6411 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6412 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6413 | whose name does not start with the host triplet. If you think this |
| 6414 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6415 | ac_tool_warned=yes ;; |
| 6416 | esac |
| 6417 | WINDRES=$ac_ct_WINDRES |
| 6418 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6419 | else |
| 6420 | WINDRES="$ac_cv_prog_WINDRES" |
| 6421 | fi |
| 6422 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6423 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6424 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6425 | LN_S=$as_ln_s |
| 6426 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6427 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6428 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 6429 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6430 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6431 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 6432 | fi |
| 6433 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6434 | { echo "$as_me:$LINENO: checking whether ln works" >&5 |
| 6435 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; } |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 6436 | rm -f conf$$ conf$$.file |
| 6437 | echo >conf$$.file |
| 6438 | if ln conf$$.file conf$$ 2>/dev/null; then |
| 6439 | LN=ln |
| 6440 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6441 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6442 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 6443 | else |
| 6444 | LN="cp -p" |
| 6445 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6446 | { echo "$as_me:$LINENO: result: no, using $LN" >&5 |
| 6447 | echo "${ECHO_T}no, using $LN" >&6; } |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 6448 | fi |
| 6449 | rm -f conf$$ conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6450 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 6451 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 6452 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6454 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6455 | # Extract the first word of "grep ggrep" to use in msg output |
| 6456 | if test -z "$GREP"; then |
| 6457 | set dummy grep ggrep; ac_prog_name=$2 |
| 6458 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6460 | else |
| 6461 | ac_path_GREP_found=false |
| 6462 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6464 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6465 | do |
| 6466 | IFS=$as_save_IFS |
| 6467 | test -z "$as_dir" && as_dir=. |
| 6468 | for ac_prog in grep ggrep; do |
| 6469 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6470 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6471 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 6472 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6473 | # Check for GNU $ac_path_GREP |
| 6474 | case `"$ac_path_GREP" --version 2>&1` in |
| 6475 | *GNU*) |
| 6476 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6477 | *) |
| 6478 | ac_count=0 |
| 6479 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 6480 | while : |
| 6481 | do |
| 6482 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6483 | mv "conftest.tmp" "conftest.in" |
| 6484 | cp "conftest.in" "conftest.nl" |
| 6485 | echo 'GREP' >> "conftest.nl" |
| 6486 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6487 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6488 | ac_count=`expr $ac_count + 1` |
| 6489 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6490 | # Best one so far, save it but keep looking for a better one |
| 6491 | ac_cv_path_GREP="$ac_path_GREP" |
| 6492 | ac_path_GREP_max=$ac_count |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6493 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6494 | # 10*(2^10) chars as input seems more than enough |
| 6495 | test $ac_count -gt 10 && break |
| 6496 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6497 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6498 | esac |
| 6499 | |
| 6500 | |
| 6501 | $ac_path_GREP_found && break 3 |
| 6502 | done |
| 6503 | done |
| 6504 | |
| 6505 | done |
| 6506 | IFS=$as_save_IFS |
| 6507 | |
| 6508 | |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6509 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6510 | |
| 6511 | GREP="$ac_cv_path_GREP" |
| 6512 | if test -z "$GREP"; then |
| 6513 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 6514 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 6515 | { (exit 1); exit 1; }; } |
| 6516 | fi |
| 6517 | |
| 6518 | else |
| 6519 | ac_cv_path_GREP=$GREP |
| 6520 | fi |
| 6521 | |
| 6522 | |
| 6523 | fi |
| 6524 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 6525 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 6526 | GREP="$ac_cv_path_GREP" |
| 6527 | |
| 6528 | |
| 6529 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 6530 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 6531 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 6532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6533 | else |
| 6534 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6535 | then ac_cv_path_EGREP="$GREP -E" |
| 6536 | else |
| 6537 | # Extract the first word of "egrep" to use in msg output |
| 6538 | if test -z "$EGREP"; then |
| 6539 | set dummy egrep; ac_prog_name=$2 |
| 6540 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 6541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6542 | else |
| 6543 | ac_path_EGREP_found=false |
| 6544 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6546 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6547 | do |
| 6548 | IFS=$as_save_IFS |
| 6549 | test -z "$as_dir" && as_dir=. |
| 6550 | for ac_prog in egrep; do |
| 6551 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6552 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6553 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 6554 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6555 | # Check for GNU $ac_path_EGREP |
| 6556 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6557 | *GNU*) |
| 6558 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6559 | *) |
| 6560 | ac_count=0 |
| 6561 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 6562 | while : |
| 6563 | do |
| 6564 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6565 | mv "conftest.tmp" "conftest.in" |
| 6566 | cp "conftest.in" "conftest.nl" |
| 6567 | echo 'EGREP' >> "conftest.nl" |
| 6568 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6569 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6570 | ac_count=`expr $ac_count + 1` |
| 6571 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6572 | # Best one so far, save it but keep looking for a better one |
| 6573 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6574 | ac_path_EGREP_max=$ac_count |
| 6575 | fi |
| 6576 | # 10*(2^10) chars as input seems more than enough |
| 6577 | test $ac_count -gt 10 && break |
| 6578 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6579 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6580 | esac |
| 6581 | |
| 6582 | |
| 6583 | $ac_path_EGREP_found && break 3 |
| 6584 | done |
| 6585 | done |
| 6586 | |
| 6587 | done |
| 6588 | IFS=$as_save_IFS |
| 6589 | |
| 6590 | |
| 6591 | fi |
| 6592 | |
| 6593 | EGREP="$ac_cv_path_EGREP" |
| 6594 | if test -z "$EGREP"; then |
| 6595 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 6596 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 6597 | { (exit 1); exit 1; }; } |
| 6598 | fi |
| 6599 | |
| 6600 | else |
| 6601 | ac_cv_path_EGREP=$EGREP |
| 6602 | fi |
| 6603 | |
| 6604 | |
| 6605 | fi |
| 6606 | fi |
| 6607 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 6608 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 6609 | EGREP="$ac_cv_path_EGREP" |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6610 | |
| 6611 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6612 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 6613 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6614 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6615 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6616 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 6617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6618 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6619 | case $LDCONFIG in |
| 6620 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6621 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 6622 | ;; |
| 6623 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 6625 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6626 | do |
| 6627 | IFS=$as_save_IFS |
| 6628 | test -z "$as_dir" && as_dir=. |
| 6629 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6631 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 6632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6633 | break 2 |
| 6634 | fi |
| 6635 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6636 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6637 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6638 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 6639 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6640 | ;; |
| 6641 | esac |
| 6642 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6643 | LDCONFIG=$ac_cv_path_LDCONFIG |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6644 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6645 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 6646 | echo "${ECHO_T}$LDCONFIG" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6647 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6648 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6649 | echo "${ECHO_T}no" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6650 | fi |
| 6651 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6652 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6653 | # Find a good install program. We prefer a C program (faster), |
| 6654 | # so one script is as good as another. But avoid the broken or |
| 6655 | # incompatible versions: |
| 6656 | # SysV /etc/install, /usr/sbin/install |
| 6657 | # SunOS /usr/etc/install |
| 6658 | # IRIX /sbin/install |
| 6659 | # AIX /bin/install |
| 6660 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6661 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6662 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6663 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6664 | # OS/2's system install, which has a completely different semantic |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6665 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6666 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 6667 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6668 | if test -z "$INSTALL"; then |
| 6669 | if test "${ac_cv_path_install+set}" = set; then |
| 6670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6671 | else |
| 6672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6673 | for as_dir in $PATH |
| 6674 | do |
| 6675 | IFS=$as_save_IFS |
| 6676 | test -z "$as_dir" && as_dir=. |
| 6677 | # Account for people who put trailing slashes in PATH elements. |
| 6678 | case $as_dir/ in |
| 6679 | ./ | .// | /cC/* | \ |
| 6680 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6681 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6682 | /usr/ucb/* ) ;; |
| 6683 | *) |
| 6684 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6685 | # Don't use installbsd from OSF since it installs stuff as root |
| 6686 | # by default. |
| 6687 | for ac_prog in ginstall scoinst install; do |
| 6688 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6689 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6690 | if test $ac_prog = install && |
| 6691 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6692 | # AIX install. It has an incompatible calling convention. |
| 6693 | : |
| 6694 | elif test $ac_prog = install && |
| 6695 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6696 | # program-specific install script used by HP pwplus--don't use. |
| 6697 | : |
| 6698 | else |
| 6699 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6700 | break 3 |
| 6701 | fi |
| 6702 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6703 | done |
| 6704 | done |
| 6705 | ;; |
| 6706 | esac |
| 6707 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6708 | IFS=$as_save_IFS |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6709 | |
| 6710 | |
| 6711 | fi |
| 6712 | if test "${ac_cv_path_install+set}" = set; then |
| 6713 | INSTALL=$ac_cv_path_install |
| 6714 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6715 | # As a last resort, use the slow shell script. Don't cache a |
| 6716 | # value for INSTALL within a source directory, because that will |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6717 | # break other packages using the cache if that directory is |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6718 | # removed, or if the value is a relative name. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6719 | INSTALL=$ac_install_sh |
| 6720 | fi |
| 6721 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6722 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 6723 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6724 | |
| 6725 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6726 | # It thinks the first close brace ends the variable substitution. |
| 6727 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6728 | |
| 6729 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6730 | |
| 6731 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6732 | |
| 6733 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 6734 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6735 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 6736 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6737 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6738 | for ac_prog in lclint lint |
| 6739 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6740 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6741 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6742 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6744 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 6745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6746 | else |
| 6747 | if test -n "$LINT"; then |
| 6748 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 6749 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6751 | for as_dir in $PATH |
| 6752 | do |
| 6753 | IFS=$as_save_IFS |
| 6754 | test -z "$as_dir" && as_dir=. |
| 6755 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6757 | ac_cv_prog_LINT="$ac_prog" |
| 6758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6759 | break 2 |
| 6760 | fi |
| 6761 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6762 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6763 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6764 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6765 | fi |
| 6766 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6767 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6768 | if test -n "$LINT"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6769 | { echo "$as_me:$LINENO: result: $LINT" >&5 |
| 6770 | echo "${ECHO_T}$LINT" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6771 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6772 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6773 | echo "${ECHO_T}no" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6774 | fi |
| 6775 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6776 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6777 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6778 | done |
| 6779 | |
| 6780 | if test "$LINT" = "lint" |
| 6781 | then |
| 6782 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 6783 | fi |
| 6784 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6785 | |
| 6786 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6787 | for ac_prog in fontforge |
| 6788 | do |
| 6789 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6790 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6791 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6793 | if test "${ac_cv_prog_FONTFORGE+set}" = set; then |
| 6794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6795 | else |
| 6796 | if test -n "$FONTFORGE"; then |
| 6797 | ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test. |
| 6798 | else |
| 6799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6800 | for as_dir in $PATH |
| 6801 | do |
| 6802 | IFS=$as_save_IFS |
| 6803 | test -z "$as_dir" && as_dir=. |
| 6804 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6806 | ac_cv_prog_FONTFORGE="$ac_prog" |
| 6807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6808 | break 2 |
| 6809 | fi |
| 6810 | done |
| 6811 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6812 | IFS=$as_save_IFS |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6813 | |
| 6814 | fi |
| 6815 | fi |
| 6816 | FONTFORGE=$ac_cv_prog_FONTFORGE |
| 6817 | if test -n "$FONTFORGE"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6818 | { echo "$as_me:$LINENO: result: $FONTFORGE" >&5 |
| 6819 | echo "${ECHO_T}$FONTFORGE" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6820 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6821 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6822 | echo "${ECHO_T}no" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6823 | fi |
| 6824 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6825 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6826 | test -n "$FONTFORGE" && break |
| 6827 | done |
| 6828 | test -n "$FONTFORGE" || FONTFORGE="false" |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 6829 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6830 | for ac_prog in pkg-config |
| 6831 | do |
| 6832 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6833 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6834 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6836 | if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then |
| 6837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6838 | else |
| 6839 | if test -n "$PKG_CONFIG"; then |
| 6840 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 6841 | else |
| 6842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6843 | for as_dir in $PATH |
| 6844 | do |
| 6845 | IFS=$as_save_IFS |
| 6846 | test -z "$as_dir" && as_dir=. |
| 6847 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6849 | ac_cv_prog_PKG_CONFIG="$ac_prog" |
| 6850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6851 | break 2 |
| 6852 | fi |
| 6853 | done |
| 6854 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6855 | IFS=$as_save_IFS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6856 | |
| 6857 | fi |
| 6858 | fi |
| 6859 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 6860 | if test -n "$PKG_CONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6861 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 6862 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6863 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6864 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6865 | echo "${ECHO_T}no" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6866 | fi |
| 6867 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6868 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6869 | test -n "$PKG_CONFIG" && break |
| 6870 | done |
| 6871 | test -n "$PKG_CONFIG" || PKG_CONFIG="false" |
| 6872 | |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 6873 | |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6874 | case $host_cpu in |
| 6875 | *i[3456789]86*) |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6876 | # Extract the first word of "prelink", so it can be a program name with args. |
| 6877 | set dummy prelink; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6878 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6880 | if test "${ac_cv_path_PRELINK+set}" = set; then |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6882 | else |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6883 | case $PRELINK in |
| 6884 | [\\/]* | ?:[\\/]*) |
| 6885 | ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path. |
| 6886 | ;; |
| 6887 | *) |
| 6888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6889 | for as_dir in /sbin /usr/sbin $PATH |
| 6890 | do |
| 6891 | IFS=$as_save_IFS |
| 6892 | test -z "$as_dir" && as_dir=. |
| 6893 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6895 | ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6897 | break 2 |
| 6898 | fi |
| 6899 | done |
| 6900 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6901 | IFS=$as_save_IFS |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6902 | |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6903 | test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false" |
| 6904 | ;; |
| 6905 | esac |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6906 | fi |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6907 | PRELINK=$ac_cv_path_PRELINK |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6908 | if test -n "$PRELINK"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6909 | { echo "$as_me:$LINENO: result: $PRELINK" >&5 |
| 6910 | echo "${ECHO_T}$PRELINK" >&6; } |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6911 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6912 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6913 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6914 | fi |
| 6915 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6916 | |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6917 | ;; |
| 6918 | esac |
| 6919 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6920 | |
| 6921 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6922 | { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
| 6923 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6924 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 6925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6926 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6927 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6928 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6929 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6930 | /* confdefs.h. */ |
| 6931 | _ACEOF |
| 6932 | cat confdefs.h >>conftest.$ac_ext |
| 6933 | cat >>conftest.$ac_ext <<_ACEOF |
| 6934 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6935 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6936 | /* Override any GCC internal prototype to avoid an error. |
| 6937 | Use char because int might match the return type of a GCC |
| 6938 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6939 | #ifdef __cplusplus |
| 6940 | extern "C" |
| 6941 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6942 | char i386_set_ldt (); |
| 6943 | int |
| 6944 | main () |
| 6945 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6946 | return i386_set_ldt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6947 | ; |
| 6948 | return 0; |
| 6949 | } |
| 6950 | _ACEOF |
| 6951 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6952 | if { (ac_try="$ac_link" |
| 6953 | case "(($ac_try" in |
| 6954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6955 | *) ac_try_echo=$ac_try;; |
| 6956 | esac |
| 6957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6958 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6959 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6961 | rm -f conftest.er1 |
| 6962 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6964 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6966 | { (case "(($ac_try" in |
| 6967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6968 | *) ac_try_echo=$ac_try;; |
| 6969 | esac |
| 6970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6971 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6972 | ac_status=$? |
| 6973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6974 | (exit $ac_status); }; } && |
| 6975 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6976 | { (case "(($ac_try" in |
| 6977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6978 | *) ac_try_echo=$ac_try;; |
| 6979 | esac |
| 6980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6981 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6982 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6984 | (exit $ac_status); }; }; then |
| 6985 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6986 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6987 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6989 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6990 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6991 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6992 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6993 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6994 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6995 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6996 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6997 | { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5 |
| 6998 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6999 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7000 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7001 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7002 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 7003 | |
| 7004 | LIBS="-li386 $LIBS" |
| 7005 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 7006 | fi |
| 7007 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7008 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7009 | { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
| 7010 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7011 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 7012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7013 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7014 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7015 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7016 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7017 | /* confdefs.h. */ |
| 7018 | _ACEOF |
| 7019 | cat confdefs.h >>conftest.$ac_ext |
| 7020 | cat >>conftest.$ac_ext <<_ACEOF |
| 7021 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7022 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7023 | /* Override any GCC internal prototype to avoid an error. |
| 7024 | Use char because int might match the return type of a GCC |
| 7025 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7026 | #ifdef __cplusplus |
| 7027 | extern "C" |
| 7028 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7029 | char _oss_ioctl (); |
| 7030 | int |
| 7031 | main () |
| 7032 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7033 | return _oss_ioctl (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7034 | ; |
| 7035 | return 0; |
| 7036 | } |
| 7037 | _ACEOF |
| 7038 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7039 | if { (ac_try="$ac_link" |
| 7040 | case "(($ac_try" in |
| 7041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7042 | *) ac_try_echo=$ac_try;; |
| 7043 | esac |
| 7044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7045 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7046 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7048 | rm -f conftest.er1 |
| 7049 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7051 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7053 | { (case "(($ac_try" in |
| 7054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7055 | *) ac_try_echo=$ac_try;; |
| 7056 | esac |
| 7057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7058 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7059 | ac_status=$? |
| 7060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7061 | (exit $ac_status); }; } && |
| 7062 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7063 | { (case "(($ac_try" in |
| 7064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7065 | *) ac_try_echo=$ac_try;; |
| 7066 | esac |
| 7067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7068 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7069 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7071 | (exit $ac_status); }; }; then |
| 7072 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7073 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7074 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7076 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7077 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7078 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7079 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7080 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7081 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7082 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7083 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7084 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
| 7085 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7086 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7087 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7088 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7089 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7090 | |
| 7091 | LIBS="-lossaudio $LIBS" |
| 7092 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7093 | fi |
| 7094 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7095 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7096 | for ac_func in gethostbyname |
| 7097 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7098 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7099 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7100 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 7101 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7103 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7104 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7105 | /* confdefs.h. */ |
| 7106 | _ACEOF |
| 7107 | cat confdefs.h >>conftest.$ac_ext |
| 7108 | cat >>conftest.$ac_ext <<_ACEOF |
| 7109 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7110 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7111 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7112 | #define $ac_func innocuous_$ac_func |
| 7113 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7114 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7115 | which can conflict with char $ac_func (); below. |
| 7116 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7117 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7118 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7119 | #ifdef __STDC__ |
| 7120 | # include <limits.h> |
| 7121 | #else |
| 7122 | # include <assert.h> |
| 7123 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7124 | |
| 7125 | #undef $ac_func |
| 7126 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7127 | /* Override any GCC internal prototype to avoid an error. |
| 7128 | Use char because int might match the return type of a GCC |
| 7129 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7130 | #ifdef __cplusplus |
| 7131 | extern "C" |
| 7132 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7133 | char $ac_func (); |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7134 | /* The GNU C library defines this for functions which it implements |
| 7135 | to always fail with ENOSYS. Some functions are actually named |
| 7136 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7137 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7138 | choke me |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7139 | #endif |
| 7140 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7141 | int |
| 7142 | main () |
| 7143 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7144 | return $ac_func (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7145 | ; |
| 7146 | return 0; |
| 7147 | } |
| 7148 | _ACEOF |
| 7149 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7150 | if { (ac_try="$ac_link" |
| 7151 | case "(($ac_try" in |
| 7152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7153 | *) ac_try_echo=$ac_try;; |
| 7154 | esac |
| 7155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7156 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7157 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7159 | rm -f conftest.er1 |
| 7160 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7162 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7163 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7164 | { (case "(($ac_try" in |
| 7165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7166 | *) ac_try_echo=$ac_try;; |
| 7167 | esac |
| 7168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7169 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7170 | ac_status=$? |
| 7171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7172 | (exit $ac_status); }; } && |
| 7173 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7174 | { (case "(($ac_try" in |
| 7175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7176 | *) ac_try_echo=$ac_try;; |
| 7177 | esac |
| 7178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7179 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7180 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7182 | (exit $ac_status); }; }; then |
| 7183 | eval "$as_ac_var=yes" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7184 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7185 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7187 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7188 | eval "$as_ac_var=no" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7189 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7190 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7191 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7192 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7193 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7194 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 7195 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7196 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7197 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7198 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7199 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7200 | _ACEOF |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7201 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7202 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7203 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7204 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 7205 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7206 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 7207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7208 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7209 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7210 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7211 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7212 | /* confdefs.h. */ |
| 7213 | _ACEOF |
| 7214 | cat confdefs.h >>conftest.$ac_ext |
| 7215 | cat >>conftest.$ac_ext <<_ACEOF |
| 7216 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7217 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7218 | /* Override any GCC internal prototype to avoid an error. |
| 7219 | Use char because int might match the return type of a GCC |
| 7220 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7221 | #ifdef __cplusplus |
| 7222 | extern "C" |
| 7223 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7224 | char gethostbyname (); |
| 7225 | int |
| 7226 | main () |
| 7227 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7228 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7229 | ; |
| 7230 | return 0; |
| 7231 | } |
| 7232 | _ACEOF |
| 7233 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7234 | if { (ac_try="$ac_link" |
| 7235 | case "(($ac_try" in |
| 7236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7237 | *) ac_try_echo=$ac_try;; |
| 7238 | esac |
| 7239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7240 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7241 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7243 | rm -f conftest.er1 |
| 7244 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7246 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7247 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7248 | { (case "(($ac_try" in |
| 7249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7250 | *) ac_try_echo=$ac_try;; |
| 7251 | esac |
| 7252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7253 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7254 | ac_status=$? |
| 7255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7256 | (exit $ac_status); }; } && |
| 7257 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7258 | { (case "(($ac_try" in |
| 7259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7260 | *) ac_try_echo=$ac_try;; |
| 7261 | esac |
| 7262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7263 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7264 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7266 | (exit $ac_status); }; }; then |
| 7267 | ac_cv_lib_nsl_gethostbyname=yes |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7268 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7269 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7271 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7272 | ac_cv_lib_nsl_gethostbyname=no |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7273 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7274 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7275 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7276 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7277 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7278 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7279 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 7280 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7281 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7282 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7283 | #define HAVE_LIBNSL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7284 | _ACEOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7285 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7286 | LIBS="-lnsl $LIBS" |
| 7287 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7288 | fi |
| 7289 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7290 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 7291 | done |
| 7292 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7293 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7294 | for ac_func in connect |
| 7295 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7296 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7297 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7298 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 7299 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7301 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7302 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7303 | /* confdefs.h. */ |
| 7304 | _ACEOF |
| 7305 | cat confdefs.h >>conftest.$ac_ext |
| 7306 | cat >>conftest.$ac_ext <<_ACEOF |
| 7307 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7308 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7309 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7310 | #define $ac_func innocuous_$ac_func |
| 7311 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7312 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7313 | which can conflict with char $ac_func (); below. |
| 7314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7315 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7316 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7317 | #ifdef __STDC__ |
| 7318 | # include <limits.h> |
| 7319 | #else |
| 7320 | # include <assert.h> |
| 7321 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7322 | |
| 7323 | #undef $ac_func |
| 7324 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7325 | /* Override any GCC internal prototype to avoid an error. |
| 7326 | Use char because int might match the return type of a GCC |
| 7327 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7328 | #ifdef __cplusplus |
| 7329 | extern "C" |
| 7330 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7331 | char $ac_func (); |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7332 | /* The GNU C library defines this for functions which it implements |
| 7333 | to always fail with ENOSYS. Some functions are actually named |
| 7334 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7335 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7336 | choke me |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7337 | #endif |
| 7338 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7339 | int |
| 7340 | main () |
| 7341 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7342 | return $ac_func (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7343 | ; |
| 7344 | return 0; |
| 7345 | } |
| 7346 | _ACEOF |
| 7347 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7348 | if { (ac_try="$ac_link" |
| 7349 | case "(($ac_try" in |
| 7350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7351 | *) ac_try_echo=$ac_try;; |
| 7352 | esac |
| 7353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7354 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7355 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7357 | rm -f conftest.er1 |
| 7358 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7360 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7361 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7362 | { (case "(($ac_try" in |
| 7363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7364 | *) ac_try_echo=$ac_try;; |
| 7365 | esac |
| 7366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7367 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7368 | ac_status=$? |
| 7369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7370 | (exit $ac_status); }; } && |
| 7371 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7372 | { (case "(($ac_try" in |
| 7373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7374 | *) ac_try_echo=$ac_try;; |
| 7375 | esac |
| 7376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7377 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7378 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7380 | (exit $ac_status); }; }; then |
| 7381 | eval "$as_ac_var=yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7382 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7383 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7385 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7386 | eval "$as_ac_var=no" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7387 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7388 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7389 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7390 | conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7391 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7392 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 7393 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7394 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7395 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7396 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7397 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7398 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7399 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7400 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7401 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7402 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 7403 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7404 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 7405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7406 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7407 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7408 | LIBS="-lsocket $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7409 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7410 | /* confdefs.h. */ |
| 7411 | _ACEOF |
| 7412 | cat confdefs.h >>conftest.$ac_ext |
| 7413 | cat >>conftest.$ac_ext <<_ACEOF |
| 7414 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7415 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7416 | /* Override any GCC internal prototype to avoid an error. |
| 7417 | Use char because int might match the return type of a GCC |
| 7418 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7419 | #ifdef __cplusplus |
| 7420 | extern "C" |
| 7421 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7422 | char connect (); |
| 7423 | int |
| 7424 | main () |
| 7425 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7426 | return connect (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7427 | ; |
| 7428 | return 0; |
| 7429 | } |
| 7430 | _ACEOF |
| 7431 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7432 | if { (ac_try="$ac_link" |
| 7433 | case "(($ac_try" in |
| 7434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7435 | *) ac_try_echo=$ac_try;; |
| 7436 | esac |
| 7437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7438 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7439 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7441 | rm -f conftest.er1 |
| 7442 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7444 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7446 | { (case "(($ac_try" in |
| 7447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7448 | *) ac_try_echo=$ac_try;; |
| 7449 | esac |
| 7450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7451 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7452 | ac_status=$? |
| 7453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7454 | (exit $ac_status); }; } && |
| 7455 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7456 | { (case "(($ac_try" in |
| 7457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7458 | *) ac_try_echo=$ac_try;; |
| 7459 | esac |
| 7460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7461 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7462 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7464 | (exit $ac_status); }; }; then |
| 7465 | ac_cv_lib_socket_connect=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7466 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7467 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7469 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7470 | ac_cv_lib_socket_connect=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7471 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7472 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7473 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7474 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7475 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7476 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7477 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 7478 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7479 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7480 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7481 | #define HAVE_LIBSOCKET 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7482 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7483 | |
| 7484 | LIBS="-lsocket $LIBS" |
| 7485 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7486 | fi |
| 7487 | |
| 7488 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 7489 | done |
| 7490 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7491 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7492 | for ac_func in inet_aton |
| 7493 | do |
| 7494 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7495 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7496 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 7497 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7499 | else |
| 7500 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7501 | /* confdefs.h. */ |
| 7502 | _ACEOF |
| 7503 | cat confdefs.h >>conftest.$ac_ext |
| 7504 | cat >>conftest.$ac_ext <<_ACEOF |
| 7505 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7506 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7507 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7508 | #define $ac_func innocuous_$ac_func |
| 7509 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7510 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7511 | which can conflict with char $ac_func (); below. |
| 7512 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7513 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7514 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7515 | #ifdef __STDC__ |
| 7516 | # include <limits.h> |
| 7517 | #else |
| 7518 | # include <assert.h> |
| 7519 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7520 | |
| 7521 | #undef $ac_func |
| 7522 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7523 | /* Override any GCC internal prototype to avoid an error. |
| 7524 | Use char because int might match the return type of a GCC |
| 7525 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7526 | #ifdef __cplusplus |
| 7527 | extern "C" |
| 7528 | #endif |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7529 | char $ac_func (); |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7530 | /* The GNU C library defines this for functions which it implements |
| 7531 | to always fail with ENOSYS. Some functions are actually named |
| 7532 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7533 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7534 | choke me |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7535 | #endif |
| 7536 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7537 | int |
| 7538 | main () |
| 7539 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7540 | return $ac_func (); |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7541 | ; |
| 7542 | return 0; |
| 7543 | } |
| 7544 | _ACEOF |
| 7545 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7546 | if { (ac_try="$ac_link" |
| 7547 | case "(($ac_try" in |
| 7548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7549 | *) ac_try_echo=$ac_try;; |
| 7550 | esac |
| 7551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7552 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7553 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7555 | rm -f conftest.er1 |
| 7556 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7558 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7559 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7560 | { (case "(($ac_try" in |
| 7561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7562 | *) ac_try_echo=$ac_try;; |
| 7563 | esac |
| 7564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7565 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7566 | ac_status=$? |
| 7567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7568 | (exit $ac_status); }; } && |
| 7569 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7570 | { (case "(($ac_try" in |
| 7571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7572 | *) ac_try_echo=$ac_try;; |
| 7573 | esac |
| 7574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7575 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7576 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7578 | (exit $ac_status); }; }; then |
| 7579 | eval "$as_ac_var=yes" |
| 7580 | else |
| 7581 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7583 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7584 | eval "$as_ac_var=no" |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7585 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7586 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7587 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7588 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7589 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7590 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 7591 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7592 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7593 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7594 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7595 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7596 | _ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7597 | |
| 7598 | else |
| 7599 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7600 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 7601 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; } |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7602 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 7603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7604 | else |
| 7605 | ac_check_lib_save_LIBS=$LIBS |
| 7606 | LIBS="-lresolv $LIBS" |
| 7607 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7608 | /* confdefs.h. */ |
| 7609 | _ACEOF |
| 7610 | cat confdefs.h >>conftest.$ac_ext |
| 7611 | cat >>conftest.$ac_ext <<_ACEOF |
| 7612 | /* end confdefs.h. */ |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7613 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7614 | /* Override any GCC internal prototype to avoid an error. |
| 7615 | Use char because int might match the return type of a GCC |
| 7616 | builtin and then its argument prototype would still apply. */ |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7617 | #ifdef __cplusplus |
| 7618 | extern "C" |
| 7619 | #endif |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7620 | char inet_aton (); |
| 7621 | int |
| 7622 | main () |
| 7623 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7624 | return inet_aton (); |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7625 | ; |
| 7626 | return 0; |
| 7627 | } |
| 7628 | _ACEOF |
| 7629 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7630 | if { (ac_try="$ac_link" |
| 7631 | case "(($ac_try" in |
| 7632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7633 | *) ac_try_echo=$ac_try;; |
| 7634 | esac |
| 7635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7636 | (eval "$ac_link") 2>conftest.er1 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7637 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7639 | rm -f conftest.er1 |
| 7640 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7642 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7643 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7644 | { (case "(($ac_try" in |
| 7645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7646 | *) ac_try_echo=$ac_try;; |
| 7647 | esac |
| 7648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7649 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7650 | ac_status=$? |
| 7651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7652 | (exit $ac_status); }; } && |
| 7653 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7654 | { (case "(($ac_try" in |
| 7655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7656 | *) ac_try_echo=$ac_try;; |
| 7657 | esac |
| 7658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7659 | (eval "$ac_try") 2>&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7660 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7662 | (exit $ac_status); }; }; then |
| 7663 | ac_cv_lib_resolv_inet_aton=yes |
| 7664 | else |
| 7665 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7667 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7668 | ac_cv_lib_resolv_inet_aton=no |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7669 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7670 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7671 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7672 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7673 | LIBS=$ac_check_lib_save_LIBS |
| 7674 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7675 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 7676 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7677 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7678 | cat >>confdefs.h <<_ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7679 | #define HAVE_LIBRESOLV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7680 | _ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7681 | |
| 7682 | LIBS="-lresolv $LIBS" |
| 7683 | |
| 7684 | fi |
| 7685 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7686 | fi |
| 7687 | done |
| 7688 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7689 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7690 | { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 7691 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7692 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 7693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7694 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7695 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7696 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7697 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7698 | /* confdefs.h. */ |
| 7699 | _ACEOF |
| 7700 | cat confdefs.h >>conftest.$ac_ext |
| 7701 | cat >>conftest.$ac_ext <<_ACEOF |
| 7702 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7703 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7704 | /* Override any GCC internal prototype to avoid an error. |
| 7705 | Use char because int might match the return type of a GCC |
| 7706 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7707 | #ifdef __cplusplus |
| 7708 | extern "C" |
| 7709 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7710 | char _xpg4_setrunelocale (); |
| 7711 | int |
| 7712 | main () |
| 7713 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7714 | return _xpg4_setrunelocale (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7715 | ; |
| 7716 | return 0; |
| 7717 | } |
| 7718 | _ACEOF |
| 7719 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7720 | if { (ac_try="$ac_link" |
| 7721 | case "(($ac_try" in |
| 7722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7723 | *) ac_try_echo=$ac_try;; |
| 7724 | esac |
| 7725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7726 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7727 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7729 | rm -f conftest.er1 |
| 7730 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7732 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7734 | { (case "(($ac_try" in |
| 7735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7736 | *) ac_try_echo=$ac_try;; |
| 7737 | esac |
| 7738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7739 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7740 | ac_status=$? |
| 7741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7742 | (exit $ac_status); }; } && |
| 7743 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7744 | { (case "(($ac_try" in |
| 7745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7746 | *) ac_try_echo=$ac_try;; |
| 7747 | esac |
| 7748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7749 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7750 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7752 | (exit $ac_status); }; }; then |
| 7753 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7754 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7755 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7757 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7758 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7759 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7760 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7761 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7762 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7763 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7764 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7765 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 7766 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7767 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7768 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7769 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7770 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7771 | |
| 7772 | LIBS="-lxpg4 $LIBS" |
| 7773 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7774 | fi |
| 7775 | |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7776 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7777 | { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5 |
| 7778 | echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; } |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7779 | if test "${ac_cv_lib_poll_poll+set}" = set; then |
| 7780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7781 | else |
| 7782 | ac_check_lib_save_LIBS=$LIBS |
| 7783 | LIBS="-lpoll $LIBS" |
| 7784 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7785 | /* confdefs.h. */ |
| 7786 | _ACEOF |
| 7787 | cat confdefs.h >>conftest.$ac_ext |
| 7788 | cat >>conftest.$ac_ext <<_ACEOF |
| 7789 | /* end confdefs.h. */ |
| 7790 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7791 | /* Override any GCC internal prototype to avoid an error. |
| 7792 | Use char because int might match the return type of a GCC |
| 7793 | builtin and then its argument prototype would still apply. */ |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7794 | #ifdef __cplusplus |
| 7795 | extern "C" |
| 7796 | #endif |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7797 | char poll (); |
| 7798 | int |
| 7799 | main () |
| 7800 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7801 | return poll (); |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7802 | ; |
| 7803 | return 0; |
| 7804 | } |
| 7805 | _ACEOF |
| 7806 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7807 | if { (ac_try="$ac_link" |
| 7808 | case "(($ac_try" in |
| 7809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7810 | *) ac_try_echo=$ac_try;; |
| 7811 | esac |
| 7812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7813 | (eval "$ac_link") 2>conftest.er1 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7814 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7816 | rm -f conftest.er1 |
| 7817 | cat conftest.err >&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7819 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7821 | { (case "(($ac_try" in |
| 7822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7823 | *) ac_try_echo=$ac_try;; |
| 7824 | esac |
| 7825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7826 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7827 | ac_status=$? |
| 7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7829 | (exit $ac_status); }; } && |
| 7830 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7831 | { (case "(($ac_try" in |
| 7832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7833 | *) ac_try_echo=$ac_try;; |
| 7834 | esac |
| 7835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7836 | (eval "$ac_try") 2>&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7837 | ac_status=$? |
| 7838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7839 | (exit $ac_status); }; }; then |
| 7840 | ac_cv_lib_poll_poll=yes |
| 7841 | else |
| 7842 | echo "$as_me: failed program was:" >&5 |
| 7843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7844 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7845 | ac_cv_lib_poll_poll=no |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7846 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7847 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7848 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7849 | conftest$ac_exeext conftest.$ac_ext |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7850 | LIBS=$ac_check_lib_save_LIBS |
| 7851 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7852 | { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5 |
| 7853 | echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; } |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7854 | if test $ac_cv_lib_poll_poll = yes; then |
| 7855 | cat >>confdefs.h <<_ACEOF |
| 7856 | #define HAVE_LIBPOLL 1 |
| 7857 | _ACEOF |
| 7858 | |
| 7859 | LIBS="-lpoll $LIBS" |
| 7860 | |
| 7861 | fi |
| 7862 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7863 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 7864 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7865 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7867 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7868 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7869 | LIBS="-lpthread $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7870 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7871 | /* confdefs.h. */ |
| 7872 | _ACEOF |
| 7873 | cat confdefs.h >>conftest.$ac_ext |
| 7874 | cat >>conftest.$ac_ext <<_ACEOF |
| 7875 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7876 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7877 | /* Override any GCC internal prototype to avoid an error. |
| 7878 | Use char because int might match the return type of a GCC |
| 7879 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7880 | #ifdef __cplusplus |
| 7881 | extern "C" |
| 7882 | #endif |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7883 | char pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7884 | int |
| 7885 | main () |
| 7886 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7887 | return pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7888 | ; |
| 7889 | return 0; |
| 7890 | } |
| 7891 | _ACEOF |
| 7892 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7893 | if { (ac_try="$ac_link" |
| 7894 | case "(($ac_try" in |
| 7895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7896 | *) ac_try_echo=$ac_try;; |
| 7897 | esac |
| 7898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7899 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7900 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7902 | rm -f conftest.er1 |
| 7903 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7905 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7907 | { (case "(($ac_try" in |
| 7908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7909 | *) ac_try_echo=$ac_try;; |
| 7910 | esac |
| 7911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7912 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7913 | ac_status=$? |
| 7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7915 | (exit $ac_status); }; } && |
| 7916 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7917 | { (case "(($ac_try" in |
| 7918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7919 | *) ac_try_echo=$ac_try;; |
| 7920 | esac |
| 7921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7922 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7923 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7925 | (exit $ac_status); }; }; then |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7926 | ac_cv_lib_pthread_pthread_create=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7927 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7928 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7930 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7931 | ac_cv_lib_pthread_pthread_create=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7932 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7933 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7934 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7935 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7936 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7937 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7938 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 7939 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7940 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
| 7941 | LIBPTHREAD="-lpthread" |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7942 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7943 | fi |
| 7944 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7945 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 7946 | XLIB="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 7947 | |
| 7948 | XFILES="" |
| 7949 | |
| 7950 | OPENGLFILES="" |
| 7951 | |
| 7952 | GLU32FILES="" |
| 7953 | |
| 7954 | OPENGL_LIBS="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 7955 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7956 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 7957 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7958 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 7959 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7960 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 7962 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7963 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7964 | /* confdefs.h. */ |
| 7965 | _ACEOF |
| 7966 | cat confdefs.h >>conftest.$ac_ext |
| 7967 | cat >>conftest.$ac_ext <<_ACEOF |
| 7968 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7969 | #include <stdlib.h> |
| 7970 | #include <stdarg.h> |
| 7971 | #include <string.h> |
| 7972 | #include <float.h> |
| 7973 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7974 | int |
| 7975 | main () |
| 7976 | { |
| 7977 | |
| 7978 | ; |
| 7979 | return 0; |
| 7980 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7981 | _ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7982 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7983 | if { (ac_try="$ac_compile" |
| 7984 | case "(($ac_try" in |
| 7985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7986 | *) ac_try_echo=$ac_try;; |
| 7987 | esac |
| 7988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7989 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7990 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7992 | rm -f conftest.er1 |
| 7993 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7995 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7997 | { (case "(($ac_try" in |
| 7998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7999 | *) ac_try_echo=$ac_try;; |
| 8000 | esac |
| 8001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8002 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8003 | ac_status=$? |
| 8004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8005 | (exit $ac_status); }; } && |
| 8006 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8007 | { (case "(($ac_try" in |
| 8008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8009 | *) ac_try_echo=$ac_try;; |
| 8010 | esac |
| 8011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8012 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8013 | ac_status=$? |
| 8014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8015 | (exit $ac_status); }; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8016 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8017 | else |
| 8018 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8020 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8021 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 8022 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8023 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8025 | |
| 8026 | if test $ac_cv_header_stdc = yes; then |
| 8027 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 8028 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8029 | /* confdefs.h. */ |
| 8030 | _ACEOF |
| 8031 | cat confdefs.h >>conftest.$ac_ext |
| 8032 | cat >>conftest.$ac_ext <<_ACEOF |
| 8033 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8034 | #include <string.h> |
| 8035 | |
| 8036 | _ACEOF |
| 8037 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8038 | $EGREP "memchr" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8039 | : |
| 8040 | else |
| 8041 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 8042 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8043 | rm -f conftest* |
| 8044 | |
| 8045 | fi |
| 8046 | |
| 8047 | if test $ac_cv_header_stdc = yes; then |
| 8048 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 8049 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8050 | /* confdefs.h. */ |
| 8051 | _ACEOF |
| 8052 | cat confdefs.h >>conftest.$ac_ext |
| 8053 | cat >>conftest.$ac_ext <<_ACEOF |
| 8054 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8055 | #include <stdlib.h> |
| 8056 | |
| 8057 | _ACEOF |
| 8058 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8059 | $EGREP "free" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8060 | : |
| 8061 | else |
| 8062 | ac_cv_header_stdc=no |
| 8063 | fi |
| 8064 | rm -f conftest* |
| 8065 | |
| 8066 | fi |
| 8067 | |
| 8068 | if test $ac_cv_header_stdc = yes; then |
| 8069 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 8070 | if test "$cross_compiling" = yes; then |
| 8071 | : |
| 8072 | else |
| 8073 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8074 | /* confdefs.h. */ |
| 8075 | _ACEOF |
| 8076 | cat confdefs.h >>conftest.$ac_ext |
| 8077 | cat >>conftest.$ac_ext <<_ACEOF |
| 8078 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8079 | #include <ctype.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8080 | #include <stdlib.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8081 | #if ((' ' & 0x0FF) == 0x020) |
| 8082 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 8083 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 8084 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8085 | # define ISLOWER(c) \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8086 | (('a' <= (c) && (c) <= 'i') \ |
| 8087 | || ('j' <= (c) && (c) <= 'r') \ |
| 8088 | || ('s' <= (c) && (c) <= 'z')) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8089 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 8090 | #endif |
| 8091 | |
| 8092 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 8093 | int |
| 8094 | main () |
| 8095 | { |
| 8096 | int i; |
| 8097 | for (i = 0; i < 256; i++) |
| 8098 | if (XOR (islower (i), ISLOWER (i)) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8099 | || toupper (i) != TOUPPER (i)) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8100 | return 2; |
| 8101 | return 0; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8102 | } |
| 8103 | _ACEOF |
| 8104 | rm -f conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8105 | if { (ac_try="$ac_link" |
| 8106 | case "(($ac_try" in |
| 8107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8108 | *) ac_try_echo=$ac_try;; |
| 8109 | esac |
| 8110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8111 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8112 | ac_status=$? |
| 8113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8114 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8115 | { (case "(($ac_try" in |
| 8116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8117 | *) ac_try_echo=$ac_try;; |
| 8118 | esac |
| 8119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8120 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8121 | ac_status=$? |
| 8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8123 | (exit $ac_status); }; }; then |
| 8124 | : |
| 8125 | else |
| 8126 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8127 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8129 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8130 | ( exit $ac_status ) |
| 8131 | ac_cv_header_stdc=no |
| 8132 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8133 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8134 | fi |
| 8135 | |
| 8136 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8137 | fi |
| 8138 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8139 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 8140 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8141 | if test $ac_cv_header_stdc = yes; then |
| 8142 | |
| 8143 | cat >>confdefs.h <<\_ACEOF |
| 8144 | #define STDC_HEADERS 1 |
| 8145 | _ACEOF |
| 8146 | |
| 8147 | fi |
| 8148 | |
| 8149 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 8150 | |
| 8151 | |
| 8152 | |
| 8153 | |
| 8154 | |
| 8155 | |
| 8156 | |
| 8157 | |
| 8158 | |
| 8159 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8160 | inttypes.h stdint.h unistd.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8161 | do |
| 8162 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8163 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8164 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8165 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8167 | else |
| 8168 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8169 | /* confdefs.h. */ |
| 8170 | _ACEOF |
| 8171 | cat confdefs.h >>conftest.$ac_ext |
| 8172 | cat >>conftest.$ac_ext <<_ACEOF |
| 8173 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8174 | $ac_includes_default |
| 8175 | |
| 8176 | #include <$ac_header> |
| 8177 | _ACEOF |
| 8178 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8179 | if { (ac_try="$ac_compile" |
| 8180 | case "(($ac_try" in |
| 8181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8182 | *) ac_try_echo=$ac_try;; |
| 8183 | esac |
| 8184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8185 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8186 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8188 | rm -f conftest.er1 |
| 8189 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8191 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8192 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8193 | { (case "(($ac_try" in |
| 8194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8195 | *) ac_try_echo=$ac_try;; |
| 8196 | esac |
| 8197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8198 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8199 | ac_status=$? |
| 8200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8201 | (exit $ac_status); }; } && |
| 8202 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8203 | { (case "(($ac_try" in |
| 8204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8205 | *) ac_try_echo=$ac_try;; |
| 8206 | esac |
| 8207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8208 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8209 | ac_status=$? |
| 8210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8211 | (exit $ac_status); }; }; then |
| 8212 | eval "$as_ac_Header=yes" |
| 8213 | else |
| 8214 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8216 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8217 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8218 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8219 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8221 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8222 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8223 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8224 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8225 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8226 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8227 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8228 | _ACEOF |
| 8229 | |
| 8230 | fi |
| 8231 | |
| 8232 | done |
| 8233 | |
| 8234 | |
| 8235 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8236 | |
| 8237 | |
| 8238 | |
| 8239 | |
| 8240 | |
| 8241 | |
| 8242 | |
| 8243 | |
| 8244 | |
| 8245 | |
| 8246 | |
| 8247 | |
| 8248 | |
| 8249 | |
| 8250 | |
| 8251 | |
| 8252 | |
| 8253 | |
| 8254 | |
| 8255 | |
| 8256 | |
| 8257 | |
| 8258 | |
| 8259 | |
| 8260 | |
| 8261 | |
| 8262 | |
| 8263 | |
| 8264 | |
| 8265 | |
| 8266 | |
| 8267 | |
| 8268 | |
| 8269 | |
| 8270 | |
| 8271 | |
| 8272 | |
| 8273 | |
| 8274 | |
| 8275 | |
| 8276 | |
| 8277 | |
| 8278 | |
| 8279 | |
| 8280 | |
| 8281 | |
| 8282 | |
| 8283 | |
| 8284 | |
| 8285 | |
| 8286 | |
| 8287 | |
| 8288 | |
| 8289 | |
| 8290 | |
| 8291 | |
| 8292 | |
| 8293 | |
| 8294 | |
| 8295 | |
| 8296 | |
| 8297 | |
| 8298 | |
| 8299 | |
| 8300 | |
| 8301 | |
| 8302 | |
| 8303 | |
| 8304 | |
| 8305 | |
| 8306 | |
| 8307 | |
| 8308 | |
| 8309 | |
| 8310 | |
| 8311 | |
| 8312 | |
| 8313 | |
| 8314 | |
| 8315 | |
| 8316 | |
| 8317 | |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 8318 | |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 8319 | |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 8320 | |
| 8321 | |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 8322 | |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 8323 | |
| 8324 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8325 | |
| 8326 | |
| 8327 | |
| 8328 | |
| 8329 | |
| 8330 | |
| 8331 | |
| 8332 | |
| 8333 | |
| 8334 | |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 8335 | |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 8336 | |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 8337 | |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 8338 | |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 8339 | |
| 8340 | |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 8341 | |
Tijl Coosemans | fc8172f | 2006-08-05 23:31:07 +0200 | [diff] [blame^] | 8342 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8343 | for ac_header in \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 8344 | AudioUnit/AudioUnit.h \ |
| 8345 | CoreAudio/CoreAudio.h \ |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 8346 | IOKit/IOKitLib.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8347 | alsa/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8348 | arpa/inet.h \ |
| 8349 | arpa/nameser.h \ |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 8350 | asm/types.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8351 | capi20.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8352 | cups/cups.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8353 | curses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8354 | direct.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8355 | dlfcn.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8356 | elf.h \ |
| 8357 | float.h \ |
| 8358 | fontconfig/fontconfig.h \ |
| 8359 | getopt.h \ |
| 8360 | gif_lib.h \ |
| 8361 | ieeefp.h \ |
| 8362 | io.h \ |
| 8363 | jack/jack.h \ |
| 8364 | jpeglib.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 8365 | lber.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8366 | lcms.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8367 | lcms/lcms.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 8368 | ldap.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8369 | libaudioio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8370 | link.h \ |
| 8371 | linux/cdrom.h \ |
| 8372 | linux/compiler.h \ |
| 8373 | linux/hdreg.h \ |
| 8374 | linux/input.h \ |
| 8375 | linux/ioctl.h \ |
| 8376 | linux/joystick.h \ |
| 8377 | linux/major.h \ |
| 8378 | linux/param.h \ |
| 8379 | linux/serial.h \ |
| 8380 | linux/ucdrom.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 8381 | mach/machine.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8382 | machine/cpu.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 8383 | machine/limits.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8384 | machine/soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8385 | mntent.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8386 | ncurses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8387 | netdb.h \ |
| 8388 | netinet/in.h \ |
| 8389 | netinet/in_systm.h \ |
| 8390 | netinet/tcp.h \ |
| 8391 | netinet/tcp_fsm.h \ |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 8392 | openssl/err.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8393 | openssl/ssl.h \ |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 8394 | poll.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8395 | process.h \ |
| 8396 | pthread.h \ |
Tijl Coosemans | fc8172f | 2006-08-05 23:31:07 +0200 | [diff] [blame^] | 8397 | pthread_np.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8398 | pwd.h \ |
| 8399 | regex.h \ |
| 8400 | sched.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8401 | scsi/scsi.h \ |
| 8402 | scsi/scsi_ioctl.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8403 | scsi/sg.h \ |
| 8404 | soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8405 | stdint.h \ |
| 8406 | strings.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8407 | sys/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8408 | sys/cdio.h \ |
| 8409 | sys/elf32.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8410 | sys/epoll.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8411 | sys/errno.h \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 8412 | sys/event.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8413 | sys/exec_elf.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8414 | sys/filio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8415 | sys/ioctl.h \ |
| 8416 | sys/ipc.h \ |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 8417 | sys/limits.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8418 | sys/link.h \ |
| 8419 | sys/lwp.h \ |
| 8420 | sys/mman.h \ |
| 8421 | sys/modem.h \ |
| 8422 | sys/msg.h \ |
Hans Leidekker | 0844b70 | 2006-01-26 13:23:08 +0100 | [diff] [blame] | 8423 | sys/mtio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8424 | sys/param.h \ |
| 8425 | sys/poll.h \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 8426 | sys/prctl.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8427 | sys/ptrace.h \ |
| 8428 | sys/reg.h \ |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 8429 | sys/resource.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8430 | sys/scsiio.h \ |
| 8431 | sys/shm.h \ |
| 8432 | sys/signal.h \ |
| 8433 | sys/socket.h \ |
| 8434 | sys/sockio.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8435 | sys/soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8436 | sys/statvfs.h \ |
| 8437 | sys/strtio.h \ |
| 8438 | sys/syscall.h \ |
| 8439 | sys/sysctl.h \ |
| 8440 | sys/time.h \ |
| 8441 | sys/times.h \ |
| 8442 | sys/uio.h \ |
| 8443 | sys/un.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8444 | sys/vm86.h \ |
| 8445 | sys/wait.h \ |
| 8446 | syscall.h \ |
| 8447 | termios.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8448 | unicode/ubidi.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8449 | unistd.h \ |
| 8450 | utime.h \ |
| 8451 | valgrind/memcheck.h |
| 8452 | |
| 8453 | do |
| 8454 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8455 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8456 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8458 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8460 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8461 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8462 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8463 | echo "${ECHO_T}$ac_res" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8464 | else |
| 8465 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8466 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8467 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8468 | cat >conftest.$ac_ext <<_ACEOF |
| 8469 | /* confdefs.h. */ |
| 8470 | _ACEOF |
| 8471 | cat confdefs.h >>conftest.$ac_ext |
| 8472 | cat >>conftest.$ac_ext <<_ACEOF |
| 8473 | /* end confdefs.h. */ |
| 8474 | $ac_includes_default |
| 8475 | #include <$ac_header> |
| 8476 | _ACEOF |
| 8477 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8478 | if { (ac_try="$ac_compile" |
| 8479 | case "(($ac_try" in |
| 8480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8481 | *) ac_try_echo=$ac_try;; |
| 8482 | esac |
| 8483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8484 | (eval "$ac_compile") 2>conftest.er1 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8485 | ac_status=$? |
| 8486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8487 | rm -f conftest.er1 |
| 8488 | cat conftest.err >&5 |
| 8489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8490 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8491 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8492 | { (case "(($ac_try" in |
| 8493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8494 | *) ac_try_echo=$ac_try;; |
| 8495 | esac |
| 8496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8497 | (eval "$ac_try") 2>&5 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8498 | ac_status=$? |
| 8499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8500 | (exit $ac_status); }; } && |
| 8501 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8502 | { (case "(($ac_try" in |
| 8503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8504 | *) ac_try_echo=$ac_try;; |
| 8505 | esac |
| 8506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8507 | (eval "$ac_try") 2>&5 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8508 | ac_status=$? |
| 8509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8510 | (exit $ac_status); }; }; then |
| 8511 | ac_header_compiler=yes |
| 8512 | else |
| 8513 | echo "$as_me: failed program was:" >&5 |
| 8514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8515 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8516 | ac_header_compiler=no |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8517 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8518 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8520 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8521 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8522 | |
| 8523 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8524 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8525 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8526 | cat >conftest.$ac_ext <<_ACEOF |
| 8527 | /* confdefs.h. */ |
| 8528 | _ACEOF |
| 8529 | cat confdefs.h >>conftest.$ac_ext |
| 8530 | cat >>conftest.$ac_ext <<_ACEOF |
| 8531 | /* end confdefs.h. */ |
| 8532 | #include <$ac_header> |
| 8533 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8534 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8535 | case "(($ac_try" in |
| 8536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8537 | *) ac_try_echo=$ac_try;; |
| 8538 | esac |
| 8539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8540 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8541 | ac_status=$? |
| 8542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8543 | rm -f conftest.er1 |
| 8544 | cat conftest.err >&5 |
| 8545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8546 | (exit $ac_status); } >/dev/null; then |
| 8547 | if test -s conftest.err; then |
| 8548 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8549 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8550 | else |
| 8551 | ac_cpp_err= |
| 8552 | fi |
| 8553 | else |
| 8554 | ac_cpp_err=yes |
| 8555 | fi |
| 8556 | if test -z "$ac_cpp_err"; then |
| 8557 | ac_header_preproc=yes |
| 8558 | else |
| 8559 | echo "$as_me: failed program was:" >&5 |
| 8560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8561 | |
| 8562 | ac_header_preproc=no |
| 8563 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8564 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8565 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8566 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8567 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8568 | |
| 8569 | # So? What about this header? |
| 8570 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8571 | yes:no: ) |
| 8572 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8573 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8574 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8575 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8576 | ac_header_preproc=yes |
| 8577 | ;; |
| 8578 | no:yes:* ) |
| 8579 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8580 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8581 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8582 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8583 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8584 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8585 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8586 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8588 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8589 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8590 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8591 | ( cat <<\_ASBOX |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8592 | ## ------------------------------------ ## |
| 8593 | ## Report this to wine-devel@winehq.org ## |
| 8594 | ## ------------------------------------ ## |
| 8595 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8596 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8597 | ;; |
| 8598 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8599 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8600 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8601 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8603 | else |
| 8604 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8605 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8606 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8607 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8608 | echo "${ECHO_T}$ac_res" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8609 | |
| 8610 | fi |
| 8611 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8612 | cat >>confdefs.h <<_ACEOF |
| 8613 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8614 | _ACEOF |
| 8615 | |
| 8616 | fi |
| 8617 | |
| 8618 | done |
| 8619 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8620 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 8621 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8622 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 8623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8624 | else |
| 8625 | cat >conftest.$ac_ext <<_ACEOF |
| 8626 | /* confdefs.h. */ |
| 8627 | _ACEOF |
| 8628 | cat confdefs.h >>conftest.$ac_ext |
| 8629 | cat >>conftest.$ac_ext <<_ACEOF |
| 8630 | /* end confdefs.h. */ |
| 8631 | #include <sys/types.h> |
| 8632 | #include <sys/stat.h> |
| 8633 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8634 | #if defined S_ISBLK && defined S_IFDIR |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8635 | # if S_ISBLK (S_IFDIR) |
| 8636 | You lose. |
| 8637 | # endif |
| 8638 | #endif |
| 8639 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8640 | #if defined S_ISBLK && defined S_IFCHR |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8641 | # if S_ISBLK (S_IFCHR) |
| 8642 | You lose. |
| 8643 | # endif |
| 8644 | #endif |
| 8645 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8646 | #if defined S_ISLNK && defined S_IFREG |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8647 | # if S_ISLNK (S_IFREG) |
| 8648 | You lose. |
| 8649 | # endif |
| 8650 | #endif |
| 8651 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8652 | #if defined S_ISSOCK && defined S_IFREG |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8653 | # if S_ISSOCK (S_IFREG) |
| 8654 | You lose. |
| 8655 | # endif |
| 8656 | #endif |
| 8657 | |
| 8658 | _ACEOF |
| 8659 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8660 | $EGREP "You lose" >/dev/null 2>&1; then |
| 8661 | ac_cv_header_stat_broken=yes |
| 8662 | else |
| 8663 | ac_cv_header_stat_broken=no |
| 8664 | fi |
| 8665 | rm -f conftest* |
| 8666 | |
| 8667 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8668 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 8669 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8670 | if test $ac_cv_header_stat_broken = yes; then |
| 8671 | |
| 8672 | cat >>confdefs.h <<\_ACEOF |
| 8673 | #define STAT_MACROS_BROKEN 1 |
| 8674 | _ACEOF |
| 8675 | |
| 8676 | fi |
| 8677 | |
| 8678 | |
| 8679 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8680 | |
| 8681 | |
| 8682 | |
| 8683 | |
| 8684 | for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h |
| 8685 | do |
| 8686 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8687 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8688 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8689 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8691 | else |
| 8692 | cat >conftest.$ac_ext <<_ACEOF |
| 8693 | /* confdefs.h. */ |
| 8694 | _ACEOF |
| 8695 | cat confdefs.h >>conftest.$ac_ext |
| 8696 | cat >>conftest.$ac_ext <<_ACEOF |
| 8697 | /* end confdefs.h. */ |
| 8698 | #include <sys/types.h> |
| 8699 | #if HAVE_SYS_PARAM_H |
| 8700 | # include <sys/param.h> |
| 8701 | #endif |
| 8702 | |
| 8703 | #include <$ac_header> |
| 8704 | _ACEOF |
| 8705 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8706 | if { (ac_try="$ac_compile" |
| 8707 | case "(($ac_try" in |
| 8708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8709 | *) ac_try_echo=$ac_try;; |
| 8710 | esac |
| 8711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8712 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8713 | ac_status=$? |
| 8714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8715 | rm -f conftest.er1 |
| 8716 | cat conftest.err >&5 |
| 8717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8718 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8720 | { (case "(($ac_try" in |
| 8721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8722 | *) ac_try_echo=$ac_try;; |
| 8723 | esac |
| 8724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8725 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8726 | ac_status=$? |
| 8727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8728 | (exit $ac_status); }; } && |
| 8729 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8730 | { (case "(($ac_try" in |
| 8731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8732 | *) ac_try_echo=$ac_try;; |
| 8733 | esac |
| 8734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8735 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8736 | ac_status=$? |
| 8737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8738 | (exit $ac_status); }; }; then |
| 8739 | eval "$as_ac_Header=yes" |
| 8740 | else |
| 8741 | echo "$as_me: failed program was:" >&5 |
| 8742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8743 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8744 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8745 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8746 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8748 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8749 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8750 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8751 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8752 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8753 | cat >>confdefs.h <<_ACEOF |
| 8754 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8755 | _ACEOF |
| 8756 | |
| 8757 | fi |
| 8758 | |
| 8759 | done |
| 8760 | |
| 8761 | |
| 8762 | |
| 8763 | |
| 8764 | |
| 8765 | |
| 8766 | |
| 8767 | |
| 8768 | for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h |
| 8769 | do |
| 8770 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8771 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8772 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8773 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8775 | else |
| 8776 | cat >conftest.$ac_ext <<_ACEOF |
| 8777 | /* confdefs.h. */ |
| 8778 | _ACEOF |
| 8779 | cat confdefs.h >>conftest.$ac_ext |
| 8780 | cat >>conftest.$ac_ext <<_ACEOF |
| 8781 | /* end confdefs.h. */ |
| 8782 | #include <sys/types.h> |
| 8783 | #if HAVE_SYS_SOCKET_H |
| 8784 | # include <sys/socket.h> |
| 8785 | #endif |
| 8786 | |
| 8787 | #include <$ac_header> |
| 8788 | _ACEOF |
| 8789 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8790 | if { (ac_try="$ac_compile" |
| 8791 | case "(($ac_try" in |
| 8792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8793 | *) ac_try_echo=$ac_try;; |
| 8794 | esac |
| 8795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8796 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8797 | ac_status=$? |
| 8798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8799 | rm -f conftest.er1 |
| 8800 | cat conftest.err >&5 |
| 8801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8802 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8804 | { (case "(($ac_try" in |
| 8805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8806 | *) ac_try_echo=$ac_try;; |
| 8807 | esac |
| 8808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8809 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8810 | ac_status=$? |
| 8811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8812 | (exit $ac_status); }; } && |
| 8813 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8814 | { (case "(($ac_try" in |
| 8815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8816 | *) ac_try_echo=$ac_try;; |
| 8817 | esac |
| 8818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8819 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8820 | ac_status=$? |
| 8821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8822 | (exit $ac_status); }; }; then |
| 8823 | eval "$as_ac_Header=yes" |
| 8824 | else |
| 8825 | echo "$as_me: failed program was:" >&5 |
| 8826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8827 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8828 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8829 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8830 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8832 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8833 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8834 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8835 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8836 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8837 | cat >>confdefs.h <<_ACEOF |
| 8838 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8839 | _ACEOF |
| 8840 | |
| 8841 | fi |
| 8842 | |
| 8843 | done |
| 8844 | |
| 8845 | |
| 8846 | |
| 8847 | for ac_header in resolv.h |
| 8848 | do |
| 8849 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8850 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8851 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8852 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8854 | else |
| 8855 | cat >conftest.$ac_ext <<_ACEOF |
| 8856 | /* confdefs.h. */ |
| 8857 | _ACEOF |
| 8858 | cat confdefs.h >>conftest.$ac_ext |
| 8859 | cat >>conftest.$ac_ext <<_ACEOF |
| 8860 | /* end confdefs.h. */ |
| 8861 | #include <sys/types.h> |
| 8862 | #if HAVE_SYS_SOCKET_H |
| 8863 | # include <sys/socket.h> |
| 8864 | #endif |
| 8865 | #if HAVE_NETINET_IN_H |
| 8866 | # include <netinet/in.h> |
| 8867 | #endif |
| 8868 | #if HAVE_ARPA_NAMESER_H |
| 8869 | # include <arpa/nameser.h> |
| 8870 | #endif |
| 8871 | |
| 8872 | #include <$ac_header> |
| 8873 | _ACEOF |
| 8874 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8875 | if { (ac_try="$ac_compile" |
| 8876 | case "(($ac_try" in |
| 8877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8878 | *) ac_try_echo=$ac_try;; |
| 8879 | esac |
| 8880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8881 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8882 | ac_status=$? |
| 8883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8884 | rm -f conftest.er1 |
| 8885 | cat conftest.err >&5 |
| 8886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8887 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8889 | { (case "(($ac_try" in |
| 8890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8891 | *) ac_try_echo=$ac_try;; |
| 8892 | esac |
| 8893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8894 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8895 | ac_status=$? |
| 8896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8897 | (exit $ac_status); }; } && |
| 8898 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8899 | { (case "(($ac_try" in |
| 8900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8901 | *) ac_try_echo=$ac_try;; |
| 8902 | esac |
| 8903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8904 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8905 | ac_status=$? |
| 8906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8907 | (exit $ac_status); }; }; then |
| 8908 | eval "$as_ac_Header=yes" |
| 8909 | else |
| 8910 | echo "$as_me: failed program was:" >&5 |
| 8911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8912 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8913 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8914 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8915 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8917 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8918 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8919 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8920 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8921 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8922 | cat >>confdefs.h <<_ACEOF |
| 8923 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8924 | _ACEOF |
| 8925 | |
| 8926 | fi |
| 8927 | |
| 8928 | done |
| 8929 | |
| 8930 | |
| 8931 | |
| 8932 | for ac_header in ucontext.h |
| 8933 | do |
| 8934 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8935 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8937 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8939 | else |
| 8940 | cat >conftest.$ac_ext <<_ACEOF |
| 8941 | /* confdefs.h. */ |
| 8942 | _ACEOF |
| 8943 | cat confdefs.h >>conftest.$ac_ext |
| 8944 | cat >>conftest.$ac_ext <<_ACEOF |
| 8945 | /* end confdefs.h. */ |
| 8946 | #include <signal.h> |
| 8947 | |
| 8948 | #include <$ac_header> |
| 8949 | _ACEOF |
| 8950 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8951 | if { (ac_try="$ac_compile" |
| 8952 | case "(($ac_try" in |
| 8953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8954 | *) ac_try_echo=$ac_try;; |
| 8955 | esac |
| 8956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8957 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8958 | ac_status=$? |
| 8959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8960 | rm -f conftest.er1 |
| 8961 | cat conftest.err >&5 |
| 8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8963 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8964 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8965 | { (case "(($ac_try" in |
| 8966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8967 | *) ac_try_echo=$ac_try;; |
| 8968 | esac |
| 8969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8970 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8971 | ac_status=$? |
| 8972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8973 | (exit $ac_status); }; } && |
| 8974 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8975 | { (case "(($ac_try" in |
| 8976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8977 | *) ac_try_echo=$ac_try;; |
| 8978 | esac |
| 8979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8980 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8981 | ac_status=$? |
| 8982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8983 | (exit $ac_status); }; }; then |
| 8984 | eval "$as_ac_Header=yes" |
| 8985 | else |
| 8986 | echo "$as_me: failed program was:" >&5 |
| 8987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8988 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8989 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8990 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8991 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8993 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8994 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8995 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8996 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8997 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8998 | cat >>confdefs.h <<_ACEOF |
| 8999 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9000 | _ACEOF |
| 9001 | |
| 9002 | fi |
| 9003 | |
| 9004 | done |
| 9005 | |
| 9006 | |
| 9007 | |
| 9008 | |
| 9009 | for ac_header in linux/ipx.h linux/videodev.h |
| 9010 | do |
| 9011 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9012 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9014 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9016 | else |
| 9017 | cat >conftest.$ac_ext <<_ACEOF |
| 9018 | /* confdefs.h. */ |
| 9019 | _ACEOF |
| 9020 | cat confdefs.h >>conftest.$ac_ext |
| 9021 | cat >>conftest.$ac_ext <<_ACEOF |
| 9022 | /* end confdefs.h. */ |
| 9023 | #ifdef HAVE_SYS_TIME_H |
| 9024 | #include <sys/time.h> |
| 9025 | #endif |
| 9026 | #include <sys/types.h> |
| 9027 | #ifdef HAVE_ASM_TYPES_H |
| 9028 | #include <asm/types.h> |
| 9029 | #endif |
| 9030 | |
| 9031 | #include <$ac_header> |
| 9032 | _ACEOF |
| 9033 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9034 | if { (ac_try="$ac_compile" |
| 9035 | case "(($ac_try" in |
| 9036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9037 | *) ac_try_echo=$ac_try;; |
| 9038 | esac |
| 9039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9040 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9041 | ac_status=$? |
| 9042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9043 | rm -f conftest.er1 |
| 9044 | cat conftest.err >&5 |
| 9045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9046 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9048 | { (case "(($ac_try" in |
| 9049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9050 | *) ac_try_echo=$ac_try;; |
| 9051 | esac |
| 9052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9053 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9054 | ac_status=$? |
| 9055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9056 | (exit $ac_status); }; } && |
| 9057 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9058 | { (case "(($ac_try" in |
| 9059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9060 | *) ac_try_echo=$ac_try;; |
| 9061 | esac |
| 9062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9063 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9064 | ac_status=$? |
| 9065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9066 | (exit $ac_status); }; }; then |
| 9067 | eval "$as_ac_Header=yes" |
| 9068 | else |
| 9069 | echo "$as_me: failed program was:" >&5 |
| 9070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9071 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9072 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9073 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9074 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9076 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9077 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9078 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9079 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9080 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9081 | cat >>confdefs.h <<_ACEOF |
| 9082 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9083 | _ACEOF |
| 9084 | |
| 9085 | fi |
| 9086 | |
| 9087 | done |
| 9088 | |
| 9089 | |
| 9090 | |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9091 | for ac_header in linux/capi.h |
| 9092 | do |
| 9093 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9094 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9096 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9098 | else |
| 9099 | cat >conftest.$ac_ext <<_ACEOF |
| 9100 | /* confdefs.h. */ |
| 9101 | _ACEOF |
| 9102 | cat confdefs.h >>conftest.$ac_ext |
| 9103 | cat >>conftest.$ac_ext <<_ACEOF |
| 9104 | /* end confdefs.h. */ |
| 9105 | #define __user |
| 9106 | |
| 9107 | #include <$ac_header> |
| 9108 | _ACEOF |
| 9109 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9110 | if { (ac_try="$ac_compile" |
| 9111 | case "(($ac_try" in |
| 9112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9113 | *) ac_try_echo=$ac_try;; |
| 9114 | esac |
| 9115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9116 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9117 | ac_status=$? |
| 9118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9119 | rm -f conftest.er1 |
| 9120 | cat conftest.err >&5 |
| 9121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9122 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9124 | { (case "(($ac_try" in |
| 9125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9126 | *) ac_try_echo=$ac_try;; |
| 9127 | esac |
| 9128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9129 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9130 | ac_status=$? |
| 9131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9132 | (exit $ac_status); }; } && |
| 9133 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9134 | { (case "(($ac_try" in |
| 9135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9136 | *) ac_try_echo=$ac_try;; |
| 9137 | esac |
| 9138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9139 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9140 | ac_status=$? |
| 9141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9142 | (exit $ac_status); }; }; then |
| 9143 | eval "$as_ac_Header=yes" |
| 9144 | else |
| 9145 | echo "$as_me: failed program was:" >&5 |
| 9146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9147 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9148 | eval "$as_ac_Header=no" |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9149 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9150 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9152 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9153 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9154 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9155 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9156 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9157 | cat >>confdefs.h <<_ACEOF |
| 9158 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9159 | _ACEOF |
| 9160 | |
| 9161 | fi |
| 9162 | |
| 9163 | done |
| 9164 | |
| 9165 | |
| 9166 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 9167 | if test "$have_x" = "yes" |
| 9168 | then |
| 9169 | XLIB="-lXext -lX11" |
| 9170 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9171 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 9172 | |
| 9173 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9174 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9175 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9176 | |
| 9177 | |
| 9178 | |
| 9179 | |
| 9180 | |
| 9181 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9182 | for ac_header in X11/Xlib.h \ |
| 9183 | X11/XKBlib.h \ |
| 9184 | X11/Xutil.h \ |
| 9185 | X11/extensions/shape.h \ |
| 9186 | X11/extensions/XInput.h \ |
| 9187 | X11/extensions/XShm.h \ |
| 9188 | X11/extensions/Xrandr.h \ |
| 9189 | X11/extensions/Xrender.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9190 | X11/extensions/xf86vmode.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 9191 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9192 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9193 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9195 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9197 | else |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 9198 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9199 | /* confdefs.h. */ |
| 9200 | _ACEOF |
| 9201 | cat confdefs.h >>conftest.$ac_ext |
| 9202 | cat >>conftest.$ac_ext <<_ACEOF |
| 9203 | /* end confdefs.h. */ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9204 | #ifdef HAVE_X11_XLIB_H |
| 9205 | # include <X11/Xlib.h> |
| 9206 | #endif |
| 9207 | #ifdef HAVE_X11_XUTIL_H |
| 9208 | # include <X11/Xutil.h> |
| 9209 | #endif |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 9210 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9211 | #include <$ac_header> |
| 9212 | _ACEOF |
| 9213 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9214 | if { (ac_try="$ac_compile" |
| 9215 | case "(($ac_try" in |
| 9216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9217 | *) ac_try_echo=$ac_try;; |
| 9218 | esac |
| 9219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9220 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9221 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9223 | rm -f conftest.er1 |
| 9224 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9226 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9227 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9228 | { (case "(($ac_try" in |
| 9229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9230 | *) ac_try_echo=$ac_try;; |
| 9231 | esac |
| 9232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9233 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9234 | ac_status=$? |
| 9235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9236 | (exit $ac_status); }; } && |
| 9237 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9238 | { (case "(($ac_try" in |
| 9239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9240 | *) ac_try_echo=$ac_try;; |
| 9241 | esac |
| 9242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9243 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9244 | ac_status=$? |
| 9245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9246 | (exit $ac_status); }; }; then |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 9247 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9248 | else |
| 9249 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9251 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9252 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9253 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9254 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 9256 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9257 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9258 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9259 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9260 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9261 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9262 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9263 | _ACEOF |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9264 | |
| 9265 | fi |
| 9266 | |
| 9267 | done |
| 9268 | |
| 9269 | |
| 9270 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" |
| 9271 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9272 | { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
| 9273 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9274 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 9275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9276 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9277 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9278 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9279 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9280 | /* confdefs.h. */ |
| 9281 | _ACEOF |
| 9282 | cat confdefs.h >>conftest.$ac_ext |
| 9283 | cat >>conftest.$ac_ext <<_ACEOF |
| 9284 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9285 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9286 | /* Override any GCC internal prototype to avoid an error. |
| 9287 | Use char because int might match the return type of a GCC |
| 9288 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9289 | #ifdef __cplusplus |
| 9290 | extern "C" |
| 9291 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9292 | char XkbQueryExtension (); |
| 9293 | int |
| 9294 | main () |
| 9295 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9296 | return XkbQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9297 | ; |
| 9298 | return 0; |
| 9299 | } |
| 9300 | _ACEOF |
| 9301 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9302 | if { (ac_try="$ac_link" |
| 9303 | case "(($ac_try" in |
| 9304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9305 | *) ac_try_echo=$ac_try;; |
| 9306 | esac |
| 9307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9308 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9309 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9311 | rm -f conftest.er1 |
| 9312 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9314 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9315 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9316 | { (case "(($ac_try" in |
| 9317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9318 | *) ac_try_echo=$ac_try;; |
| 9319 | esac |
| 9320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9321 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9322 | ac_status=$? |
| 9323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9324 | (exit $ac_status); }; } && |
| 9325 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9326 | { (case "(($ac_try" in |
| 9327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9328 | *) ac_try_echo=$ac_try;; |
| 9329 | esac |
| 9330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9331 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9332 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9334 | (exit $ac_status); }; }; then |
| 9335 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9336 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9337 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9339 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9340 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9341 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9342 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9343 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9344 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9345 | LIBS=$ac_check_lib_save_LIBS |
| 9346 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9347 | { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
| 9348 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9349 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9350 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9351 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9352 | #define HAVE_XKB 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9353 | _ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9354 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9355 | fi |
| 9356 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9357 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9358 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9359 | if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 9360 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9361 | { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
| 9362 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9363 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 9364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9365 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9366 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9367 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9368 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9369 | /* confdefs.h. */ |
| 9370 | _ACEOF |
| 9371 | cat confdefs.h >>conftest.$ac_ext |
| 9372 | cat >>conftest.$ac_ext <<_ACEOF |
| 9373 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9374 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9375 | /* Override any GCC internal prototype to avoid an error. |
| 9376 | Use char because int might match the return type of a GCC |
| 9377 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9378 | #ifdef __cplusplus |
| 9379 | extern "C" |
| 9380 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9381 | char XShmQueryExtension (); |
| 9382 | int |
| 9383 | main () |
| 9384 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9385 | return XShmQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9386 | ; |
| 9387 | return 0; |
| 9388 | } |
| 9389 | _ACEOF |
| 9390 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9391 | if { (ac_try="$ac_link" |
| 9392 | case "(($ac_try" in |
| 9393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9394 | *) ac_try_echo=$ac_try;; |
| 9395 | esac |
| 9396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9397 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9398 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9400 | rm -f conftest.er1 |
| 9401 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9403 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9405 | { (case "(($ac_try" in |
| 9406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9407 | *) ac_try_echo=$ac_try;; |
| 9408 | esac |
| 9409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9410 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9411 | ac_status=$? |
| 9412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9413 | (exit $ac_status); }; } && |
| 9414 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9415 | { (case "(($ac_try" in |
| 9416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9417 | *) ac_try_echo=$ac_try;; |
| 9418 | esac |
| 9419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9420 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9421 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9423 | (exit $ac_status); }; }; then |
| 9424 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9425 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9426 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9428 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9429 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9430 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9431 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9432 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9433 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9434 | LIBS=$ac_check_lib_save_LIBS |
| 9435 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9436 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
| 9437 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9438 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9439 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9440 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9441 | #define HAVE_LIBXXSHM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9442 | _ACEOF |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9443 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9444 | fi |
| 9445 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9446 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9447 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9448 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
| 9449 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9450 | { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 9451 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9452 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 9453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9454 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9455 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9456 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9457 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9458 | /* confdefs.h. */ |
| 9459 | _ACEOF |
| 9460 | cat confdefs.h >>conftest.$ac_ext |
| 9461 | cat >>conftest.$ac_ext <<_ACEOF |
| 9462 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9463 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9464 | /* Override any GCC internal prototype to avoid an error. |
| 9465 | Use char because int might match the return type of a GCC |
| 9466 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9467 | #ifdef __cplusplus |
| 9468 | extern "C" |
| 9469 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9470 | char XShapeQueryExtension (); |
| 9471 | int |
| 9472 | main () |
| 9473 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9474 | return XShapeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9475 | ; |
| 9476 | return 0; |
| 9477 | } |
| 9478 | _ACEOF |
| 9479 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9480 | if { (ac_try="$ac_link" |
| 9481 | case "(($ac_try" in |
| 9482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9483 | *) ac_try_echo=$ac_try;; |
| 9484 | esac |
| 9485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9486 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9487 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9489 | rm -f conftest.er1 |
| 9490 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9492 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9493 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9494 | { (case "(($ac_try" in |
| 9495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9496 | *) ac_try_echo=$ac_try;; |
| 9497 | esac |
| 9498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9499 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9500 | ac_status=$? |
| 9501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9502 | (exit $ac_status); }; } && |
| 9503 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9504 | { (case "(($ac_try" in |
| 9505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9506 | *) ac_try_echo=$ac_try;; |
| 9507 | esac |
| 9508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9509 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9510 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9512 | (exit $ac_status); }; }; then |
| 9513 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9514 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9515 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9517 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9518 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9519 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9520 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9521 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9522 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9523 | LIBS=$ac_check_lib_save_LIBS |
| 9524 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9525 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 9526 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9527 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9528 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9529 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9530 | #define HAVE_LIBXSHAPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9531 | _ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9532 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9533 | fi |
| 9534 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9535 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9536 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9537 | if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" |
| 9538 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9539 | { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
| 9540 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9541 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 9542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9543 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9544 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9545 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9546 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9547 | /* confdefs.h. */ |
| 9548 | _ACEOF |
| 9549 | cat confdefs.h >>conftest.$ac_ext |
| 9550 | cat >>conftest.$ac_ext <<_ACEOF |
| 9551 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9552 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9553 | /* Override any GCC internal prototype to avoid an error. |
| 9554 | Use char because int might match the return type of a GCC |
| 9555 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9556 | #ifdef __cplusplus |
| 9557 | extern "C" |
| 9558 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9559 | char XF86VidModeQueryExtension (); |
| 9560 | int |
| 9561 | main () |
| 9562 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9563 | return XF86VidModeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9564 | ; |
| 9565 | return 0; |
| 9566 | } |
| 9567 | _ACEOF |
| 9568 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9569 | if { (ac_try="$ac_link" |
| 9570 | case "(($ac_try" in |
| 9571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9572 | *) ac_try_echo=$ac_try;; |
| 9573 | esac |
| 9574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9575 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9576 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9578 | rm -f conftest.er1 |
| 9579 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9581 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9583 | { (case "(($ac_try" in |
| 9584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9585 | *) ac_try_echo=$ac_try;; |
| 9586 | esac |
| 9587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9588 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9589 | ac_status=$? |
| 9590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9591 | (exit $ac_status); }; } && |
| 9592 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9593 | { (case "(($ac_try" in |
| 9594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9595 | *) ac_try_echo=$ac_try;; |
| 9596 | esac |
| 9597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9598 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9599 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9601 | (exit $ac_status); }; }; then |
| 9602 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9603 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9604 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9606 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9607 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9608 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9609 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9610 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9611 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9612 | LIBS=$ac_check_lib_save_LIBS |
| 9613 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9614 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
| 9615 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9616 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9617 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9618 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9619 | #define HAVE_LIBXXF86VM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9620 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 9621 | |
| 9622 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9623 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9624 | fi |
| 9625 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9626 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9627 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9628 | if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" |
| 9629 | then |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9630 | cat >conftest.$ac_ext <<_ACEOF |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9631 | /* confdefs.h. */ |
| 9632 | _ACEOF |
| 9633 | cat confdefs.h >>conftest.$ac_ext |
| 9634 | cat >>conftest.$ac_ext <<_ACEOF |
| 9635 | /* end confdefs.h. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9636 | #include <X11/Xlib.h> |
| 9637 | #include <X11/extensions/Xrandr.h> |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9638 | int |
| 9639 | main () |
| 9640 | { |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9641 | static typeof(XRRSetScreenConfigAndRate) * func; |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9642 | ; |
| 9643 | return 0; |
| 9644 | } |
| 9645 | _ACEOF |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9646 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9647 | if { (ac_try="$ac_compile" |
| 9648 | case "(($ac_try" in |
| 9649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9650 | *) ac_try_echo=$ac_try;; |
| 9651 | esac |
| 9652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9653 | (eval "$ac_compile") 2>conftest.er1 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9654 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9656 | rm -f conftest.er1 |
| 9657 | cat conftest.err >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9659 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9660 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9661 | { (case "(($ac_try" in |
| 9662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9663 | *) ac_try_echo=$ac_try;; |
| 9664 | esac |
| 9665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9666 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9667 | ac_status=$? |
| 9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9669 | (exit $ac_status); }; } && |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9670 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9671 | { (case "(($ac_try" in |
| 9672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9673 | *) ac_try_echo=$ac_try;; |
| 9674 | esac |
| 9675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9676 | (eval "$ac_try") 2>&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9677 | ac_status=$? |
| 9678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9679 | (exit $ac_status); }; }; then |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9680 | |
| 9681 | cat >>confdefs.h <<\_ACEOF |
| 9682 | #define HAVE_LIBXRANDR 1 |
| 9683 | _ACEOF |
| 9684 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9685 | else |
| 9686 | echo "$as_me: failed program was:" >&5 |
| 9687 | sed 's/^/| /' conftest.$ac_ext >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9688 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9689 | |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9690 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9691 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9693 | fi |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9694 | |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9695 | if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" |
| 9696 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9697 | { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5 |
| 9698 | echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; } |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9699 | if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then |
| 9700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9701 | else |
| 9702 | ac_check_lib_save_LIBS=$LIBS |
| 9703 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 9704 | cat >conftest.$ac_ext <<_ACEOF |
| 9705 | /* confdefs.h. */ |
| 9706 | _ACEOF |
| 9707 | cat confdefs.h >>conftest.$ac_ext |
| 9708 | cat >>conftest.$ac_ext <<_ACEOF |
| 9709 | /* end confdefs.h. */ |
| 9710 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9711 | /* Override any GCC internal prototype to avoid an error. |
| 9712 | Use char because int might match the return type of a GCC |
| 9713 | builtin and then its argument prototype would still apply. */ |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9714 | #ifdef __cplusplus |
| 9715 | extern "C" |
| 9716 | #endif |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9717 | char XRenderSetPictureTransform (); |
| 9718 | int |
| 9719 | main () |
| 9720 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9721 | return XRenderSetPictureTransform (); |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9722 | ; |
| 9723 | return 0; |
| 9724 | } |
| 9725 | _ACEOF |
| 9726 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9727 | if { (ac_try="$ac_link" |
| 9728 | case "(($ac_try" in |
| 9729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9730 | *) ac_try_echo=$ac_try;; |
| 9731 | esac |
| 9732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9733 | (eval "$ac_link") 2>conftest.er1 |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9734 | ac_status=$? |
| 9735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9736 | rm -f conftest.er1 |
| 9737 | cat conftest.err >&5 |
| 9738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9739 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9740 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9741 | { (case "(($ac_try" in |
| 9742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9743 | *) ac_try_echo=$ac_try;; |
| 9744 | esac |
| 9745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9746 | (eval "$ac_try") 2>&5 |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9747 | ac_status=$? |
| 9748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9749 | (exit $ac_status); }; } && |
| 9750 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9751 | { (case "(($ac_try" in |
| 9752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9753 | *) ac_try_echo=$ac_try;; |
| 9754 | esac |
| 9755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9756 | (eval "$ac_try") 2>&5 |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9757 | ac_status=$? |
| 9758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9759 | (exit $ac_status); }; }; then |
| 9760 | ac_cv_lib_Xrender_XRenderSetPictureTransform=yes |
| 9761 | else |
| 9762 | echo "$as_me: failed program was:" >&5 |
| 9763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9764 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9765 | ac_cv_lib_Xrender_XRenderSetPictureTransform=no |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9766 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9767 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9768 | rm -f core conftest.err conftest.$ac_objext \ |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9769 | conftest$ac_exeext conftest.$ac_ext |
| 9770 | LIBS=$ac_check_lib_save_LIBS |
| 9771 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9772 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5 |
| 9773 | echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; } |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9774 | if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then |
| 9775 | |
| 9776 | cat >>confdefs.h <<\_ACEOF |
| 9777 | #define HAVE_XRENDERSETPICTURETRANSFORM 1 |
| 9778 | _ACEOF |
| 9779 | |
| 9780 | fi |
| 9781 | |
| 9782 | fi |
| 9783 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 9784 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9785 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9786 | |
| 9787 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9788 | |
Huw Davies | 4eb4546 | 2006-03-07 13:55:35 +0000 | [diff] [blame] | 9789 | |
| 9790 | for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9791 | do |
| 9792 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9793 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9794 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9795 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9797 | else |
| 9798 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9799 | /* confdefs.h. */ |
| 9800 | _ACEOF |
| 9801 | cat confdefs.h >>conftest.$ac_ext |
| 9802 | cat >>conftest.$ac_ext <<_ACEOF |
| 9803 | /* end confdefs.h. */ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9804 | #ifdef HAVE_GL_GLX_H |
| 9805 | # include <GL/glx.h> |
| 9806 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9807 | |
| 9808 | #include <$ac_header> |
| 9809 | _ACEOF |
| 9810 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9811 | if { (ac_try="$ac_compile" |
| 9812 | case "(($ac_try" in |
| 9813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9814 | *) ac_try_echo=$ac_try;; |
| 9815 | esac |
| 9816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9817 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9818 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9820 | rm -f conftest.er1 |
| 9821 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9823 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9824 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9825 | { (case "(($ac_try" in |
| 9826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9827 | *) ac_try_echo=$ac_try;; |
| 9828 | esac |
| 9829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9830 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9831 | ac_status=$? |
| 9832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9833 | (exit $ac_status); }; } && |
| 9834 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9835 | { (case "(($ac_try" in |
| 9836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9837 | *) ac_try_echo=$ac_try;; |
| 9838 | esac |
| 9839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9840 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9841 | ac_status=$? |
| 9842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9843 | (exit $ac_status); }; }; then |
| 9844 | eval "$as_ac_Header=yes" |
| 9845 | else |
| 9846 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9848 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9849 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9850 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9851 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9853 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9854 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9855 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9856 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9857 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9858 | cat >>confdefs.h <<_ACEOF |
| 9859 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9860 | _ACEOF |
| 9861 | |
| 9862 | fi |
| 9863 | |
| 9864 | done |
| 9865 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9866 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
| 9867 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9868 | { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
| 9869 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9870 | if test "${wine_cv_opengl_version_OK+set}" = set; then |
| 9871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9872 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9873 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9874 | /* confdefs.h. */ |
| 9875 | _ACEOF |
| 9876 | cat confdefs.h >>conftest.$ac_ext |
| 9877 | cat >>conftest.$ac_ext <<_ACEOF |
| 9878 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9879 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9880 | int |
| 9881 | main () |
| 9882 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9883 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9884 | ; |
| 9885 | return 0; |
| 9886 | } |
| 9887 | _ACEOF |
| 9888 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9889 | if { (ac_try="$ac_compile" |
| 9890 | case "(($ac_try" in |
| 9891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9892 | *) ac_try_echo=$ac_try;; |
| 9893 | esac |
| 9894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9895 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9896 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9898 | rm -f conftest.er1 |
| 9899 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9901 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9903 | { (case "(($ac_try" in |
| 9904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9905 | *) ac_try_echo=$ac_try;; |
| 9906 | esac |
| 9907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9908 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9909 | ac_status=$? |
| 9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9911 | (exit $ac_status); }; } && |
| 9912 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9913 | { (case "(($ac_try" in |
| 9914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9915 | *) ac_try_echo=$ac_try;; |
| 9916 | esac |
| 9917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9918 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9919 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9921 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 9922 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9923 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9924 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9926 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9927 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9928 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9929 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9930 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9932 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9933 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9934 | { echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5 |
| 9935 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9936 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 9937 | if test "$wine_cv_opengl_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9938 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9939 | { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
| 9940 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9941 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 9942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9943 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9944 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 9945 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9946 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9947 | /* confdefs.h. */ |
| 9948 | _ACEOF |
| 9949 | cat confdefs.h >>conftest.$ac_ext |
| 9950 | cat >>conftest.$ac_ext <<_ACEOF |
| 9951 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9952 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9953 | /* Override any GCC internal prototype to avoid an error. |
| 9954 | Use char because int might match the return type of a GCC |
| 9955 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9956 | #ifdef __cplusplus |
| 9957 | extern "C" |
| 9958 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9959 | char glXCreateContext (); |
| 9960 | int |
| 9961 | main () |
| 9962 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9963 | return glXCreateContext (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9964 | ; |
| 9965 | return 0; |
| 9966 | } |
| 9967 | _ACEOF |
| 9968 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9969 | if { (ac_try="$ac_link" |
| 9970 | case "(($ac_try" in |
| 9971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9972 | *) ac_try_echo=$ac_try;; |
| 9973 | esac |
| 9974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9975 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9976 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9978 | rm -f conftest.er1 |
| 9979 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9981 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9983 | { (case "(($ac_try" in |
| 9984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9985 | *) ac_try_echo=$ac_try;; |
| 9986 | esac |
| 9987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9988 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9989 | ac_status=$? |
| 9990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9991 | (exit $ac_status); }; } && |
| 9992 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9993 | { (case "(($ac_try" in |
| 9994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9995 | *) ac_try_echo=$ac_try;; |
| 9996 | esac |
| 9997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9998 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9999 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10001 | (exit $ac_status); }; }; then |
| 10002 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 10003 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10004 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10006 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10007 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 10008 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10009 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10010 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10011 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10012 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 10013 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10014 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
| 10015 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10016 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 10017 | OPENGL_LIBS="-lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 10018 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10019 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 10020 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10021 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 10022 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 10023 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 10024 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10025 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10026 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 10027 | #define HAVE_OPENGL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10028 | _ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 10029 | |
Anderson Lizardo | 5a2da4e | 2005-07-25 11:12:11 +0000 | [diff] [blame] | 10030 | else |
| 10031 | if test -f /usr/X11R6/lib/libGL.a |
| 10032 | then |
| 10033 | { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 10034 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 10035 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 10036 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 10037 | { (exit 1); exit 1; }; } |
| 10038 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 10039 | fi |
Anderson Lizardo | 5a2da4e | 2005-07-25 11:12:11 +0000 | [diff] [blame] | 10040 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10041 | { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
| 10042 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10043 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 10044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10045 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10046 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 10047 | LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10048 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10049 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10050 | /* confdefs.h. */ |
| 10051 | _ACEOF |
| 10052 | cat confdefs.h >>conftest.$ac_ext |
| 10053 | cat >>conftest.$ac_ext <<_ACEOF |
| 10054 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10055 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10056 | /* Override any GCC internal prototype to avoid an error. |
| 10057 | Use char because int might match the return type of a GCC |
| 10058 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10059 | #ifdef __cplusplus |
| 10060 | extern "C" |
| 10061 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10062 | char gluLookAt (); |
| 10063 | int |
| 10064 | main () |
| 10065 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10066 | return gluLookAt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10067 | ; |
| 10068 | return 0; |
| 10069 | } |
| 10070 | _ACEOF |
| 10071 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10072 | if { (ac_try="$ac_link" |
| 10073 | case "(($ac_try" in |
| 10074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10075 | *) ac_try_echo=$ac_try;; |
| 10076 | esac |
| 10077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10078 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10079 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10081 | rm -f conftest.er1 |
| 10082 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10084 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10086 | { (case "(($ac_try" in |
| 10087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10088 | *) ac_try_echo=$ac_try;; |
| 10089 | esac |
| 10090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10091 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10092 | ac_status=$? |
| 10093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10094 | (exit $ac_status); }; } && |
| 10095 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10096 | { (case "(($ac_try" in |
| 10097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10098 | *) ac_try_echo=$ac_try;; |
| 10099 | esac |
| 10100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10101 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10102 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10104 | (exit $ac_status); }; }; then |
| 10105 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10106 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10107 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10109 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10110 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10111 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10112 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10113 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10114 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10115 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10116 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10117 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
| 10118 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10119 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 10120 | OPENGL_LIBS="$OPENGL_LIBS -lGLU" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10121 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10122 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10123 | fi |
| 10124 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 10125 | fi |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10126 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10127 | { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5 |
| 10128 | echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; } |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10129 | if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then |
| 10130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10131 | else |
| 10132 | ac_check_lib_save_LIBS=$LIBS |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 10133 | LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS" |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10134 | cat >conftest.$ac_ext <<_ACEOF |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10135 | /* confdefs.h. */ |
| 10136 | _ACEOF |
| 10137 | cat confdefs.h >>conftest.$ac_ext |
| 10138 | cat >>conftest.$ac_ext <<_ACEOF |
| 10139 | /* end confdefs.h. */ |
| 10140 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10141 | /* Override any GCC internal prototype to avoid an error. |
| 10142 | Use char because int might match the return type of a GCC |
| 10143 | builtin and then its argument prototype would still apply. */ |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10144 | #ifdef __cplusplus |
| 10145 | extern "C" |
| 10146 | #endif |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10147 | char glutMainLoop (); |
| 10148 | int |
| 10149 | main () |
| 10150 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10151 | return glutMainLoop (); |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10152 | ; |
| 10153 | return 0; |
| 10154 | } |
| 10155 | _ACEOF |
| 10156 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10157 | if { (ac_try="$ac_link" |
| 10158 | case "(($ac_try" in |
| 10159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10160 | *) ac_try_echo=$ac_try;; |
| 10161 | esac |
| 10162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10163 | (eval "$ac_link") 2>conftest.er1 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10164 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10166 | rm -f conftest.er1 |
| 10167 | cat conftest.err >&5 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10169 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10170 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10171 | { (case "(($ac_try" in |
| 10172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10173 | *) ac_try_echo=$ac_try;; |
| 10174 | esac |
| 10175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10176 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10177 | ac_status=$? |
| 10178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10179 | (exit $ac_status); }; } && |
| 10180 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10181 | { (case "(($ac_try" in |
| 10182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10183 | *) ac_try_echo=$ac_try;; |
| 10184 | esac |
| 10185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10186 | (eval "$ac_try") 2>&5 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10187 | ac_status=$? |
| 10188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10189 | (exit $ac_status); }; }; then |
| 10190 | ac_cv_lib_glut_glutMainLoop=yes |
| 10191 | else |
| 10192 | echo "$as_me: failed program was:" >&5 |
| 10193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10194 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10195 | ac_cv_lib_glut_glutMainLoop=no |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10196 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10197 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10198 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10199 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10200 | LIBS=$ac_check_lib_save_LIBS |
| 10201 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10202 | { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5 |
| 10203 | echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; } |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10204 | if test $ac_cv_lib_glut_glutMainLoop = yes; then |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 10205 | GLUT_LIBS="-lglut -lXmu -lXi" |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10206 | |
| 10207 | GLUT32FILES='$(GLUT32FILES)' |
| 10208 | |
| 10209 | fi |
| 10210 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 10211 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 10212 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 10213 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10214 | NASLIBS="" |
| 10215 | |
| 10216 | |
| 10217 | for ac_header in audio/audiolib.h |
| 10218 | do |
| 10219 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10220 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10221 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10222 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10223 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10225 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10226 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10227 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10228 | echo "${ECHO_T}$ac_res" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10229 | else |
| 10230 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10231 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10232 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10233 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10234 | /* confdefs.h. */ |
| 10235 | _ACEOF |
| 10236 | cat confdefs.h >>conftest.$ac_ext |
| 10237 | cat >>conftest.$ac_ext <<_ACEOF |
| 10238 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10239 | $ac_includes_default |
| 10240 | #include <$ac_header> |
| 10241 | _ACEOF |
| 10242 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10243 | if { (ac_try="$ac_compile" |
| 10244 | case "(($ac_try" in |
| 10245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10246 | *) ac_try_echo=$ac_try;; |
| 10247 | esac |
| 10248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10249 | (eval "$ac_compile") 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10250 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10252 | rm -f conftest.er1 |
| 10253 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10255 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10257 | { (case "(($ac_try" in |
| 10258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10259 | *) ac_try_echo=$ac_try;; |
| 10260 | esac |
| 10261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10262 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10263 | ac_status=$? |
| 10264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10265 | (exit $ac_status); }; } && |
| 10266 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10267 | { (case "(($ac_try" in |
| 10268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10269 | *) ac_try_echo=$ac_try;; |
| 10270 | esac |
| 10271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10272 | (eval "$ac_try") 2>&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10273 | ac_status=$? |
| 10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10275 | (exit $ac_status); }; }; then |
| 10276 | ac_header_compiler=yes |
| 10277 | else |
| 10278 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10280 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10281 | ac_header_compiler=no |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10282 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10283 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10285 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10286 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10287 | |
| 10288 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10289 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10290 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10291 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10292 | /* confdefs.h. */ |
| 10293 | _ACEOF |
| 10294 | cat confdefs.h >>conftest.$ac_ext |
| 10295 | cat >>conftest.$ac_ext <<_ACEOF |
| 10296 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10297 | #include <$ac_header> |
| 10298 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10299 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10300 | case "(($ac_try" in |
| 10301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10302 | *) ac_try_echo=$ac_try;; |
| 10303 | esac |
| 10304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10305 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10306 | ac_status=$? |
| 10307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10308 | rm -f conftest.er1 |
| 10309 | cat conftest.err >&5 |
| 10310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10311 | (exit $ac_status); } >/dev/null; then |
| 10312 | if test -s conftest.err; then |
| 10313 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10314 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10315 | else |
| 10316 | ac_cpp_err= |
| 10317 | fi |
| 10318 | else |
| 10319 | ac_cpp_err=yes |
| 10320 | fi |
| 10321 | if test -z "$ac_cpp_err"; then |
| 10322 | ac_header_preproc=yes |
| 10323 | else |
| 10324 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10326 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10327 | ac_header_preproc=no |
| 10328 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10329 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10330 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10331 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10332 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10333 | |
| 10334 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10335 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10336 | yes:no: ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10337 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10338 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10339 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10340 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10341 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10342 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10343 | no:yes:* ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10344 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10345 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10346 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10347 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10348 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10349 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10350 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10351 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10353 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10354 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10355 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10356 | ( cat <<\_ASBOX |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10357 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10358 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10359 | ## ------------------------------------ ## |
| 10360 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10361 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10362 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10363 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10364 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10368 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10369 | eval "$as_ac_Header=\$ac_header_preproc" |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10370 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10371 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10372 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10373 | echo "${ECHO_T}$ac_res" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10374 | |
| 10375 | fi |
| 10376 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10377 | cat >>confdefs.h <<_ACEOF |
| 10378 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10379 | _ACEOF |
| 10380 | |
| 10381 | for ac_header in audio/soundlib.h |
| 10382 | do |
| 10383 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10384 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10385 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10386 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10388 | else |
| 10389 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10390 | /* confdefs.h. */ |
| 10391 | _ACEOF |
| 10392 | cat confdefs.h >>conftest.$ac_ext |
| 10393 | cat >>conftest.$ac_ext <<_ACEOF |
| 10394 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10395 | #include <audio/audiolib.h> |
| 10396 | |
| 10397 | #include <$ac_header> |
| 10398 | _ACEOF |
| 10399 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10400 | if { (ac_try="$ac_compile" |
| 10401 | case "(($ac_try" in |
| 10402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10403 | *) ac_try_echo=$ac_try;; |
| 10404 | esac |
| 10405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10406 | (eval "$ac_compile") 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10407 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10409 | rm -f conftest.er1 |
| 10410 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10412 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10413 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10414 | { (case "(($ac_try" in |
| 10415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10416 | *) ac_try_echo=$ac_try;; |
| 10417 | esac |
| 10418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10419 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10420 | ac_status=$? |
| 10421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10422 | (exit $ac_status); }; } && |
| 10423 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10424 | { (case "(($ac_try" in |
| 10425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10426 | *) ac_try_echo=$ac_try;; |
| 10427 | esac |
| 10428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10429 | (eval "$ac_try") 2>&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10430 | ac_status=$? |
| 10431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10432 | (exit $ac_status); }; }; then |
| 10433 | eval "$as_ac_Header=yes" |
| 10434 | else |
| 10435 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10437 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10438 | eval "$as_ac_Header=no" |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10439 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10440 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10442 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10443 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10444 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10445 | echo "${ECHO_T}$ac_res" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10446 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10447 | cat >>confdefs.h <<_ACEOF |
| 10448 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10449 | _ACEOF |
| 10450 | |
| 10451 | fi |
| 10452 | |
| 10453 | done |
| 10454 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10455 | { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
| 10456 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10457 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
| 10458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10459 | else |
| 10460 | ac_check_lib_save_LIBS=$LIBS |
| 10461 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 10462 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10463 | /* confdefs.h. */ |
| 10464 | _ACEOF |
| 10465 | cat confdefs.h >>conftest.$ac_ext |
| 10466 | cat >>conftest.$ac_ext <<_ACEOF |
| 10467 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10468 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10469 | /* Override any GCC internal prototype to avoid an error. |
| 10470 | Use char because int might match the return type of a GCC |
| 10471 | builtin and then its argument prototype would still apply. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10472 | #ifdef __cplusplus |
| 10473 | extern "C" |
| 10474 | #endif |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10475 | char AuCreateFlow (); |
| 10476 | int |
| 10477 | main () |
| 10478 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10479 | return AuCreateFlow (); |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10480 | ; |
| 10481 | return 0; |
| 10482 | } |
| 10483 | _ACEOF |
| 10484 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10485 | if { (ac_try="$ac_link" |
| 10486 | case "(($ac_try" in |
| 10487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10488 | *) ac_try_echo=$ac_try;; |
| 10489 | esac |
| 10490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10491 | (eval "$ac_link") 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10492 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10494 | rm -f conftest.er1 |
| 10495 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10497 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10498 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10499 | { (case "(($ac_try" in |
| 10500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10501 | *) ac_try_echo=$ac_try;; |
| 10502 | esac |
| 10503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10504 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10505 | ac_status=$? |
| 10506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10507 | (exit $ac_status); }; } && |
| 10508 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10509 | { (case "(($ac_try" in |
| 10510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10511 | *) ac_try_echo=$ac_try;; |
| 10512 | esac |
| 10513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10514 | (eval "$ac_try") 2>&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10515 | ac_status=$? |
| 10516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10517 | (exit $ac_status); }; }; then |
| 10518 | ac_cv_lib_audio_AuCreateFlow=yes |
| 10519 | else |
| 10520 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10522 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10523 | ac_cv_lib_audio_AuCreateFlow=no |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10524 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10525 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10526 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10527 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10528 | LIBS=$ac_check_lib_save_LIBS |
| 10529 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10530 | { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
| 10531 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10532 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
| 10533 | |
| 10534 | cat >>confdefs.h <<\_ACEOF |
| 10535 | #define HAVE_NAS 1 |
| 10536 | _ACEOF |
| 10537 | |
| 10538 | NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS" |
| 10539 | fi |
| 10540 | |
| 10541 | fi |
| 10542 | |
| 10543 | done |
| 10544 | |
| 10545 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 10546 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 10547 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 10548 | else |
| 10549 | XLIB="" |
| 10550 | X_CFLAGS="" |
| 10551 | X_LIBS="" |
| 10552 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 10553 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10554 | |
| 10555 | XML2LIBS="" |
| 10556 | |
| 10557 | XML2INCL="" |
| 10558 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10559 | XSLTLIBS="" |
| 10560 | |
| 10561 | XSLTINCL="" |
| 10562 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10563 | if test "$PKG_CONFIG" != "false" |
| 10564 | then |
| 10565 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 10566 | ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`" |
| 10567 | ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`" |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10568 | CPPFLAGS="$CPPFLAGS $ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10569 | |
| 10570 | for ac_header in libxml/parser.h |
| 10571 | do |
| 10572 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10573 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10574 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10576 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10578 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10579 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10580 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10581 | echo "${ECHO_T}$ac_res" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10582 | else |
| 10583 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10584 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10585 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10586 | cat >conftest.$ac_ext <<_ACEOF |
| 10587 | /* confdefs.h. */ |
| 10588 | _ACEOF |
| 10589 | cat confdefs.h >>conftest.$ac_ext |
| 10590 | cat >>conftest.$ac_ext <<_ACEOF |
| 10591 | /* end confdefs.h. */ |
| 10592 | $ac_includes_default |
| 10593 | #include <$ac_header> |
| 10594 | _ACEOF |
| 10595 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10596 | if { (ac_try="$ac_compile" |
| 10597 | case "(($ac_try" in |
| 10598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10599 | *) ac_try_echo=$ac_try;; |
| 10600 | esac |
| 10601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10602 | (eval "$ac_compile") 2>conftest.er1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10603 | ac_status=$? |
| 10604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10605 | rm -f conftest.er1 |
| 10606 | cat conftest.err >&5 |
| 10607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10608 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10610 | { (case "(($ac_try" in |
| 10611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10612 | *) ac_try_echo=$ac_try;; |
| 10613 | esac |
| 10614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10615 | (eval "$ac_try") 2>&5 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10616 | ac_status=$? |
| 10617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10618 | (exit $ac_status); }; } && |
| 10619 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10620 | { (case "(($ac_try" in |
| 10621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10622 | *) ac_try_echo=$ac_try;; |
| 10623 | esac |
| 10624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10625 | (eval "$ac_try") 2>&5 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10626 | ac_status=$? |
| 10627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10628 | (exit $ac_status); }; }; then |
| 10629 | ac_header_compiler=yes |
| 10630 | else |
| 10631 | echo "$as_me: failed program was:" >&5 |
| 10632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10633 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10634 | ac_header_compiler=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10635 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10636 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10638 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10639 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10640 | |
| 10641 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10642 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10643 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10644 | cat >conftest.$ac_ext <<_ACEOF |
| 10645 | /* confdefs.h. */ |
| 10646 | _ACEOF |
| 10647 | cat confdefs.h >>conftest.$ac_ext |
| 10648 | cat >>conftest.$ac_ext <<_ACEOF |
| 10649 | /* end confdefs.h. */ |
| 10650 | #include <$ac_header> |
| 10651 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10652 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10653 | case "(($ac_try" in |
| 10654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10655 | *) ac_try_echo=$ac_try;; |
| 10656 | esac |
| 10657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10658 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10659 | ac_status=$? |
| 10660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10661 | rm -f conftest.er1 |
| 10662 | cat conftest.err >&5 |
| 10663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10664 | (exit $ac_status); } >/dev/null; then |
| 10665 | if test -s conftest.err; then |
| 10666 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10667 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10668 | else |
| 10669 | ac_cpp_err= |
| 10670 | fi |
| 10671 | else |
| 10672 | ac_cpp_err=yes |
| 10673 | fi |
| 10674 | if test -z "$ac_cpp_err"; then |
| 10675 | ac_header_preproc=yes |
| 10676 | else |
| 10677 | echo "$as_me: failed program was:" >&5 |
| 10678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10679 | |
| 10680 | ac_header_preproc=no |
| 10681 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10682 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10683 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10684 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10685 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10686 | |
| 10687 | # So? What about this header? |
| 10688 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10689 | yes:no: ) |
| 10690 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10691 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10692 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10693 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10694 | ac_header_preproc=yes |
| 10695 | ;; |
| 10696 | no:yes:* ) |
| 10697 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10698 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10699 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10700 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10701 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10702 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10703 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10704 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10705 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10706 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10707 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10708 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10709 | ( cat <<\_ASBOX |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10710 | ## ------------------------------------ ## |
| 10711 | ## Report this to wine-devel@winehq.org ## |
| 10712 | ## ------------------------------------ ## |
| 10713 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10714 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10715 | ;; |
| 10716 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10717 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10719 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10721 | else |
| 10722 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10723 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10724 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10725 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10726 | echo "${ECHO_T}$ac_res" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10727 | |
| 10728 | fi |
| 10729 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10730 | cat >>confdefs.h <<_ACEOF |
| 10731 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10732 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10733 | { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5 |
| 10734 | echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10735 | if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10737 | else |
| 10738 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10739 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10740 | cat >conftest.$ac_ext <<_ACEOF |
| 10741 | /* confdefs.h. */ |
| 10742 | _ACEOF |
| 10743 | cat confdefs.h >>conftest.$ac_ext |
| 10744 | cat >>conftest.$ac_ext <<_ACEOF |
| 10745 | /* end confdefs.h. */ |
| 10746 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10747 | /* Override any GCC internal prototype to avoid an error. |
| 10748 | Use char because int might match the return type of a GCC |
| 10749 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10750 | #ifdef __cplusplus |
| 10751 | extern "C" |
| 10752 | #endif |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10753 | char xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10754 | int |
| 10755 | main () |
| 10756 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10757 | return xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10758 | ; |
| 10759 | return 0; |
| 10760 | } |
| 10761 | _ACEOF |
| 10762 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10763 | if { (ac_try="$ac_link" |
| 10764 | case "(($ac_try" in |
| 10765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10766 | *) ac_try_echo=$ac_try;; |
| 10767 | esac |
| 10768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10769 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10770 | ac_status=$? |
| 10771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10772 | rm -f conftest.er1 |
| 10773 | cat conftest.err >&5 |
| 10774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10775 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10777 | { (case "(($ac_try" in |
| 10778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10779 | *) ac_try_echo=$ac_try;; |
| 10780 | esac |
| 10781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10782 | (eval "$ac_try") 2>&5 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10783 | ac_status=$? |
| 10784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10785 | (exit $ac_status); }; } && |
| 10786 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10787 | { (case "(($ac_try" in |
| 10788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10789 | *) ac_try_echo=$ac_try;; |
| 10790 | esac |
| 10791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10792 | (eval "$ac_try") 2>&5 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10793 | ac_status=$? |
| 10794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10795 | (exit $ac_status); }; }; then |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10796 | ac_cv_lib_xml2_xmlParseMemory=yes |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10797 | else |
| 10798 | echo "$as_me: failed program was:" >&5 |
| 10799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10800 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10801 | ac_cv_lib_xml2_xmlParseMemory=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10802 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10803 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10804 | rm -f core conftest.err conftest.$ac_objext \ |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10805 | conftest$ac_exeext conftest.$ac_ext |
| 10806 | LIBS=$ac_check_lib_save_LIBS |
| 10807 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10808 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5 |
| 10809 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10810 | if test $ac_cv_lib_xml2_xmlParseMemory = yes; then |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10811 | |
| 10812 | cat >>confdefs.h <<\_ACEOF |
| 10813 | #define HAVE_LIBXML2 1 |
| 10814 | _ACEOF |
| 10815 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10816 | XML2LIBS="$ac_xml_libs" |
| 10817 | XML2INCL="$ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10818 | fi |
| 10819 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10820 | { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5 |
| 10821 | echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; } |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10822 | if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then |
| 10823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10824 | else |
| 10825 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10826 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10827 | cat >conftest.$ac_ext <<_ACEOF |
| 10828 | /* confdefs.h. */ |
| 10829 | _ACEOF |
| 10830 | cat confdefs.h >>conftest.$ac_ext |
| 10831 | cat >>conftest.$ac_ext <<_ACEOF |
| 10832 | /* end confdefs.h. */ |
| 10833 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10834 | /* Override any GCC internal prototype to avoid an error. |
| 10835 | Use char because int might match the return type of a GCC |
| 10836 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10837 | #ifdef __cplusplus |
| 10838 | extern "C" |
| 10839 | #endif |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10840 | char xmlReadMemory (); |
| 10841 | int |
| 10842 | main () |
| 10843 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10844 | return xmlReadMemory (); |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10845 | ; |
| 10846 | return 0; |
| 10847 | } |
| 10848 | _ACEOF |
| 10849 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10850 | if { (ac_try="$ac_link" |
| 10851 | case "(($ac_try" in |
| 10852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10853 | *) ac_try_echo=$ac_try;; |
| 10854 | esac |
| 10855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10856 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10857 | ac_status=$? |
| 10858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10859 | rm -f conftest.er1 |
| 10860 | cat conftest.err >&5 |
| 10861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10862 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10863 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10864 | { (case "(($ac_try" in |
| 10865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10866 | *) ac_try_echo=$ac_try;; |
| 10867 | esac |
| 10868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10869 | (eval "$ac_try") 2>&5 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10870 | ac_status=$? |
| 10871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10872 | (exit $ac_status); }; } && |
| 10873 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10874 | { (case "(($ac_try" in |
| 10875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10876 | *) ac_try_echo=$ac_try;; |
| 10877 | esac |
| 10878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10879 | (eval "$ac_try") 2>&5 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10880 | ac_status=$? |
| 10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10882 | (exit $ac_status); }; }; then |
| 10883 | ac_cv_lib_xml2_xmlReadMemory=yes |
| 10884 | else |
| 10885 | echo "$as_me: failed program was:" >&5 |
| 10886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10887 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10888 | ac_cv_lib_xml2_xmlReadMemory=no |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10889 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10890 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10891 | rm -f core conftest.err conftest.$ac_objext \ |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10892 | conftest$ac_exeext conftest.$ac_ext |
| 10893 | LIBS=$ac_check_lib_save_LIBS |
| 10894 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10895 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5 |
| 10896 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; } |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10897 | if test $ac_cv_lib_xml2_xmlReadMemory = yes; then |
| 10898 | |
| 10899 | cat >>confdefs.h <<\_ACEOF |
| 10900 | #define HAVE_XMLREADMEMORY 1 |
| 10901 | _ACEOF |
| 10902 | |
| 10903 | fi |
| 10904 | |
| 10905 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10906 | fi |
| 10907 | |
| 10908 | done |
| 10909 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10910 | CPPFLAGS="$ac_save_CPPFLAGS" |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 10911 | ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`" |
| 10912 | ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`" |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10913 | CPPFLAGS="$CPPFLAGS $ac_xslt_cflags" |
| 10914 | |
| 10915 | |
Vincent Béron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 10916 | for ac_header in libxslt/pattern.h libxslt/transform.h |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10917 | do |
| 10918 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10919 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10921 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10923 | else |
Vincent Béron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 10924 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10925 | /* confdefs.h. */ |
| 10926 | _ACEOF |
| 10927 | cat confdefs.h >>conftest.$ac_ext |
| 10928 | cat >>conftest.$ac_ext <<_ACEOF |
| 10929 | /* end confdefs.h. */ |
Vincent Béron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 10930 | #ifdef HAVE_LIBXSLT_PATTERN_H |
| 10931 | # include <libxslt/pattern.h> |
| 10932 | #endif |
| 10933 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10934 | #include <$ac_header> |
| 10935 | _ACEOF |
| 10936 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10937 | if { (ac_try="$ac_compile" |
| 10938 | case "(($ac_try" in |
| 10939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10940 | *) ac_try_echo=$ac_try;; |
| 10941 | esac |
| 10942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10943 | (eval "$ac_compile") 2>conftest.er1 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10944 | ac_status=$? |
| 10945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10946 | rm -f conftest.er1 |
| 10947 | cat conftest.err >&5 |
| 10948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10949 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10951 | { (case "(($ac_try" in |
| 10952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10953 | *) ac_try_echo=$ac_try;; |
| 10954 | esac |
| 10955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10956 | (eval "$ac_try") 2>&5 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10957 | ac_status=$? |
| 10958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10959 | (exit $ac_status); }; } && |
| 10960 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10961 | { (case "(($ac_try" in |
| 10962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10963 | *) ac_try_echo=$ac_try;; |
| 10964 | esac |
| 10965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10966 | (eval "$ac_try") 2>&5 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10967 | ac_status=$? |
| 10968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10969 | (exit $ac_status); }; }; then |
Vincent Béron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 10970 | eval "$as_ac_Header=yes" |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10971 | else |
| 10972 | echo "$as_me: failed program was:" >&5 |
| 10973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10974 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10975 | eval "$as_ac_Header=no" |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10976 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10977 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10979 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10980 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10981 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10982 | echo "${ECHO_T}$ac_res" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10983 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10984 | cat >>confdefs.h <<_ACEOF |
| 10985 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10986 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10987 | { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5 |
| 10988 | echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10989 | if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then |
| 10990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10991 | else |
| 10992 | ac_check_lib_save_LIBS=$LIBS |
| 10993 | LIBS="-lxslt $ac_xslt_libs $LIBS" |
| 10994 | cat >conftest.$ac_ext <<_ACEOF |
| 10995 | /* confdefs.h. */ |
| 10996 | _ACEOF |
| 10997 | cat confdefs.h >>conftest.$ac_ext |
| 10998 | cat >>conftest.$ac_ext <<_ACEOF |
| 10999 | /* end confdefs.h. */ |
| 11000 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11001 | /* Override any GCC internal prototype to avoid an error. |
| 11002 | Use char because int might match the return type of a GCC |
| 11003 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11004 | #ifdef __cplusplus |
| 11005 | extern "C" |
| 11006 | #endif |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11007 | char xsltCompilePattern (); |
| 11008 | int |
| 11009 | main () |
| 11010 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11011 | return xsltCompilePattern (); |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11012 | ; |
| 11013 | return 0; |
| 11014 | } |
| 11015 | _ACEOF |
| 11016 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11017 | if { (ac_try="$ac_link" |
| 11018 | case "(($ac_try" in |
| 11019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11020 | *) ac_try_echo=$ac_try;; |
| 11021 | esac |
| 11022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11023 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11024 | ac_status=$? |
| 11025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11026 | rm -f conftest.er1 |
| 11027 | cat conftest.err >&5 |
| 11028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11029 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11030 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11031 | { (case "(($ac_try" in |
| 11032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11033 | *) ac_try_echo=$ac_try;; |
| 11034 | esac |
| 11035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11036 | (eval "$ac_try") 2>&5 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11037 | ac_status=$? |
| 11038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11039 | (exit $ac_status); }; } && |
| 11040 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11041 | { (case "(($ac_try" in |
| 11042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11043 | *) ac_try_echo=$ac_try;; |
| 11044 | esac |
| 11045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11046 | (eval "$ac_try") 2>&5 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11047 | ac_status=$? |
| 11048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11049 | (exit $ac_status); }; }; then |
| 11050 | ac_cv_lib_xslt_xsltCompilePattern=yes |
| 11051 | else |
| 11052 | echo "$as_me: failed program was:" >&5 |
| 11053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11054 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11055 | ac_cv_lib_xslt_xsltCompilePattern=no |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11056 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11057 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11058 | rm -f core conftest.err conftest.$ac_objext \ |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11059 | conftest$ac_exeext conftest.$ac_ext |
| 11060 | LIBS=$ac_check_lib_save_LIBS |
| 11061 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11062 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5 |
| 11063 | echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11064 | if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then |
| 11065 | |
| 11066 | cat >>confdefs.h <<\_ACEOF |
| 11067 | #define HAVE_LIBXSLT 1 |
| 11068 | _ACEOF |
| 11069 | |
| 11070 | XSLTLIBS="$ac_xslt_libs" |
| 11071 | XSLTINCL="$ac_xslt_cflags" |
| 11072 | fi |
| 11073 | |
| 11074 | |
| 11075 | fi |
| 11076 | |
| 11077 | done |
| 11078 | |
| 11079 | CPPFLAGS="$ac_save_CPPFLAGS" |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 11080 | fi |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 11081 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11082 | HALINCL="" |
| 11083 | |
| 11084 | if test "$PKG_CONFIG" != "false" |
| 11085 | then |
| 11086 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 11087 | ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`" |
| 11088 | ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11089 | CPPFLAGS="$CPPFLAGS $ac_hal_cflags" |
| 11090 | |
| 11091 | |
| 11092 | for ac_header in dbus/dbus.h hal/libhal.h |
| 11093 | do |
| 11094 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11095 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11096 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11097 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11098 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11100 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11101 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11102 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11103 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11104 | else |
| 11105 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11106 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11107 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11108 | cat >conftest.$ac_ext <<_ACEOF |
| 11109 | /* confdefs.h. */ |
| 11110 | _ACEOF |
| 11111 | cat confdefs.h >>conftest.$ac_ext |
| 11112 | cat >>conftest.$ac_ext <<_ACEOF |
| 11113 | /* end confdefs.h. */ |
| 11114 | $ac_includes_default |
| 11115 | #include <$ac_header> |
| 11116 | _ACEOF |
| 11117 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11118 | if { (ac_try="$ac_compile" |
| 11119 | case "(($ac_try" in |
| 11120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11121 | *) ac_try_echo=$ac_try;; |
| 11122 | esac |
| 11123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11124 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11125 | ac_status=$? |
| 11126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11127 | rm -f conftest.er1 |
| 11128 | cat conftest.err >&5 |
| 11129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11130 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11131 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11132 | { (case "(($ac_try" in |
| 11133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11134 | *) ac_try_echo=$ac_try;; |
| 11135 | esac |
| 11136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11137 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11138 | ac_status=$? |
| 11139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11140 | (exit $ac_status); }; } && |
| 11141 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11142 | { (case "(($ac_try" in |
| 11143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11144 | *) ac_try_echo=$ac_try;; |
| 11145 | esac |
| 11146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11147 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11148 | ac_status=$? |
| 11149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11150 | (exit $ac_status); }; }; then |
| 11151 | ac_header_compiler=yes |
| 11152 | else |
| 11153 | echo "$as_me: failed program was:" >&5 |
| 11154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11155 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11156 | ac_header_compiler=no |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11157 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11158 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11160 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11161 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11162 | |
| 11163 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11164 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11165 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11166 | cat >conftest.$ac_ext <<_ACEOF |
| 11167 | /* confdefs.h. */ |
| 11168 | _ACEOF |
| 11169 | cat confdefs.h >>conftest.$ac_ext |
| 11170 | cat >>conftest.$ac_ext <<_ACEOF |
| 11171 | /* end confdefs.h. */ |
| 11172 | #include <$ac_header> |
| 11173 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11174 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11175 | case "(($ac_try" in |
| 11176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11177 | *) ac_try_echo=$ac_try;; |
| 11178 | esac |
| 11179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11180 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11181 | ac_status=$? |
| 11182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11183 | rm -f conftest.er1 |
| 11184 | cat conftest.err >&5 |
| 11185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11186 | (exit $ac_status); } >/dev/null; then |
| 11187 | if test -s conftest.err; then |
| 11188 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11189 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11190 | else |
| 11191 | ac_cpp_err= |
| 11192 | fi |
| 11193 | else |
| 11194 | ac_cpp_err=yes |
| 11195 | fi |
| 11196 | if test -z "$ac_cpp_err"; then |
| 11197 | ac_header_preproc=yes |
| 11198 | else |
| 11199 | echo "$as_me: failed program was:" >&5 |
| 11200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11201 | |
| 11202 | ac_header_preproc=no |
| 11203 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11204 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11205 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11206 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11207 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11208 | |
| 11209 | # So? What about this header? |
| 11210 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11211 | yes:no: ) |
| 11212 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11213 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11214 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11215 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11216 | ac_header_preproc=yes |
| 11217 | ;; |
| 11218 | no:yes:* ) |
| 11219 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11220 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11221 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11222 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11223 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11224 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11225 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11226 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11227 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11228 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11229 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11230 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11231 | ( cat <<\_ASBOX |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11232 | ## ------------------------------------ ## |
| 11233 | ## Report this to wine-devel@winehq.org ## |
| 11234 | ## ------------------------------------ ## |
| 11235 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11236 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11237 | ;; |
| 11238 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11239 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11240 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11241 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11243 | else |
| 11244 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11245 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11246 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11247 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11248 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11249 | |
| 11250 | fi |
| 11251 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11252 | cat >>confdefs.h <<_ACEOF |
| 11253 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11254 | _ACEOF |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11255 | |
| 11256 | fi |
| 11257 | |
| 11258 | done |
| 11259 | |
| 11260 | if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes" |
| 11261 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11262 | { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5 |
| 11263 | echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11264 | if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then |
| 11265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11266 | else |
| 11267 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11268 | LIBS="-lhal $LIBS" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11269 | cat >conftest.$ac_ext <<_ACEOF |
| 11270 | /* confdefs.h. */ |
| 11271 | _ACEOF |
| 11272 | cat confdefs.h >>conftest.$ac_ext |
| 11273 | cat >>conftest.$ac_ext <<_ACEOF |
| 11274 | /* end confdefs.h. */ |
| 11275 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11276 | /* Override any GCC internal prototype to avoid an error. |
| 11277 | Use char because int might match the return type of a GCC |
| 11278 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11279 | #ifdef __cplusplus |
| 11280 | extern "C" |
| 11281 | #endif |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11282 | char libhal_ctx_new (); |
| 11283 | int |
| 11284 | main () |
| 11285 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11286 | return libhal_ctx_new (); |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11287 | ; |
| 11288 | return 0; |
| 11289 | } |
| 11290 | _ACEOF |
| 11291 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11292 | if { (ac_try="$ac_link" |
| 11293 | case "(($ac_try" in |
| 11294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11295 | *) ac_try_echo=$ac_try;; |
| 11296 | esac |
| 11297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11298 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11299 | ac_status=$? |
| 11300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11301 | rm -f conftest.er1 |
| 11302 | cat conftest.err >&5 |
| 11303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11304 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11306 | { (case "(($ac_try" in |
| 11307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11308 | *) ac_try_echo=$ac_try;; |
| 11309 | esac |
| 11310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11311 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11312 | ac_status=$? |
| 11313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11314 | (exit $ac_status); }; } && |
| 11315 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11316 | { (case "(($ac_try" in |
| 11317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11318 | *) ac_try_echo=$ac_try;; |
| 11319 | esac |
| 11320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11321 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11322 | ac_status=$? |
| 11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11324 | (exit $ac_status); }; }; then |
| 11325 | ac_cv_lib_hal_libhal_ctx_new=yes |
| 11326 | else |
| 11327 | echo "$as_me: failed program was:" >&5 |
| 11328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11329 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11330 | ac_cv_lib_hal_libhal_ctx_new=no |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11331 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11332 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11333 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11334 | conftest$ac_exeext conftest.$ac_ext |
| 11335 | LIBS=$ac_check_lib_save_LIBS |
| 11336 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11337 | { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5 |
| 11338 | echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11339 | if test $ac_cv_lib_hal_libhal_ctx_new = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11340 | { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5 |
| 11341 | echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; } |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11342 | if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then |
| 11343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11344 | else |
| 11345 | ac_check_lib_save_LIBS=$LIBS |
| 11346 | LIBS="-ldbus-1 $ac_hal_libs $LIBS" |
| 11347 | cat >conftest.$ac_ext <<_ACEOF |
| 11348 | /* confdefs.h. */ |
| 11349 | _ACEOF |
| 11350 | cat confdefs.h >>conftest.$ac_ext |
| 11351 | cat >>conftest.$ac_ext <<_ACEOF |
| 11352 | /* end confdefs.h. */ |
| 11353 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11354 | /* Override any GCC internal prototype to avoid an error. |
| 11355 | Use char because int might match the return type of a GCC |
| 11356 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11357 | #ifdef __cplusplus |
| 11358 | extern "C" |
| 11359 | #endif |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11360 | char dbus_connection_close (); |
| 11361 | int |
| 11362 | main () |
| 11363 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11364 | return dbus_connection_close (); |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11365 | ; |
| 11366 | return 0; |
| 11367 | } |
| 11368 | _ACEOF |
| 11369 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11370 | if { (ac_try="$ac_link" |
| 11371 | case "(($ac_try" in |
| 11372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11373 | *) ac_try_echo=$ac_try;; |
| 11374 | esac |
| 11375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11376 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11377 | ac_status=$? |
| 11378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11379 | rm -f conftest.er1 |
| 11380 | cat conftest.err >&5 |
| 11381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11382 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11383 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11384 | { (case "(($ac_try" in |
| 11385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11386 | *) ac_try_echo=$ac_try;; |
| 11387 | esac |
| 11388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11389 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11390 | ac_status=$? |
| 11391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11392 | (exit $ac_status); }; } && |
| 11393 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11394 | { (case "(($ac_try" in |
| 11395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11396 | *) ac_try_echo=$ac_try;; |
| 11397 | esac |
| 11398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11399 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11400 | ac_status=$? |
| 11401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11402 | (exit $ac_status); }; }; then |
| 11403 | ac_cv_lib_dbus_1_dbus_connection_close=yes |
| 11404 | else |
| 11405 | echo "$as_me: failed program was:" >&5 |
| 11406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11407 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11408 | ac_cv_lib_dbus_1_dbus_connection_close=no |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11409 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11410 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11411 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11412 | conftest$ac_exeext conftest.$ac_ext |
| 11413 | LIBS=$ac_check_lib_save_LIBS |
| 11414 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11415 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5 |
| 11416 | echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; } |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11417 | if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11418 | |
| 11419 | cat >>confdefs.h <<\_ACEOF |
| 11420 | #define HAVE_LIBHAL 1 |
| 11421 | _ACEOF |
| 11422 | |
| 11423 | HALINCL="$ac_hal_cflags" |
| 11424 | fi |
| 11425 | |
| 11426 | fi |
| 11427 | |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11428 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11429 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11430 | fi |
| 11431 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 11432 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11433 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 11434 | then |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 11435 | if test "$ac_cv_header_ncurses_h" = "yes" |
| 11436 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11437 | { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
| 11438 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11439 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 11440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11441 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11442 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11443 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11444 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11445 | /* confdefs.h. */ |
| 11446 | _ACEOF |
| 11447 | cat confdefs.h >>conftest.$ac_ext |
| 11448 | cat >>conftest.$ac_ext <<_ACEOF |
| 11449 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11450 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11451 | /* Override any GCC internal prototype to avoid an error. |
| 11452 | Use char because int might match the return type of a GCC |
| 11453 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11454 | #ifdef __cplusplus |
| 11455 | extern "C" |
| 11456 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11457 | char waddch (); |
| 11458 | int |
| 11459 | main () |
| 11460 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11461 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11462 | ; |
| 11463 | return 0; |
| 11464 | } |
| 11465 | _ACEOF |
| 11466 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11467 | if { (ac_try="$ac_link" |
| 11468 | case "(($ac_try" in |
| 11469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11470 | *) ac_try_echo=$ac_try;; |
| 11471 | esac |
| 11472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11473 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11474 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11476 | rm -f conftest.er1 |
| 11477 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11479 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11480 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11481 | { (case "(($ac_try" in |
| 11482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11483 | *) ac_try_echo=$ac_try;; |
| 11484 | esac |
| 11485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11486 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11487 | ac_status=$? |
| 11488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11489 | (exit $ac_status); }; } && |
| 11490 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11491 | { (case "(($ac_try" in |
| 11492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11493 | *) ac_try_echo=$ac_try;; |
| 11494 | esac |
| 11495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11496 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11497 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11499 | (exit $ac_status); }; }; then |
| 11500 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11501 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11502 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11504 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11505 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11506 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11507 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11508 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11509 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11510 | LIBS=$ac_check_lib_save_LIBS |
| 11511 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11512 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
| 11513 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11514 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11515 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11516 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 11517 | #define HAVE_LIBNCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11518 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11519 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 11520 | CURSESLIBS="-lncurses" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11521 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11522 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 11523 | elif test "$ac_cv_header_curses_h" = "yes" |
| 11524 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11525 | { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
| 11526 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11527 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 11528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11529 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11530 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11531 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11532 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11533 | /* confdefs.h. */ |
| 11534 | _ACEOF |
| 11535 | cat confdefs.h >>conftest.$ac_ext |
| 11536 | cat >>conftest.$ac_ext <<_ACEOF |
| 11537 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11538 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11539 | /* Override any GCC internal prototype to avoid an error. |
| 11540 | Use char because int might match the return type of a GCC |
| 11541 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11542 | #ifdef __cplusplus |
| 11543 | extern "C" |
| 11544 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11545 | char waddch (); |
| 11546 | int |
| 11547 | main () |
| 11548 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11549 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11550 | ; |
| 11551 | return 0; |
| 11552 | } |
| 11553 | _ACEOF |
| 11554 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11555 | if { (ac_try="$ac_link" |
| 11556 | case "(($ac_try" in |
| 11557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11558 | *) ac_try_echo=$ac_try;; |
| 11559 | esac |
| 11560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11561 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11562 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11564 | rm -f conftest.er1 |
| 11565 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11567 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11568 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11569 | { (case "(($ac_try" in |
| 11570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11571 | *) ac_try_echo=$ac_try;; |
| 11572 | esac |
| 11573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11574 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11575 | ac_status=$? |
| 11576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11577 | (exit $ac_status); }; } && |
| 11578 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11579 | { (case "(($ac_try" in |
| 11580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11581 | *) ac_try_echo=$ac_try;; |
| 11582 | esac |
| 11583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11584 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11585 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11587 | (exit $ac_status); }; }; then |
| 11588 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11589 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11590 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11592 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11593 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11594 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11595 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11596 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11597 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11598 | LIBS=$ac_check_lib_save_LIBS |
| 11599 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11600 | { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
| 11601 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11602 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11603 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11604 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 11605 | #define HAVE_LIBCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11606 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11607 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 11608 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11609 | fi |
| 11610 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 11611 | fi |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 11612 | ac_save_LIBS="$LIBS" |
| 11613 | LIBS="$LIBS $CURSESLIBS" |
| 11614 | |
| 11615 | for ac_func in mousemask |
| 11616 | do |
| 11617 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11618 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11619 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11620 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11622 | else |
| 11623 | cat >conftest.$ac_ext <<_ACEOF |
| 11624 | /* confdefs.h. */ |
| 11625 | _ACEOF |
| 11626 | cat confdefs.h >>conftest.$ac_ext |
| 11627 | cat >>conftest.$ac_ext <<_ACEOF |
| 11628 | /* end confdefs.h. */ |
| 11629 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11630 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11631 | #define $ac_func innocuous_$ac_func |
| 11632 | |
| 11633 | /* System header to define __stub macros and hopefully few prototypes, |
| 11634 | which can conflict with char $ac_func (); below. |
| 11635 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11636 | <limits.h> exists even on freestanding compilers. */ |
| 11637 | |
| 11638 | #ifdef __STDC__ |
| 11639 | # include <limits.h> |
| 11640 | #else |
| 11641 | # include <assert.h> |
| 11642 | #endif |
| 11643 | |
| 11644 | #undef $ac_func |
| 11645 | |
| 11646 | /* Override any GCC internal prototype to avoid an error. |
| 11647 | Use char because int might match the return type of a GCC |
| 11648 | builtin and then its argument prototype would still apply. */ |
| 11649 | #ifdef __cplusplus |
| 11650 | extern "C" |
| 11651 | #endif |
| 11652 | char $ac_func (); |
| 11653 | /* The GNU C library defines this for functions which it implements |
| 11654 | to always fail with ENOSYS. Some functions are actually named |
| 11655 | something starting with __ and the normal name is an alias. */ |
| 11656 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11657 | choke me |
| 11658 | #endif |
| 11659 | |
| 11660 | int |
| 11661 | main () |
| 11662 | { |
| 11663 | return $ac_func (); |
| 11664 | ; |
| 11665 | return 0; |
| 11666 | } |
| 11667 | _ACEOF |
| 11668 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11669 | if { (ac_try="$ac_link" |
| 11670 | case "(($ac_try" in |
| 11671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11672 | *) ac_try_echo=$ac_try;; |
| 11673 | esac |
| 11674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11675 | (eval "$ac_link") 2>conftest.er1 |
| 11676 | ac_status=$? |
| 11677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11678 | rm -f conftest.er1 |
| 11679 | cat conftest.err >&5 |
| 11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11681 | (exit $ac_status); } && |
| 11682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11683 | { (case "(($ac_try" in |
| 11684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11685 | *) ac_try_echo=$ac_try;; |
| 11686 | esac |
| 11687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11688 | (eval "$ac_try") 2>&5 |
| 11689 | ac_status=$? |
| 11690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11691 | (exit $ac_status); }; } && |
| 11692 | { ac_try='test -s conftest$ac_exeext' |
| 11693 | { (case "(($ac_try" in |
| 11694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11695 | *) ac_try_echo=$ac_try;; |
| 11696 | esac |
| 11697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11698 | (eval "$ac_try") 2>&5 |
| 11699 | ac_status=$? |
| 11700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11701 | (exit $ac_status); }; }; then |
| 11702 | eval "$as_ac_var=yes" |
| 11703 | else |
| 11704 | echo "$as_me: failed program was:" >&5 |
| 11705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11706 | |
| 11707 | eval "$as_ac_var=no" |
| 11708 | fi |
| 11709 | |
| 11710 | rm -f core conftest.err conftest.$ac_objext \ |
| 11711 | conftest$ac_exeext conftest.$ac_ext |
| 11712 | fi |
| 11713 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11714 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11715 | echo "${ECHO_T}$ac_res" >&6; } |
| 11716 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11717 | cat >>confdefs.h <<_ACEOF |
| 11718 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11719 | _ACEOF |
| 11720 | |
| 11721 | fi |
| 11722 | done |
| 11723 | |
| 11724 | LIBS="$ac_save_LIBS" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11725 | fi |
| 11726 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11727 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11728 | # Extract the first word of "sane-config", so it can be a program name with args. |
| 11729 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11730 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11732 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
| 11733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11734 | else |
| 11735 | if test -n "$sane_devel"; then |
| 11736 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 11737 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11739 | for as_dir in $PATH |
| 11740 | do |
| 11741 | IFS=$as_save_IFS |
| 11742 | test -z "$as_dir" && as_dir=. |
| 11743 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11745 | ac_cv_prog_sane_devel="sane-config" |
| 11746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11747 | break 2 |
| 11748 | fi |
| 11749 | done |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11750 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11751 | IFS=$as_save_IFS |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11752 | |
| 11753 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 11754 | fi |
| 11755 | fi |
| 11756 | sane_devel=$ac_cv_prog_sane_devel |
| 11757 | if test -n "$sane_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11758 | { echo "$as_me:$LINENO: result: $sane_devel" >&5 |
| 11759 | echo "${ECHO_T}$sane_devel" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11760 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11761 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11762 | echo "${ECHO_T}no" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11763 | fi |
| 11764 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11765 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 11766 | SANELIBS="" |
| 11767 | |
| 11768 | SANEINCL="" |
| 11769 | |
| 11770 | if test "$sane_devel" != "no" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11771 | then |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11772 | SANELIBS="`$sane_devel --libs`" |
| 11773 | SANEINCL="`$sane_devel --cflags`" |
| 11774 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11775 | ac_save_LIBS="$LIBS" |
| 11776 | CPPFLAGS="$CPPFLAGS $SANEINCL" |
| 11777 | LIBS="$LIBS $SANELIBS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11778 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11779 | { echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 11780 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11781 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 11782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11783 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11784 | { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 11785 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11786 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11787 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11788 | { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
| 11789 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11790 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11791 | /* confdefs.h. */ |
| 11792 | _ACEOF |
| 11793 | cat confdefs.h >>conftest.$ac_ext |
| 11794 | cat >>conftest.$ac_ext <<_ACEOF |
| 11795 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11796 | $ac_includes_default |
| 11797 | #include <sane/sane.h> |
| 11798 | _ACEOF |
| 11799 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11800 | if { (ac_try="$ac_compile" |
| 11801 | case "(($ac_try" in |
| 11802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11803 | *) ac_try_echo=$ac_try;; |
| 11804 | esac |
| 11805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11806 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11807 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11809 | rm -f conftest.er1 |
| 11810 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11812 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11814 | { (case "(($ac_try" in |
| 11815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11816 | *) ac_try_echo=$ac_try;; |
| 11817 | esac |
| 11818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11819 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11820 | ac_status=$? |
| 11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11822 | (exit $ac_status); }; } && |
| 11823 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11824 | { (case "(($ac_try" in |
| 11825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11826 | *) ac_try_echo=$ac_try;; |
| 11827 | esac |
| 11828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11829 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11830 | ac_status=$? |
| 11831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11832 | (exit $ac_status); }; }; then |
| 11833 | ac_header_compiler=yes |
| 11834 | else |
| 11835 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11837 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11838 | ac_header_compiler=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11839 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11840 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11842 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11843 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11844 | |
| 11845 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11846 | { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
| 11847 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11848 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11849 | /* confdefs.h. */ |
| 11850 | _ACEOF |
| 11851 | cat confdefs.h >>conftest.$ac_ext |
| 11852 | cat >>conftest.$ac_ext <<_ACEOF |
| 11853 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11854 | #include <sane/sane.h> |
| 11855 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11856 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11857 | case "(($ac_try" in |
| 11858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11859 | *) ac_try_echo=$ac_try;; |
| 11860 | esac |
| 11861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11862 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11863 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11864 | grep -v '^ *+' conftest.er1 >conftest.err |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11865 | rm -f conftest.er1 |
| 11866 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11868 | (exit $ac_status); } >/dev/null; then |
| 11869 | if test -s conftest.err; then |
| 11870 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11871 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11872 | else |
| 11873 | ac_cpp_err= |
| 11874 | fi |
| 11875 | else |
| 11876 | ac_cpp_err=yes |
| 11877 | fi |
| 11878 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11879 | ac_header_preproc=yes |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11880 | else |
| 11881 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11883 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11884 | ac_header_preproc=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11885 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11886 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11887 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11888 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11889 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11890 | |
| 11891 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11892 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11893 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11894 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11895 | echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11896 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5 |
| 11897 | echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;} |
| 11898 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11899 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11900 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11901 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
| 11902 | echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11903 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 |
| 11904 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} |
| 11905 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5 |
| 11906 | echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;} |
| 11907 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11908 | echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11909 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11910 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11911 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5 |
| 11912 | echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11913 | ( cat <<\_ASBOX |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11914 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11915 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11916 | ## ------------------------------------ ## |
| 11917 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11918 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11919 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11920 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11921 | { echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 11922 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11923 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 11924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11925 | else |
| 11926 | ac_cv_header_sane_sane_h=$ac_header_preproc |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11927 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11928 | { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 11929 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11930 | |
| 11931 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11932 | if test $ac_cv_header_sane_sane_h = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11933 | { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
| 11934 | echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11935 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
| 11936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11937 | else |
| 11938 | ac_check_lib_save_LIBS=$LIBS |
| 11939 | LIBS="-lsane $LIBS" |
| 11940 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11941 | /* confdefs.h. */ |
| 11942 | _ACEOF |
| 11943 | cat confdefs.h >>conftest.$ac_ext |
| 11944 | cat >>conftest.$ac_ext <<_ACEOF |
| 11945 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11946 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11947 | /* Override any GCC internal prototype to avoid an error. |
| 11948 | Use char because int might match the return type of a GCC |
| 11949 | builtin and then its argument prototype would still apply. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11950 | #ifdef __cplusplus |
| 11951 | extern "C" |
| 11952 | #endif |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11953 | char sane_open (); |
| 11954 | int |
| 11955 | main () |
| 11956 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11957 | return sane_open (); |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11958 | ; |
| 11959 | return 0; |
| 11960 | } |
| 11961 | _ACEOF |
| 11962 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11963 | if { (ac_try="$ac_link" |
| 11964 | case "(($ac_try" in |
| 11965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11966 | *) ac_try_echo=$ac_try;; |
| 11967 | esac |
| 11968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11969 | (eval "$ac_link") 2>conftest.er1 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11970 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11972 | rm -f conftest.er1 |
| 11973 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11975 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11977 | { (case "(($ac_try" in |
| 11978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11979 | *) ac_try_echo=$ac_try;; |
| 11980 | esac |
| 11981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11982 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11983 | ac_status=$? |
| 11984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11985 | (exit $ac_status); }; } && |
| 11986 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11987 | { (case "(($ac_try" in |
| 11988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11989 | *) ac_try_echo=$ac_try;; |
| 11990 | esac |
| 11991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11992 | (eval "$ac_try") 2>&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11993 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11995 | (exit $ac_status); }; }; then |
| 11996 | ac_cv_lib_sane_sane_open=yes |
| 11997 | else |
| 11998 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12000 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12001 | ac_cv_lib_sane_sane_open=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12002 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12003 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12004 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12005 | conftest$ac_exeext conftest.$ac_ext |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12006 | LIBS=$ac_check_lib_save_LIBS |
| 12007 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12008 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5 |
| 12009 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12010 | if test $ac_cv_lib_sane_sane_open = yes; then |
| 12011 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12012 | cat >>confdefs.h <<\_ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12013 | #define HAVE_SANE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12014 | _ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12015 | |
| 12016 | else |
| 12017 | SANELIBS="" |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 12018 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12019 | fi |
| 12020 | |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 12021 | else |
| 12022 | SANELIBS="" |
| 12023 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12024 | fi |
| 12025 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12026 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12027 | LIBS="$ac_save_LIBS" |
| 12028 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 12029 | fi |
| 12030 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12031 | # Extract the first word of "gphoto2-config", so it can be a program name with args. |
| 12032 | set dummy gphoto2-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12033 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12035 | if test "${ac_cv_prog_gphoto2_devel+set}" = set; then |
| 12036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12037 | else |
| 12038 | if test -n "$gphoto2_devel"; then |
| 12039 | ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test. |
| 12040 | else |
| 12041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12042 | for as_dir in $PATH |
| 12043 | do |
| 12044 | IFS=$as_save_IFS |
| 12045 | test -z "$as_dir" && as_dir=. |
| 12046 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12048 | ac_cv_prog_gphoto2_devel="gphoto2-config" |
| 12049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12050 | break 2 |
| 12051 | fi |
| 12052 | done |
| 12053 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12054 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12055 | |
| 12056 | test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no" |
| 12057 | fi |
| 12058 | fi |
| 12059 | gphoto2_devel=$ac_cv_prog_gphoto2_devel |
| 12060 | if test -n "$gphoto2_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12061 | { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5 |
| 12062 | echo "${ECHO_T}$gphoto2_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12063 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12064 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12065 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12066 | fi |
| 12067 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12068 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12069 | # Extract the first word of "gphoto2-port-config", so it can be a program name with args. |
| 12070 | set dummy gphoto2-port-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12071 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12072 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12073 | if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then |
| 12074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12075 | else |
| 12076 | if test -n "$gphoto2port_devel"; then |
| 12077 | ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test. |
| 12078 | else |
| 12079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12080 | for as_dir in $PATH |
| 12081 | do |
| 12082 | IFS=$as_save_IFS |
| 12083 | test -z "$as_dir" && as_dir=. |
| 12084 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12086 | ac_cv_prog_gphoto2port_devel="gphoto2-port-config" |
| 12087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12088 | break 2 |
| 12089 | fi |
| 12090 | done |
| 12091 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12092 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12093 | |
| 12094 | test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no" |
| 12095 | fi |
| 12096 | fi |
| 12097 | gphoto2port_devel=$ac_cv_prog_gphoto2port_devel |
| 12098 | if test -n "$gphoto2port_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12099 | { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5 |
| 12100 | echo "${ECHO_T}$gphoto2port_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12101 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12102 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12103 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12104 | fi |
| 12105 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12106 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12107 | GPHOTO2LIBS="" |
| 12108 | |
| 12109 | GPHOTO2INCL="" |
| 12110 | |
| 12111 | if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no" |
| 12112 | then |
| 12113 | GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`" |
| 12114 | GPHOTO2LIBS="" |
| 12115 | for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs` |
| 12116 | do |
| 12117 | case "$i" in |
| 12118 | -L/usr/lib|-L/usr/lib64) ;; |
| 12119 | -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";; |
| 12120 | esac |
| 12121 | done |
| 12122 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 12123 | ac_save_LIBS="$LIBS" |
| 12124 | CPPFLAGS="$CPPFLAGS $GPHOTO2INCL" |
| 12125 | LIBS="$LIBS $GPHOTO2LIBS" |
| 12126 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12127 | { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5 |
| 12128 | echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12129 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
| 12130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12131 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12132 | { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5 |
| 12133 | echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12134 | else |
| 12135 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12136 | { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5 |
| 12137 | echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12138 | cat >conftest.$ac_ext <<_ACEOF |
| 12139 | /* confdefs.h. */ |
| 12140 | _ACEOF |
| 12141 | cat confdefs.h >>conftest.$ac_ext |
| 12142 | cat >>conftest.$ac_ext <<_ACEOF |
| 12143 | /* end confdefs.h. */ |
| 12144 | $ac_includes_default |
| 12145 | #include <gphoto2-camera.h> |
| 12146 | _ACEOF |
| 12147 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12148 | if { (ac_try="$ac_compile" |
| 12149 | case "(($ac_try" in |
| 12150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12151 | *) ac_try_echo=$ac_try;; |
| 12152 | esac |
| 12153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12154 | (eval "$ac_compile") 2>conftest.er1 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12155 | ac_status=$? |
| 12156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12157 | rm -f conftest.er1 |
| 12158 | cat conftest.err >&5 |
| 12159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12160 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12161 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12162 | { (case "(($ac_try" in |
| 12163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12164 | *) ac_try_echo=$ac_try;; |
| 12165 | esac |
| 12166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12167 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12168 | ac_status=$? |
| 12169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12170 | (exit $ac_status); }; } && |
| 12171 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12172 | { (case "(($ac_try" in |
| 12173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12174 | *) ac_try_echo=$ac_try;; |
| 12175 | esac |
| 12176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12177 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12178 | ac_status=$? |
| 12179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12180 | (exit $ac_status); }; }; then |
| 12181 | ac_header_compiler=yes |
| 12182 | else |
| 12183 | echo "$as_me: failed program was:" >&5 |
| 12184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12185 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12186 | ac_header_compiler=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12187 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12188 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12190 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12191 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12192 | |
| 12193 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12194 | { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5 |
| 12195 | echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12196 | cat >conftest.$ac_ext <<_ACEOF |
| 12197 | /* confdefs.h. */ |
| 12198 | _ACEOF |
| 12199 | cat confdefs.h >>conftest.$ac_ext |
| 12200 | cat >>conftest.$ac_ext <<_ACEOF |
| 12201 | /* end confdefs.h. */ |
| 12202 | #include <gphoto2-camera.h> |
| 12203 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12204 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12205 | case "(($ac_try" in |
| 12206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12207 | *) ac_try_echo=$ac_try;; |
| 12208 | esac |
| 12209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12210 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12211 | ac_status=$? |
| 12212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12213 | rm -f conftest.er1 |
| 12214 | cat conftest.err >&5 |
| 12215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12216 | (exit $ac_status); } >/dev/null; then |
| 12217 | if test -s conftest.err; then |
| 12218 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12219 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12220 | else |
| 12221 | ac_cpp_err= |
| 12222 | fi |
| 12223 | else |
| 12224 | ac_cpp_err=yes |
| 12225 | fi |
| 12226 | if test -z "$ac_cpp_err"; then |
| 12227 | ac_header_preproc=yes |
| 12228 | else |
| 12229 | echo "$as_me: failed program was:" >&5 |
| 12230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12231 | |
| 12232 | ac_header_preproc=no |
| 12233 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12234 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12235 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12236 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12237 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12238 | |
| 12239 | # So? What about this header? |
| 12240 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12241 | yes:no: ) |
| 12242 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12243 | echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12244 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5 |
| 12245 | echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;} |
| 12246 | ac_header_preproc=yes |
| 12247 | ;; |
| 12248 | no:yes:* ) |
| 12249 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5 |
| 12250 | echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;} |
| 12251 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5 |
| 12252 | echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;} |
| 12253 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5 |
| 12254 | echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;} |
| 12255 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12256 | echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12257 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5 |
| 12258 | echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;} |
| 12259 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5 |
| 12260 | echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12261 | ( cat <<\_ASBOX |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12262 | ## ------------------------------------ ## |
| 12263 | ## Report this to wine-devel@winehq.org ## |
| 12264 | ## ------------------------------------ ## |
| 12265 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12266 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12267 | ;; |
| 12268 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12269 | { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5 |
| 12270 | echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12271 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
| 12272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12273 | else |
| 12274 | ac_cv_header_gphoto2_camera_h=$ac_header_preproc |
| 12275 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12276 | { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5 |
| 12277 | echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12278 | |
| 12279 | fi |
| 12280 | if test $ac_cv_header_gphoto2_camera_h = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12281 | { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5 |
| 12282 | echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12283 | if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then |
| 12284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12285 | else |
| 12286 | ac_check_lib_save_LIBS=$LIBS |
| 12287 | LIBS="-lgphoto2 $LIBS" |
| 12288 | cat >conftest.$ac_ext <<_ACEOF |
| 12289 | /* confdefs.h. */ |
| 12290 | _ACEOF |
| 12291 | cat confdefs.h >>conftest.$ac_ext |
| 12292 | cat >>conftest.$ac_ext <<_ACEOF |
| 12293 | /* end confdefs.h. */ |
| 12294 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12295 | /* Override any GCC internal prototype to avoid an error. |
| 12296 | Use char because int might match the return type of a GCC |
| 12297 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12298 | #ifdef __cplusplus |
| 12299 | extern "C" |
| 12300 | #endif |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12301 | char gp_camera_new (); |
| 12302 | int |
| 12303 | main () |
| 12304 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12305 | return gp_camera_new (); |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12306 | ; |
| 12307 | return 0; |
| 12308 | } |
| 12309 | _ACEOF |
| 12310 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12311 | if { (ac_try="$ac_link" |
| 12312 | case "(($ac_try" in |
| 12313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12314 | *) ac_try_echo=$ac_try;; |
| 12315 | esac |
| 12316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12317 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12318 | ac_status=$? |
| 12319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12320 | rm -f conftest.er1 |
| 12321 | cat conftest.err >&5 |
| 12322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12323 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12325 | { (case "(($ac_try" in |
| 12326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12327 | *) ac_try_echo=$ac_try;; |
| 12328 | esac |
| 12329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12330 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12331 | ac_status=$? |
| 12332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12333 | (exit $ac_status); }; } && |
| 12334 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12335 | { (case "(($ac_try" in |
| 12336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12337 | *) ac_try_echo=$ac_try;; |
| 12338 | esac |
| 12339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12340 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12341 | ac_status=$? |
| 12342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12343 | (exit $ac_status); }; }; then |
| 12344 | ac_cv_lib_gphoto2_gp_camera_new=yes |
| 12345 | else |
| 12346 | echo "$as_me: failed program was:" >&5 |
| 12347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12348 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12349 | ac_cv_lib_gphoto2_gp_camera_new=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12350 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12351 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12352 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12353 | conftest$ac_exeext conftest.$ac_ext |
| 12354 | LIBS=$ac_check_lib_save_LIBS |
| 12355 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12356 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5 |
| 12357 | echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12358 | if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then |
| 12359 | |
| 12360 | cat >>confdefs.h <<\_ACEOF |
| 12361 | #define HAVE_GPHOTO2 1 |
| 12362 | _ACEOF |
| 12363 | |
| 12364 | else |
| 12365 | GPHOTO2LIBS="" |
| 12366 | GPHOTO2INCL="" |
| 12367 | fi |
| 12368 | |
| 12369 | else |
| 12370 | GPHOTO2LIBS="" |
| 12371 | GPHOTO2INCL="" |
| 12372 | fi |
| 12373 | |
| 12374 | |
| 12375 | LIBS="$ac_save_LIBS" |
| 12376 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 12377 | fi |
| 12378 | |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12379 | if test "$ac_cv_header_unicode_ubidi_h" = "yes" |
| 12380 | then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12381 | saved_libs="$LIBS" |
Scott Bambrough | ee112fc | 2006-06-16 10:42:20 -0400 | [diff] [blame] | 12382 | for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu |
| 12383 | do |
| 12384 | TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}" |
| 12385 | TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}" |
| 12386 | { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5 |
| 12387 | echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; } |
| 12388 | LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s" |
| 12389 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12390 | /* confdefs.h. */ |
| 12391 | _ACEOF |
| 12392 | cat confdefs.h >>conftest.$ac_ext |
| 12393 | cat >>conftest.$ac_ext <<_ACEOF |
| 12394 | /* end confdefs.h. */ |
| 12395 | #include <unicode/ubidi.h> |
| 12396 | int |
| 12397 | main () |
| 12398 | { |
| 12399 | ubidi_open() |
| 12400 | ; |
| 12401 | return 0; |
| 12402 | } |
| 12403 | _ACEOF |
| 12404 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12405 | if { (ac_try="$ac_link" |
| 12406 | case "(($ac_try" in |
| 12407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12408 | *) ac_try_echo=$ac_try;; |
| 12409 | esac |
| 12410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12411 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12412 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12414 | rm -f conftest.er1 |
| 12415 | cat conftest.err >&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12417 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12419 | { (case "(($ac_try" in |
| 12420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12421 | *) ac_try_echo=$ac_try;; |
| 12422 | esac |
| 12423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12424 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12425 | ac_status=$? |
| 12426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12427 | (exit $ac_status); }; } && |
| 12428 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12429 | { (case "(($ac_try" in |
| 12430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12431 | *) ac_try_echo=$ac_try;; |
| 12432 | esac |
| 12433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12434 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12435 | ac_status=$? |
| 12436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12437 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12438 | |
| 12439 | cat >>confdefs.h <<\_ACEOF |
| 12440 | #define HAVE_ICU 1 |
| 12441 | _ACEOF |
| 12442 | |
Scott Bambrough | ee112fc | 2006-06-16 10:42:20 -0400 | [diff] [blame] | 12443 | ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12444 | |
Scott Bambrough | ee112fc | 2006-06-16 10:42:20 -0400 | [diff] [blame] | 12445 | { echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12446 | echo "${ECHO_T}yes" >&6; } |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12447 | else |
| 12448 | echo "$as_me: failed program was:" >&5 |
| 12449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12450 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12451 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12452 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12453 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12454 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12455 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12456 | conftest$ac_exeext conftest.$ac_ext |
Scott Bambrough | ee112fc | 2006-06-16 10:42:20 -0400 | [diff] [blame] | 12457 | done |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12458 | LIBS="$saved_libs" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12459 | fi |
| 12460 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12461 | RESOLVLIBS="" |
| 12462 | |
| 12463 | if test "$ac_cv_header_resolv_h" = "yes" |
| 12464 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12465 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 |
| 12466 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12467 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then |
| 12468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12469 | else |
| 12470 | ac_check_lib_save_LIBS=$LIBS |
| 12471 | LIBS="-lresolv $LIBS" |
| 12472 | cat >conftest.$ac_ext <<_ACEOF |
| 12473 | /* confdefs.h. */ |
| 12474 | _ACEOF |
| 12475 | cat confdefs.h >>conftest.$ac_ext |
| 12476 | cat >>conftest.$ac_ext <<_ACEOF |
| 12477 | /* end confdefs.h. */ |
| 12478 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12479 | /* Override any GCC internal prototype to avoid an error. |
| 12480 | Use char because int might match the return type of a GCC |
| 12481 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12482 | #ifdef __cplusplus |
| 12483 | extern "C" |
| 12484 | #endif |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12485 | char res_query (); |
| 12486 | int |
| 12487 | main () |
| 12488 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12489 | return res_query (); |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12490 | ; |
| 12491 | return 0; |
| 12492 | } |
| 12493 | _ACEOF |
| 12494 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12495 | if { (ac_try="$ac_link" |
| 12496 | case "(($ac_try" in |
| 12497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12498 | *) ac_try_echo=$ac_try;; |
| 12499 | esac |
| 12500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12501 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12502 | ac_status=$? |
| 12503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12504 | rm -f conftest.er1 |
| 12505 | cat conftest.err >&5 |
| 12506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12507 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12509 | { (case "(($ac_try" in |
| 12510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12511 | *) ac_try_echo=$ac_try;; |
| 12512 | esac |
| 12513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12514 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12515 | ac_status=$? |
| 12516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12517 | (exit $ac_status); }; } && |
| 12518 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12519 | { (case "(($ac_try" in |
| 12520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12521 | *) ac_try_echo=$ac_try;; |
| 12522 | esac |
| 12523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12524 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12525 | ac_status=$? |
| 12526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12527 | (exit $ac_status); }; }; then |
| 12528 | ac_cv_lib_resolv_res_query=yes |
| 12529 | else |
| 12530 | echo "$as_me: failed program was:" >&5 |
| 12531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12532 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12533 | ac_cv_lib_resolv_res_query=no |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12534 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12535 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12536 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12537 | conftest$ac_exeext conftest.$ac_ext |
| 12538 | LIBS=$ac_check_lib_save_LIBS |
| 12539 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12540 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 |
| 12541 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12542 | if test $ac_cv_lib_resolv_res_query = yes; then |
| 12543 | |
| 12544 | cat >>confdefs.h <<\_ACEOF |
| 12545 | #define HAVE_RESOLV 1 |
| 12546 | _ACEOF |
| 12547 | |
| 12548 | RESOLVLIBS="-lresolv" |
| 12549 | fi |
| 12550 | |
| 12551 | fi |
| 12552 | |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12553 | LCMSLIBS="" |
| 12554 | |
| 12555 | if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes" |
| 12556 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12557 | { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5 |
| 12558 | echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; } |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12559 | if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then |
| 12560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12561 | else |
| 12562 | ac_check_lib_save_LIBS=$LIBS |
| 12563 | LIBS="-llcms $LIBS" |
| 12564 | cat >conftest.$ac_ext <<_ACEOF |
| 12565 | /* confdefs.h. */ |
| 12566 | _ACEOF |
| 12567 | cat confdefs.h >>conftest.$ac_ext |
| 12568 | cat >>conftest.$ac_ext <<_ACEOF |
| 12569 | /* end confdefs.h. */ |
| 12570 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12571 | /* Override any GCC internal prototype to avoid an error. |
| 12572 | Use char because int might match the return type of a GCC |
| 12573 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12574 | #ifdef __cplusplus |
| 12575 | extern "C" |
| 12576 | #endif |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12577 | char cmsOpenProfileFromFile (); |
| 12578 | int |
| 12579 | main () |
| 12580 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12581 | return cmsOpenProfileFromFile (); |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12582 | ; |
| 12583 | return 0; |
| 12584 | } |
| 12585 | _ACEOF |
| 12586 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12587 | if { (ac_try="$ac_link" |
| 12588 | case "(($ac_try" in |
| 12589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12590 | *) ac_try_echo=$ac_try;; |
| 12591 | esac |
| 12592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12593 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12594 | ac_status=$? |
| 12595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12596 | rm -f conftest.er1 |
| 12597 | cat conftest.err >&5 |
| 12598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12599 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12601 | { (case "(($ac_try" in |
| 12602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12603 | *) ac_try_echo=$ac_try;; |
| 12604 | esac |
| 12605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12606 | (eval "$ac_try") 2>&5 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12607 | ac_status=$? |
| 12608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12609 | (exit $ac_status); }; } && |
| 12610 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12611 | { (case "(($ac_try" in |
| 12612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12613 | *) ac_try_echo=$ac_try;; |
| 12614 | esac |
| 12615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12616 | (eval "$ac_try") 2>&5 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12617 | ac_status=$? |
| 12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12619 | (exit $ac_status); }; }; then |
| 12620 | ac_cv_lib_lcms_cmsOpenProfileFromFile=yes |
| 12621 | else |
| 12622 | echo "$as_me: failed program was:" >&5 |
| 12623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12624 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12625 | ac_cv_lib_lcms_cmsOpenProfileFromFile=no |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12626 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12627 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12628 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12629 | conftest$ac_exeext conftest.$ac_ext |
| 12630 | LIBS=$ac_check_lib_save_LIBS |
| 12631 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12632 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5 |
| 12633 | echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; } |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12634 | if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then |
| 12635 | |
| 12636 | cat >>confdefs.h <<\_ACEOF |
| 12637 | #define HAVE_LCMS 1 |
| 12638 | _ACEOF |
| 12639 | |
| 12640 | LCMSLIBS="-llcms" |
| 12641 | fi |
| 12642 | |
| 12643 | fi |
| 12644 | |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12645 | LDAPLIBS="" |
| 12646 | |
| 12647 | if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes" |
| 12648 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12649 | { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5 |
| 12650 | echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; } |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12651 | if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12653 | else |
| 12654 | ac_check_lib_save_LIBS=$LIBS |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12655 | LIBS="-lldap_r $LIBPTHREAD $LIBS" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12656 | cat >conftest.$ac_ext <<_ACEOF |
| 12657 | /* confdefs.h. */ |
| 12658 | _ACEOF |
| 12659 | cat confdefs.h >>conftest.$ac_ext |
| 12660 | cat >>conftest.$ac_ext <<_ACEOF |
| 12661 | /* end confdefs.h. */ |
| 12662 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12663 | /* Override any GCC internal prototype to avoid an error. |
| 12664 | Use char because int might match the return type of a GCC |
| 12665 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12666 | #ifdef __cplusplus |
| 12667 | extern "C" |
| 12668 | #endif |
Hans Leidekker | 20d0e80 | 2005-11-18 16:56:44 +0000 | [diff] [blame] | 12669 | char ldap_initialize (); |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12670 | int |
| 12671 | main () |
| 12672 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12673 | return ldap_initialize (); |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12674 | ; |
| 12675 | return 0; |
| 12676 | } |
| 12677 | _ACEOF |
| 12678 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12679 | if { (ac_try="$ac_link" |
| 12680 | case "(($ac_try" in |
| 12681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12682 | *) ac_try_echo=$ac_try;; |
| 12683 | esac |
| 12684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12685 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12686 | ac_status=$? |
| 12687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12688 | rm -f conftest.er1 |
| 12689 | cat conftest.err >&5 |
| 12690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12691 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12693 | { (case "(($ac_try" in |
| 12694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12695 | *) ac_try_echo=$ac_try;; |
| 12696 | esac |
| 12697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12698 | (eval "$ac_try") 2>&5 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12699 | ac_status=$? |
| 12700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12701 | (exit $ac_status); }; } && |
| 12702 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12703 | { (case "(($ac_try" in |
| 12704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12705 | *) ac_try_echo=$ac_try;; |
| 12706 | esac |
| 12707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12708 | (eval "$ac_try") 2>&5 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12709 | ac_status=$? |
| 12710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12711 | (exit $ac_status); }; }; then |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12712 | ac_cv_lib_ldap_r_ldap_initialize=yes |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12713 | else |
| 12714 | echo "$as_me: failed program was:" >&5 |
| 12715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12716 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12717 | ac_cv_lib_ldap_r_ldap_initialize=no |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12718 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12719 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12720 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12721 | conftest$ac_exeext conftest.$ac_ext |
| 12722 | LIBS=$ac_check_lib_save_LIBS |
| 12723 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12724 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5 |
| 12725 | echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; } |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12726 | if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12727 | { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5 |
| 12728 | echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; } |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12729 | if test "${ac_cv_lib_lber_ber_init+set}" = set; then |
| 12730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12731 | else |
| 12732 | ac_check_lib_save_LIBS=$LIBS |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12733 | LIBS="-llber $LIBPTHREAD $LIBS" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12734 | cat >conftest.$ac_ext <<_ACEOF |
| 12735 | /* confdefs.h. */ |
| 12736 | _ACEOF |
| 12737 | cat confdefs.h >>conftest.$ac_ext |
| 12738 | cat >>conftest.$ac_ext <<_ACEOF |
| 12739 | /* end confdefs.h. */ |
| 12740 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12741 | /* Override any GCC internal prototype to avoid an error. |
| 12742 | Use char because int might match the return type of a GCC |
| 12743 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12744 | #ifdef __cplusplus |
| 12745 | extern "C" |
| 12746 | #endif |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12747 | char ber_init (); |
| 12748 | int |
| 12749 | main () |
| 12750 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12751 | return ber_init (); |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12752 | ; |
| 12753 | return 0; |
| 12754 | } |
| 12755 | _ACEOF |
| 12756 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12757 | if { (ac_try="$ac_link" |
| 12758 | case "(($ac_try" in |
| 12759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12760 | *) ac_try_echo=$ac_try;; |
| 12761 | esac |
| 12762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12763 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12764 | ac_status=$? |
| 12765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12766 | rm -f conftest.er1 |
| 12767 | cat conftest.err >&5 |
| 12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12771 | { (case "(($ac_try" in |
| 12772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12773 | *) ac_try_echo=$ac_try;; |
| 12774 | esac |
| 12775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12776 | (eval "$ac_try") 2>&5 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12777 | ac_status=$? |
| 12778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12779 | (exit $ac_status); }; } && |
| 12780 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12781 | { (case "(($ac_try" in |
| 12782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12783 | *) ac_try_echo=$ac_try;; |
| 12784 | esac |
| 12785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12786 | (eval "$ac_try") 2>&5 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12787 | ac_status=$? |
| 12788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12789 | (exit $ac_status); }; }; then |
| 12790 | ac_cv_lib_lber_ber_init=yes |
| 12791 | else |
| 12792 | echo "$as_me: failed program was:" >&5 |
| 12793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12794 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12795 | ac_cv_lib_lber_ber_init=no |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12796 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12797 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12798 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12799 | conftest$ac_exeext conftest.$ac_ext |
| 12800 | LIBS=$ac_check_lib_save_LIBS |
| 12801 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12802 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5 |
| 12803 | echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; } |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12804 | if test $ac_cv_lib_lber_ber_init = yes; then |
| 12805 | |
| 12806 | cat >>confdefs.h <<\_ACEOF |
| 12807 | #define HAVE_LDAP 1 |
| 12808 | _ACEOF |
| 12809 | |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12810 | LDAPLIBS="-lldap_r -llber" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12811 | fi |
| 12812 | |
| 12813 | fi |
| 12814 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 12815 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 12816 | LIBS="$LIBS $LDAPLIBS $LIBPTHREAD" |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12817 | |
| 12818 | |
| 12819 | |
| 12820 | |
| 12821 | for ac_func in \ |
| 12822 | ldap_count_references \ |
| 12823 | ldap_first_reference \ |
| 12824 | ldap_next_reference \ |
| 12825 | ldap_parse_reference |
| 12826 | do |
| 12827 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12828 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12829 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12830 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12832 | else |
| 12833 | cat >conftest.$ac_ext <<_ACEOF |
| 12834 | /* confdefs.h. */ |
| 12835 | _ACEOF |
| 12836 | cat confdefs.h >>conftest.$ac_ext |
| 12837 | cat >>conftest.$ac_ext <<_ACEOF |
| 12838 | /* end confdefs.h. */ |
| 12839 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12840 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12841 | #define $ac_func innocuous_$ac_func |
| 12842 | |
| 12843 | /* System header to define __stub macros and hopefully few prototypes, |
| 12844 | which can conflict with char $ac_func (); below. |
| 12845 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12846 | <limits.h> exists even on freestanding compilers. */ |
| 12847 | |
| 12848 | #ifdef __STDC__ |
| 12849 | # include <limits.h> |
| 12850 | #else |
| 12851 | # include <assert.h> |
| 12852 | #endif |
| 12853 | |
| 12854 | #undef $ac_func |
| 12855 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12856 | /* Override any GCC internal prototype to avoid an error. |
| 12857 | Use char because int might match the return type of a GCC |
| 12858 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12859 | #ifdef __cplusplus |
| 12860 | extern "C" |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12861 | #endif |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12862 | char $ac_func (); |
| 12863 | /* The GNU C library defines this for functions which it implements |
| 12864 | to always fail with ENOSYS. Some functions are actually named |
| 12865 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12866 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12867 | choke me |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12868 | #endif |
| 12869 | |
| 12870 | int |
| 12871 | main () |
| 12872 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12873 | return $ac_func (); |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12874 | ; |
| 12875 | return 0; |
| 12876 | } |
| 12877 | _ACEOF |
| 12878 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12879 | if { (ac_try="$ac_link" |
| 12880 | case "(($ac_try" in |
| 12881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12882 | *) ac_try_echo=$ac_try;; |
| 12883 | esac |
| 12884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12885 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12886 | ac_status=$? |
| 12887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12888 | rm -f conftest.er1 |
| 12889 | cat conftest.err >&5 |
| 12890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12891 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12893 | { (case "(($ac_try" in |
| 12894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12895 | *) ac_try_echo=$ac_try;; |
| 12896 | esac |
| 12897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12898 | (eval "$ac_try") 2>&5 |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12899 | ac_status=$? |
| 12900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12901 | (exit $ac_status); }; } && |
| 12902 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12903 | { (case "(($ac_try" in |
| 12904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12905 | *) ac_try_echo=$ac_try;; |
| 12906 | esac |
| 12907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12908 | (eval "$ac_try") 2>&5 |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12909 | ac_status=$? |
| 12910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12911 | (exit $ac_status); }; }; then |
| 12912 | eval "$as_ac_var=yes" |
| 12913 | else |
| 12914 | echo "$as_me: failed program was:" >&5 |
| 12915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12916 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12917 | eval "$as_ac_var=no" |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12918 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12919 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12920 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12921 | conftest$ac_exeext conftest.$ac_ext |
| 12922 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12923 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12924 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12925 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12926 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12927 | cat >>confdefs.h <<_ACEOF |
| 12928 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12929 | _ACEOF |
| 12930 | |
| 12931 | fi |
| 12932 | done |
| 12933 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 12934 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12935 | fi |
| 12936 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 12937 | FREETYPELIBS="" |
| 12938 | |
| 12939 | FREETYPEINCL="" |
| 12940 | |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 12941 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 12942 | set dummy freetype-config; ac_word=$2 |
| 12943 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12945 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 12946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12947 | else |
| 12948 | if test -n "$ft_devel"; then |
| 12949 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 12950 | else |
| 12951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12952 | for as_dir in $PATH |
| 12953 | do |
| 12954 | IFS=$as_save_IFS |
| 12955 | test -z "$as_dir" && as_dir=. |
| 12956 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12958 | ac_cv_prog_ft_devel="freetype-config" |
| 12959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12960 | break 2 |
| 12961 | fi |
| 12962 | done |
| 12963 | done |
| 12964 | IFS=$as_save_IFS |
| 12965 | |
| 12966 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 12967 | fi |
| 12968 | fi |
| 12969 | ft_devel=$ac_cv_prog_ft_devel |
| 12970 | if test -n "$ft_devel"; then |
| 12971 | { echo "$as_me:$LINENO: result: $ft_devel" >&5 |
| 12972 | echo "${ECHO_T}$ft_devel" >&6; } |
| 12973 | else |
| 12974 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12975 | echo "${ECHO_T}no" >&6; } |
| 12976 | fi |
| 12977 | |
| 12978 | |
| 12979 | if test "$ft_devel" = "no" |
| 12980 | then |
| 12981 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 12982 | set dummy freetype2-config; ac_word=$2 |
| 12983 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12985 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 12986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12987 | else |
| 12988 | if test -n "$ft_devel2"; then |
| 12989 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 12990 | else |
| 12991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12992 | for as_dir in $PATH |
| 12993 | do |
| 12994 | IFS=$as_save_IFS |
| 12995 | test -z "$as_dir" && as_dir=. |
| 12996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12998 | ac_cv_prog_ft_devel2="freetype2-config" |
| 12999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13000 | break 2 |
| 13001 | fi |
| 13002 | done |
| 13003 | done |
| 13004 | IFS=$as_save_IFS |
| 13005 | |
| 13006 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 13007 | fi |
| 13008 | fi |
| 13009 | ft_devel2=$ac_cv_prog_ft_devel2 |
| 13010 | if test -n "$ft_devel2"; then |
| 13011 | { echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
| 13012 | echo "${ECHO_T}$ft_devel2" >&6; } |
| 13013 | else |
| 13014 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13015 | echo "${ECHO_T}no" >&6; } |
| 13016 | fi |
| 13017 | |
| 13018 | |
| 13019 | if test "$ft_devel2" = "freetype2-config" |
| 13020 | then |
| 13021 | ft_devel=$ft_devel2 |
| 13022 | fi |
| 13023 | fi |
| 13024 | |
| 13025 | if test "$ft_devel" = "no" |
| 13026 | then |
| 13027 | wine_cv_msg_freetype=yes |
| 13028 | else |
| 13029 | FREETYPELIBS=`$ft_devel --libs` |
| 13030 | FREETYPEINCL=`$ft_devel --cflags` |
| 13031 | { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13032 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13033 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 13034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13035 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13036 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 13037 | LIBS="-lfreetype $FREETYPELIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13038 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13039 | /* confdefs.h. */ |
| 13040 | _ACEOF |
| 13041 | cat confdefs.h >>conftest.$ac_ext |
| 13042 | cat >>conftest.$ac_ext <<_ACEOF |
| 13043 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13044 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13045 | /* Override any GCC internal prototype to avoid an error. |
| 13046 | Use char because int might match the return type of a GCC |
| 13047 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13048 | #ifdef __cplusplus |
| 13049 | extern "C" |
| 13050 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13051 | char FT_Init_FreeType (); |
| 13052 | int |
| 13053 | main () |
| 13054 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13055 | return FT_Init_FreeType (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13056 | ; |
| 13057 | return 0; |
| 13058 | } |
| 13059 | _ACEOF |
| 13060 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13061 | if { (ac_try="$ac_link" |
| 13062 | case "(($ac_try" in |
| 13063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13064 | *) ac_try_echo=$ac_try;; |
| 13065 | esac |
| 13066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13067 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13068 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13070 | rm -f conftest.er1 |
| 13071 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13073 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13075 | { (case "(($ac_try" in |
| 13076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13077 | *) ac_try_echo=$ac_try;; |
| 13078 | esac |
| 13079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13080 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13081 | ac_status=$? |
| 13082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13083 | (exit $ac_status); }; } && |
| 13084 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13085 | { (case "(($ac_try" in |
| 13086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13087 | *) ac_try_echo=$ac_try;; |
| 13088 | esac |
| 13089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13090 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13091 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13093 | (exit $ac_status); }; }; then |
| 13094 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13095 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13096 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13098 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13099 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13100 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13101 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13102 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13103 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13104 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13105 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13106 | { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
| 13107 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13108 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13109 | ft_lib=yes |
| 13110 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13111 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13112 | fi |
| 13113 | |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 13114 | if test "$ft_lib" = "no" |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 13115 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13116 | wine_cv_msg_freetype=yes |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 13117 | FREETYPELIBS="" |
| 13118 | FREETYPEINCL="" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13119 | else |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 13120 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 13121 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13122 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13123 | |
| 13124 | |
| 13125 | |
| 13126 | |
| 13127 | |
| 13128 | |
| 13129 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 13130 | |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 13131 | |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 13132 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 13133 | for ac_header in ft2build.h \ |
| 13134 | freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 13135 | freetype/ftglyph.h \ |
| 13136 | freetype/tttables.h \ |
| 13137 | freetype/ftnames.h \ |
| 13138 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 13139 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 13140 | freetype/ftoutln.h \ |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 13141 | freetype/ftwinfnt.h \ |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 13142 | freetype/ftmodapi.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 13143 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 13144 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13145 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13146 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 13148 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13150 | else |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 13151 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13152 | /* confdefs.h. */ |
| 13153 | _ACEOF |
| 13154 | cat confdefs.h >>conftest.$ac_ext |
| 13155 | cat >>conftest.$ac_ext <<_ACEOF |
| 13156 | /* end confdefs.h. */ |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 13157 | #if HAVE_FT2BUILD_H |
| 13158 | #include <ft2build.h> |
| 13159 | #endif |
| 13160 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13161 | #include <$ac_header> |
| 13162 | _ACEOF |
| 13163 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13164 | if { (ac_try="$ac_compile" |
| 13165 | case "(($ac_try" in |
| 13166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13167 | *) ac_try_echo=$ac_try;; |
| 13168 | esac |
| 13169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13170 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13171 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13173 | rm -f conftest.er1 |
| 13174 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13176 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13177 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13178 | { (case "(($ac_try" in |
| 13179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13180 | *) ac_try_echo=$ac_try;; |
| 13181 | esac |
| 13182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13183 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13184 | ac_status=$? |
| 13185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13186 | (exit $ac_status); }; } && |
| 13187 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13188 | { (case "(($ac_try" in |
| 13189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13190 | *) ac_try_echo=$ac_try;; |
| 13191 | esac |
| 13192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13193 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13194 | ac_status=$? |
| 13195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13196 | (exit $ac_status); }; }; then |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 13197 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13198 | else |
| 13199 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13201 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13202 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13203 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13204 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13206 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13207 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 13208 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13209 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13210 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13211 | cat >>confdefs.h <<_ACEOF |
| 13212 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13213 | _ACEOF |
| 13214 | |
| 13215 | fi |
| 13216 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 13217 | done |
| 13218 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13219 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13220 | /* confdefs.h. */ |
| 13221 | _ACEOF |
| 13222 | cat confdefs.h >>conftest.$ac_ext |
| 13223 | cat >>conftest.$ac_ext <<_ACEOF |
| 13224 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 13225 | #include <ft2build.h> |
| 13226 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13227 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13228 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13229 | case "(($ac_try" in |
| 13230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13231 | *) ac_try_echo=$ac_try;; |
| 13232 | esac |
| 13233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13234 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13235 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13236 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13237 | rm -f conftest.er1 |
| 13238 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13240 | (exit $ac_status); } >/dev/null; then |
| 13241 | if test -s conftest.err; then |
| 13242 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13243 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13244 | else |
| 13245 | ac_cpp_err= |
| 13246 | fi |
| 13247 | else |
| 13248 | ac_cpp_err=yes |
| 13249 | fi |
| 13250 | if test -z "$ac_cpp_err"; then |
| 13251 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13252 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 13253 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13254 | _ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 13255 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 13256 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 13257 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13258 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13260 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 13261 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 13262 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13263 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13264 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13265 | { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5 |
| 13266 | echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; } |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13267 | if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then |
| 13268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13269 | else |
| 13270 | cat >conftest.$ac_ext <<_ACEOF |
| 13271 | /* confdefs.h. */ |
| 13272 | _ACEOF |
| 13273 | cat confdefs.h >>conftest.$ac_ext |
| 13274 | cat >>conftest.$ac_ext <<_ACEOF |
| 13275 | /* end confdefs.h. */ |
| 13276 | #include <freetype/ftmodapi.h> |
| 13277 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13278 | typedef FT_TrueTypeEngineType ac__type_new_; |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13279 | int |
| 13280 | main () |
| 13281 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13282 | if ((ac__type_new_ *) 0) |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13283 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13284 | if (sizeof (ac__type_new_)) |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13285 | return 0; |
| 13286 | ; |
| 13287 | return 0; |
| 13288 | } |
| 13289 | _ACEOF |
| 13290 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13291 | if { (ac_try="$ac_compile" |
| 13292 | case "(($ac_try" in |
| 13293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13294 | *) ac_try_echo=$ac_try;; |
| 13295 | esac |
| 13296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13297 | (eval "$ac_compile") 2>conftest.er1 |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13298 | ac_status=$? |
| 13299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13300 | rm -f conftest.er1 |
| 13301 | cat conftest.err >&5 |
| 13302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13303 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13305 | { (case "(($ac_try" in |
| 13306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13307 | *) ac_try_echo=$ac_try;; |
| 13308 | esac |
| 13309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13310 | (eval "$ac_try") 2>&5 |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13311 | ac_status=$? |
| 13312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13313 | (exit $ac_status); }; } && |
| 13314 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13315 | { (case "(($ac_try" in |
| 13316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13317 | *) ac_try_echo=$ac_try;; |
| 13318 | esac |
| 13319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13320 | (eval "$ac_try") 2>&5 |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13321 | ac_status=$? |
| 13322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13323 | (exit $ac_status); }; }; then |
| 13324 | ac_cv_type_FT_TrueTypeEngineType=yes |
| 13325 | else |
| 13326 | echo "$as_me: failed program was:" >&5 |
| 13327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13328 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13329 | ac_cv_type_FT_TrueTypeEngineType=no |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13330 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13331 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13333 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13334 | { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5 |
| 13335 | echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; } |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13336 | if test $ac_cv_type_FT_TrueTypeEngineType = yes; then |
| 13337 | |
| 13338 | cat >>confdefs.h <<_ACEOF |
| 13339 | #define HAVE_FT_TRUETYPEENGINETYPE 1 |
| 13340 | _ACEOF |
| 13341 | |
| 13342 | |
| 13343 | fi |
| 13344 | |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13345 | ac_save_CFLAGS="$CFLAGS" |
| 13346 | CFLAGS="$CFLAGS $FREETYPELIBS" |
| 13347 | |
| 13348 | for ac_func in FT_Load_Sfnt_Table |
| 13349 | do |
| 13350 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13351 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13352 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 13353 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13355 | else |
| 13356 | cat >conftest.$ac_ext <<_ACEOF |
| 13357 | /* confdefs.h. */ |
| 13358 | _ACEOF |
| 13359 | cat confdefs.h >>conftest.$ac_ext |
| 13360 | cat >>conftest.$ac_ext <<_ACEOF |
| 13361 | /* end confdefs.h. */ |
| 13362 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13363 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13364 | #define $ac_func innocuous_$ac_func |
| 13365 | |
| 13366 | /* System header to define __stub macros and hopefully few prototypes, |
| 13367 | which can conflict with char $ac_func (); below. |
| 13368 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13369 | <limits.h> exists even on freestanding compilers. */ |
| 13370 | |
| 13371 | #ifdef __STDC__ |
| 13372 | # include <limits.h> |
| 13373 | #else |
| 13374 | # include <assert.h> |
| 13375 | #endif |
| 13376 | |
| 13377 | #undef $ac_func |
| 13378 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13379 | /* Override any GCC internal prototype to avoid an error. |
| 13380 | Use char because int might match the return type of a GCC |
| 13381 | builtin and then its argument prototype would still apply. */ |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13382 | #ifdef __cplusplus |
| 13383 | extern "C" |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13384 | #endif |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13385 | char $ac_func (); |
| 13386 | /* The GNU C library defines this for functions which it implements |
| 13387 | to always fail with ENOSYS. Some functions are actually named |
| 13388 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13389 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13390 | choke me |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13391 | #endif |
| 13392 | |
| 13393 | int |
| 13394 | main () |
| 13395 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13396 | return $ac_func (); |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13397 | ; |
| 13398 | return 0; |
| 13399 | } |
| 13400 | _ACEOF |
| 13401 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13402 | if { (ac_try="$ac_link" |
| 13403 | case "(($ac_try" in |
| 13404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13405 | *) ac_try_echo=$ac_try;; |
| 13406 | esac |
| 13407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13408 | (eval "$ac_link") 2>conftest.er1 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13409 | ac_status=$? |
| 13410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13411 | rm -f conftest.er1 |
| 13412 | cat conftest.err >&5 |
| 13413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13414 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13415 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13416 | { (case "(($ac_try" in |
| 13417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13418 | *) ac_try_echo=$ac_try;; |
| 13419 | esac |
| 13420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13421 | (eval "$ac_try") 2>&5 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13422 | ac_status=$? |
| 13423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13424 | (exit $ac_status); }; } && |
| 13425 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13426 | { (case "(($ac_try" in |
| 13427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13428 | *) ac_try_echo=$ac_try;; |
| 13429 | esac |
| 13430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13431 | (eval "$ac_try") 2>&5 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13432 | ac_status=$? |
| 13433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13434 | (exit $ac_status); }; }; then |
| 13435 | eval "$as_ac_var=yes" |
| 13436 | else |
| 13437 | echo "$as_me: failed program was:" >&5 |
| 13438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13439 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13440 | eval "$as_ac_var=no" |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13441 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13442 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13443 | rm -f core conftest.err conftest.$ac_objext \ |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13444 | conftest$ac_exeext conftest.$ac_ext |
| 13445 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13446 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13447 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13448 | echo "${ECHO_T}$ac_res" >&6; } |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13449 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13450 | cat >>confdefs.h <<_ACEOF |
| 13451 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13452 | _ACEOF |
| 13453 | |
| 13454 | fi |
| 13455 | done |
| 13456 | |
| 13457 | CFLAGS="$ac_save_CFLAGS" |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 13458 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 13459 | if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes" |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 13460 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13461 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13462 | cat >>confdefs.h <<\_ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 13463 | #define HAVE_FREETYPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13464 | _ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 13465 | |
| 13466 | wine_cv_msg_freetype=no |
| 13467 | else |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 13468 | FREETYPELIBS="" |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 13469 | FREETYPEINCL="" |
| 13470 | wine_cv_msg_freetype=yes |
| 13471 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13472 | fi |
| 13473 | fi |
| 13474 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 13475 | if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS" |
| 13476 | then |
| 13477 | FONTSSUBDIRS="fonts" |
| 13478 | |
| 13479 | fi |
| 13480 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13481 | { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
| 13482 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13483 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 13484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 13485 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13486 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13487 | /* confdefs.h. */ |
| 13488 | _ACEOF |
| 13489 | cat confdefs.h >>conftest.$ac_ext |
| 13490 | cat >>conftest.$ac_ext <<_ACEOF |
| 13491 | /* end confdefs.h. */ |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13492 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13493 | int |
| 13494 | main () |
| 13495 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13496 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13497 | ; |
| 13498 | return 0; |
| 13499 | } |
| 13500 | _ACEOF |
| 13501 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13502 | if { (ac_try="$ac_compile" |
| 13503 | case "(($ac_try" in |
| 13504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13505 | *) ac_try_echo=$ac_try;; |
| 13506 | esac |
| 13507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13508 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13509 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13511 | rm -f conftest.er1 |
| 13512 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13514 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13516 | { (case "(($ac_try" in |
| 13517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13518 | *) ac_try_echo=$ac_try;; |
| 13519 | esac |
| 13520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13521 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13522 | ac_status=$? |
| 13523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13524 | (exit $ac_status); }; } && |
| 13525 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13526 | { (case "(($ac_try" in |
| 13527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13528 | *) ac_try_echo=$ac_try;; |
| 13529 | esac |
| 13530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13531 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13532 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13534 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13535 | ac_cv_c_ppdev="yes" |
| 13536 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13537 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13539 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13540 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13541 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13542 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13544 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13545 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13546 | { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
| 13547 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6; } |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13548 | if test "$ac_cv_c_ppdev" = "yes" |
| 13549 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13550 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13551 | cat >>confdefs.h <<\_ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13552 | #define HAVE_PPDEV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13553 | _ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13554 | |
| 13555 | fi |
| 13556 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13557 | { echo "$as_me:$LINENO: checking for va_copy" >&5 |
| 13558 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13559 | if test "${ac_cv_c_va_copy+set}" = set; then |
| 13560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13561 | else |
| 13562 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13563 | /* confdefs.h. */ |
| 13564 | _ACEOF |
| 13565 | cat confdefs.h >>conftest.$ac_ext |
| 13566 | cat >>conftest.$ac_ext <<_ACEOF |
| 13567 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13568 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13569 | int |
| 13570 | main () |
| 13571 | { |
| 13572 | va_list ap1, ap2; |
| 13573 | va_copy(ap1,ap2); |
| 13574 | |
| 13575 | ; |
| 13576 | return 0; |
| 13577 | } |
| 13578 | _ACEOF |
| 13579 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13580 | if { (ac_try="$ac_link" |
| 13581 | case "(($ac_try" in |
| 13582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13583 | *) ac_try_echo=$ac_try;; |
| 13584 | esac |
| 13585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13586 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13587 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13589 | rm -f conftest.er1 |
| 13590 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13592 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13593 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13594 | { (case "(($ac_try" in |
| 13595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13596 | *) ac_try_echo=$ac_try;; |
| 13597 | esac |
| 13598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13599 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13600 | ac_status=$? |
| 13601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13602 | (exit $ac_status); }; } && |
| 13603 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13604 | { (case "(($ac_try" in |
| 13605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13606 | *) ac_try_echo=$ac_try;; |
| 13607 | esac |
| 13608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13609 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13610 | ac_status=$? |
| 13611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13612 | (exit $ac_status); }; }; then |
| 13613 | ac_cv_c_va_copy="yes" |
| 13614 | else |
| 13615 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13617 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13618 | ac_cv_c_va_copy="no" |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13619 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13620 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13621 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13622 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13623 | |
| 13624 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13625 | { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
| 13626 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13627 | if test "$ac_cv_c_va_copy" = "yes" |
| 13628 | then |
| 13629 | |
| 13630 | cat >>confdefs.h <<\_ACEOF |
| 13631 | #define HAVE_VA_COPY 1 |
| 13632 | _ACEOF |
| 13633 | |
| 13634 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13635 | { echo "$as_me:$LINENO: checking for __va_copy" >&5 |
| 13636 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13637 | if test "${ac_cv_c___va_copy+set}" = set; then |
| 13638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13639 | else |
| 13640 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13641 | /* confdefs.h. */ |
| 13642 | _ACEOF |
| 13643 | cat confdefs.h >>conftest.$ac_ext |
| 13644 | cat >>conftest.$ac_ext <<_ACEOF |
| 13645 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13646 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13647 | int |
| 13648 | main () |
| 13649 | { |
| 13650 | va_list ap1, ap2; |
| 13651 | __va_copy(ap1,ap2); |
| 13652 | |
| 13653 | ; |
| 13654 | return 0; |
| 13655 | } |
| 13656 | _ACEOF |
| 13657 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13658 | if { (ac_try="$ac_link" |
| 13659 | case "(($ac_try" in |
| 13660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13661 | *) ac_try_echo=$ac_try;; |
| 13662 | esac |
| 13663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13664 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13665 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13667 | rm -f conftest.er1 |
| 13668 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13670 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13671 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13672 | { (case "(($ac_try" in |
| 13673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13674 | *) ac_try_echo=$ac_try;; |
| 13675 | esac |
| 13676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13677 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13678 | ac_status=$? |
| 13679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13680 | (exit $ac_status); }; } && |
| 13681 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13682 | { (case "(($ac_try" in |
| 13683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13684 | *) ac_try_echo=$ac_try;; |
| 13685 | esac |
| 13686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13687 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13688 | ac_status=$? |
| 13689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13690 | (exit $ac_status); }; }; then |
| 13691 | ac_cv_c___va_copy="yes" |
| 13692 | else |
| 13693 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13695 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13696 | ac_cv_c___va_copy="no" |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13697 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13698 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13699 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13700 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13701 | |
| 13702 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13703 | { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
| 13704 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13705 | if test "$ac_cv_c___va_copy" = "yes" |
| 13706 | then |
| 13707 | |
| 13708 | cat >>confdefs.h <<\_ACEOF |
| 13709 | #define HAVE___VA_COPY 1 |
| 13710 | _ACEOF |
| 13711 | |
| 13712 | fi |
| 13713 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13714 | { echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
| 13715 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; } |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13716 | if test "${ac_cv_c_sigsetjmp+set}" = set; then |
| 13717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13718 | else |
| 13719 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13720 | /* confdefs.h. */ |
| 13721 | _ACEOF |
| 13722 | cat confdefs.h >>conftest.$ac_ext |
| 13723 | cat >>conftest.$ac_ext <<_ACEOF |
| 13724 | /* end confdefs.h. */ |
| 13725 | #include <setjmp.h> |
| 13726 | int |
| 13727 | main () |
| 13728 | { |
| 13729 | sigjmp_buf buf; |
| 13730 | sigsetjmp( buf, 1 ); |
| 13731 | siglongjmp( buf, 1 ); |
| 13732 | ; |
| 13733 | return 0; |
| 13734 | } |
| 13735 | _ACEOF |
| 13736 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13737 | if { (ac_try="$ac_link" |
| 13738 | case "(($ac_try" in |
| 13739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13740 | *) ac_try_echo=$ac_try;; |
| 13741 | esac |
| 13742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13743 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13744 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13746 | rm -f conftest.er1 |
| 13747 | cat conftest.err >&5 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13749 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13750 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13751 | { (case "(($ac_try" in |
| 13752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13753 | *) ac_try_echo=$ac_try;; |
| 13754 | esac |
| 13755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13756 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13757 | ac_status=$? |
| 13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13759 | (exit $ac_status); }; } && |
| 13760 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13761 | { (case "(($ac_try" in |
| 13762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13763 | *) ac_try_echo=$ac_try;; |
| 13764 | esac |
| 13765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13766 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13767 | ac_status=$? |
| 13768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13769 | (exit $ac_status); }; }; then |
| 13770 | ac_cv_c_sigsetjmp="yes" |
| 13771 | else |
| 13772 | echo "$as_me: failed program was:" >&5 |
| 13773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13774 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13775 | ac_cv_c_sigsetjmp="no" |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13776 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13777 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13778 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13779 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13780 | |
| 13781 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13782 | { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5 |
| 13783 | echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; } |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13784 | if test "$ac_cv_c_sigsetjmp" = "yes" |
| 13785 | then |
| 13786 | |
| 13787 | cat >>confdefs.h <<\_ACEOF |
| 13788 | #define HAVE_SIGSETJMP 1 |
| 13789 | _ACEOF |
| 13790 | |
| 13791 | fi |
| 13792 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13793 | { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 |
| 13794 | echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13795 | if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then |
| 13796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13797 | else |
| 13798 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13799 | /* confdefs.h. */ |
| 13800 | _ACEOF |
| 13801 | cat confdefs.h >>conftest.$ac_ext |
| 13802 | cat >>conftest.$ac_ext <<_ACEOF |
| 13803 | /* end confdefs.h. */ |
| 13804 | #define _GNU_SOURCE |
| 13805 | #include <pthread.h> |
| 13806 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13807 | typedef pthread_rwlock_t ac__type_new_; |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13808 | int |
| 13809 | main () |
| 13810 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13811 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13812 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13813 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13814 | return 0; |
| 13815 | ; |
| 13816 | return 0; |
| 13817 | } |
| 13818 | _ACEOF |
| 13819 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13820 | if { (ac_try="$ac_compile" |
| 13821 | case "(($ac_try" in |
| 13822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13823 | *) ac_try_echo=$ac_try;; |
| 13824 | esac |
| 13825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13826 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13827 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13829 | rm -f conftest.er1 |
| 13830 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13832 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13833 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13834 | { (case "(($ac_try" in |
| 13835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13836 | *) ac_try_echo=$ac_try;; |
| 13837 | esac |
| 13838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13839 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13840 | ac_status=$? |
| 13841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13842 | (exit $ac_status); }; } && |
| 13843 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13844 | { (case "(($ac_try" in |
| 13845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13846 | *) ac_try_echo=$ac_try;; |
| 13847 | esac |
| 13848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13849 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13850 | ac_status=$? |
| 13851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13852 | (exit $ac_status); }; }; then |
| 13853 | ac_cv_type_pthread_rwlock_t=yes |
| 13854 | else |
| 13855 | echo "$as_me: failed program was:" >&5 |
| 13856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13857 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13858 | ac_cv_type_pthread_rwlock_t=no |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13859 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13860 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13862 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13863 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5 |
| 13864 | echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13865 | if test $ac_cv_type_pthread_rwlock_t = yes; then |
| 13866 | |
| 13867 | cat >>confdefs.h <<_ACEOF |
| 13868 | #define HAVE_PTHREAD_RWLOCK_T 1 |
| 13869 | _ACEOF |
| 13870 | |
| 13871 | |
| 13872 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13873 | { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5 |
| 13874 | echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13875 | if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then |
| 13876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13877 | else |
| 13878 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13879 | /* confdefs.h. */ |
| 13880 | _ACEOF |
| 13881 | cat confdefs.h >>conftest.$ac_ext |
| 13882 | cat >>conftest.$ac_ext <<_ACEOF |
| 13883 | /* end confdefs.h. */ |
| 13884 | #define _GNU_SOURCE |
| 13885 | #include <pthread.h> |
| 13886 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13887 | typedef pthread_rwlockattr_t ac__type_new_; |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13888 | int |
| 13889 | main () |
| 13890 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13891 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13892 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13893 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13894 | return 0; |
| 13895 | ; |
| 13896 | return 0; |
| 13897 | } |
| 13898 | _ACEOF |
| 13899 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13900 | if { (ac_try="$ac_compile" |
| 13901 | case "(($ac_try" in |
| 13902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13903 | *) ac_try_echo=$ac_try;; |
| 13904 | esac |
| 13905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13906 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13907 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13909 | rm -f conftest.er1 |
| 13910 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13912 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13913 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13914 | { (case "(($ac_try" in |
| 13915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13916 | *) ac_try_echo=$ac_try;; |
| 13917 | esac |
| 13918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13919 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13920 | ac_status=$? |
| 13921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13922 | (exit $ac_status); }; } && |
| 13923 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13924 | { (case "(($ac_try" in |
| 13925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13926 | *) ac_try_echo=$ac_try;; |
| 13927 | esac |
| 13928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13929 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13930 | ac_status=$? |
| 13931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13932 | (exit $ac_status); }; }; then |
| 13933 | ac_cv_type_pthread_rwlockattr_t=yes |
| 13934 | else |
| 13935 | echo "$as_me: failed program was:" >&5 |
| 13936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13937 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13938 | ac_cv_type_pthread_rwlockattr_t=no |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13939 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13940 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13942 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13943 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5 |
| 13944 | echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13945 | if test $ac_cv_type_pthread_rwlockattr_t = yes; then |
| 13946 | |
| 13947 | cat >>confdefs.h <<_ACEOF |
| 13948 | #define HAVE_PTHREAD_RWLOCKATTR_T 1 |
| 13949 | _ACEOF |
| 13950 | |
| 13951 | |
| 13952 | fi |
| 13953 | |
| 13954 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 13955 | ac_wine_check_funcs_save_LIBS="$LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13956 | LIBS="$LIBS $LIBPTHREAD" |
| 13957 | |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 13958 | |
| 13959 | |
Tijl Coosemans | fc8172f | 2006-08-05 23:31:07 +0200 | [diff] [blame^] | 13960 | |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 13961 | for ac_func in \ |
Tijl Coosemans | fc8172f | 2006-08-05 23:31:07 +0200 | [diff] [blame^] | 13962 | pthread_attr_get_np \ |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 13963 | pthread_getattr_np \ |
| 13964 | pthread_get_stackaddr_np \ |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 13965 | pthread_get_stacksize_np |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13966 | do |
| 13967 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13968 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13969 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 13970 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13972 | else |
| 13973 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13974 | /* confdefs.h. */ |
| 13975 | _ACEOF |
| 13976 | cat confdefs.h >>conftest.$ac_ext |
| 13977 | cat >>conftest.$ac_ext <<_ACEOF |
| 13978 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13979 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13980 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13981 | #define $ac_func innocuous_$ac_func |
| 13982 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13983 | /* System header to define __stub macros and hopefully few prototypes, |
| 13984 | which can conflict with char $ac_func (); below. |
| 13985 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13986 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13987 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13988 | #ifdef __STDC__ |
| 13989 | # include <limits.h> |
| 13990 | #else |
| 13991 | # include <assert.h> |
| 13992 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13993 | |
| 13994 | #undef $ac_func |
| 13995 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13996 | /* Override any GCC internal prototype to avoid an error. |
| 13997 | Use char because int might match the return type of a GCC |
| 13998 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13999 | #ifdef __cplusplus |
| 14000 | extern "C" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14001 | #endif |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14002 | char $ac_func (); |
| 14003 | /* The GNU C library defines this for functions which it implements |
| 14004 | to always fail with ENOSYS. Some functions are actually named |
| 14005 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14006 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14007 | choke me |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14008 | #endif |
| 14009 | |
| 14010 | int |
| 14011 | main () |
| 14012 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14013 | return $ac_func (); |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14014 | ; |
| 14015 | return 0; |
| 14016 | } |
| 14017 | _ACEOF |
| 14018 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14019 | if { (ac_try="$ac_link" |
| 14020 | case "(($ac_try" in |
| 14021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14022 | *) ac_try_echo=$ac_try;; |
| 14023 | esac |
| 14024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14025 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14026 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14028 | rm -f conftest.er1 |
| 14029 | cat conftest.err >&5 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14031 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14033 | { (case "(($ac_try" in |
| 14034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14035 | *) ac_try_echo=$ac_try;; |
| 14036 | esac |
| 14037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14038 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14039 | ac_status=$? |
| 14040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14041 | (exit $ac_status); }; } && |
| 14042 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14043 | { (case "(($ac_try" in |
| 14044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14045 | *) ac_try_echo=$ac_try;; |
| 14046 | esac |
| 14047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14048 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14049 | ac_status=$? |
| 14050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14051 | (exit $ac_status); }; }; then |
| 14052 | eval "$as_ac_var=yes" |
| 14053 | else |
| 14054 | echo "$as_me: failed program was:" >&5 |
| 14055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14056 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14057 | eval "$as_ac_var=no" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14058 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14059 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14060 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14061 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14062 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14063 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14064 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14065 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14066 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14067 | cat >>confdefs.h <<_ACEOF |
| 14068 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14069 | _ACEOF |
| 14070 | |
| 14071 | fi |
| 14072 | done |
| 14073 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 14074 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14075 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14076 | # Extract the first word of "artsc-config", so it can be a program name with args. |
| 14077 | set dummy artsc-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14078 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14079 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14080 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
| 14081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14082 | else |
| 14083 | case $ARTSCCONFIG in |
| 14084 | [\\/]* | ?:[\\/]*) |
| 14085 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. |
| 14086 | ;; |
| 14087 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14089 | for as_dir in $PATH |
| 14090 | do |
| 14091 | IFS=$as_save_IFS |
| 14092 | test -z "$as_dir" && as_dir=. |
| 14093 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14095 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 14096 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14097 | break 2 |
| 14098 | fi |
| 14099 | done |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14100 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14101 | IFS=$as_save_IFS |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14102 | |
| 14103 | ;; |
| 14104 | esac |
| 14105 | fi |
| 14106 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14107 | if test -n "$ARTSCCONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14108 | { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
| 14109 | echo "${ECHO_T}$ARTSCCONFIG" >&6; } |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14110 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14111 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14112 | echo "${ECHO_T}no" >&6; } |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14113 | fi |
| 14114 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14115 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14116 | if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"'; |
| 14117 | then |
Alexandre Julliard | b3b12cf | 2004-02-24 01:24:20 +0000 | [diff] [blame] | 14118 | ARTSC_CFLAGS="" |
| 14119 | for i in `$ARTSCCONFIG --cflags` |
| 14120 | do |
| 14121 | case "$i" in |
| 14122 | -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";; |
| 14123 | esac |
| 14124 | done |
Alexandre Julliard | 197a7d0 | 2006-04-04 12:08:30 +0200 | [diff] [blame] | 14125 | ARTSC_LIBS="" |
| 14126 | for i in `$ARTSCCONFIG --libs` |
| 14127 | do |
| 14128 | case "$i" in |
| 14129 | -L/usr/lib|-L/usr/lib64) ;; |
| 14130 | -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";; |
| 14131 | esac |
| 14132 | done |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14133 | save_CFLAGS="$CFLAGS" |
| 14134 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14135 | { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5 |
| 14136 | echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; } |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14137 | if test "${ac_cv_lib_artsc_arts_init+set}" = set; then |
| 14138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14139 | else |
| 14140 | ac_check_lib_save_LIBS=$LIBS |
Vitaliy Margolen | 80816e9 | 2005-06-30 20:46:59 +0000 | [diff] [blame] | 14141 | LIBS="-lartsc $ARTSC_LIBS $LIBS" |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14142 | cat >conftest.$ac_ext <<_ACEOF |
| 14143 | /* confdefs.h. */ |
| 14144 | _ACEOF |
| 14145 | cat confdefs.h >>conftest.$ac_ext |
| 14146 | cat >>conftest.$ac_ext <<_ACEOF |
| 14147 | /* end confdefs.h. */ |
| 14148 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14149 | /* Override any GCC internal prototype to avoid an error. |
| 14150 | Use char because int might match the return type of a GCC |
| 14151 | builtin and then its argument prototype would still apply. */ |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14152 | #ifdef __cplusplus |
| 14153 | extern "C" |
| 14154 | #endif |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14155 | char arts_init (); |
| 14156 | int |
| 14157 | main () |
| 14158 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14159 | return arts_init (); |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14160 | ; |
| 14161 | return 0; |
| 14162 | } |
| 14163 | _ACEOF |
| 14164 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14165 | if { (ac_try="$ac_link" |
| 14166 | case "(($ac_try" in |
| 14167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14168 | *) ac_try_echo=$ac_try;; |
| 14169 | esac |
| 14170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14171 | (eval "$ac_link") 2>conftest.er1 |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14172 | ac_status=$? |
| 14173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14174 | rm -f conftest.er1 |
| 14175 | cat conftest.err >&5 |
| 14176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14177 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14178 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14179 | { (case "(($ac_try" in |
| 14180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14181 | *) ac_try_echo=$ac_try;; |
| 14182 | esac |
| 14183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14184 | (eval "$ac_try") 2>&5 |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14185 | ac_status=$? |
| 14186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14187 | (exit $ac_status); }; } && |
| 14188 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14189 | { (case "(($ac_try" in |
| 14190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14191 | *) ac_try_echo=$ac_try;; |
| 14192 | esac |
| 14193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14194 | (eval "$ac_try") 2>&5 |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14195 | ac_status=$? |
| 14196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14197 | (exit $ac_status); }; }; then |
| 14198 | ac_cv_lib_artsc_arts_init=yes |
| 14199 | else |
| 14200 | echo "$as_me: failed program was:" >&5 |
| 14201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14202 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14203 | ac_cv_lib_artsc_arts_init=no |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14204 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14205 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14206 | rm -f core conftest.err conftest.$ac_objext \ |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14207 | conftest$ac_exeext conftest.$ac_ext |
| 14208 | LIBS=$ac_check_lib_save_LIBS |
| 14209 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14210 | { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5 |
| 14211 | echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; } |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14212 | if test $ac_cv_lib_artsc_arts_init = yes; then |
| 14213 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14214 | /* confdefs.h. */ |
| 14215 | _ACEOF |
| 14216 | cat confdefs.h >>conftest.$ac_ext |
| 14217 | cat >>conftest.$ac_ext <<_ACEOF |
| 14218 | /* end confdefs.h. */ |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14219 | #include <artsc.h> |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14220 | int |
| 14221 | main () |
| 14222 | { |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14223 | arts_stream_t stream; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14224 | ; |
| 14225 | return 0; |
| 14226 | } |
| 14227 | _ACEOF |
| 14228 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14229 | if { (ac_try="$ac_compile" |
| 14230 | case "(($ac_try" in |
| 14231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14232 | *) ac_try_echo=$ac_try;; |
| 14233 | esac |
| 14234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14235 | (eval "$ac_compile") 2>conftest.er1 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14236 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14238 | rm -f conftest.er1 |
| 14239 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14241 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14243 | { (case "(($ac_try" in |
| 14244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14245 | *) ac_try_echo=$ac_try;; |
| 14246 | esac |
| 14247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14248 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14249 | ac_status=$? |
| 14250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14251 | (exit $ac_status); }; } && |
| 14252 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14253 | { (case "(($ac_try" in |
| 14254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14255 | *) ac_try_echo=$ac_try;; |
| 14256 | esac |
| 14257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14258 | (eval "$ac_try") 2>&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14259 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14261 | (exit $ac_status); }; }; then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14262 | ARTSLIBS=$ARTSC_LIBS |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14263 | |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14264 | ARTSINCL=$ARTSC_CFLAGS |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14265 | |
| 14266 | |
| 14267 | cat >>confdefs.h <<\_ACEOF |
| 14268 | #define HAVE_ARTS 1 |
| 14269 | _ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14270 | |
| 14271 | else |
| 14272 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14274 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14275 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14276 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14277 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14279 | fi |
| 14280 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14281 | CFLAGS="$save_CFLAGS" |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14282 | fi |
| 14283 | |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14284 | # Extract the first word of "esd-config", so it can be a program name with args. |
| 14285 | set dummy esd-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14286 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14288 | if test "${ac_cv_path_ESDCONFIG+set}" = set; then |
| 14289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14290 | else |
| 14291 | case $ESDCONFIG in |
| 14292 | [\\/]* | ?:[\\/]*) |
| 14293 | ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path. |
| 14294 | ;; |
| 14295 | *) |
| 14296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14297 | for as_dir in $PATH |
| 14298 | do |
| 14299 | IFS=$as_save_IFS |
| 14300 | test -z "$as_dir" && as_dir=. |
| 14301 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14303 | ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 14304 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14305 | break 2 |
| 14306 | fi |
| 14307 | done |
| 14308 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14309 | IFS=$as_save_IFS |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14310 | |
| 14311 | ;; |
| 14312 | esac |
| 14313 | fi |
| 14314 | ESDCONFIG=$ac_cv_path_ESDCONFIG |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14315 | if test -n "$ESDCONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14316 | { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5 |
| 14317 | echo "${ECHO_T}$ESDCONFIG" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14318 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14319 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14320 | echo "${ECHO_T}no" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14321 | fi |
| 14322 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14323 | |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14324 | if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"'; |
| 14325 | then |
| 14326 | ESD_CFLAGS="" |
| 14327 | for i in `$ESDCONFIG --cflags` |
| 14328 | do |
| 14329 | case "$i" in |
| 14330 | -I*) ESD_CFLAGS="$ESD_CFLAGS $i";; |
| 14331 | esac |
| 14332 | done |
| 14333 | ESD_LIBS=`$ESDCONFIG --libs` |
| 14334 | save_CFLAGS="$CFLAGS" |
| 14335 | CFLAGS="$CFLAGS $ESD_CFLAGS" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14336 | { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5 |
| 14337 | echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14338 | if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then |
| 14339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14340 | else |
| 14341 | ac_check_lib_save_LIBS=$LIBS |
| 14342 | LIBS="-lesd $LIBS" |
| 14343 | cat >conftest.$ac_ext <<_ACEOF |
| 14344 | /* confdefs.h. */ |
| 14345 | _ACEOF |
| 14346 | cat confdefs.h >>conftest.$ac_ext |
| 14347 | cat >>conftest.$ac_ext <<_ACEOF |
| 14348 | /* end confdefs.h. */ |
| 14349 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14350 | /* Override any GCC internal prototype to avoid an error. |
| 14351 | Use char because int might match the return type of a GCC |
| 14352 | builtin and then its argument prototype would still apply. */ |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14353 | #ifdef __cplusplus |
| 14354 | extern "C" |
| 14355 | #endif |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14356 | char esd_open_sound (); |
| 14357 | int |
| 14358 | main () |
| 14359 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14360 | return esd_open_sound (); |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14361 | ; |
| 14362 | return 0; |
| 14363 | } |
| 14364 | _ACEOF |
| 14365 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14366 | if { (ac_try="$ac_link" |
| 14367 | case "(($ac_try" in |
| 14368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14369 | *) ac_try_echo=$ac_try;; |
| 14370 | esac |
| 14371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14372 | (eval "$ac_link") 2>conftest.er1 |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14373 | ac_status=$? |
| 14374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14375 | rm -f conftest.er1 |
| 14376 | cat conftest.err >&5 |
| 14377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14378 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14379 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14380 | { (case "(($ac_try" in |
| 14381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14382 | *) ac_try_echo=$ac_try;; |
| 14383 | esac |
| 14384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14385 | (eval "$ac_try") 2>&5 |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14386 | ac_status=$? |
| 14387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14388 | (exit $ac_status); }; } && |
| 14389 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14390 | { (case "(($ac_try" in |
| 14391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14392 | *) ac_try_echo=$ac_try;; |
| 14393 | esac |
| 14394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14395 | (eval "$ac_try") 2>&5 |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14396 | ac_status=$? |
| 14397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14398 | (exit $ac_status); }; }; then |
| 14399 | ac_cv_lib_esd_esd_open_sound=yes |
| 14400 | else |
| 14401 | echo "$as_me: failed program was:" >&5 |
| 14402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14403 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14404 | ac_cv_lib_esd_esd_open_sound=no |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14405 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14406 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14407 | rm -f core conftest.err conftest.$ac_objext \ |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14408 | conftest$ac_exeext conftest.$ac_ext |
| 14409 | LIBS=$ac_check_lib_save_LIBS |
| 14410 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14411 | { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5 |
| 14412 | echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14413 | if test $ac_cv_lib_esd_esd_open_sound = yes; then |
| 14414 | ESDLIBS=$ESD_LIBS |
| 14415 | |
| 14416 | ESDINCL=$ESD_CFLAGS |
| 14417 | |
| 14418 | |
| 14419 | cat >>confdefs.h <<\_ACEOF |
| 14420 | #define HAVE_ESD 1 |
| 14421 | _ACEOF |
| 14422 | |
| 14423 | fi |
| 14424 | |
| 14425 | CFLAGS="$save_CFLAGS" |
| 14426 | fi |
| 14427 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14428 | ALSALIBS="" |
| 14429 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 14430 | if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes" |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14431 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14432 | { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5 |
| 14433 | echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; } |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14434 | if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14436 | else |
| 14437 | ac_check_lib_save_LIBS=$LIBS |
| 14438 | LIBS="-lasound $LIBS" |
| 14439 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14440 | /* confdefs.h. */ |
| 14441 | _ACEOF |
| 14442 | cat confdefs.h >>conftest.$ac_ext |
| 14443 | cat >>conftest.$ac_ext <<_ACEOF |
| 14444 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14445 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14446 | /* Override any GCC internal prototype to avoid an error. |
| 14447 | Use char because int might match the return type of a GCC |
| 14448 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14449 | #ifdef __cplusplus |
| 14450 | extern "C" |
| 14451 | #endif |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14452 | char snd_pcm_hw_params_get_access (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14453 | int |
| 14454 | main () |
| 14455 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14456 | return snd_pcm_hw_params_get_access (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14457 | ; |
| 14458 | return 0; |
| 14459 | } |
| 14460 | _ACEOF |
| 14461 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14462 | if { (ac_try="$ac_link" |
| 14463 | case "(($ac_try" in |
| 14464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14465 | *) ac_try_echo=$ac_try;; |
| 14466 | esac |
| 14467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14468 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14469 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14471 | rm -f conftest.er1 |
| 14472 | cat conftest.err >&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14474 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14476 | { (case "(($ac_try" in |
| 14477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14478 | *) ac_try_echo=$ac_try;; |
| 14479 | esac |
| 14480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14481 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14482 | ac_status=$? |
| 14483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14484 | (exit $ac_status); }; } && |
| 14485 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14486 | { (case "(($ac_try" in |
| 14487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14488 | *) ac_try_echo=$ac_try;; |
| 14489 | esac |
| 14490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14491 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14492 | ac_status=$? |
| 14493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14494 | (exit $ac_status); }; }; then |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14495 | ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14496 | else |
| 14497 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14499 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14500 | ac_cv_lib_asound_snd_pcm_hw_params_get_access=no |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14501 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14502 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14503 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14504 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14505 | LIBS=$ac_check_lib_save_LIBS |
| 14506 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14507 | { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5 |
| 14508 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; } |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14509 | if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then |
| 14510 | cat >conftest.$ac_ext <<_ACEOF |
| 14511 | /* confdefs.h. */ |
| 14512 | _ACEOF |
| 14513 | cat confdefs.h >>conftest.$ac_ext |
| 14514 | cat >>conftest.$ac_ext <<_ACEOF |
| 14515 | /* end confdefs.h. */ |
| 14516 | #ifdef HAVE_ALSA_ASOUNDLIB_H |
| 14517 | #include <alsa/asoundlib.h> |
| 14518 | #elif defined(HAVE_SYS_ASOUNDLIB_H) |
| 14519 | #include <sys/asoundlib.h> |
| 14520 | #endif |
| 14521 | int |
| 14522 | main () |
| 14523 | { |
| 14524 | int ret = snd_pcm_hw_params_get_access(NULL, NULL) |
| 14525 | ; |
| 14526 | return 0; |
| 14527 | } |
| 14528 | _ACEOF |
| 14529 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14530 | if { (ac_try="$ac_compile" |
| 14531 | case "(($ac_try" in |
| 14532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14533 | *) ac_try_echo=$ac_try;; |
| 14534 | esac |
| 14535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14536 | (eval "$ac_compile") 2>conftest.er1 |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14537 | ac_status=$? |
| 14538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14539 | rm -f conftest.er1 |
| 14540 | cat conftest.err >&5 |
| 14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14542 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14543 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14544 | { (case "(($ac_try" in |
| 14545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14546 | *) ac_try_echo=$ac_try;; |
| 14547 | esac |
| 14548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14549 | (eval "$ac_try") 2>&5 |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14550 | ac_status=$? |
| 14551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14552 | (exit $ac_status); }; } && |
| 14553 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14554 | { (case "(($ac_try" in |
| 14555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14556 | *) ac_try_echo=$ac_try;; |
| 14557 | esac |
| 14558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14559 | (eval "$ac_try") 2>&5 |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14560 | ac_status=$? |
| 14561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14562 | (exit $ac_status); }; }; then |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14563 | |
| 14564 | cat >>confdefs.h <<\_ACEOF |
| 14565 | #define HAVE_ALSA 1 |
| 14566 | _ACEOF |
| 14567 | |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14568 | ALSALIBS="-lasound" |
| 14569 | else |
| 14570 | echo "$as_me: failed program was:" >&5 |
| 14571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14572 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14573 | |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14574 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14575 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14577 | fi |
| 14578 | |
| 14579 | fi |
| 14580 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14581 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14582 | AUDIOIOLIBS="" |
| 14583 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 14584 | if test "$ac_cv_header_libaudioio_h" = "yes" |
| 14585 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14586 | { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
| 14587 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; } |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14588 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
| 14589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14590 | else |
| 14591 | ac_check_lib_save_LIBS=$LIBS |
| 14592 | LIBS="-laudioio $LIBS" |
| 14593 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14594 | /* confdefs.h. */ |
| 14595 | _ACEOF |
| 14596 | cat confdefs.h >>conftest.$ac_ext |
| 14597 | cat >>conftest.$ac_ext <<_ACEOF |
| 14598 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14599 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14600 | /* Override any GCC internal prototype to avoid an error. |
| 14601 | Use char because int might match the return type of a GCC |
| 14602 | builtin and then its argument prototype would still apply. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14603 | #ifdef __cplusplus |
| 14604 | extern "C" |
| 14605 | #endif |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14606 | char AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14607 | int |
| 14608 | main () |
| 14609 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14610 | return AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14611 | ; |
| 14612 | return 0; |
| 14613 | } |
| 14614 | _ACEOF |
| 14615 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14616 | if { (ac_try="$ac_link" |
| 14617 | case "(($ac_try" in |
| 14618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14619 | *) ac_try_echo=$ac_try;; |
| 14620 | esac |
| 14621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14622 | (eval "$ac_link") 2>conftest.er1 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14623 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14625 | rm -f conftest.er1 |
| 14626 | cat conftest.err >&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14628 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14630 | { (case "(($ac_try" in |
| 14631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14632 | *) ac_try_echo=$ac_try;; |
| 14633 | esac |
| 14634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14635 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14636 | ac_status=$? |
| 14637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14638 | (exit $ac_status); }; } && |
| 14639 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14640 | { (case "(($ac_try" in |
| 14641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14642 | *) ac_try_echo=$ac_try;; |
| 14643 | esac |
| 14644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14645 | (eval "$ac_try") 2>&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14646 | ac_status=$? |
| 14647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14648 | (exit $ac_status); }; }; then |
| 14649 | ac_cv_lib_audioio_AudioIOGetVersion=yes |
| 14650 | else |
| 14651 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14653 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14654 | ac_cv_lib_audioio_AudioIOGetVersion=no |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14655 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14656 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14657 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14658 | conftest$ac_exeext conftest.$ac_ext |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14659 | LIBS=$ac_check_lib_save_LIBS |
| 14660 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14661 | { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
| 14662 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; } |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14663 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
| 14664 | AUDIOIOLIBS="-laudioio" |
| 14665 | |
| 14666 | cat >>confdefs.h <<\_ACEOF |
| 14667 | #define HAVE_LIBAUDIOIO 1 |
| 14668 | _ACEOF |
| 14669 | |
| 14670 | fi |
| 14671 | |
| 14672 | fi |
| 14673 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14674 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 14675 | if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes" |
| 14676 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14677 | { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5 |
| 14678 | echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14679 | if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then |
| 14680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14681 | else |
| 14682 | ac_check_lib_save_LIBS=$LIBS |
| 14683 | LIBS="-lcapi20 $LIBS" |
| 14684 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14685 | /* confdefs.h. */ |
| 14686 | _ACEOF |
| 14687 | cat confdefs.h >>conftest.$ac_ext |
| 14688 | cat >>conftest.$ac_ext <<_ACEOF |
| 14689 | /* end confdefs.h. */ |
| 14690 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14691 | /* Override any GCC internal prototype to avoid an error. |
| 14692 | Use char because int might match the return type of a GCC |
| 14693 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14694 | #ifdef __cplusplus |
| 14695 | extern "C" |
| 14696 | #endif |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14697 | char capi20_register (); |
| 14698 | int |
| 14699 | main () |
| 14700 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14701 | return capi20_register (); |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14702 | ; |
| 14703 | return 0; |
| 14704 | } |
| 14705 | _ACEOF |
| 14706 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14707 | if { (ac_try="$ac_link" |
| 14708 | case "(($ac_try" in |
| 14709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14710 | *) ac_try_echo=$ac_try;; |
| 14711 | esac |
| 14712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14713 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14714 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14716 | rm -f conftest.er1 |
| 14717 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14719 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14720 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14721 | { (case "(($ac_try" in |
| 14722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14723 | *) ac_try_echo=$ac_try;; |
| 14724 | esac |
| 14725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14726 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14727 | ac_status=$? |
| 14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14729 | (exit $ac_status); }; } && |
| 14730 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14731 | { (case "(($ac_try" in |
| 14732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14733 | *) ac_try_echo=$ac_try;; |
| 14734 | esac |
| 14735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14736 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14737 | ac_status=$? |
| 14738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14739 | (exit $ac_status); }; }; then |
| 14740 | ac_cv_lib_capi20_capi20_register=yes |
| 14741 | else |
| 14742 | echo "$as_me: failed program was:" >&5 |
| 14743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14744 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14745 | ac_cv_lib_capi20_capi20_register=no |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14746 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14747 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14748 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14749 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14750 | LIBS=$ac_check_lib_save_LIBS |
| 14751 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14752 | { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5 |
| 14753 | echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14754 | if test $ac_cv_lib_capi20_capi20_register = yes; then |
| 14755 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14756 | cat >>confdefs.h <<\_ACEOF |
| 14757 | #define HAVE_CAPI4LINUX 1 |
| 14758 | _ACEOF |
| 14759 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14760 | fi |
| 14761 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14762 | fi |
| 14763 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14764 | |
Robert Shearman | 68249c1 | 2006-07-25 10:36:06 +0100 | [diff] [blame] | 14765 | if test "$ac_cv_header_gif_lib_h" = "yes" |
| 14766 | then |
| 14767 | cat >conftest.$ac_ext <<_ACEOF |
| 14768 | /* confdefs.h. */ |
| 14769 | _ACEOF |
| 14770 | cat confdefs.h >>conftest.$ac_ext |
| 14771 | cat >>conftest.$ac_ext <<_ACEOF |
| 14772 | /* end confdefs.h. */ |
| 14773 | #include <gif_lib.h> |
| 14774 | int |
| 14775 | main () |
| 14776 | { |
| 14777 | static typeof(DGifOpen) * func; |
| 14778 | ; |
| 14779 | return 0; |
| 14780 | } |
| 14781 | _ACEOF |
| 14782 | rm -f conftest.$ac_objext |
| 14783 | if { (ac_try="$ac_compile" |
| 14784 | case "(($ac_try" in |
| 14785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14786 | *) ac_try_echo=$ac_try;; |
| 14787 | esac |
| 14788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14789 | (eval "$ac_compile") 2>conftest.er1 |
| 14790 | ac_status=$? |
| 14791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14792 | rm -f conftest.er1 |
| 14793 | cat conftest.err >&5 |
| 14794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14795 | (exit $ac_status); } && |
| 14796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14797 | { (case "(($ac_try" in |
| 14798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14799 | *) ac_try_echo=$ac_try;; |
| 14800 | esac |
| 14801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14802 | (eval "$ac_try") 2>&5 |
| 14803 | ac_status=$? |
| 14804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14805 | (exit $ac_status); }; } && |
| 14806 | { ac_try='test -s conftest.$ac_objext' |
| 14807 | { (case "(($ac_try" in |
| 14808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14809 | *) ac_try_echo=$ac_try;; |
| 14810 | esac |
| 14811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14812 | (eval "$ac_try") 2>&5 |
| 14813 | ac_status=$? |
| 14814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14815 | (exit $ac_status); }; }; then |
| 14816 | |
| 14817 | cat >>confdefs.h <<\_ACEOF |
| 14818 | #define HAVE_GIF 1 |
| 14819 | _ACEOF |
| 14820 | |
| 14821 | else |
| 14822 | echo "$as_me: failed program was:" >&5 |
| 14823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14824 | |
| 14825 | |
| 14826 | fi |
| 14827 | |
| 14828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14829 | fi |
| 14830 | |
| 14831 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 14832 | EXTRACFLAGS="" |
| 14833 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14834 | if test "x${GCC}" = "xyes" |
| 14835 | then |
Hans Leidekker | d17b232 | 2004-01-06 21:37:44 +0000 | [diff] [blame] | 14836 | EXTRACFLAGS="-Wall -pipe" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14837 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14838 | { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
| 14839 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14840 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 14841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14842 | else |
| 14843 | if test "$cross_compiling" = yes; then |
| 14844 | ac_cv_c_gcc_strength_bug="yes" |
| 14845 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14846 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14847 | /* confdefs.h. */ |
| 14848 | _ACEOF |
| 14849 | cat confdefs.h >>conftest.$ac_ext |
| 14850 | cat >>conftest.$ac_ext <<_ACEOF |
| 14851 | /* end confdefs.h. */ |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14852 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 14853 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14854 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 14855 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14856 | unsigned int B = 3; |
| 14857 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 14858 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 14859 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 14860 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14861 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 14862 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14863 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14864 | _ACEOF |
| 14865 | rm -f conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14866 | if { (ac_try="$ac_link" |
| 14867 | case "(($ac_try" in |
| 14868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14869 | *) ac_try_echo=$ac_try;; |
| 14870 | esac |
| 14871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14872 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14873 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14875 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14876 | { (case "(($ac_try" in |
| 14877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14878 | *) ac_try_echo=$ac_try;; |
| 14879 | esac |
| 14880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14881 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14882 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14884 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14885 | ac_cv_c_gcc_strength_bug="no" |
| 14886 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14887 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14888 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14890 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14891 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14892 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14893 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14894 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14895 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14896 | |
| 14897 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14898 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14899 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
| 14900 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; } |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14901 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 14902 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 14903 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14904 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 14905 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14906 | { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5 |
| 14907 | echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14908 | if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then |
| 14909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14910 | else |
| 14911 | ac_wine_try_cflags_saved=$CFLAGS |
| 14912 | CFLAGS="$CFLAGS -fshort-wchar" |
| 14913 | cat >conftest.$ac_ext <<_ACEOF |
| 14914 | /* confdefs.h. */ |
| 14915 | _ACEOF |
| 14916 | cat confdefs.h >>conftest.$ac_ext |
| 14917 | cat >>conftest.$ac_ext <<_ACEOF |
| 14918 | /* end confdefs.h. */ |
| 14919 | |
| 14920 | int |
| 14921 | main () |
| 14922 | { |
| 14923 | |
| 14924 | ; |
| 14925 | return 0; |
| 14926 | } |
| 14927 | _ACEOF |
| 14928 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14929 | if { (ac_try="$ac_link" |
| 14930 | case "(($ac_try" in |
| 14931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14932 | *) ac_try_echo=$ac_try;; |
| 14933 | esac |
| 14934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14935 | (eval "$ac_link") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14936 | ac_status=$? |
| 14937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14938 | rm -f conftest.er1 |
| 14939 | cat conftest.err >&5 |
| 14940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14941 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14943 | { (case "(($ac_try" in |
| 14944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14945 | *) ac_try_echo=$ac_try;; |
| 14946 | esac |
| 14947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14948 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14949 | ac_status=$? |
| 14950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14951 | (exit $ac_status); }; } && |
| 14952 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14953 | { (case "(($ac_try" in |
| 14954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14955 | *) ac_try_echo=$ac_try;; |
| 14956 | esac |
| 14957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14958 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14959 | ac_status=$? |
| 14960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14961 | (exit $ac_status); }; }; then |
| 14962 | ac_cv_c_gcc_fshort_wchar="yes" |
| 14963 | else |
| 14964 | echo "$as_me: failed program was:" >&5 |
| 14965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14966 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14967 | ac_cv_c_gcc_fshort_wchar="no" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14968 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14969 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14970 | rm -f core conftest.err conftest.$ac_objext \ |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14971 | conftest$ac_exeext conftest.$ac_ext |
| 14972 | CFLAGS=$ac_wine_try_cflags_saved |
| 14973 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14974 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5 |
| 14975 | echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14976 | if test "$ac_cv_c_gcc_fshort_wchar" = "yes" |
| 14977 | then |
| 14978 | |
| 14979 | cat >>confdefs.h <<\_ACEOF |
| 14980 | #define CC_FLAG_SHORT_WCHAR "-fshort-wchar" |
| 14981 | _ACEOF |
| 14982 | |
| 14983 | fi |
| 14984 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14985 | { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5 |
| 14986 | echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; } |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 14987 | if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then |
| 14988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14989 | else |
| 14990 | ac_wine_try_cflags_saved=$CFLAGS |
| 14991 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
| 14992 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 14993 | /* confdefs.h. */ |
| 14994 | _ACEOF |
| 14995 | cat confdefs.h >>conftest.$ac_ext |
| 14996 | cat >>conftest.$ac_ext <<_ACEOF |
| 14997 | /* end confdefs.h. */ |
| 14998 | |
| 14999 | int |
| 15000 | main () |
| 15001 | { |
| 15002 | |
| 15003 | ; |
| 15004 | return 0; |
| 15005 | } |
| 15006 | _ACEOF |
| 15007 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15008 | if { (ac_try="$ac_link" |
| 15009 | case "(($ac_try" in |
| 15010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15011 | *) ac_try_echo=$ac_try;; |
| 15012 | esac |
| 15013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15014 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15015 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15017 | rm -f conftest.er1 |
| 15018 | cat conftest.err >&5 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15020 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15022 | { (case "(($ac_try" in |
| 15023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15024 | *) ac_try_echo=$ac_try;; |
| 15025 | esac |
| 15026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15027 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15028 | ac_status=$? |
| 15029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15030 | (exit $ac_status); }; } && |
| 15031 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15032 | { (case "(($ac_try" in |
| 15033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15034 | *) ac_try_echo=$ac_try;; |
| 15035 | esac |
| 15036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15037 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15038 | ac_status=$? |
| 15039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15040 | (exit $ac_status); }; }; then |
| 15041 | ac_cv_c_gcc_no_strict_aliasing="yes" |
| 15042 | else |
| 15043 | echo "$as_me: failed program was:" >&5 |
| 15044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15045 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15046 | ac_cv_c_gcc_no_strict_aliasing="no" |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15047 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15048 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15049 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15050 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15051 | CFLAGS=$ac_wine_try_cflags_saved |
| 15052 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15053 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5 |
| 15054 | echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; } |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15055 | if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes" |
| 15056 | then |
| 15057 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 15058 | fi |
| 15059 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15060 | { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5 |
| 15061 | echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; } |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15062 | if test "${ac_cv_c_gcc_gstabs+set}" = set; then |
| 15063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15064 | else |
| 15065 | ac_wine_try_cflags_saved=$CFLAGS |
| 15066 | CFLAGS="$CFLAGS -gstabs+" |
| 15067 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15068 | /* confdefs.h. */ |
| 15069 | _ACEOF |
| 15070 | cat confdefs.h >>conftest.$ac_ext |
| 15071 | cat >>conftest.$ac_ext <<_ACEOF |
| 15072 | /* end confdefs.h. */ |
| 15073 | |
| 15074 | int |
| 15075 | main () |
| 15076 | { |
| 15077 | |
| 15078 | ; |
| 15079 | return 0; |
| 15080 | } |
| 15081 | _ACEOF |
| 15082 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15083 | if { (ac_try="$ac_link" |
| 15084 | case "(($ac_try" in |
| 15085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15086 | *) ac_try_echo=$ac_try;; |
| 15087 | esac |
| 15088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15089 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15090 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15092 | rm -f conftest.er1 |
| 15093 | cat conftest.err >&5 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15095 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15097 | { (case "(($ac_try" in |
| 15098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15099 | *) ac_try_echo=$ac_try;; |
| 15100 | esac |
| 15101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15102 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15103 | ac_status=$? |
| 15104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15105 | (exit $ac_status); }; } && |
| 15106 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15107 | { (case "(($ac_try" in |
| 15108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15109 | *) ac_try_echo=$ac_try;; |
| 15110 | esac |
| 15111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15112 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15113 | ac_status=$? |
| 15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15115 | (exit $ac_status); }; }; then |
| 15116 | ac_cv_c_gcc_gstabs="yes" |
| 15117 | else |
| 15118 | echo "$as_me: failed program was:" >&5 |
| 15119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15120 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15121 | ac_cv_c_gcc_gstabs="no" |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15122 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15123 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15124 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15125 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15126 | CFLAGS=$ac_wine_try_cflags_saved |
| 15127 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15128 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5 |
| 15129 | echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; } |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15130 | if test "$ac_cv_c_gcc_gstabs" = "yes" |
| 15131 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 15132 | EXTRACFLAGS="$EXTRACFLAGS -gstabs+" |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15133 | fi |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15134 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15135 | { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5 |
| 15136 | echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; } |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15137 | if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then |
| 15138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15139 | else |
| 15140 | ac_wine_try_cflags_saved=$CFLAGS |
| 15141 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
| 15142 | cat >conftest.$ac_ext <<_ACEOF |
| 15143 | /* confdefs.h. */ |
| 15144 | _ACEOF |
| 15145 | cat confdefs.h >>conftest.$ac_ext |
| 15146 | cat >>conftest.$ac_ext <<_ACEOF |
| 15147 | /* end confdefs.h. */ |
| 15148 | |
| 15149 | int |
| 15150 | main () |
| 15151 | { |
| 15152 | |
| 15153 | ; |
| 15154 | return 0; |
| 15155 | } |
| 15156 | _ACEOF |
| 15157 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15158 | if { (ac_try="$ac_link" |
| 15159 | case "(($ac_try" in |
| 15160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15161 | *) ac_try_echo=$ac_try;; |
| 15162 | esac |
| 15163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15164 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15165 | ac_status=$? |
| 15166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15167 | rm -f conftest.er1 |
| 15168 | cat conftest.err >&5 |
| 15169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15170 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15172 | { (case "(($ac_try" in |
| 15173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15174 | *) ac_try_echo=$ac_try;; |
| 15175 | esac |
| 15176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15177 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15178 | ac_status=$? |
| 15179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15180 | (exit $ac_status); }; } && |
| 15181 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15182 | { (case "(($ac_try" in |
| 15183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15184 | *) ac_try_echo=$ac_try;; |
| 15185 | esac |
| 15186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15187 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15188 | ac_status=$? |
| 15189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15190 | (exit $ac_status); }; }; then |
| 15191 | ac_cv_c_gcc_decl_after_statement="yes" |
| 15192 | else |
| 15193 | echo "$as_me: failed program was:" >&5 |
| 15194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15195 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15196 | ac_cv_c_gcc_decl_after_statement="no" |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15197 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15198 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15199 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15200 | conftest$ac_exeext conftest.$ac_ext |
| 15201 | CFLAGS=$ac_wine_try_cflags_saved |
| 15202 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15203 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5 |
| 15204 | echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; } |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15205 | if test "$ac_cv_c_gcc_decl_after_statement" = "yes" |
| 15206 | then |
| 15207 | EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement" |
| 15208 | fi |
| 15209 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 15210 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15211 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15212 | { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5 |
| 15213 | echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; } |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15214 | if test "${ac_cv_c_string_h_warnings+set}" = set; then |
| 15215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15216 | else |
| 15217 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15218 | /* confdefs.h. */ |
| 15219 | _ACEOF |
| 15220 | cat confdefs.h >>conftest.$ac_ext |
| 15221 | cat >>conftest.$ac_ext <<_ACEOF |
| 15222 | /* end confdefs.h. */ |
| 15223 | #include <string.h> |
| 15224 | int |
| 15225 | main () |
| 15226 | { |
| 15227 | |
| 15228 | ; |
| 15229 | return 0; |
| 15230 | } |
| 15231 | _ACEOF |
| 15232 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15233 | if { (ac_try="$ac_compile" |
| 15234 | case "(($ac_try" in |
| 15235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15236 | *) ac_try_echo=$ac_try;; |
| 15237 | esac |
| 15238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15239 | (eval "$ac_compile") 2>conftest.er1 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15240 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15242 | rm -f conftest.er1 |
| 15243 | cat conftest.err >&5 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15245 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15246 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15247 | { (case "(($ac_try" in |
| 15248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15249 | *) ac_try_echo=$ac_try;; |
| 15250 | esac |
| 15251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15252 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15253 | ac_status=$? |
| 15254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15255 | (exit $ac_status); }; } && |
| 15256 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15257 | { (case "(($ac_try" in |
| 15258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15259 | *) ac_try_echo=$ac_try;; |
| 15260 | esac |
| 15261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15262 | (eval "$ac_try") 2>&5 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15263 | ac_status=$? |
| 15264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15265 | (exit $ac_status); }; }; then |
| 15266 | ac_cv_c_string_h_warnings=no |
| 15267 | else |
| 15268 | echo "$as_me: failed program was:" >&5 |
| 15269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15270 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15271 | ac_cv_c_string_h_warnings=yes |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15272 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15273 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15275 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15276 | { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5 |
| 15277 | echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; } |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 15278 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15279 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 15280 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 15281 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15282 | fi |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15283 | |
| 15284 | BUILTINFLAG="" |
| 15285 | |
| 15286 | saved_CFLAGS="$CFLAGS" |
| 15287 | CFLAGS="$CFLAGS -Werror" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15288 | { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5 |
| 15289 | echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; } |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15290 | if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then |
| 15291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15292 | else |
| 15293 | cat >conftest.$ac_ext <<_ACEOF |
| 15294 | /* confdefs.h. */ |
| 15295 | _ACEOF |
| 15296 | cat confdefs.h >>conftest.$ac_ext |
| 15297 | cat >>conftest.$ac_ext <<_ACEOF |
| 15298 | /* end confdefs.h. */ |
| 15299 | |
| 15300 | int |
| 15301 | main () |
| 15302 | { |
| 15303 | int iswlower(unsigned short); |
| 15304 | ; |
| 15305 | return 0; |
| 15306 | } |
| 15307 | _ACEOF |
| 15308 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15309 | if { (ac_try="$ac_compile" |
| 15310 | case "(($ac_try" in |
| 15311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15312 | *) ac_try_echo=$ac_try;; |
| 15313 | esac |
| 15314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15315 | (eval "$ac_compile") 2>conftest.er1 |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15316 | ac_status=$? |
| 15317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15318 | rm -f conftest.er1 |
| 15319 | cat conftest.err >&5 |
| 15320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15321 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15322 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15323 | { (case "(($ac_try" in |
| 15324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15325 | *) ac_try_echo=$ac_try;; |
| 15326 | esac |
| 15327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15328 | (eval "$ac_try") 2>&5 |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15329 | ac_status=$? |
| 15330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15331 | (exit $ac_status); }; } && |
| 15332 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15333 | { (case "(($ac_try" in |
| 15334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15335 | *) ac_try_echo=$ac_try;; |
| 15336 | esac |
| 15337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15338 | (eval "$ac_try") 2>&5 |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15339 | ac_status=$? |
| 15340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15341 | (exit $ac_status); }; }; then |
| 15342 | ac_cv_c_builtin_wchar_ctype=no |
| 15343 | else |
| 15344 | echo "$as_me: failed program was:" >&5 |
| 15345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15346 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15347 | ac_cv_c_builtin_wchar_ctype=yes |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15348 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15349 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15351 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15352 | { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5 |
| 15353 | echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; } |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15354 | CFLAGS="$saved_CFLAGS" |
| 15355 | if test "$ac_cv_c_builtin_wchar_ctype" = "yes" |
| 15356 | then |
Mike McCormack | a26dabe | 2006-07-19 19:16:59 +0900 | [diff] [blame] | 15357 | BUILTINFLAG="-fno-builtin" |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15358 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 15359 | fi |
| 15360 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15361 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15362 | { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
| 15363 | echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15364 | if test "${ac_cv_asm_func_def+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 15366 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15367 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15368 | /* confdefs.h. */ |
| 15369 | _ACEOF |
| 15370 | cat confdefs.h >>conftest.$ac_ext |
| 15371 | cat >>conftest.$ac_ext <<_ACEOF |
| 15372 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 15373 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); } |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 15374 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15375 | int |
| 15376 | main () |
| 15377 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 15378 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15379 | ; |
| 15380 | return 0; |
| 15381 | } |
| 15382 | _ACEOF |
| 15383 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15384 | if { (ac_try="$ac_link" |
| 15385 | case "(($ac_try" in |
| 15386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15387 | *) ac_try_echo=$ac_try;; |
| 15388 | esac |
| 15389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15390 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15391 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15393 | rm -f conftest.er1 |
| 15394 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15396 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15398 | { (case "(($ac_try" in |
| 15399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15400 | *) ac_try_echo=$ac_try;; |
| 15401 | esac |
| 15402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15403 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15404 | ac_status=$? |
| 15405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15406 | (exit $ac_status); }; } && |
| 15407 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15408 | { (case "(($ac_try" in |
| 15409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15410 | *) ac_try_echo=$ac_try;; |
| 15411 | esac |
| 15412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15413 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15414 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15416 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15417 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 15418 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15419 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15421 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15422 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15423 | /* confdefs.h. */ |
| 15424 | _ACEOF |
| 15425 | cat confdefs.h >>conftest.$ac_ext |
| 15426 | cat >>conftest.$ac_ext <<_ACEOF |
| 15427 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 15428 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15429 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15430 | int |
| 15431 | main () |
| 15432 | { |
| 15433 | |
| 15434 | ; |
| 15435 | return 0; |
| 15436 | } |
| 15437 | _ACEOF |
| 15438 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15439 | if { (ac_try="$ac_link" |
| 15440 | case "(($ac_try" in |
| 15441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15442 | *) ac_try_echo=$ac_try;; |
| 15443 | esac |
| 15444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15445 | (eval "$ac_link") 2>conftest.er1 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15446 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15448 | rm -f conftest.er1 |
| 15449 | cat conftest.err >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15451 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15453 | { (case "(($ac_try" in |
| 15454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15455 | *) ac_try_echo=$ac_try;; |
| 15456 | esac |
| 15457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15458 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15459 | ac_status=$? |
| 15460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15461 | (exit $ac_status); }; } && |
| 15462 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15463 | { (case "(($ac_try" in |
| 15464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15465 | *) ac_try_echo=$ac_try;; |
| 15466 | esac |
| 15467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15468 | (eval "$ac_try") 2>&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15469 | ac_status=$? |
| 15470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15471 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15472 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15473 | else |
| 15474 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15476 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15477 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15478 | /* confdefs.h. */ |
| 15479 | _ACEOF |
| 15480 | cat confdefs.h >>conftest.$ac_ext |
| 15481 | cat >>conftest.$ac_ext <<_ACEOF |
| 15482 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 15483 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15484 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15485 | int |
| 15486 | main () |
| 15487 | { |
| 15488 | |
| 15489 | ; |
| 15490 | return 0; |
| 15491 | } |
| 15492 | _ACEOF |
| 15493 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15494 | if { (ac_try="$ac_link" |
| 15495 | case "(($ac_try" in |
| 15496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15497 | *) ac_try_echo=$ac_try;; |
| 15498 | esac |
| 15499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15500 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15501 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15503 | rm -f conftest.er1 |
| 15504 | cat conftest.err >&5 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15506 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15507 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15508 | { (case "(($ac_try" in |
| 15509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15510 | *) ac_try_echo=$ac_try;; |
| 15511 | esac |
| 15512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15513 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15514 | ac_status=$? |
| 15515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15516 | (exit $ac_status); }; } && |
| 15517 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15518 | { (case "(($ac_try" in |
| 15519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15520 | *) ac_try_echo=$ac_try;; |
| 15521 | esac |
| 15522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15523 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15524 | ac_status=$? |
| 15525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15526 | (exit $ac_status); }; }; then |
| 15527 | ac_cv_asm_func_def=".type 2" |
| 15528 | else |
| 15529 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15531 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15532 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15533 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15534 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15535 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15536 | conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15537 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15538 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15539 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15540 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15541 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15542 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15543 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15544 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15545 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15546 | { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
| 15547 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6; } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15548 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15549 | |
| 15550 | |
| 15551 | case "$ac_cv_asm_func_def" in |
| 15552 | ".def") |
| 15553 | cat >>confdefs.h <<\_ACEOF |
| 15554 | #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15555 | _ACEOF |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15556 | ;; |
| 15557 | ".type @function") |
| 15558 | cat >>confdefs.h <<\_ACEOF |
| 15559 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" |
| 15560 | _ACEOF |
| 15561 | ;; |
| 15562 | ".type 2") |
| 15563 | cat >>confdefs.h <<\_ACEOF |
| 15564 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" |
| 15565 | _ACEOF |
| 15566 | ;; |
| 15567 | *) |
| 15568 | cat >>confdefs.h <<\_ACEOF |
| 15569 | #define __ASM_FUNC(name) "" |
| 15570 | _ACEOF |
| 15571 | ;; |
| 15572 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15573 | |
| 15574 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15575 | { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5 |
| 15576 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15577 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 15578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15579 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15580 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15581 | /* confdefs.h. */ |
| 15582 | _ACEOF |
| 15583 | cat confdefs.h >>conftest.$ac_ext |
| 15584 | cat >>conftest.$ac_ext <<_ACEOF |
| 15585 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 15586 | void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); } |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15587 | extern int ac_test; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15588 | int |
| 15589 | main () |
| 15590 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15591 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15592 | ; |
| 15593 | return 0; |
| 15594 | } |
| 15595 | _ACEOF |
| 15596 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15597 | if { (ac_try="$ac_link" |
| 15598 | case "(($ac_try" in |
| 15599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15600 | *) ac_try_echo=$ac_try;; |
| 15601 | esac |
| 15602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15603 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15604 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15606 | rm -f conftest.er1 |
| 15607 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15609 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15610 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15611 | { (case "(($ac_try" in |
| 15612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15613 | *) ac_try_echo=$ac_try;; |
| 15614 | esac |
| 15615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15616 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15617 | ac_status=$? |
| 15618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15619 | (exit $ac_status); }; } && |
| 15620 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15621 | { (case "(($ac_try" in |
| 15622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15623 | *) ac_try_echo=$ac_try;; |
| 15624 | esac |
| 15625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15626 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15627 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15629 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15630 | ac_cv_c_extern_prefix="yes" |
| 15631 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15632 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15634 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15635 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15636 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15637 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15638 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15639 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15640 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15641 | { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
| 15642 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15643 | |
| 15644 | |
| 15645 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15646 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 15647 | then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15648 | cat >>confdefs.h <<\_ACEOF |
| 15649 | #define __ASM_NAME(name) "_" name |
| 15650 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15651 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15652 | else |
| 15653 | cat >>confdefs.h <<\_ACEOF |
| 15654 | #define __ASM_NAME(name) name |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15655 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15656 | |
| 15657 | fi |
| 15658 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15659 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15660 | DLLEXT="" |
| 15661 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 15662 | DLLFLAGS="-D_REENTRANT" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15663 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15664 | DLLIBS="" |
| 15665 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15666 | LDSHARED="" |
| 15667 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 15668 | LDDLLFLAGS="" |
Alexandre Julliard | 6ac34ac | 2003-10-11 01:05:18 +0000 | [diff] [blame] | 15669 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15670 | LIBEXT="so" |
| 15671 | |
| 15672 | IMPLIBEXT="def" |
| 15673 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15674 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15675 | case $host_os in |
| 15676 | cygwin*|mingw32*) |
| 15677 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15678 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 15679 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15680 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15682 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 15683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15684 | else |
| 15685 | if test -n "$DLLTOOL"; then |
| 15686 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 15687 | else |
| 15688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15689 | for as_dir in $PATH |
| 15690 | do |
| 15691 | IFS=$as_save_IFS |
| 15692 | test -z "$as_dir" && as_dir=. |
| 15693 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15694 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15695 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 15696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15697 | break 2 |
| 15698 | fi |
| 15699 | done |
| 15700 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15701 | IFS=$as_save_IFS |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15702 | |
| 15703 | fi |
| 15704 | fi |
| 15705 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 15706 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15707 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 15708 | echo "${ECHO_T}$DLLTOOL" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15709 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15710 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15711 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15712 | fi |
| 15713 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15714 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15715 | fi |
| 15716 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 15717 | ac_ct_DLLTOOL=$DLLTOOL |
| 15718 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 15719 | set dummy dlltool; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15720 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15721 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15722 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 15723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15724 | else |
| 15725 | if test -n "$ac_ct_DLLTOOL"; then |
| 15726 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 15727 | else |
| 15728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15729 | for as_dir in $PATH |
| 15730 | do |
| 15731 | IFS=$as_save_IFS |
| 15732 | test -z "$as_dir" && as_dir=. |
| 15733 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15734 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15735 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 15736 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15737 | break 2 |
| 15738 | fi |
| 15739 | done |
| 15740 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15741 | IFS=$as_save_IFS |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15742 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15743 | fi |
| 15744 | fi |
| 15745 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 15746 | if test -n "$ac_ct_DLLTOOL"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15747 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 15748 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15749 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15750 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15751 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15752 | fi |
| 15753 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15754 | if test "x$ac_ct_DLLTOOL" = x; then |
| 15755 | DLLTOOL="false" |
| 15756 | else |
| 15757 | case $cross_compiling:$ac_tool_warned in |
| 15758 | yes:) |
| 15759 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 15760 | whose name does not start with the host triplet. If you think this |
| 15761 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 15762 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 15763 | whose name does not start with the host triplet. If you think this |
| 15764 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 15765 | ac_tool_warned=yes ;; |
| 15766 | esac |
| 15767 | DLLTOOL=$ac_ct_DLLTOOL |
| 15768 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15769 | else |
| 15770 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 15771 | fi |
| 15772 | |
| 15773 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15774 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 15775 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15776 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15778 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 15779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15780 | else |
| 15781 | if test -n "$DLLWRAP"; then |
| 15782 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 15783 | else |
| 15784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15785 | for as_dir in $PATH |
| 15786 | do |
| 15787 | IFS=$as_save_IFS |
| 15788 | test -z "$as_dir" && as_dir=. |
| 15789 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15791 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15792 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15793 | break 2 |
| 15794 | fi |
| 15795 | done |
| 15796 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15797 | IFS=$as_save_IFS |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15798 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15799 | fi |
| 15800 | fi |
| 15801 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 15802 | if test -n "$DLLWRAP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15803 | { echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
| 15804 | echo "${ECHO_T}$DLLWRAP" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15805 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15806 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15807 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15808 | fi |
| 15809 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15810 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15811 | fi |
| 15812 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 15813 | ac_ct_DLLWRAP=$DLLWRAP |
| 15814 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 15815 | set dummy dllwrap; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15816 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15818 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
| 15819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15820 | else |
| 15821 | if test -n "$ac_ct_DLLWRAP"; then |
| 15822 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 15823 | else |
| 15824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15825 | for as_dir in $PATH |
| 15826 | do |
| 15827 | IFS=$as_save_IFS |
| 15828 | test -z "$as_dir" && as_dir=. |
| 15829 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15831 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 15832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15833 | break 2 |
| 15834 | fi |
| 15835 | done |
| 15836 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15837 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15838 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15839 | fi |
| 15840 | fi |
| 15841 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 15842 | if test -n "$ac_ct_DLLWRAP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15843 | { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
| 15844 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15845 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15846 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15847 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15848 | fi |
| 15849 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15850 | if test "x$ac_ct_DLLWRAP" = x; then |
| 15851 | DLLWRAP="false" |
| 15852 | else |
| 15853 | case $cross_compiling:$ac_tool_warned in |
| 15854 | yes:) |
| 15855 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 15856 | whose name does not start with the host triplet. If you think this |
| 15857 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 15858 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 15859 | whose name does not start with the host triplet. If you think this |
| 15860 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 15861 | ac_tool_warned=yes ;; |
| 15862 | esac |
| 15863 | DLLWRAP=$ac_ct_DLLWRAP |
| 15864 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15865 | else |
| 15866 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 15867 | fi |
| 15868 | |
| 15869 | if test "$DLLWRAP" = "false"; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15870 | LIBEXT="a" |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15871 | else |
| 15872 | LIBEXT="dll" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15873 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15874 | IMPLIBEXT="a" |
Alexandre Julliard | 56a4a76 | 2004-08-12 03:27:50 +0000 | [diff] [blame] | 15875 | WIN16_FILES="" |
| 15876 | WIN16_INSTALL="" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15877 | ;; |
| 15878 | *) |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 15879 | if test "$ac_cv_header_dlfcn_h" = "yes" |
| 15880 | then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15881 | |
| 15882 | for ac_func in dlopen |
| 15883 | do |
| 15884 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15885 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15886 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15887 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15889 | else |
| 15890 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15891 | /* confdefs.h. */ |
| 15892 | _ACEOF |
| 15893 | cat confdefs.h >>conftest.$ac_ext |
| 15894 | cat >>conftest.$ac_ext <<_ACEOF |
| 15895 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15896 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15897 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15898 | #define $ac_func innocuous_$ac_func |
| 15899 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15900 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15901 | which can conflict with char $ac_func (); below. |
| 15902 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15903 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15904 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15905 | #ifdef __STDC__ |
| 15906 | # include <limits.h> |
| 15907 | #else |
| 15908 | # include <assert.h> |
| 15909 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15910 | |
| 15911 | #undef $ac_func |
| 15912 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15913 | /* Override any GCC internal prototype to avoid an error. |
| 15914 | Use char because int might match the return type of a GCC |
| 15915 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15916 | #ifdef __cplusplus |
| 15917 | extern "C" |
| 15918 | #endif |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15919 | char $ac_func (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15920 | /* The GNU C library defines this for functions which it implements |
| 15921 | to always fail with ENOSYS. Some functions are actually named |
| 15922 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15923 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15924 | choke me |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15925 | #endif |
| 15926 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15927 | int |
| 15928 | main () |
| 15929 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15930 | return $ac_func (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15931 | ; |
| 15932 | return 0; |
| 15933 | } |
| 15934 | _ACEOF |
| 15935 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15936 | if { (ac_try="$ac_link" |
| 15937 | case "(($ac_try" in |
| 15938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15939 | *) ac_try_echo=$ac_try;; |
| 15940 | esac |
| 15941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15942 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15943 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15945 | rm -f conftest.er1 |
| 15946 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15948 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15949 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15950 | { (case "(($ac_try" in |
| 15951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15952 | *) ac_try_echo=$ac_try;; |
| 15953 | esac |
| 15954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15955 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15956 | ac_status=$? |
| 15957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15958 | (exit $ac_status); }; } && |
| 15959 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15960 | { (case "(($ac_try" in |
| 15961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15962 | *) ac_try_echo=$ac_try;; |
| 15963 | esac |
| 15964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15965 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15966 | ac_status=$? |
| 15967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15968 | (exit $ac_status); }; }; then |
| 15969 | eval "$as_ac_var=yes" |
| 15970 | else |
| 15971 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15973 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15974 | eval "$as_ac_var=no" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15975 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15976 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15977 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15978 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15979 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15980 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15981 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15982 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15983 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15984 | cat >>confdefs.h <<_ACEOF |
| 15985 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15986 | _ACEOF |
| 15987 | |
| 15988 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15989 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15990 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15991 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 15992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15993 | else |
| 15994 | ac_check_lib_save_LIBS=$LIBS |
| 15995 | LIBS="-ldl $LIBS" |
| 15996 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15997 | /* confdefs.h. */ |
| 15998 | _ACEOF |
| 15999 | cat confdefs.h >>conftest.$ac_ext |
| 16000 | cat >>conftest.$ac_ext <<_ACEOF |
| 16001 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16002 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16003 | /* Override any GCC internal prototype to avoid an error. |
| 16004 | Use char because int might match the return type of a GCC |
| 16005 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16006 | #ifdef __cplusplus |
| 16007 | extern "C" |
| 16008 | #endif |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16009 | char dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16010 | int |
| 16011 | main () |
| 16012 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16013 | return dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16014 | ; |
| 16015 | return 0; |
| 16016 | } |
| 16017 | _ACEOF |
| 16018 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16019 | if { (ac_try="$ac_link" |
| 16020 | case "(($ac_try" in |
| 16021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16022 | *) ac_try_echo=$ac_try;; |
| 16023 | esac |
| 16024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16025 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16026 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16028 | rm -f conftest.er1 |
| 16029 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16031 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16033 | { (case "(($ac_try" in |
| 16034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16035 | *) ac_try_echo=$ac_try;; |
| 16036 | esac |
| 16037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16038 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16039 | ac_status=$? |
| 16040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16041 | (exit $ac_status); }; } && |
| 16042 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16043 | { (case "(($ac_try" in |
| 16044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16045 | *) ac_try_echo=$ac_try;; |
| 16046 | esac |
| 16047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16048 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16049 | ac_status=$? |
| 16050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16051 | (exit $ac_status); }; }; then |
| 16052 | ac_cv_lib_dl_dlopen=yes |
| 16053 | else |
| 16054 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16056 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16057 | ac_cv_lib_dl_dlopen=no |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16058 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16059 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16060 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16061 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16062 | LIBS=$ac_check_lib_save_LIBS |
| 16063 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16064 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16065 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16066 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16067 | |
| 16068 | cat >>confdefs.h <<\_ACEOF |
| 16069 | #define HAVE_DLOPEN 1 |
| 16070 | _ACEOF |
| 16071 | |
| 16072 | DLLIBS="-ldl" |
| 16073 | else |
| 16074 | LIBEXT="a" |
| 16075 | fi |
| 16076 | |
| 16077 | fi |
| 16078 | done |
| 16079 | |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16080 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 16081 | LIBS="$LIBS $DLLIBS" |
| 16082 | |
| 16083 | for ac_func in dladdr |
| 16084 | do |
| 16085 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16086 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16087 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16088 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16090 | else |
| 16091 | cat >conftest.$ac_ext <<_ACEOF |
| 16092 | /* confdefs.h. */ |
| 16093 | _ACEOF |
| 16094 | cat confdefs.h >>conftest.$ac_ext |
| 16095 | cat >>conftest.$ac_ext <<_ACEOF |
| 16096 | /* end confdefs.h. */ |
| 16097 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16098 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16099 | #define $ac_func innocuous_$ac_func |
| 16100 | |
| 16101 | /* System header to define __stub macros and hopefully few prototypes, |
| 16102 | which can conflict with char $ac_func (); below. |
| 16103 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16104 | <limits.h> exists even on freestanding compilers. */ |
| 16105 | |
| 16106 | #ifdef __STDC__ |
| 16107 | # include <limits.h> |
| 16108 | #else |
| 16109 | # include <assert.h> |
| 16110 | #endif |
| 16111 | |
| 16112 | #undef $ac_func |
| 16113 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16114 | /* Override any GCC internal prototype to avoid an error. |
| 16115 | Use char because int might match the return type of a GCC |
| 16116 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16117 | #ifdef __cplusplus |
| 16118 | extern "C" |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16119 | #endif |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16120 | char $ac_func (); |
| 16121 | /* The GNU C library defines this for functions which it implements |
| 16122 | to always fail with ENOSYS. Some functions are actually named |
| 16123 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16124 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16125 | choke me |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16126 | #endif |
| 16127 | |
| 16128 | int |
| 16129 | main () |
| 16130 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16131 | return $ac_func (); |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16132 | ; |
| 16133 | return 0; |
| 16134 | } |
| 16135 | _ACEOF |
| 16136 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16137 | if { (ac_try="$ac_link" |
| 16138 | case "(($ac_try" in |
| 16139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16140 | *) ac_try_echo=$ac_try;; |
| 16141 | esac |
| 16142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16143 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16144 | ac_status=$? |
| 16145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16146 | rm -f conftest.er1 |
| 16147 | cat conftest.err >&5 |
| 16148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16149 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16151 | { (case "(($ac_try" in |
| 16152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16153 | *) ac_try_echo=$ac_try;; |
| 16154 | esac |
| 16155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16156 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16157 | ac_status=$? |
| 16158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16159 | (exit $ac_status); }; } && |
| 16160 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16161 | { (case "(($ac_try" in |
| 16162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16163 | *) ac_try_echo=$ac_try;; |
| 16164 | esac |
| 16165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16166 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16167 | ac_status=$? |
| 16168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16169 | (exit $ac_status); }; }; then |
| 16170 | eval "$as_ac_var=yes" |
| 16171 | else |
| 16172 | echo "$as_me: failed program was:" >&5 |
| 16173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16174 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16175 | eval "$as_ac_var=no" |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16176 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16177 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16178 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16179 | conftest$ac_exeext conftest.$ac_ext |
| 16180 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16181 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16182 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16183 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16184 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16185 | cat >>confdefs.h <<_ACEOF |
| 16186 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16187 | _ACEOF |
| 16188 | |
| 16189 | fi |
| 16190 | done |
| 16191 | |
| 16192 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 16193 | else |
| 16194 | LIBEXT="a" |
| 16195 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16196 | |
| 16197 | if test "$LIBEXT" = "so" |
| 16198 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 16199 | DLLFLAGS="$DLLFLAGS -fPIC" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 16200 | DLLEXT=".so" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16201 | { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5 |
| 16202 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16203 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 16204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16205 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16206 | ac_wine_try_cflags_saved=$CFLAGS |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16207 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16208 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 16209 | void myfunc() {} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16210 | _ACEOF |
| 16211 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16212 | if { (ac_try="$ac_link" |
| 16213 | case "(($ac_try" in |
| 16214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16215 | *) ac_try_echo=$ac_try;; |
| 16216 | esac |
| 16217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16218 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16219 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16221 | rm -f conftest.er1 |
| 16222 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16224 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16226 | { (case "(($ac_try" in |
| 16227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16228 | *) ac_try_echo=$ac_try;; |
| 16229 | esac |
| 16230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16231 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16232 | ac_status=$? |
| 16233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16234 | (exit $ac_status); }; } && |
| 16235 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16236 | { (case "(($ac_try" in |
| 16237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16238 | *) ac_try_echo=$ac_try;; |
| 16239 | esac |
| 16240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16241 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16242 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16244 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 16245 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16246 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16247 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16249 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16250 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16251 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16252 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16253 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16254 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16255 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16256 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16257 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
| 16258 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 16259 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 16260 | then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16261 | LDSHARED="\$(CC) -shared" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 16262 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16263 | { echo "$as_me:$LINENO: checking whether the linker accepts soname" >&5 |
| 16264 | echo $ECHO_N "checking whether the linker accepts soname... $ECHO_C" >&6; } |
| 16265 | if test "${ac_cv_c_sonames+set}" = set; then |
| 16266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16267 | else |
| 16268 | ac_wine_try_cflags_saved=$CFLAGS |
| 16269 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1" |
| 16270 | cat >conftest.$ac_ext <<_ACEOF |
| 16271 | /* confdefs.h. */ |
| 16272 | _ACEOF |
| 16273 | cat confdefs.h >>conftest.$ac_ext |
| 16274 | cat >>conftest.$ac_ext <<_ACEOF |
| 16275 | /* end confdefs.h. */ |
| 16276 | |
| 16277 | int |
| 16278 | main () |
| 16279 | { |
| 16280 | |
| 16281 | ; |
| 16282 | return 0; |
| 16283 | } |
| 16284 | _ACEOF |
| 16285 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16286 | if { (ac_try="$ac_link" |
| 16287 | case "(($ac_try" in |
| 16288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16289 | *) ac_try_echo=$ac_try;; |
| 16290 | esac |
| 16291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16292 | (eval "$ac_link") 2>conftest.er1 |
| 16293 | ac_status=$? |
| 16294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16295 | rm -f conftest.er1 |
| 16296 | cat conftest.err >&5 |
| 16297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16298 | (exit $ac_status); } && |
| 16299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16300 | { (case "(($ac_try" in |
| 16301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16302 | *) ac_try_echo=$ac_try;; |
| 16303 | esac |
| 16304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16305 | (eval "$ac_try") 2>&5 |
| 16306 | ac_status=$? |
| 16307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16308 | (exit $ac_status); }; } && |
| 16309 | { ac_try='test -s conftest$ac_exeext' |
| 16310 | { (case "(($ac_try" in |
| 16311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16312 | *) ac_try_echo=$ac_try;; |
| 16313 | esac |
| 16314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16315 | (eval "$ac_try") 2>&5 |
| 16316 | ac_status=$? |
| 16317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16318 | (exit $ac_status); }; }; then |
| 16319 | ac_cv_c_sonames="yes" |
| 16320 | else |
| 16321 | echo "$as_me: failed program was:" >&5 |
| 16322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16323 | |
| 16324 | ac_cv_c_sonames="no" |
| 16325 | fi |
| 16326 | |
| 16327 | rm -f core conftest.err conftest.$ac_objext \ |
| 16328 | conftest$ac_exeext conftest.$ac_ext |
| 16329 | CFLAGS=$ac_wine_try_cflags_saved |
| 16330 | fi |
| 16331 | { echo "$as_me:$LINENO: result: $ac_cv_c_sonames" >&5 |
| 16332 | echo "${ECHO_T}$ac_cv_c_sonames" >&6; } |
| 16333 | if test "$ac_cv_c_sonames" = "yes" |
| 16334 | then |
| 16335 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 16336 | else |
| 16337 | { echo "$as_me:$LINENO: checking check to see if -h soname is an alternate" >&5 |
| 16338 | echo $ECHO_N "checking check to see if -h soname is an alternate... $ECHO_C" >&6; } |
| 16339 | if test "${ac_cv_c_h_sonames+set}" = set; then |
| 16340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16341 | else |
| 16342 | ac_wine_try_cflags_saved=$CFLAGS |
| 16343 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1" |
| 16344 | cat >conftest.$ac_ext <<_ACEOF |
| 16345 | /* confdefs.h. */ |
| 16346 | _ACEOF |
| 16347 | cat confdefs.h >>conftest.$ac_ext |
| 16348 | cat >>conftest.$ac_ext <<_ACEOF |
| 16349 | /* end confdefs.h. */ |
| 16350 | |
| 16351 | int |
| 16352 | main () |
| 16353 | { |
| 16354 | |
| 16355 | ; |
| 16356 | return 0; |
| 16357 | } |
| 16358 | _ACEOF |
| 16359 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16360 | if { (ac_try="$ac_link" |
| 16361 | case "(($ac_try" in |
| 16362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16363 | *) ac_try_echo=$ac_try;; |
| 16364 | esac |
| 16365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16366 | (eval "$ac_link") 2>conftest.er1 |
| 16367 | ac_status=$? |
| 16368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16369 | rm -f conftest.er1 |
| 16370 | cat conftest.err >&5 |
| 16371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16372 | (exit $ac_status); } && |
| 16373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16374 | { (case "(($ac_try" in |
| 16375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16376 | *) ac_try_echo=$ac_try;; |
| 16377 | esac |
| 16378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16379 | (eval "$ac_try") 2>&5 |
| 16380 | ac_status=$? |
| 16381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16382 | (exit $ac_status); }; } && |
| 16383 | { ac_try='test -s conftest$ac_exeext' |
| 16384 | { (case "(($ac_try" in |
| 16385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16386 | *) ac_try_echo=$ac_try;; |
| 16387 | esac |
| 16388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16389 | (eval "$ac_try") 2>&5 |
| 16390 | ac_status=$? |
| 16391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16392 | (exit $ac_status); }; }; then |
| 16393 | ac_cv_c_h_sonames="yes" |
| 16394 | else |
| 16395 | echo "$as_me: failed program was:" >&5 |
| 16396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16397 | |
| 16398 | ac_cv_c_h_sonames="no" |
| 16399 | fi |
| 16400 | |
| 16401 | rm -f core conftest.err conftest.$ac_objext \ |
| 16402 | conftest$ac_exeext conftest.$ac_ext |
| 16403 | CFLAGS=$ac_wine_try_cflags_saved |
| 16404 | fi |
| 16405 | { echo "$as_me:$LINENO: result: $ac_cv_c_h_sonames" >&5 |
| 16406 | echo "${ECHO_T}$ac_cv_c_h_sonames" >&6; } |
| 16407 | if test "$ac_cv_c_h_sonames" = "yes" |
| 16408 | then |
| 16409 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)" |
| 16410 | fi |
| 16411 | fi |
| 16412 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16413 | { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5 |
| 16414 | echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; } |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16415 | if test "${ac_cv_c_dll_zdefs+set}" = set; then |
| 16416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16417 | else |
| 16418 | ac_wine_try_cflags_saved=$CFLAGS |
| 16419 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
| 16420 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16421 | /* confdefs.h. */ |
| 16422 | _ACEOF |
| 16423 | cat confdefs.h >>conftest.$ac_ext |
| 16424 | cat >>conftest.$ac_ext <<_ACEOF |
| 16425 | /* end confdefs.h. */ |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16426 | |
| 16427 | int |
| 16428 | main () |
| 16429 | { |
| 16430 | |
| 16431 | ; |
| 16432 | return 0; |
| 16433 | } |
| 16434 | _ACEOF |
| 16435 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16436 | if { (ac_try="$ac_link" |
| 16437 | case "(($ac_try" in |
| 16438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16439 | *) ac_try_echo=$ac_try;; |
| 16440 | esac |
| 16441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16442 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16443 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16445 | rm -f conftest.er1 |
| 16446 | cat conftest.err >&5 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16448 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16450 | { (case "(($ac_try" in |
| 16451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16452 | *) ac_try_echo=$ac_try;; |
| 16453 | esac |
| 16454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16455 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16456 | ac_status=$? |
| 16457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16458 | (exit $ac_status); }; } && |
| 16459 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16460 | { (case "(($ac_try" in |
| 16461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16462 | *) ac_try_echo=$ac_try;; |
| 16463 | esac |
| 16464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16465 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16466 | ac_status=$? |
| 16467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16468 | (exit $ac_status); }; }; then |
| 16469 | ac_cv_c_dll_zdefs="yes" |
| 16470 | else |
| 16471 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16473 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16474 | ac_cv_c_dll_zdefs="no" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16475 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16476 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16477 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16478 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16479 | CFLAGS=$ac_wine_try_cflags_saved |
| 16480 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16481 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5 |
| 16482 | echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; } |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16483 | if test "$ac_cv_c_dll_zdefs" = "yes" |
| 16484 | then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 16485 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16486 | fi |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 16487 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16488 | { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5 |
| 16489 | echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; } |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16490 | if test "${ac_cv_c_dll_init_fini+set}" = set; then |
| 16491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16492 | else |
| 16493 | ac_wine_try_cflags_saved=$CFLAGS |
| 16494 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 16495 | cat >conftest.$ac_ext <<_ACEOF |
| 16496 | /* confdefs.h. */ |
| 16497 | _ACEOF |
| 16498 | cat confdefs.h >>conftest.$ac_ext |
| 16499 | cat >>conftest.$ac_ext <<_ACEOF |
| 16500 | /* end confdefs.h. */ |
| 16501 | |
| 16502 | int |
| 16503 | main () |
| 16504 | { |
| 16505 | |
| 16506 | ; |
| 16507 | return 0; |
| 16508 | } |
| 16509 | _ACEOF |
| 16510 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16511 | if { (ac_try="$ac_link" |
| 16512 | case "(($ac_try" in |
| 16513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16514 | *) ac_try_echo=$ac_try;; |
| 16515 | esac |
| 16516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16517 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16518 | ac_status=$? |
| 16519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16520 | rm -f conftest.er1 |
| 16521 | cat conftest.err >&5 |
| 16522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16523 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16524 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16525 | { (case "(($ac_try" in |
| 16526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16527 | *) ac_try_echo=$ac_try;; |
| 16528 | esac |
| 16529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16530 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16531 | ac_status=$? |
| 16532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16533 | (exit $ac_status); }; } && |
| 16534 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16535 | { (case "(($ac_try" in |
| 16536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16537 | *) ac_try_echo=$ac_try;; |
| 16538 | esac |
| 16539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16540 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16541 | ac_status=$? |
| 16542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16543 | (exit $ac_status); }; }; then |
| 16544 | ac_cv_c_dll_init_fini="yes" |
| 16545 | else |
| 16546 | echo "$as_me: failed program was:" >&5 |
| 16547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16548 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16549 | ac_cv_c_dll_init_fini="no" |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16550 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16551 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16552 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16553 | conftest$ac_exeext conftest.$ac_ext |
| 16554 | CFLAGS=$ac_wine_try_cflags_saved |
| 16555 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16556 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5 |
| 16557 | echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; } |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16558 | if test "$ac_cv_c_dll_init_fini" = "yes" |
| 16559 | then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 16560 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16561 | fi |
| 16562 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16563 | { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5 |
| 16564 | echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; } |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16565 | if test "${ac_cv_c_ld_version_scripts+set}" = set; then |
| 16566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16567 | else |
| 16568 | echo '{ global: *; };' >conftest.map |
| 16569 | ac_wine_try_cflags_saved=$CFLAGS |
| 16570 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
| 16571 | cat >conftest.$ac_ext <<_ACEOF |
| 16572 | /* confdefs.h. */ |
| 16573 | _ACEOF |
| 16574 | cat confdefs.h >>conftest.$ac_ext |
| 16575 | cat >>conftest.$ac_ext <<_ACEOF |
| 16576 | /* end confdefs.h. */ |
| 16577 | |
| 16578 | int |
| 16579 | main () |
| 16580 | { |
| 16581 | |
| 16582 | ; |
| 16583 | return 0; |
| 16584 | } |
| 16585 | _ACEOF |
| 16586 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16587 | if { (ac_try="$ac_link" |
| 16588 | case "(($ac_try" in |
| 16589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16590 | *) ac_try_echo=$ac_try;; |
| 16591 | esac |
| 16592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16593 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16594 | ac_status=$? |
| 16595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16596 | rm -f conftest.er1 |
| 16597 | cat conftest.err >&5 |
| 16598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16599 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16601 | { (case "(($ac_try" in |
| 16602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16603 | *) ac_try_echo=$ac_try;; |
| 16604 | esac |
| 16605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16606 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16607 | ac_status=$? |
| 16608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16609 | (exit $ac_status); }; } && |
| 16610 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16611 | { (case "(($ac_try" in |
| 16612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16613 | *) ac_try_echo=$ac_try;; |
| 16614 | esac |
| 16615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16616 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16617 | ac_status=$? |
| 16618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16619 | (exit $ac_status); }; }; then |
| 16620 | ac_cv_c_ld_version_scripts="yes" |
| 16621 | else |
| 16622 | echo "$as_me: failed program was:" >&5 |
| 16623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16624 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16625 | ac_cv_c_ld_version_scripts="no" |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16626 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16627 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16628 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16629 | conftest$ac_exeext conftest.$ac_ext |
| 16630 | CFLAGS=$ac_wine_try_cflags_saved |
| 16631 | rm -f conftest.map |
| 16632 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16633 | { echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5 |
| 16634 | echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; } |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16635 | if test "$ac_cv_c_ld_version_scripts" = "yes" |
| 16636 | then |
| 16637 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" |
| 16638 | fi |
| 16639 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16640 | { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5 |
| 16641 | echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; } |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16642 | if test "${ac_cv_c_export_dynamic+set}" = set; then |
| 16643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16644 | else |
| 16645 | ac_wine_try_cflags_saved=$CFLAGS |
| 16646 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
| 16647 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16648 | /* confdefs.h. */ |
| 16649 | _ACEOF |
| 16650 | cat confdefs.h >>conftest.$ac_ext |
| 16651 | cat >>conftest.$ac_ext <<_ACEOF |
| 16652 | /* end confdefs.h. */ |
| 16653 | |
| 16654 | int |
| 16655 | main () |
| 16656 | { |
| 16657 | |
| 16658 | ; |
| 16659 | return 0; |
| 16660 | } |
| 16661 | _ACEOF |
| 16662 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16663 | if { (ac_try="$ac_link" |
| 16664 | case "(($ac_try" in |
| 16665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16666 | *) ac_try_echo=$ac_try;; |
| 16667 | esac |
| 16668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16669 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16670 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16672 | rm -f conftest.er1 |
| 16673 | cat conftest.err >&5 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16675 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16677 | { (case "(($ac_try" in |
| 16678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16679 | *) ac_try_echo=$ac_try;; |
| 16680 | esac |
| 16681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16682 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16683 | ac_status=$? |
| 16684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16685 | (exit $ac_status); }; } && |
| 16686 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16687 | { (case "(($ac_try" in |
| 16688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16689 | *) ac_try_echo=$ac_try;; |
| 16690 | esac |
| 16691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16692 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16693 | ac_status=$? |
| 16694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16695 | (exit $ac_status); }; }; then |
| 16696 | ac_cv_c_export_dynamic="yes" |
| 16697 | else |
| 16698 | echo "$as_me: failed program was:" >&5 |
| 16699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16700 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16701 | ac_cv_c_export_dynamic="no" |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16702 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16703 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16704 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16705 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16706 | CFLAGS=$ac_wine_try_cflags_saved |
| 16707 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16708 | { echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5 |
| 16709 | echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; } |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16710 | if test "$ac_cv_c_export_dynamic" = "yes" |
| 16711 | then |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16712 | LDEXECFLAGS="-Wl,--export-dynamic" |
| 16713 | |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16714 | fi |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16715 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16716 | { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5 |
| 16717 | echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; } |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16718 | if test "${ac_cv_ld_rpath+set}" = set; then |
| 16719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16720 | else |
| 16721 | ac_wine_try_cflags_saved=$CFLAGS |
| 16722 | CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib" |
| 16723 | cat >conftest.$ac_ext <<_ACEOF |
| 16724 | /* confdefs.h. */ |
| 16725 | _ACEOF |
| 16726 | cat confdefs.h >>conftest.$ac_ext |
| 16727 | cat >>conftest.$ac_ext <<_ACEOF |
| 16728 | /* end confdefs.h. */ |
| 16729 | |
| 16730 | int |
| 16731 | main () |
| 16732 | { |
| 16733 | |
| 16734 | ; |
| 16735 | return 0; |
| 16736 | } |
| 16737 | _ACEOF |
| 16738 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16739 | if { (ac_try="$ac_link" |
| 16740 | case "(($ac_try" in |
| 16741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16742 | *) ac_try_echo=$ac_try;; |
| 16743 | esac |
| 16744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16745 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16746 | ac_status=$? |
| 16747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16748 | rm -f conftest.er1 |
| 16749 | cat conftest.err >&5 |
| 16750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16751 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16752 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16753 | { (case "(($ac_try" in |
| 16754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16755 | *) ac_try_echo=$ac_try;; |
| 16756 | esac |
| 16757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16758 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16759 | ac_status=$? |
| 16760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16761 | (exit $ac_status); }; } && |
| 16762 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16763 | { (case "(($ac_try" in |
| 16764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16765 | *) ac_try_echo=$ac_try;; |
| 16766 | esac |
| 16767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16768 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16769 | ac_status=$? |
| 16770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16771 | (exit $ac_status); }; }; then |
| 16772 | ac_cv_ld_rpath="yes" |
| 16773 | else |
| 16774 | echo "$as_me: failed program was:" >&5 |
| 16775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16776 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16777 | ac_cv_ld_rpath="no" |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16778 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16779 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16780 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16781 | conftest$ac_exeext conftest.$ac_ext |
| 16782 | CFLAGS=$ac_wine_try_cflags_saved |
| 16783 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16784 | { echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5 |
| 16785 | echo "${ECHO_T}$ac_cv_ld_rpath" >&6; } |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16786 | if test "$ac_cv_ld_rpath" = "yes" |
| 16787 | then |
| 16788 | LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
| 16789 | |
Alexandre Julliard | 1fd32cf | 2006-03-20 22:08:26 +0100 | [diff] [blame] | 16790 | LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`" |
| 16791 | |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16792 | fi |
| 16793 | |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16794 | case $host_cpu in |
Ge van Geldorp | 2adeefe | 2006-06-30 21:37:34 +0200 | [diff] [blame] | 16795 | *i[3456789]86* | x86_64) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16796 | { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5 |
| 16797 | echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; } |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16798 | if test "${ac_cv_ld_reloc_exec+set}" = set; then |
| 16799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16800 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16801 | ac_wine_try_cflags_saved=$CFLAGS |
Alexandre Julliard | 5729f58 | 2005-06-17 10:22:46 +0000 | [diff] [blame] | 16802 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400" |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16803 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16804 | /* confdefs.h. */ |
| 16805 | _ACEOF |
| 16806 | cat confdefs.h >>conftest.$ac_ext |
| 16807 | cat >>conftest.$ac_ext <<_ACEOF |
| 16808 | /* end confdefs.h. */ |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16809 | |
| 16810 | int |
| 16811 | main () |
| 16812 | { |
| 16813 | |
| 16814 | ; |
| 16815 | return 0; |
| 16816 | } |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16817 | _ACEOF |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16818 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16819 | if { (ac_try="$ac_link" |
| 16820 | case "(($ac_try" in |
| 16821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16822 | *) ac_try_echo=$ac_try;; |
| 16823 | esac |
| 16824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16825 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16826 | ac_status=$? |
| 16827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16828 | rm -f conftest.er1 |
| 16829 | cat conftest.err >&5 |
| 16830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16831 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16833 | { (case "(($ac_try" in |
| 16834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16835 | *) ac_try_echo=$ac_try;; |
| 16836 | esac |
| 16837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16838 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16839 | ac_status=$? |
| 16840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16841 | (exit $ac_status); }; } && |
| 16842 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16843 | { (case "(($ac_try" in |
| 16844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16845 | *) ac_try_echo=$ac_try;; |
| 16846 | esac |
| 16847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16848 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16849 | ac_status=$? |
| 16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16851 | (exit $ac_status); }; }; then |
| 16852 | ac_cv_ld_reloc_exec="yes" |
| 16853 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16854 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16856 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16857 | ac_cv_ld_reloc_exec="no" |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16858 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16859 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16860 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16861 | conftest$ac_exeext conftest.$ac_ext |
| 16862 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16863 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16864 | { echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5 |
| 16865 | echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; } |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16866 | if test "$ac_cv_ld_reloc_exec" = "yes" |
| 16867 | then |
Alexandre Julliard | 5729f58 | 2005-06-17 10:22:46 +0000 | [diff] [blame] | 16868 | LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16869 | fi |
| 16870 | ;; |
| 16871 | esac |
| 16872 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 16873 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16874 | { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5 |
| 16875 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16876 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 16877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 16878 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16879 | ac_wine_try_cflags_saved=$CFLAGS |
| 16880 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
| 16881 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 16882 | void myfunc() {} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16883 | _ACEOF |
| 16884 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16885 | if { (ac_try="$ac_link" |
| 16886 | case "(($ac_try" in |
| 16887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16888 | *) ac_try_echo=$ac_try;; |
| 16889 | esac |
| 16890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16891 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16892 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16894 | rm -f conftest.er1 |
| 16895 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16897 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16899 | { (case "(($ac_try" in |
| 16900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16901 | *) ac_try_echo=$ac_try;; |
| 16902 | esac |
| 16903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16904 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16905 | ac_status=$? |
| 16906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16907 | (exit $ac_status); }; } && |
| 16908 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16909 | { (case "(($ac_try" in |
| 16910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16911 | *) ac_try_echo=$ac_try;; |
| 16912 | esac |
| 16913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16914 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16915 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16917 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 16918 | ac_cv_c_dll_unixware="yes" |
| 16919 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16920 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16922 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16923 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 16924 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16925 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16926 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16927 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16928 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16929 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16930 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
| 16931 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 16932 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 16933 | then |
| 16934 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 16935 | LDDLLFLAGS="-Wl,-G,-B,symbolic" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 16936 | |
| 16937 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16938 | { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5 |
| 16939 | echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; } |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 16940 | if test "${ac_cv_c_dll_macho+set}" = set; then |
| 16941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16942 | else |
| 16943 | ac_wine_try_cflags_saved=$CFLAGS |
| 16944 | CFLAGS="$CFLAGS -bundle" |
| 16945 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 16946 | void myfunc() {} |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 16947 | _ACEOF |
| 16948 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16949 | if { (ac_try="$ac_link" |
| 16950 | case "(($ac_try" in |
| 16951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16952 | *) ac_try_echo=$ac_try;; |
| 16953 | esac |
| 16954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16955 | (eval "$ac_link") 2>conftest.er1 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 16956 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16958 | rm -f conftest.er1 |
| 16959 | cat conftest.err >&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 16960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16961 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16963 | { (case "(($ac_try" in |
| 16964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16965 | *) ac_try_echo=$ac_try;; |
| 16966 | esac |
| 16967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16968 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16969 | ac_status=$? |
| 16970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16971 | (exit $ac_status); }; } && |
| 16972 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16973 | { (case "(($ac_try" in |
| 16974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16975 | *) ac_try_echo=$ac_try;; |
| 16976 | esac |
| 16977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16978 | (eval "$ac_try") 2>&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 16979 | ac_status=$? |
| 16980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16981 | (exit $ac_status); }; }; then |
| 16982 | ac_cv_c_dll_macho="yes" |
| 16983 | else |
| 16984 | echo "$as_me: failed program was:" >&5 |
| 16985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16986 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16987 | ac_cv_c_dll_macho="no" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 16988 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16989 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16990 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16991 | conftest$ac_exeext conftest.$ac_ext |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 16992 | CFLAGS=$ac_wine_try_cflags_saved |
| 16993 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16994 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5 |
| 16995 | echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; } |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 16996 | if test "$ac_cv_c_dll_macho" = "yes" |
| 16997 | then |
| 16998 | LIBEXT="dylib" |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 16999 | LDDLLFLAGS="-bundle" |
Alexandre Julliard | 7ed7e8f | 2006-05-15 15:14:45 +0200 | [diff] [blame] | 17000 | LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)" |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17001 | STRIP="$STRIP -u -r" |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 17002 | COREFOUNDATIONLIB="-framework CoreFoundation" |
Emmanuel Maillard | 46718f8 | 2004-07-22 19:48:41 +0000 | [diff] [blame] | 17003 | |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 17004 | IOKITLIB="-framework IOKit -framework CoreFoundation" |
Emmanuel Maillard | 46718f8 | 2004-07-22 19:48:41 +0000 | [diff] [blame] | 17005 | |
Alexandre Julliard | e325efb | 2006-07-24 15:25:39 +0200 | [diff] [blame] | 17006 | LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000" |
Emmanuel Maillard | 2300ce6 | 2004-08-19 01:20:45 +0000 | [diff] [blame] | 17007 | |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 17008 | if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes" |
| 17009 | then |
| 17010 | COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices" |
| 17011 | |
| 17012 | fi |
Emmanuel Maillard | aaae660 | 2006-02-15 13:52:02 +0100 | [diff] [blame] | 17013 | case $host_cpu in |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 17014 | *powerpc*) |
| 17015 | CFLAGS="$CFLAGS -ffixed-r13" |
| 17016 | LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 17017 | ;; |
| 17018 | esac |
| 17019 | |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17020 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17021 | { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5 |
| 17022 | echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; } |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17023 | if test "${ac_cv_c_dll_hpux+set}" = set; then |
| 17024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17025 | else |
| 17026 | ac_wine_try_cflags_saved=$CFLAGS |
| 17027 | CFLAGS="$CFLAGS -shared" |
| 17028 | cat >conftest.$ac_ext <<_ACEOF |
| 17029 | void myfunc() {} |
| 17030 | _ACEOF |
| 17031 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17032 | if { (ac_try="$ac_link" |
| 17033 | case "(($ac_try" in |
| 17034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17035 | *) ac_try_echo=$ac_try;; |
| 17036 | esac |
| 17037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17038 | (eval "$ac_link") 2>conftest.er1 |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17039 | ac_status=$? |
| 17040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17041 | rm -f conftest.er1 |
| 17042 | cat conftest.err >&5 |
| 17043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17044 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17046 | { (case "(($ac_try" in |
| 17047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17048 | *) ac_try_echo=$ac_try;; |
| 17049 | esac |
| 17050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17051 | (eval "$ac_try") 2>&5 |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17052 | ac_status=$? |
| 17053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17054 | (exit $ac_status); }; } && |
| 17055 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17056 | { (case "(($ac_try" in |
| 17057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17058 | *) ac_try_echo=$ac_try;; |
| 17059 | esac |
| 17060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17061 | (eval "$ac_try") 2>&5 |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17062 | ac_status=$? |
| 17063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17064 | (exit $ac_status); }; }; then |
| 17065 | ac_cv_c_dll_hpux="yes" |
| 17066 | else |
| 17067 | echo "$as_me: failed program was:" >&5 |
| 17068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17069 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17070 | ac_cv_c_dll_hpux="no" |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17071 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17072 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17073 | rm -f core conftest.err conftest.$ac_objext \ |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17074 | conftest$ac_exeext conftest.$ac_ext |
| 17075 | CFLAGS=$ac_wine_try_cflags_saved |
| 17076 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17077 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5 |
| 17078 | echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; } |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17079 | if test "$ac_cv_c_dll_hpux" = "yes" |
| 17080 | then |
| 17081 | LIBEXT="sl" |
Warren Baird | 1023fe3 | 2004-10-19 21:37:09 +0000 | [diff] [blame] | 17082 | DLLEXT=".sl" |
| 17083 | LDDLLFLAGS="-shared -fPIC" |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17084 | LDSHARED="\$(CC) -shared" |
| 17085 | fi |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17086 | fi |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 17087 | fi |
| 17088 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 17089 | fi |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17090 | |
| 17091 | CROSSTEST="" |
| 17092 | |
| 17093 | if test "$cross_compiling" = "no" |
| 17094 | then |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 17095 | for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17096 | do |
| 17097 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17098 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17099 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17101 | if test "${ac_cv_prog_CROSSCC+set}" = set; then |
| 17102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17103 | else |
| 17104 | if test -n "$CROSSCC"; then |
| 17105 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 17106 | else |
| 17107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17108 | for as_dir in $PATH |
| 17109 | do |
| 17110 | IFS=$as_save_IFS |
| 17111 | test -z "$as_dir" && as_dir=. |
| 17112 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17114 | ac_cv_prog_CROSSCC="$ac_prog" |
| 17115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17116 | break 2 |
| 17117 | fi |
| 17118 | done |
| 17119 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17120 | IFS=$as_save_IFS |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17121 | |
| 17122 | fi |
| 17123 | fi |
| 17124 | CROSSCC=$ac_cv_prog_CROSSCC |
| 17125 | if test -n "$CROSSCC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17126 | { echo "$as_me:$LINENO: result: $CROSSCC" >&5 |
| 17127 | echo "${ECHO_T}$CROSSCC" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17128 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17129 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17130 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17131 | fi |
| 17132 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17133 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17134 | test -n "$CROSSCC" && break |
| 17135 | done |
| 17136 | test -n "$CROSSCC" || CROSSCC="false" |
| 17137 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 17138 | for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17139 | do |
| 17140 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17141 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17142 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17144 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 17145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17146 | else |
| 17147 | if test -n "$DLLTOOL"; then |
| 17148 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 17149 | else |
| 17150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17151 | for as_dir in $PATH |
| 17152 | do |
| 17153 | IFS=$as_save_IFS |
| 17154 | test -z "$as_dir" && as_dir=. |
| 17155 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17157 | ac_cv_prog_DLLTOOL="$ac_prog" |
| 17158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17159 | break 2 |
| 17160 | fi |
| 17161 | done |
| 17162 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17163 | IFS=$as_save_IFS |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17164 | |
| 17165 | fi |
| 17166 | fi |
| 17167 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 17168 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17169 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 17170 | echo "${ECHO_T}$DLLTOOL" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17171 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17172 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17173 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17174 | fi |
| 17175 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17176 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17177 | test -n "$DLLTOOL" && break |
| 17178 | done |
| 17179 | test -n "$DLLTOOL" || DLLTOOL="false" |
| 17180 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 17181 | for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17182 | do |
| 17183 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17184 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17185 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17187 | if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then |
| 17188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17189 | else |
| 17190 | if test -n "$CROSSWINDRES"; then |
| 17191 | ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test. |
| 17192 | else |
| 17193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17194 | for as_dir in $PATH |
| 17195 | do |
| 17196 | IFS=$as_save_IFS |
| 17197 | test -z "$as_dir" && as_dir=. |
| 17198 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17199 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17200 | ac_cv_prog_CROSSWINDRES="$ac_prog" |
| 17201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17202 | break 2 |
| 17203 | fi |
| 17204 | done |
| 17205 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17206 | IFS=$as_save_IFS |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17207 | |
| 17208 | fi |
| 17209 | fi |
| 17210 | CROSSWINDRES=$ac_cv_prog_CROSSWINDRES |
| 17211 | if test -n "$CROSSWINDRES"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17212 | { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5 |
| 17213 | echo "${ECHO_T}$CROSSWINDRES" >&6; } |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17214 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17215 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17216 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17217 | fi |
| 17218 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17219 | |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17220 | test -n "$CROSSWINDRES" && break |
| 17221 | done |
| 17222 | test -n "$CROSSWINDRES" || CROSSWINDRES="false" |
| 17223 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17224 | if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi |
| 17225 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 17226 | ;; |
| 17227 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 17228 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 17229 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17230 | { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17231 | It is currently not possible to build Wine without shared library |
| 17232 | (.so) support to allow transparent switch between .so and .dll files. |
| 17233 | If you are using Linux, you will need a newer binutils. |
| 17234 | " >&5 |
| 17235 | echo "$as_me: error: could not find a way to build shared libraries. |
| 17236 | It is currently not possible to build Wine without shared library |
| 17237 | (.so) support to allow transparent switch between .so and .dll files. |
| 17238 | If you are using Linux, you will need a newer binutils. |
| 17239 | " >&2;} |
| 17240 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 17241 | fi |
| 17242 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 17243 | case $build_os in |
| 17244 | cygwin*|mingw32*) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 17245 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 17246 | ;; |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17247 | darwin*|macosx*) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 17248 | LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\"" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17249 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 17250 | *) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 17251 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 17252 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 17253 | esac |
| 17254 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 17255 | case $host_os in |
| 17256 | mingw32*) |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 17257 | CRTLIBS="-lmsvcrt" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 17258 | |
| 17259 | SOCKETLIBS="-lws2_32" |
| 17260 | |
| 17261 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 17262 | esac |
| 17263 | |
Alexandre Julliard | 40bbcfb | 2006-06-20 13:44:19 +0200 | [diff] [blame] | 17264 | MAIN_BINARY="wine-pthread" |
| 17265 | case $host_cpu in |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 17266 | *i[3456789]86*) |
| 17267 | case $host_os in |
| 17268 | linux* | k*bsd*-gnu) |
| 17269 | MAIN_BINARY="wine-glibc" |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 17270 | |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 17271 | EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader" |
| 17272 | ;; |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 17273 | esac |
Emmanuel Maillard | 3bc8d2e | 2004-07-19 20:11:10 +0000 | [diff] [blame] | 17274 | ;; |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 17275 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17276 | |
| 17277 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17278 | if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17279 | then |
| 17280 | # Extract the first word of "ldd", so it can be a program name with args. |
| 17281 | set dummy ldd; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17282 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17284 | if test "${ac_cv_path_LDD+set}" = set; then |
| 17285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17286 | else |
| 17287 | case $LDD in |
| 17288 | [\\/]* | ?:[\\/]*) |
| 17289 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 17290 | ;; |
| 17291 | *) |
| 17292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17293 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 17294 | for as_dir in $as_dummy |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17295 | do |
| 17296 | IFS=$as_save_IFS |
| 17297 | test -z "$as_dir" && as_dir=. |
| 17298 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17300 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
| 17301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17302 | break 2 |
| 17303 | fi |
| 17304 | done |
| 17305 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17306 | IFS=$as_save_IFS |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17307 | |
| 17308 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 17309 | ;; |
| 17310 | esac |
| 17311 | fi |
| 17312 | LDD=$ac_cv_path_LDD |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17313 | if test -n "$LDD"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17314 | { echo "$as_me:$LINENO: result: $LDD" >&5 |
| 17315 | echo "${ECHO_T}$LDD" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17316 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17317 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17318 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17319 | fi |
| 17320 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17321 | |
| 17322 | { echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
| 17323 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17324 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 17325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17326 | else |
| 17327 | ac_get_soname_save_LIBS=$LIBS |
| 17328 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 17329 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17330 | /* confdefs.h. */ |
| 17331 | _ACEOF |
| 17332 | cat confdefs.h >>conftest.$ac_ext |
| 17333 | cat >>conftest.$ac_ext <<_ACEOF |
| 17334 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17335 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17336 | /* Override any GCC internal prototype to avoid an error. |
| 17337 | Use char because int might match the return type of a GCC |
| 17338 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17339 | #ifdef __cplusplus |
| 17340 | extern "C" |
| 17341 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17342 | char XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17343 | int |
| 17344 | main () |
| 17345 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17346 | return XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17347 | ; |
| 17348 | return 0; |
| 17349 | } |
| 17350 | _ACEOF |
| 17351 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17352 | if { (ac_try="$ac_link" |
| 17353 | case "(($ac_try" in |
| 17354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17355 | *) ac_try_echo=$ac_try;; |
| 17356 | esac |
| 17357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17358 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17359 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17361 | rm -f conftest.er1 |
| 17362 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17364 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17366 | { (case "(($ac_try" in |
| 17367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17368 | *) ac_try_echo=$ac_try;; |
| 17369 | esac |
| 17370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17371 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17372 | ac_status=$? |
| 17373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17374 | (exit $ac_status); }; } && |
| 17375 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17376 | { (case "(($ac_try" in |
| 17377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17378 | *) ac_try_echo=$ac_try;; |
| 17379 | esac |
| 17380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17381 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17382 | ac_status=$? |
| 17383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17384 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17385 | ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17386 | if test "x$ac_cv_lib_soname_X11" = "x" |
| 17387 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17388 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17389 | fi |
| 17390 | else |
| 17391 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17393 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17394 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17395 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17396 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17397 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17398 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17399 | LIBS=$ac_get_soname_save_LIBS |
| 17400 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17401 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
| 17402 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17403 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 17404 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17405 | cat >>confdefs.h <<_ACEOF |
| 17406 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 17407 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17408 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17409 | fi |
| 17410 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17411 | { echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
| 17412 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17413 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 17414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17415 | else |
| 17416 | ac_get_soname_save_LIBS=$LIBS |
| 17417 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 17418 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17419 | /* confdefs.h. */ |
| 17420 | _ACEOF |
| 17421 | cat confdefs.h >>conftest.$ac_ext |
| 17422 | cat >>conftest.$ac_ext <<_ACEOF |
| 17423 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17424 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17425 | /* Override any GCC internal prototype to avoid an error. |
| 17426 | Use char because int might match the return type of a GCC |
| 17427 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17428 | #ifdef __cplusplus |
| 17429 | extern "C" |
| 17430 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17431 | char XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17432 | int |
| 17433 | main () |
| 17434 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17435 | return XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17436 | ; |
| 17437 | return 0; |
| 17438 | } |
| 17439 | _ACEOF |
| 17440 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17441 | if { (ac_try="$ac_link" |
| 17442 | case "(($ac_try" in |
| 17443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17444 | *) ac_try_echo=$ac_try;; |
| 17445 | esac |
| 17446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17447 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17448 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17450 | rm -f conftest.er1 |
| 17451 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17453 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17455 | { (case "(($ac_try" in |
| 17456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17457 | *) ac_try_echo=$ac_try;; |
| 17458 | esac |
| 17459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17460 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17461 | ac_status=$? |
| 17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17463 | (exit $ac_status); }; } && |
| 17464 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17465 | { (case "(($ac_try" in |
| 17466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17467 | *) ac_try_echo=$ac_try;; |
| 17468 | esac |
| 17469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17470 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17471 | ac_status=$? |
| 17472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17473 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17474 | ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17475 | if test "x$ac_cv_lib_soname_Xext" = "x" |
| 17476 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17477 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17478 | fi |
| 17479 | else |
| 17480 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17482 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17483 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17484 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17485 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17486 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17487 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17488 | LIBS=$ac_get_soname_save_LIBS |
| 17489 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17490 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 |
| 17491 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17492 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 17493 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17494 | cat >>confdefs.h <<_ACEOF |
| 17495 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 17496 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17497 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17498 | fi |
| 17499 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17500 | { echo "$as_me:$LINENO: checking for -lXi soname" >&5 |
| 17501 | echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; } |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17502 | if test "${ac_cv_lib_soname_Xi+set}" = set; then |
| 17503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17504 | else |
| 17505 | ac_get_soname_save_LIBS=$LIBS |
| 17506 | LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 17507 | cat >conftest.$ac_ext <<_ACEOF |
| 17508 | /* confdefs.h. */ |
| 17509 | _ACEOF |
| 17510 | cat confdefs.h >>conftest.$ac_ext |
| 17511 | cat >>conftest.$ac_ext <<_ACEOF |
| 17512 | /* end confdefs.h. */ |
| 17513 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17514 | /* Override any GCC internal prototype to avoid an error. |
| 17515 | Use char because int might match the return type of a GCC |
| 17516 | builtin and then its argument prototype would still apply. */ |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17517 | #ifdef __cplusplus |
| 17518 | extern "C" |
| 17519 | #endif |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17520 | char XOpenDevice (); |
| 17521 | int |
| 17522 | main () |
| 17523 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17524 | return XOpenDevice (); |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17525 | ; |
| 17526 | return 0; |
| 17527 | } |
| 17528 | _ACEOF |
| 17529 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17530 | if { (ac_try="$ac_link" |
| 17531 | case "(($ac_try" in |
| 17532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17533 | *) ac_try_echo=$ac_try;; |
| 17534 | esac |
| 17535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17536 | (eval "$ac_link") 2>conftest.er1 |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17537 | ac_status=$? |
| 17538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17539 | rm -f conftest.er1 |
| 17540 | cat conftest.err >&5 |
| 17541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17542 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17543 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17544 | { (case "(($ac_try" in |
| 17545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17546 | *) ac_try_echo=$ac_try;; |
| 17547 | esac |
| 17548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17549 | (eval "$ac_try") 2>&5 |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17550 | ac_status=$? |
| 17551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17552 | (exit $ac_status); }; } && |
| 17553 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17554 | { (case "(($ac_try" in |
| 17555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17556 | *) ac_try_echo=$ac_try;; |
| 17557 | esac |
| 17558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17559 | (eval "$ac_try") 2>&5 |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17560 | ac_status=$? |
| 17561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17562 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17563 | ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17564 | if test "x$ac_cv_lib_soname_Xi" = "x" |
| 17565 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17566 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17567 | fi |
| 17568 | else |
| 17569 | echo "$as_me: failed program was:" >&5 |
| 17570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17571 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17572 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17573 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17574 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17575 | rm -f core conftest.err conftest.$ac_objext \ |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17576 | conftest$ac_exeext conftest.$ac_ext |
| 17577 | LIBS=$ac_get_soname_save_LIBS |
| 17578 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17579 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5 |
| 17580 | echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17581 | if test "${ac_cv_lib_soname_Xi+set}" = set; then |
| 17582 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17583 | cat >>confdefs.h <<_ACEOF |
| 17584 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" |
| 17585 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17586 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17587 | fi |
| 17588 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17589 | { echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
| 17590 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17591 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 17592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17593 | else |
| 17594 | ac_get_soname_save_LIBS=$LIBS |
| 17595 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 17596 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17597 | /* confdefs.h. */ |
| 17598 | _ACEOF |
| 17599 | cat confdefs.h >>conftest.$ac_ext |
| 17600 | cat >>conftest.$ac_ext <<_ACEOF |
| 17601 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17602 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17603 | /* Override any GCC internal prototype to avoid an error. |
| 17604 | Use char because int might match the return type of a GCC |
| 17605 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17606 | #ifdef __cplusplus |
| 17607 | extern "C" |
| 17608 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17609 | char XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17610 | int |
| 17611 | main () |
| 17612 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17613 | return XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17614 | ; |
| 17615 | return 0; |
| 17616 | } |
| 17617 | _ACEOF |
| 17618 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17619 | if { (ac_try="$ac_link" |
| 17620 | case "(($ac_try" in |
| 17621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17622 | *) ac_try_echo=$ac_try;; |
| 17623 | esac |
| 17624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17625 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17626 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17628 | rm -f conftest.er1 |
| 17629 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17631 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17632 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17633 | { (case "(($ac_try" in |
| 17634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17635 | *) ac_try_echo=$ac_try;; |
| 17636 | esac |
| 17637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17638 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17639 | ac_status=$? |
| 17640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17641 | (exit $ac_status); }; } && |
| 17642 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17643 | { (case "(($ac_try" in |
| 17644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17645 | *) ac_try_echo=$ac_try;; |
| 17646 | esac |
| 17647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17648 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17649 | ac_status=$? |
| 17650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17651 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17652 | ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17653 | if test "x$ac_cv_lib_soname_Xrender" = "x" |
| 17654 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17655 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17656 | fi |
| 17657 | else |
| 17658 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17660 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17661 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17662 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17663 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17664 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17665 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17666 | LIBS=$ac_get_soname_save_LIBS |
| 17667 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17668 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 |
| 17669 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17670 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 17671 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17672 | cat >>confdefs.h <<_ACEOF |
| 17673 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 17674 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17675 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17676 | fi |
| 17677 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17678 | { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5 |
| 17679 | echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; } |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17680 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then |
| 17681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17682 | else |
| 17683 | ac_get_soname_save_LIBS=$LIBS |
| 17684 | LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 17685 | cat >conftest.$ac_ext <<_ACEOF |
| 17686 | /* confdefs.h. */ |
| 17687 | _ACEOF |
| 17688 | cat confdefs.h >>conftest.$ac_ext |
| 17689 | cat >>conftest.$ac_ext <<_ACEOF |
| 17690 | /* end confdefs.h. */ |
| 17691 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17692 | /* Override any GCC internal prototype to avoid an error. |
| 17693 | Use char because int might match the return type of a GCC |
| 17694 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17695 | #ifdef __cplusplus |
| 17696 | extern "C" |
| 17697 | #endif |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17698 | char XRRQueryExtension (); |
| 17699 | int |
| 17700 | main () |
| 17701 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17702 | return XRRQueryExtension (); |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17703 | ; |
| 17704 | return 0; |
| 17705 | } |
| 17706 | _ACEOF |
| 17707 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17708 | if { (ac_try="$ac_link" |
| 17709 | case "(($ac_try" in |
| 17710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17711 | *) ac_try_echo=$ac_try;; |
| 17712 | esac |
| 17713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17714 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17715 | ac_status=$? |
| 17716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17717 | rm -f conftest.er1 |
| 17718 | cat conftest.err >&5 |
| 17719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17720 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17722 | { (case "(($ac_try" in |
| 17723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17724 | *) ac_try_echo=$ac_try;; |
| 17725 | esac |
| 17726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17727 | (eval "$ac_try") 2>&5 |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17728 | ac_status=$? |
| 17729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17730 | (exit $ac_status); }; } && |
| 17731 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17732 | { (case "(($ac_try" in |
| 17733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17734 | *) ac_try_echo=$ac_try;; |
| 17735 | esac |
| 17736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17737 | (eval "$ac_try") 2>&5 |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17738 | ac_status=$? |
| 17739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17740 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17741 | ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17742 | if test "x$ac_cv_lib_soname_Xrandr" = "x" |
| 17743 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17744 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17745 | fi |
| 17746 | else |
| 17747 | echo "$as_me: failed program was:" >&5 |
| 17748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17749 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17750 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17751 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17752 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17753 | rm -f core conftest.err conftest.$ac_objext \ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17754 | conftest$ac_exeext conftest.$ac_ext |
| 17755 | LIBS=$ac_get_soname_save_LIBS |
| 17756 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17757 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5 |
| 17758 | echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17759 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then |
| 17760 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17761 | cat >>confdefs.h <<_ACEOF |
| 17762 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" |
| 17763 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17764 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17765 | fi |
| 17766 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17767 | { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
| 17768 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17769 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 17770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17771 | else |
| 17772 | ac_get_soname_save_LIBS=$LIBS |
| 17773 | LIBS="-lfreetype $X_LIBS $LIBS" |
| 17774 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17775 | /* confdefs.h. */ |
| 17776 | _ACEOF |
| 17777 | cat confdefs.h >>conftest.$ac_ext |
| 17778 | cat >>conftest.$ac_ext <<_ACEOF |
| 17779 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17780 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17781 | /* Override any GCC internal prototype to avoid an error. |
| 17782 | Use char because int might match the return type of a GCC |
| 17783 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17784 | #ifdef __cplusplus |
| 17785 | extern "C" |
| 17786 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17787 | char FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17788 | int |
| 17789 | main () |
| 17790 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17791 | return FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17792 | ; |
| 17793 | return 0; |
| 17794 | } |
| 17795 | _ACEOF |
| 17796 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17797 | if { (ac_try="$ac_link" |
| 17798 | case "(($ac_try" in |
| 17799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17800 | *) ac_try_echo=$ac_try;; |
| 17801 | esac |
| 17802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17803 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17804 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17806 | rm -f conftest.er1 |
| 17807 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17809 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17811 | { (case "(($ac_try" in |
| 17812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17813 | *) ac_try_echo=$ac_try;; |
| 17814 | esac |
| 17815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17816 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17817 | ac_status=$? |
| 17818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17819 | (exit $ac_status); }; } && |
| 17820 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17821 | { (case "(($ac_try" in |
| 17822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17823 | *) ac_try_echo=$ac_try;; |
| 17824 | esac |
| 17825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17826 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17827 | ac_status=$? |
| 17828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17829 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17830 | ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17831 | if test "x$ac_cv_lib_soname_freetype" = "x" |
| 17832 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17833 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17834 | fi |
| 17835 | else |
| 17836 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17838 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17839 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17840 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17841 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17842 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17843 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17844 | LIBS=$ac_get_soname_save_LIBS |
| 17845 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17846 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
| 17847 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17848 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 17849 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17850 | cat >>confdefs.h <<_ACEOF |
| 17851 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 17852 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17853 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17854 | fi |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17855 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17856 | { echo "$as_me:$LINENO: checking for -lGL soname" >&5 |
| 17857 | echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; } |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17858 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 17859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17860 | else |
| 17861 | ac_get_soname_save_LIBS=$LIBS |
| 17862 | LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 17863 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17864 | /* confdefs.h. */ |
| 17865 | _ACEOF |
| 17866 | cat confdefs.h >>conftest.$ac_ext |
| 17867 | cat >>conftest.$ac_ext <<_ACEOF |
| 17868 | /* end confdefs.h. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17869 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17870 | /* Override any GCC internal prototype to avoid an error. |
| 17871 | Use char because int might match the return type of a GCC |
| 17872 | builtin and then its argument prototype would still apply. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17873 | #ifdef __cplusplus |
| 17874 | extern "C" |
| 17875 | #endif |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17876 | char glXQueryExtension (); |
| 17877 | int |
| 17878 | main () |
| 17879 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17880 | return glXQueryExtension (); |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17881 | ; |
| 17882 | return 0; |
| 17883 | } |
| 17884 | _ACEOF |
| 17885 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17886 | if { (ac_try="$ac_link" |
| 17887 | case "(($ac_try" in |
| 17888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17889 | *) ac_try_echo=$ac_try;; |
| 17890 | esac |
| 17891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17892 | (eval "$ac_link") 2>conftest.er1 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17893 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17894 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17895 | rm -f conftest.er1 |
| 17896 | cat conftest.err >&5 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17898 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17899 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17900 | { (case "(($ac_try" in |
| 17901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17902 | *) ac_try_echo=$ac_try;; |
| 17903 | esac |
| 17904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17905 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17906 | ac_status=$? |
| 17907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17908 | (exit $ac_status); }; } && |
| 17909 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17910 | { (case "(($ac_try" in |
| 17911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17912 | *) ac_try_echo=$ac_try;; |
| 17913 | esac |
| 17914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17915 | (eval "$ac_try") 2>&5 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17916 | ac_status=$? |
| 17917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17918 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17919 | ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17920 | if test "x$ac_cv_lib_soname_GL" = "x" |
| 17921 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17922 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17923 | fi |
| 17924 | else |
| 17925 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17927 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17928 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17929 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17930 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17931 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17932 | conftest$ac_exeext conftest.$ac_ext |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17933 | LIBS=$ac_get_soname_save_LIBS |
| 17934 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17935 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5 |
| 17936 | echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17937 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 17938 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17939 | cat >>confdefs.h <<_ACEOF |
| 17940 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 17941 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17942 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17943 | fi |
| 17944 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17945 | { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5 |
| 17946 | echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17947 | if test "${ac_cv_lib_soname_dbus_1+set}" = set; then |
| 17948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17949 | else |
| 17950 | ac_get_soname_save_LIBS=$LIBS |
| 17951 | LIBS="-ldbus-1 $LIBS" |
| 17952 | cat >conftest.$ac_ext <<_ACEOF |
| 17953 | /* confdefs.h. */ |
| 17954 | _ACEOF |
| 17955 | cat confdefs.h >>conftest.$ac_ext |
| 17956 | cat >>conftest.$ac_ext <<_ACEOF |
| 17957 | /* end confdefs.h. */ |
| 17958 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17959 | /* Override any GCC internal prototype to avoid an error. |
| 17960 | Use char because int might match the return type of a GCC |
| 17961 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17962 | #ifdef __cplusplus |
| 17963 | extern "C" |
| 17964 | #endif |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17965 | char dbus_error_init (); |
| 17966 | int |
| 17967 | main () |
| 17968 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17969 | return dbus_error_init (); |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17970 | ; |
| 17971 | return 0; |
| 17972 | } |
| 17973 | _ACEOF |
| 17974 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17975 | if { (ac_try="$ac_link" |
| 17976 | case "(($ac_try" in |
| 17977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17978 | *) ac_try_echo=$ac_try;; |
| 17979 | esac |
| 17980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17981 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17982 | ac_status=$? |
| 17983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17984 | rm -f conftest.er1 |
| 17985 | cat conftest.err >&5 |
| 17986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17987 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17988 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17989 | { (case "(($ac_try" in |
| 17990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17991 | *) ac_try_echo=$ac_try;; |
| 17992 | esac |
| 17993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17994 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17995 | ac_status=$? |
| 17996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17997 | (exit $ac_status); }; } && |
| 17998 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17999 | { (case "(($ac_try" in |
| 18000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18001 | *) ac_try_echo=$ac_try;; |
| 18002 | esac |
| 18003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18004 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18005 | ac_status=$? |
| 18006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18007 | (exit $ac_status); }; }; then |
| 18008 | ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.$LIBEXT | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
| 18009 | if test "x$ac_cv_lib_soname_dbus_1" = "x" |
| 18010 | then |
| 18011 | ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT" |
| 18012 | fi |
| 18013 | else |
| 18014 | echo "$as_me: failed program was:" >&5 |
| 18015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18016 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18017 | ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18018 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18019 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18020 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18021 | conftest$ac_exeext conftest.$ac_ext |
| 18022 | LIBS=$ac_get_soname_save_LIBS |
| 18023 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18024 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5 |
| 18025 | echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18026 | if test "${ac_cv_lib_soname_dbus_1+set}" = set; then |
| 18027 | |
| 18028 | cat >>confdefs.h <<_ACEOF |
| 18029 | #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1" |
| 18030 | _ACEOF |
| 18031 | |
| 18032 | fi |
| 18033 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18034 | { echo "$as_me:$LINENO: checking for -lhal soname" >&5 |
| 18035 | echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18036 | if test "${ac_cv_lib_soname_hal+set}" = set; then |
| 18037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18038 | else |
| 18039 | ac_get_soname_save_LIBS=$LIBS |
| 18040 | LIBS="-lhal $LIBS" |
| 18041 | cat >conftest.$ac_ext <<_ACEOF |
| 18042 | /* confdefs.h. */ |
| 18043 | _ACEOF |
| 18044 | cat confdefs.h >>conftest.$ac_ext |
| 18045 | cat >>conftest.$ac_ext <<_ACEOF |
| 18046 | /* end confdefs.h. */ |
| 18047 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18048 | /* Override any GCC internal prototype to avoid an error. |
| 18049 | Use char because int might match the return type of a GCC |
| 18050 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18051 | #ifdef __cplusplus |
| 18052 | extern "C" |
| 18053 | #endif |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18054 | char libhal_ctx_new (); |
| 18055 | int |
| 18056 | main () |
| 18057 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18058 | return libhal_ctx_new (); |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18059 | ; |
| 18060 | return 0; |
| 18061 | } |
| 18062 | _ACEOF |
| 18063 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18064 | if { (ac_try="$ac_link" |
| 18065 | case "(($ac_try" in |
| 18066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18067 | *) ac_try_echo=$ac_try;; |
| 18068 | esac |
| 18069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18070 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18071 | ac_status=$? |
| 18072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18073 | rm -f conftest.er1 |
| 18074 | cat conftest.err >&5 |
| 18075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18076 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18078 | { (case "(($ac_try" in |
| 18079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18080 | *) ac_try_echo=$ac_try;; |
| 18081 | esac |
| 18082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18083 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18084 | ac_status=$? |
| 18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18086 | (exit $ac_status); }; } && |
| 18087 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18088 | { (case "(($ac_try" in |
| 18089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18090 | *) ac_try_echo=$ac_try;; |
| 18091 | esac |
| 18092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18093 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18094 | ac_status=$? |
| 18095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18096 | (exit $ac_status); }; }; then |
| 18097 | ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
| 18098 | if test "x$ac_cv_lib_soname_hal" = "x" |
| 18099 | then |
| 18100 | ac_cv_lib_soname_hal="libhal.$LIBEXT" |
| 18101 | fi |
| 18102 | else |
| 18103 | echo "$as_me: failed program was:" >&5 |
| 18104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18105 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18106 | ac_cv_lib_soname_hal="libhal.$LIBEXT" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18107 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18108 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18109 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18110 | conftest$ac_exeext conftest.$ac_ext |
| 18111 | LIBS=$ac_get_soname_save_LIBS |
| 18112 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18113 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5 |
| 18114 | echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18115 | if test "${ac_cv_lib_soname_hal+set}" = set; then |
| 18116 | |
| 18117 | cat >>confdefs.h <<_ACEOF |
| 18118 | #define SONAME_LIBHAL "$ac_cv_lib_soname_hal" |
| 18119 | _ACEOF |
| 18120 | |
| 18121 | fi |
| 18122 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18123 | { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5 |
| 18124 | echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; } |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18125 | if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then |
| 18126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18127 | else |
| 18128 | ac_get_soname_save_LIBS=$LIBS |
| 18129 | LIBS="-ltxc_dxtn $LIBS" |
| 18130 | cat >conftest.$ac_ext <<_ACEOF |
| 18131 | /* confdefs.h. */ |
| 18132 | _ACEOF |
| 18133 | cat confdefs.h >>conftest.$ac_ext |
| 18134 | cat >>conftest.$ac_ext <<_ACEOF |
| 18135 | /* end confdefs.h. */ |
| 18136 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18137 | /* Override any GCC internal prototype to avoid an error. |
| 18138 | Use char because int might match the return type of a GCC |
| 18139 | builtin and then its argument prototype would still apply. */ |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18140 | #ifdef __cplusplus |
| 18141 | extern "C" |
| 18142 | #endif |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18143 | char fetch_2d_texel_rgba_dxt1 (); |
| 18144 | int |
| 18145 | main () |
| 18146 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18147 | return fetch_2d_texel_rgba_dxt1 (); |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18148 | ; |
| 18149 | return 0; |
| 18150 | } |
| 18151 | _ACEOF |
| 18152 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18153 | if { (ac_try="$ac_link" |
| 18154 | case "(($ac_try" in |
| 18155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18156 | *) ac_try_echo=$ac_try;; |
| 18157 | esac |
| 18158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18159 | (eval "$ac_link") 2>conftest.er1 |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18160 | ac_status=$? |
| 18161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18162 | rm -f conftest.er1 |
| 18163 | cat conftest.err >&5 |
| 18164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18165 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18167 | { (case "(($ac_try" in |
| 18168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18169 | *) ac_try_echo=$ac_try;; |
| 18170 | esac |
| 18171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18172 | (eval "$ac_try") 2>&5 |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18173 | ac_status=$? |
| 18174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18175 | (exit $ac_status); }; } && |
| 18176 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18177 | { (case "(($ac_try" in |
| 18178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18179 | *) ac_try_echo=$ac_try;; |
| 18180 | esac |
| 18181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18182 | (eval "$ac_try") 2>&5 |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18183 | ac_status=$? |
| 18184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18185 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18186 | ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18187 | if test "x$ac_cv_lib_soname_txc_dxtn" = "x" |
| 18188 | then |
| 18189 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
| 18190 | fi |
| 18191 | else |
| 18192 | echo "$as_me: failed program was:" >&5 |
| 18193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18194 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18195 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18196 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18197 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18198 | rm -f core conftest.err conftest.$ac_objext \ |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18199 | conftest$ac_exeext conftest.$ac_ext |
| 18200 | LIBS=$ac_get_soname_save_LIBS |
| 18201 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18202 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5 |
| 18203 | echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18204 | if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then |
| 18205 | |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18206 | cat >>confdefs.h <<_ACEOF |
| 18207 | #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn" |
| 18208 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18209 | |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18210 | fi |
| 18211 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18212 | { echo "$as_me:$LINENO: checking for -lcups soname" >&5 |
| 18213 | echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; } |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18214 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 18215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18216 | else |
| 18217 | ac_get_soname_save_LIBS=$LIBS |
| 18218 | LIBS="-lcups $LIBS" |
| 18219 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18220 | /* confdefs.h. */ |
| 18221 | _ACEOF |
| 18222 | cat confdefs.h >>conftest.$ac_ext |
| 18223 | cat >>conftest.$ac_ext <<_ACEOF |
| 18224 | /* end confdefs.h. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18225 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18226 | /* Override any GCC internal prototype to avoid an error. |
| 18227 | Use char because int might match the return type of a GCC |
| 18228 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18229 | #ifdef __cplusplus |
| 18230 | extern "C" |
| 18231 | #endif |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18232 | char cupsGetDefault (); |
| 18233 | int |
| 18234 | main () |
| 18235 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18236 | return cupsGetDefault (); |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18237 | ; |
| 18238 | return 0; |
| 18239 | } |
| 18240 | _ACEOF |
| 18241 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18242 | if { (ac_try="$ac_link" |
| 18243 | case "(($ac_try" in |
| 18244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18245 | *) ac_try_echo=$ac_try;; |
| 18246 | esac |
| 18247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18248 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18249 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18251 | rm -f conftest.er1 |
| 18252 | cat conftest.err >&5 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18254 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18255 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18256 | { (case "(($ac_try" in |
| 18257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18258 | *) ac_try_echo=$ac_try;; |
| 18259 | esac |
| 18260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18261 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18262 | ac_status=$? |
| 18263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18264 | (exit $ac_status); }; } && |
| 18265 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18266 | { (case "(($ac_try" in |
| 18267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18268 | *) ac_try_echo=$ac_try;; |
| 18269 | esac |
| 18270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18271 | (eval "$ac_try") 2>&5 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18272 | ac_status=$? |
| 18273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18274 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18275 | ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18276 | if test "x$ac_cv_lib_soname_cups" = "x" |
| 18277 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18278 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18279 | fi |
| 18280 | else |
| 18281 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18283 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18284 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18285 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18286 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18287 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18288 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18289 | LIBS=$ac_get_soname_save_LIBS |
| 18290 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18291 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5 |
| 18292 | echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18293 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 18294 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18295 | cat >>confdefs.h <<_ACEOF |
| 18296 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 18297 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18298 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18299 | fi |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18300 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18301 | { echo "$as_me:$LINENO: checking for -ljack soname" >&5 |
| 18302 | echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; } |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18303 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 18304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18305 | else |
| 18306 | ac_get_soname_save_LIBS=$LIBS |
| 18307 | LIBS="-ljack $LIBS" |
| 18308 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18309 | /* confdefs.h. */ |
| 18310 | _ACEOF |
| 18311 | cat confdefs.h >>conftest.$ac_ext |
| 18312 | cat >>conftest.$ac_ext <<_ACEOF |
| 18313 | /* end confdefs.h. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18314 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18315 | /* Override any GCC internal prototype to avoid an error. |
| 18316 | Use char because int might match the return type of a GCC |
| 18317 | builtin and then its argument prototype would still apply. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18318 | #ifdef __cplusplus |
| 18319 | extern "C" |
| 18320 | #endif |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18321 | char jack_client_new (); |
| 18322 | int |
| 18323 | main () |
| 18324 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18325 | return jack_client_new (); |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18326 | ; |
| 18327 | return 0; |
| 18328 | } |
| 18329 | _ACEOF |
| 18330 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18331 | if { (ac_try="$ac_link" |
| 18332 | case "(($ac_try" in |
| 18333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18334 | *) ac_try_echo=$ac_try;; |
| 18335 | esac |
| 18336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18337 | (eval "$ac_link") 2>conftest.er1 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18338 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18340 | rm -f conftest.er1 |
| 18341 | cat conftest.err >&5 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18343 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18344 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18345 | { (case "(($ac_try" in |
| 18346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18347 | *) ac_try_echo=$ac_try;; |
| 18348 | esac |
| 18349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18350 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18351 | ac_status=$? |
| 18352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18353 | (exit $ac_status); }; } && |
| 18354 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18355 | { (case "(($ac_try" in |
| 18356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18357 | *) ac_try_echo=$ac_try;; |
| 18358 | esac |
| 18359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18360 | (eval "$ac_try") 2>&5 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18361 | ac_status=$? |
| 18362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18363 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18364 | ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18365 | if test "x$ac_cv_lib_soname_jack" = "x" |
| 18366 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18367 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18368 | fi |
| 18369 | else |
| 18370 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18372 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18373 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18374 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18375 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18376 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18377 | conftest$ac_exeext conftest.$ac_ext |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18378 | LIBS=$ac_get_soname_save_LIBS |
| 18379 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18380 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5 |
| 18381 | echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18382 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 18383 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18384 | cat >>confdefs.h <<_ACEOF |
| 18385 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 18386 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18387 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18388 | fi |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18389 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18390 | { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5 |
| 18391 | echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; } |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18392 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then |
| 18393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18394 | else |
| 18395 | ac_get_soname_save_LIBS=$LIBS |
| 18396 | LIBS="-lfontconfig $LIBS" |
| 18397 | cat >conftest.$ac_ext <<_ACEOF |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18398 | /* confdefs.h. */ |
| 18399 | _ACEOF |
| 18400 | cat confdefs.h >>conftest.$ac_ext |
| 18401 | cat >>conftest.$ac_ext <<_ACEOF |
| 18402 | /* end confdefs.h. */ |
| 18403 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18404 | /* Override any GCC internal prototype to avoid an error. |
| 18405 | Use char because int might match the return type of a GCC |
| 18406 | builtin and then its argument prototype would still apply. */ |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18407 | #ifdef __cplusplus |
| 18408 | extern "C" |
| 18409 | #endif |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18410 | char FcInit (); |
| 18411 | int |
| 18412 | main () |
| 18413 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18414 | return FcInit (); |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18415 | ; |
| 18416 | return 0; |
| 18417 | } |
| 18418 | _ACEOF |
| 18419 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18420 | if { (ac_try="$ac_link" |
| 18421 | case "(($ac_try" in |
| 18422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18423 | *) ac_try_echo=$ac_try;; |
| 18424 | esac |
| 18425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18426 | (eval "$ac_link") 2>conftest.er1 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18427 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18429 | rm -f conftest.er1 |
| 18430 | cat conftest.err >&5 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18432 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18433 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18434 | { (case "(($ac_try" in |
| 18435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18436 | *) ac_try_echo=$ac_try;; |
| 18437 | esac |
| 18438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18439 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18440 | ac_status=$? |
| 18441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18442 | (exit $ac_status); }; } && |
| 18443 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18444 | { (case "(($ac_try" in |
| 18445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18446 | *) ac_try_echo=$ac_try;; |
| 18447 | esac |
| 18448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18449 | (eval "$ac_try") 2>&5 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18450 | ac_status=$? |
| 18451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18452 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18453 | ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18454 | if test "x$ac_cv_lib_soname_fontconfig" = "x" |
| 18455 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18456 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18457 | fi |
| 18458 | else |
| 18459 | echo "$as_me: failed program was:" >&5 |
| 18460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18461 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18462 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18463 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18464 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18465 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18466 | conftest$ac_exeext conftest.$ac_ext |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18467 | LIBS=$ac_get_soname_save_LIBS |
| 18468 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18469 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5 |
| 18470 | echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18471 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then |
| 18472 | |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18473 | cat >>confdefs.h <<_ACEOF |
| 18474 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 18475 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18476 | |
Alexandre Julliard | 7999469 | 2003-11-13 20:58:55 +0000 | [diff] [blame] | 18477 | fi |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18478 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18479 | { echo "$as_me:$LINENO: checking for -lssl soname" >&5 |
| 18480 | echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; } |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18481 | if test "${ac_cv_lib_soname_ssl+set}" = set; then |
| 18482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18483 | else |
| 18484 | ac_get_soname_save_LIBS=$LIBS |
| 18485 | LIBS="-lssl $LIBS" |
| 18486 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18487 | /* confdefs.h. */ |
| 18488 | _ACEOF |
| 18489 | cat confdefs.h >>conftest.$ac_ext |
| 18490 | cat >>conftest.$ac_ext <<_ACEOF |
| 18491 | /* end confdefs.h. */ |
| 18492 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18493 | /* Override any GCC internal prototype to avoid an error. |
| 18494 | Use char because int might match the return type of a GCC |
| 18495 | builtin and then its argument prototype would still apply. */ |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18496 | #ifdef __cplusplus |
| 18497 | extern "C" |
| 18498 | #endif |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18499 | char SSL_library_init (); |
| 18500 | int |
| 18501 | main () |
| 18502 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18503 | return SSL_library_init (); |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18504 | ; |
| 18505 | return 0; |
| 18506 | } |
| 18507 | _ACEOF |
| 18508 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18509 | if { (ac_try="$ac_link" |
| 18510 | case "(($ac_try" in |
| 18511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18512 | *) ac_try_echo=$ac_try;; |
| 18513 | esac |
| 18514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18515 | (eval "$ac_link") 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18516 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18518 | rm -f conftest.er1 |
| 18519 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18521 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18522 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18523 | { (case "(($ac_try" in |
| 18524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18525 | *) ac_try_echo=$ac_try;; |
| 18526 | esac |
| 18527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18528 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18529 | ac_status=$? |
| 18530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18531 | (exit $ac_status); }; } && |
| 18532 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18533 | { (case "(($ac_try" in |
| 18534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18535 | *) ac_try_echo=$ac_try;; |
| 18536 | esac |
| 18537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18538 | (eval "$ac_try") 2>&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18539 | ac_status=$? |
| 18540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18541 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18542 | ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18543 | if test "x$ac_cv_lib_soname_ssl" = "x" |
| 18544 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18545 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18546 | fi |
| 18547 | else |
| 18548 | echo "$as_me: failed program was:" >&5 |
| 18549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18550 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18551 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18552 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18553 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18554 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18555 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18556 | LIBS=$ac_get_soname_save_LIBS |
| 18557 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18558 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5 |
| 18559 | echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18560 | if test "${ac_cv_lib_soname_ssl+set}" = set; then |
| 18561 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18562 | cat >>confdefs.h <<_ACEOF |
| 18563 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 18564 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18565 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18566 | fi |
| 18567 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18568 | { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5 |
| 18569 | echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; } |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18570 | if test "${ac_cv_lib_soname_crypto+set}" = set; then |
| 18571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18572 | else |
| 18573 | ac_get_soname_save_LIBS=$LIBS |
| 18574 | LIBS="-lcrypto $LIBS" |
| 18575 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18576 | /* confdefs.h. */ |
| 18577 | _ACEOF |
| 18578 | cat confdefs.h >>conftest.$ac_ext |
| 18579 | cat >>conftest.$ac_ext <<_ACEOF |
| 18580 | /* end confdefs.h. */ |
| 18581 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18582 | /* Override any GCC internal prototype to avoid an error. |
| 18583 | Use char because int might match the return type of a GCC |
| 18584 | builtin and then its argument prototype would still apply. */ |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18585 | #ifdef __cplusplus |
| 18586 | extern "C" |
| 18587 | #endif |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18588 | char BIO_new_socket (); |
| 18589 | int |
| 18590 | main () |
| 18591 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18592 | return BIO_new_socket (); |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18593 | ; |
| 18594 | return 0; |
| 18595 | } |
| 18596 | _ACEOF |
| 18597 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18598 | if { (ac_try="$ac_link" |
| 18599 | case "(($ac_try" in |
| 18600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18601 | *) ac_try_echo=$ac_try;; |
| 18602 | esac |
| 18603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18604 | (eval "$ac_link") 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18605 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18607 | rm -f conftest.er1 |
| 18608 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18610 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18612 | { (case "(($ac_try" in |
| 18613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18614 | *) ac_try_echo=$ac_try;; |
| 18615 | esac |
| 18616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18617 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18618 | ac_status=$? |
| 18619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18620 | (exit $ac_status); }; } && |
| 18621 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18622 | { (case "(($ac_try" in |
| 18623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18624 | *) ac_try_echo=$ac_try;; |
| 18625 | esac |
| 18626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18627 | (eval "$ac_try") 2>&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18628 | ac_status=$? |
| 18629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18630 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18631 | ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18632 | if test "x$ac_cv_lib_soname_crypto" = "x" |
| 18633 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18634 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18635 | fi |
| 18636 | else |
| 18637 | echo "$as_me: failed program was:" >&5 |
| 18638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18639 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18640 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18641 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18642 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18643 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18644 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18645 | LIBS=$ac_get_soname_save_LIBS |
| 18646 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18647 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5 |
| 18648 | echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18649 | if test "${ac_cv_lib_soname_crypto+set}" = set; then |
| 18650 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18651 | cat >>confdefs.h <<_ACEOF |
| 18652 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 18653 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18654 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18655 | fi |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18656 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18657 | { echo "$as_me:$LINENO: checking for -lncurses soname" >&5 |
| 18658 | echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; } |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18659 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then |
| 18660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18661 | else |
| 18662 | ac_get_soname_save_LIBS=$LIBS |
| 18663 | LIBS="-lncurses $LIBS" |
| 18664 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18665 | /* confdefs.h. */ |
| 18666 | _ACEOF |
| 18667 | cat confdefs.h >>conftest.$ac_ext |
| 18668 | cat >>conftest.$ac_ext <<_ACEOF |
| 18669 | /* end confdefs.h. */ |
| 18670 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18671 | /* Override any GCC internal prototype to avoid an error. |
| 18672 | Use char because int might match the return type of a GCC |
| 18673 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18674 | #ifdef __cplusplus |
| 18675 | extern "C" |
| 18676 | #endif |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18677 | char waddch (); |
| 18678 | int |
| 18679 | main () |
| 18680 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18681 | return waddch (); |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18682 | ; |
| 18683 | return 0; |
| 18684 | } |
| 18685 | _ACEOF |
| 18686 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18687 | if { (ac_try="$ac_link" |
| 18688 | case "(($ac_try" in |
| 18689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18690 | *) ac_try_echo=$ac_try;; |
| 18691 | esac |
| 18692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18693 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18694 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18695 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18696 | rm -f conftest.er1 |
| 18697 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18699 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18700 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18701 | { (case "(($ac_try" in |
| 18702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18703 | *) ac_try_echo=$ac_try;; |
| 18704 | esac |
| 18705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18706 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18707 | ac_status=$? |
| 18708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18709 | (exit $ac_status); }; } && |
| 18710 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18711 | { (case "(($ac_try" in |
| 18712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18713 | *) ac_try_echo=$ac_try;; |
| 18714 | esac |
| 18715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18716 | (eval "$ac_try") 2>&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18717 | ac_status=$? |
| 18718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18719 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18720 | ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18721 | if test "x$ac_cv_lib_soname_ncurses" = "x" |
| 18722 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18723 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18724 | fi |
| 18725 | else |
| 18726 | echo "$as_me: failed program was:" >&5 |
| 18727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18728 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18729 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18730 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18731 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18732 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18733 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18734 | LIBS=$ac_get_soname_save_LIBS |
| 18735 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18736 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5 |
| 18737 | echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18738 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then |
| 18739 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18740 | cat >>confdefs.h <<_ACEOF |
| 18741 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
| 18742 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18743 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18744 | fi |
| 18745 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18746 | { echo "$as_me:$LINENO: checking for -lcurses soname" >&5 |
| 18747 | echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; } |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18748 | if test "${ac_cv_lib_soname_curses+set}" = set; then |
| 18749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18750 | else |
| 18751 | ac_get_soname_save_LIBS=$LIBS |
| 18752 | LIBS="-lcurses $LIBS" |
| 18753 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18754 | /* confdefs.h. */ |
| 18755 | _ACEOF |
| 18756 | cat confdefs.h >>conftest.$ac_ext |
| 18757 | cat >>conftest.$ac_ext <<_ACEOF |
| 18758 | /* end confdefs.h. */ |
| 18759 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18760 | /* Override any GCC internal prototype to avoid an error. |
| 18761 | Use char because int might match the return type of a GCC |
| 18762 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18763 | #ifdef __cplusplus |
| 18764 | extern "C" |
| 18765 | #endif |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18766 | char waddch (); |
| 18767 | int |
| 18768 | main () |
| 18769 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18770 | return waddch (); |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18771 | ; |
| 18772 | return 0; |
| 18773 | } |
| 18774 | _ACEOF |
| 18775 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18776 | if { (ac_try="$ac_link" |
| 18777 | case "(($ac_try" in |
| 18778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18779 | *) ac_try_echo=$ac_try;; |
| 18780 | esac |
| 18781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18782 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18783 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18785 | rm -f conftest.er1 |
| 18786 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18788 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18790 | { (case "(($ac_try" in |
| 18791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18792 | *) ac_try_echo=$ac_try;; |
| 18793 | esac |
| 18794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18795 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18796 | ac_status=$? |
| 18797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18798 | (exit $ac_status); }; } && |
| 18799 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18800 | { (case "(($ac_try" in |
| 18801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18802 | *) ac_try_echo=$ac_try;; |
| 18803 | esac |
| 18804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18805 | (eval "$ac_try") 2>&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18806 | ac_status=$? |
| 18807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18808 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18809 | ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18810 | if test "x$ac_cv_lib_soname_curses" = "x" |
| 18811 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18812 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18813 | fi |
| 18814 | else |
| 18815 | echo "$as_me: failed program was:" >&5 |
| 18816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18817 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18818 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18819 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18820 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18821 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18822 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18823 | LIBS=$ac_get_soname_save_LIBS |
| 18824 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18825 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5 |
| 18826 | echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18827 | if test "${ac_cv_lib_soname_curses+set}" = set; then |
| 18828 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18829 | cat >>confdefs.h <<_ACEOF |
| 18830 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
| 18831 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18832 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18833 | fi |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18834 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18835 | { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5 |
| 18836 | echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; } |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18837 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then |
| 18838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18839 | else |
| 18840 | ac_get_soname_save_LIBS=$LIBS |
| 18841 | LIBS="-ljpeg $LIBS" |
| 18842 | cat >conftest.$ac_ext <<_ACEOF |
| 18843 | /* confdefs.h. */ |
| 18844 | _ACEOF |
| 18845 | cat confdefs.h >>conftest.$ac_ext |
| 18846 | cat >>conftest.$ac_ext <<_ACEOF |
| 18847 | /* end confdefs.h. */ |
| 18848 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18849 | /* Override any GCC internal prototype to avoid an error. |
| 18850 | Use char because int might match the return type of a GCC |
| 18851 | builtin and then its argument prototype would still apply. */ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18852 | #ifdef __cplusplus |
| 18853 | extern "C" |
| 18854 | #endif |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18855 | char jpeg_start_decompress (); |
| 18856 | int |
| 18857 | main () |
| 18858 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18859 | return jpeg_start_decompress (); |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18860 | ; |
| 18861 | return 0; |
| 18862 | } |
| 18863 | _ACEOF |
| 18864 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18865 | if { (ac_try="$ac_link" |
| 18866 | case "(($ac_try" in |
| 18867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18868 | *) ac_try_echo=$ac_try;; |
| 18869 | esac |
| 18870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18871 | (eval "$ac_link") 2>conftest.er1 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18872 | ac_status=$? |
| 18873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18874 | rm -f conftest.er1 |
| 18875 | cat conftest.err >&5 |
| 18876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18877 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18878 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18879 | { (case "(($ac_try" in |
| 18880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18881 | *) ac_try_echo=$ac_try;; |
| 18882 | esac |
| 18883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18884 | (eval "$ac_try") 2>&5 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18885 | ac_status=$? |
| 18886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18887 | (exit $ac_status); }; } && |
| 18888 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18889 | { (case "(($ac_try" in |
| 18890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18891 | *) ac_try_echo=$ac_try;; |
| 18892 | esac |
| 18893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18894 | (eval "$ac_try") 2>&5 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18895 | ac_status=$? |
| 18896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18897 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18898 | ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18899 | if test "x$ac_cv_lib_soname_jpeg" = "x" |
| 18900 | then |
| 18901 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
| 18902 | fi |
| 18903 | else |
| 18904 | echo "$as_me: failed program was:" >&5 |
| 18905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18906 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18907 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18908 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18909 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18910 | rm -f core conftest.err conftest.$ac_objext \ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18911 | conftest$ac_exeext conftest.$ac_ext |
| 18912 | LIBS=$ac_get_soname_save_LIBS |
| 18913 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18914 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5 |
| 18915 | echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18916 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then |
| 18917 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18918 | cat >>confdefs.h <<_ACEOF |
| 18919 | #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg" |
| 18920 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18921 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18922 | fi |
| 18923 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18924 | { echo "$as_me:$LINENO: checking for -lungif soname" >&5 |
| 18925 | echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; } |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18926 | if test "${ac_cv_lib_soname_ungif+set}" = set; then |
| 18927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18928 | else |
| 18929 | ac_get_soname_save_LIBS=$LIBS |
| 18930 | LIBS="-lungif $LIBS" |
| 18931 | cat >conftest.$ac_ext <<_ACEOF |
| 18932 | /* confdefs.h. */ |
| 18933 | _ACEOF |
| 18934 | cat confdefs.h >>conftest.$ac_ext |
| 18935 | cat >>conftest.$ac_ext <<_ACEOF |
| 18936 | /* end confdefs.h. */ |
| 18937 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18938 | /* Override any GCC internal prototype to avoid an error. |
| 18939 | Use char because int might match the return type of a GCC |
| 18940 | builtin and then its argument prototype would still apply. */ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18941 | #ifdef __cplusplus |
| 18942 | extern "C" |
| 18943 | #endif |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18944 | char DGifOpen (); |
| 18945 | int |
| 18946 | main () |
| 18947 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18948 | return DGifOpen (); |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18949 | ; |
| 18950 | return 0; |
| 18951 | } |
| 18952 | _ACEOF |
| 18953 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18954 | if { (ac_try="$ac_link" |
| 18955 | case "(($ac_try" in |
| 18956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18957 | *) ac_try_echo=$ac_try;; |
| 18958 | esac |
| 18959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18960 | (eval "$ac_link") 2>conftest.er1 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18961 | ac_status=$? |
| 18962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18963 | rm -f conftest.er1 |
| 18964 | cat conftest.err >&5 |
| 18965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18966 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18967 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18968 | { (case "(($ac_try" in |
| 18969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18970 | *) ac_try_echo=$ac_try;; |
| 18971 | esac |
| 18972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18973 | (eval "$ac_try") 2>&5 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18974 | ac_status=$? |
| 18975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18976 | (exit $ac_status); }; } && |
| 18977 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18978 | { (case "(($ac_try" in |
| 18979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18980 | *) ac_try_echo=$ac_try;; |
| 18981 | esac |
| 18982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18983 | (eval "$ac_try") 2>&5 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18984 | ac_status=$? |
| 18985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18986 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18987 | ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18988 | if test "x$ac_cv_lib_soname_ungif" = "x" |
| 18989 | then |
| 18990 | ac_cv_lib_soname_ungif="libungif.$LIBEXT" |
| 18991 | fi |
| 18992 | else |
| 18993 | echo "$as_me: failed program was:" >&5 |
| 18994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18995 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18996 | ac_cv_lib_soname_ungif="libungif.$LIBEXT" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18997 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18998 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18999 | rm -f core conftest.err conftest.$ac_objext \ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19000 | conftest$ac_exeext conftest.$ac_ext |
| 19001 | LIBS=$ac_get_soname_save_LIBS |
| 19002 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19003 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5 |
| 19004 | echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19005 | if test "${ac_cv_lib_soname_ungif+set}" = set; then |
| 19006 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19007 | cat >>confdefs.h <<_ACEOF |
| 19008 | #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif" |
| 19009 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19010 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19011 | fi |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19012 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19013 | { echo "$as_me:$LINENO: checking for -lgif soname" >&5 |
| 19014 | echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; } |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19015 | if test "${ac_cv_lib_soname_gif+set}" = set; then |
| 19016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19017 | else |
| 19018 | ac_get_soname_save_LIBS=$LIBS |
| 19019 | LIBS="-lgif $LIBS" |
| 19020 | cat >conftest.$ac_ext <<_ACEOF |
| 19021 | /* confdefs.h. */ |
| 19022 | _ACEOF |
| 19023 | cat confdefs.h >>conftest.$ac_ext |
| 19024 | cat >>conftest.$ac_ext <<_ACEOF |
| 19025 | /* end confdefs.h. */ |
| 19026 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19027 | /* Override any GCC internal prototype to avoid an error. |
| 19028 | Use char because int might match the return type of a GCC |
| 19029 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19030 | #ifdef __cplusplus |
| 19031 | extern "C" |
| 19032 | #endif |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19033 | char DGifOpen (); |
| 19034 | int |
| 19035 | main () |
| 19036 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19037 | return DGifOpen (); |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19038 | ; |
| 19039 | return 0; |
| 19040 | } |
| 19041 | _ACEOF |
| 19042 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19043 | if { (ac_try="$ac_link" |
| 19044 | case "(($ac_try" in |
| 19045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19046 | *) ac_try_echo=$ac_try;; |
| 19047 | esac |
| 19048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19049 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19050 | ac_status=$? |
| 19051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19052 | rm -f conftest.er1 |
| 19053 | cat conftest.err >&5 |
| 19054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19055 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19056 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19057 | { (case "(($ac_try" in |
| 19058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19059 | *) ac_try_echo=$ac_try;; |
| 19060 | esac |
| 19061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19062 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19063 | ac_status=$? |
| 19064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19065 | (exit $ac_status); }; } && |
| 19066 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19067 | { (case "(($ac_try" in |
| 19068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19069 | *) ac_try_echo=$ac_try;; |
| 19070 | esac |
| 19071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19072 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19073 | ac_status=$? |
| 19074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19075 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 19076 | ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19077 | if test "x$ac_cv_lib_soname_gif" = "x" |
| 19078 | then |
| 19079 | ac_cv_lib_soname_gif="libgif.$LIBEXT" |
| 19080 | fi |
| 19081 | else |
| 19082 | echo "$as_me: failed program was:" >&5 |
| 19083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19084 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19085 | ac_cv_lib_soname_gif="libgif.$LIBEXT" |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19086 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19087 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19088 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19089 | conftest$ac_exeext conftest.$ac_ext |
| 19090 | LIBS=$ac_get_soname_save_LIBS |
| 19091 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19092 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5 |
| 19093 | echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19094 | if test "${ac_cv_lib_soname_gif+set}" = set; then |
| 19095 | |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19096 | cat >>confdefs.h <<_ACEOF |
| 19097 | #define SONAME_LIBGIF "$ac_cv_lib_soname_gif" |
| 19098 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19099 | |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19100 | fi |
Hans Leidekker | 081b250 | 2004-10-07 19:12:41 +0000 | [diff] [blame] | 19101 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19102 | { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5 |
| 19103 | echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; } |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19104 | if test "${ac_cv_lib_soname_capi20+set}" = set; then |
| 19105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19106 | else |
| 19107 | ac_get_soname_save_LIBS=$LIBS |
| 19108 | LIBS="-lcapi20 $LIBS" |
| 19109 | cat >conftest.$ac_ext <<_ACEOF |
| 19110 | /* confdefs.h. */ |
| 19111 | _ACEOF |
| 19112 | cat confdefs.h >>conftest.$ac_ext |
| 19113 | cat >>conftest.$ac_ext <<_ACEOF |
| 19114 | /* end confdefs.h. */ |
| 19115 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19116 | /* Override any GCC internal prototype to avoid an error. |
| 19117 | Use char because int might match the return type of a GCC |
| 19118 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19119 | #ifdef __cplusplus |
| 19120 | extern "C" |
| 19121 | #endif |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19122 | char capi20_isinstalled (); |
| 19123 | int |
| 19124 | main () |
| 19125 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19126 | return capi20_isinstalled (); |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19127 | ; |
| 19128 | return 0; |
| 19129 | } |
| 19130 | _ACEOF |
| 19131 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19132 | if { (ac_try="$ac_link" |
| 19133 | case "(($ac_try" in |
| 19134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19135 | *) ac_try_echo=$ac_try;; |
| 19136 | esac |
| 19137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19138 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19139 | ac_status=$? |
| 19140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19141 | rm -f conftest.er1 |
| 19142 | cat conftest.err >&5 |
| 19143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19144 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19146 | { (case "(($ac_try" in |
| 19147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19148 | *) ac_try_echo=$ac_try;; |
| 19149 | esac |
| 19150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19151 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19152 | ac_status=$? |
| 19153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19154 | (exit $ac_status); }; } && |
| 19155 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19156 | { (case "(($ac_try" in |
| 19157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19158 | *) ac_try_echo=$ac_try;; |
| 19159 | esac |
| 19160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19161 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19162 | ac_status=$? |
| 19163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19164 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 19165 | ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19166 | if test "x$ac_cv_lib_soname_capi20" = "x" |
| 19167 | then |
| 19168 | ac_cv_lib_soname_capi20="libcapi20.$LIBEXT" |
| 19169 | fi |
| 19170 | else |
| 19171 | echo "$as_me: failed program was:" >&5 |
| 19172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19173 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19174 | ac_cv_lib_soname_capi20="libcapi20.$LIBEXT" |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19175 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19176 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19177 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19178 | conftest$ac_exeext conftest.$ac_ext |
| 19179 | LIBS=$ac_get_soname_save_LIBS |
| 19180 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19181 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5 |
| 19182 | echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19183 | if test "${ac_cv_lib_soname_capi20+set}" = set; then |
| 19184 | |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19185 | cat >>confdefs.h <<_ACEOF |
| 19186 | #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20" |
| 19187 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19188 | |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19189 | fi |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19190 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 19191 | fi |
| 19192 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19193 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 19194 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19195 | |
| 19196 | |
| 19197 | |
| 19198 | |
| 19199 | |
| 19200 | |
| 19201 | |
| 19202 | |
| 19203 | |
| 19204 | |
| 19205 | |
| 19206 | |
| 19207 | |
| 19208 | |
| 19209 | |
| 19210 | |
| 19211 | |
| 19212 | |
| 19213 | |
| 19214 | |
| 19215 | |
| 19216 | |
| 19217 | |
| 19218 | |
| 19219 | |
| 19220 | |
| 19221 | |
| 19222 | |
| 19223 | |
| 19224 | |
| 19225 | |
| 19226 | |
| 19227 | |
| 19228 | |
| 19229 | |
| 19230 | |
| 19231 | |
| 19232 | |
| 19233 | |
| 19234 | |
| 19235 | |
| 19236 | |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 19237 | |
| 19238 | |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 19239 | |
| 19240 | |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 19241 | |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 19242 | |
| 19243 | |
| 19244 | |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 19245 | |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 19246 | |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 19247 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19248 | |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 19249 | |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 19250 | |
| 19251 | |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 19252 | |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 19253 | |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 19254 | |
Marcus Meissner | 7a6fdea | 2005-11-17 12:58:35 +0000 | [diff] [blame] | 19255 | |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 19256 | |
Hans Leidekker | c0e6bb2 | 2006-02-20 14:16:38 +0100 | [diff] [blame] | 19257 | |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 19258 | |
Paul Millar | df10b7d | 2006-07-16 15:06:28 +0100 | [diff] [blame] | 19259 | |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 19260 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19261 | for ac_func in \ |
| 19262 | _lwp_create \ |
Alexandre Julliard | 6f7a204 | 2003-04-01 04:39:35 +0000 | [diff] [blame] | 19263 | _lwp_self \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 19264 | _pclose \ |
| 19265 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 19266 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 19267 | _spawnvp \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 19268 | _stricmp \ |
| 19269 | _strnicmp \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 19270 | _vsnprintf \ |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 19271 | asctime_r \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 19272 | chsize \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19273 | clone \ |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 19274 | epoll_create \ |
Hans Leidekker | c3de6ef | 2004-10-19 23:53:26 +0000 | [diff] [blame] | 19275 | ffs \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 19276 | finite \ |
Hans Leidekker | bed3842 | 2004-10-14 03:08:57 +0000 | [diff] [blame] | 19277 | fork \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 19278 | fpclass \ |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 19279 | fstatfs \ |
| 19280 | fstatvfs \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 19281 | ftruncate \ |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 19282 | futimes \ |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 19283 | futimesat \ |
Marcus Meissner | 7a6fdea | 2005-11-17 12:58:35 +0000 | [diff] [blame] | 19284 | getaddrinfo \ |
Hans Leidekker | c0e6bb2 | 2006-02-20 14:16:38 +0100 | [diff] [blame] | 19285 | getnameinfo \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19286 | getnetbyname \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 19287 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19288 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19289 | getprotobyname \ |
| 19290 | getprotobynumber \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 19291 | getpwuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19292 | getservbyport \ |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 19293 | gettid \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 19294 | gettimeofday \ |
Steven Edwards | e7c3ab1 | 2004-10-04 20:45:49 +0000 | [diff] [blame] | 19295 | getuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19296 | inet_network \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 19297 | kqueue \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 19298 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19299 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 19300 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 19301 | pclose \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 19302 | popen \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 19303 | prctl \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 19304 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 19305 | pwrite \ |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 19306 | readlink \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19307 | rfork \ |
Jeremy White | 08c0f69 | 2004-10-09 02:26:29 +0000 | [diff] [blame] | 19308 | sched_yield \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19309 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19310 | sendmsg \ |
Paul Millar | df10b7d | 2006-07-16 15:06:28 +0100 | [diff] [blame] | 19311 | setrlimit \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19312 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19313 | sigaltstack \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 19314 | sigprocmask \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 19315 | snprintf \ |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 19316 | spawnvp \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19317 | statfs \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19318 | statvfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 19319 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19320 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 19321 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19322 | tcgetattr \ |
| 19323 | timegm \ |
| 19324 | usleep \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 19325 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19326 | wait4 \ |
| 19327 | waitpid \ |
| 19328 | |
| 19329 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19330 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19331 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19332 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19333 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19335 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19336 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19337 | /* confdefs.h. */ |
| 19338 | _ACEOF |
| 19339 | cat confdefs.h >>conftest.$ac_ext |
| 19340 | cat >>conftest.$ac_ext <<_ACEOF |
| 19341 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19342 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19343 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19344 | #define $ac_func innocuous_$ac_func |
| 19345 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19346 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19347 | which can conflict with char $ac_func (); below. |
| 19348 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19349 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19350 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19351 | #ifdef __STDC__ |
| 19352 | # include <limits.h> |
| 19353 | #else |
| 19354 | # include <assert.h> |
| 19355 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19356 | |
| 19357 | #undef $ac_func |
| 19358 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19359 | /* Override any GCC internal prototype to avoid an error. |
| 19360 | Use char because int might match the return type of a GCC |
| 19361 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19362 | #ifdef __cplusplus |
| 19363 | extern "C" |
| 19364 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19365 | char $ac_func (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19366 | /* The GNU C library defines this for functions which it implements |
| 19367 | to always fail with ENOSYS. Some functions are actually named |
| 19368 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19369 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19370 | choke me |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19371 | #endif |
| 19372 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19373 | int |
| 19374 | main () |
| 19375 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19376 | return $ac_func (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19377 | ; |
| 19378 | return 0; |
| 19379 | } |
| 19380 | _ACEOF |
| 19381 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19382 | if { (ac_try="$ac_link" |
| 19383 | case "(($ac_try" in |
| 19384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19385 | *) ac_try_echo=$ac_try;; |
| 19386 | esac |
| 19387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19388 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19389 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19391 | rm -f conftest.er1 |
| 19392 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19394 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19396 | { (case "(($ac_try" in |
| 19397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19398 | *) ac_try_echo=$ac_try;; |
| 19399 | esac |
| 19400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19401 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19402 | ac_status=$? |
| 19403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19404 | (exit $ac_status); }; } && |
| 19405 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19406 | { (case "(($ac_try" in |
| 19407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19408 | *) ac_try_echo=$ac_try;; |
| 19409 | esac |
| 19410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19411 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19412 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19414 | (exit $ac_status); }; }; then |
| 19415 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19416 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19417 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19419 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19420 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19421 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19422 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19423 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19424 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19425 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19426 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19427 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19428 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19429 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19430 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19431 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19432 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 19433 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19434 | fi |
| 19435 | done |
| 19436 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19437 | |
| 19438 | |
| 19439 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19440 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 19441 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19442 | if test "${ac_cv_c_const+set}" = set; then |
| 19443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19444 | else |
| 19445 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19446 | /* confdefs.h. */ |
| 19447 | _ACEOF |
| 19448 | cat confdefs.h >>conftest.$ac_ext |
| 19449 | cat >>conftest.$ac_ext <<_ACEOF |
| 19450 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19451 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19452 | int |
| 19453 | main () |
| 19454 | { |
| 19455 | /* FIXME: Include the comments suggested by Paul. */ |
| 19456 | #ifndef __cplusplus |
| 19457 | /* Ultrix mips cc rejects this. */ |
| 19458 | typedef int charset[2]; |
| 19459 | const charset x; |
| 19460 | /* SunOS 4.1.1 cc rejects this. */ |
| 19461 | char const *const *ccp; |
| 19462 | char **p; |
| 19463 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 19464 | struct point {int x, y;}; |
| 19465 | static struct point const zero = {0,0}; |
| 19466 | /* AIX XL C 1.02.0.0 rejects this. |
| 19467 | It does not let you subtract one const X* pointer from another in |
| 19468 | an arm of an if-expression whose if-part is not a constant |
| 19469 | expression */ |
| 19470 | const char *g = "string"; |
| 19471 | ccp = &g + (g ? g-g : 0); |
| 19472 | /* HPUX 7.0 cc rejects these. */ |
| 19473 | ++ccp; |
| 19474 | p = (char**) ccp; |
| 19475 | ccp = (char const *const *) p; |
| 19476 | { /* SCO 3.2v4 cc rejects this. */ |
| 19477 | char *t; |
| 19478 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19479 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19480 | *t++ = 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19481 | if (s) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19482 | } |
| 19483 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 19484 | int x[] = {25, 17}; |
| 19485 | const int *foo = &x[0]; |
| 19486 | ++foo; |
| 19487 | } |
| 19488 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 19489 | typedef const int *iptr; |
| 19490 | iptr p = 0; |
| 19491 | ++p; |
| 19492 | } |
| 19493 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 19494 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 19495 | struct s { int j; const int *ap[3]; }; |
| 19496 | struct s *b; b->j = 5; |
| 19497 | } |
| 19498 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 19499 | const int foo = 10; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19500 | if (!foo) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19501 | } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19502 | return !x[0] && !zero.x; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19503 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19504 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19505 | ; |
| 19506 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19507 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19508 | _ACEOF |
| 19509 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19510 | if { (ac_try="$ac_compile" |
| 19511 | case "(($ac_try" in |
| 19512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19513 | *) ac_try_echo=$ac_try;; |
| 19514 | esac |
| 19515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19516 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19517 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19519 | rm -f conftest.er1 |
| 19520 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19522 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19523 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19524 | { (case "(($ac_try" in |
| 19525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19526 | *) ac_try_echo=$ac_try;; |
| 19527 | esac |
| 19528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19529 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19530 | ac_status=$? |
| 19531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19532 | (exit $ac_status); }; } && |
| 19533 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19534 | { (case "(($ac_try" in |
| 19535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19536 | *) ac_try_echo=$ac_try;; |
| 19537 | esac |
| 19538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19539 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19540 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19542 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19543 | ac_cv_c_const=yes |
| 19544 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19545 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19547 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19548 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19549 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19550 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19552 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19553 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 19554 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19555 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19556 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19557 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19558 | #define const |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19559 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19560 | |
| 19561 | fi |
| 19562 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19563 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 19564 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19565 | if test "${ac_cv_c_inline+set}" = set; then |
| 19566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19567 | else |
| 19568 | ac_cv_c_inline=no |
| 19569 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19570 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19571 | /* confdefs.h. */ |
| 19572 | _ACEOF |
| 19573 | cat confdefs.h >>conftest.$ac_ext |
| 19574 | cat >>conftest.$ac_ext <<_ACEOF |
| 19575 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19576 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19577 | typedef int foo_t; |
| 19578 | static $ac_kw foo_t static_foo () {return 0; } |
| 19579 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19580 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19581 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19582 | _ACEOF |
| 19583 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19584 | if { (ac_try="$ac_compile" |
| 19585 | case "(($ac_try" in |
| 19586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19587 | *) ac_try_echo=$ac_try;; |
| 19588 | esac |
| 19589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19590 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19591 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19593 | rm -f conftest.er1 |
| 19594 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19596 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19597 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19598 | { (case "(($ac_try" in |
| 19599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19600 | *) ac_try_echo=$ac_try;; |
| 19601 | esac |
| 19602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19603 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19604 | ac_status=$? |
| 19605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19606 | (exit $ac_status); }; } && |
| 19607 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19608 | { (case "(($ac_try" in |
| 19609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19610 | *) ac_try_echo=$ac_try;; |
| 19611 | esac |
| 19612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19613 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19614 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19616 | (exit $ac_status); }; }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19617 | ac_cv_c_inline=$ac_kw |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19618 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19619 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19621 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19622 | |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19623 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19624 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19626 | test "$ac_cv_c_inline" != no && break |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19627 | done |
| 19628 | |
| 19629 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19630 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 19631 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19632 | |
| 19633 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19634 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19635 | inline | yes) ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19636 | *) |
| 19637 | case $ac_cv_c_inline in |
| 19638 | no) ac_val=;; |
| 19639 | *) ac_val=$ac_cv_c_inline;; |
| 19640 | esac |
| 19641 | cat >>confdefs.h <<_ACEOF |
| 19642 | #ifndef __cplusplus |
| 19643 | #define inline $ac_val |
| 19644 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19645 | _ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19646 | ;; |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19647 | esac |
| 19648 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19649 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 19650 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19651 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 19652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19653 | else |
| 19654 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19655 | /* confdefs.h. */ |
| 19656 | _ACEOF |
| 19657 | cat confdefs.h >>conftest.$ac_ext |
| 19658 | cat >>conftest.$ac_ext <<_ACEOF |
| 19659 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19660 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19661 | typedef mode_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19662 | int |
| 19663 | main () |
| 19664 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19665 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19666 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19667 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19668 | return 0; |
| 19669 | ; |
| 19670 | return 0; |
| 19671 | } |
| 19672 | _ACEOF |
| 19673 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19674 | if { (ac_try="$ac_compile" |
| 19675 | case "(($ac_try" in |
| 19676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19677 | *) ac_try_echo=$ac_try;; |
| 19678 | esac |
| 19679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19680 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19681 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19683 | rm -f conftest.er1 |
| 19684 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19686 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19688 | { (case "(($ac_try" in |
| 19689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19690 | *) ac_try_echo=$ac_try;; |
| 19691 | esac |
| 19692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19693 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19694 | ac_status=$? |
| 19695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19696 | (exit $ac_status); }; } && |
| 19697 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19698 | { (case "(($ac_try" in |
| 19699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19700 | *) ac_try_echo=$ac_try;; |
| 19701 | esac |
| 19702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19703 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19704 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19706 | (exit $ac_status); }; }; then |
| 19707 | ac_cv_type_mode_t=yes |
| 19708 | else |
| 19709 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19711 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19712 | ac_cv_type_mode_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19713 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19714 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19716 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19717 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 19718 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19719 | if test $ac_cv_type_mode_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19720 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19721 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19722 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19723 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19724 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19725 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19726 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19727 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 19728 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19729 | if test "${ac_cv_type_off_t+set}" = set; then |
| 19730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19731 | else |
| 19732 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19733 | /* confdefs.h. */ |
| 19734 | _ACEOF |
| 19735 | cat confdefs.h >>conftest.$ac_ext |
| 19736 | cat >>conftest.$ac_ext <<_ACEOF |
| 19737 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19738 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19739 | typedef off_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19740 | int |
| 19741 | main () |
| 19742 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19743 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19744 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19745 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19746 | return 0; |
| 19747 | ; |
| 19748 | return 0; |
| 19749 | } |
| 19750 | _ACEOF |
| 19751 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19752 | if { (ac_try="$ac_compile" |
| 19753 | case "(($ac_try" in |
| 19754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19755 | *) ac_try_echo=$ac_try;; |
| 19756 | esac |
| 19757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19758 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19759 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19761 | rm -f conftest.er1 |
| 19762 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19764 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19765 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19766 | { (case "(($ac_try" in |
| 19767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19768 | *) ac_try_echo=$ac_try;; |
| 19769 | esac |
| 19770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19771 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19772 | ac_status=$? |
| 19773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19774 | (exit $ac_status); }; } && |
| 19775 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19776 | { (case "(($ac_try" in |
| 19777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19778 | *) ac_try_echo=$ac_try;; |
| 19779 | esac |
| 19780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19781 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19782 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19784 | (exit $ac_status); }; }; then |
| 19785 | ac_cv_type_off_t=yes |
| 19786 | else |
| 19787 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19789 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19790 | ac_cv_type_off_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19791 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19792 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19794 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19795 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 19796 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19797 | if test $ac_cv_type_off_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19798 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19799 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19800 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19801 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19802 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19803 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19804 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19805 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 19806 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19807 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 19808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19809 | else |
| 19810 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19811 | /* confdefs.h. */ |
| 19812 | _ACEOF |
| 19813 | cat confdefs.h >>conftest.$ac_ext |
| 19814 | cat >>conftest.$ac_ext <<_ACEOF |
| 19815 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19816 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19817 | typedef pid_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19818 | int |
| 19819 | main () |
| 19820 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19821 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19822 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19823 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19824 | return 0; |
| 19825 | ; |
| 19826 | return 0; |
| 19827 | } |
| 19828 | _ACEOF |
| 19829 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19830 | if { (ac_try="$ac_compile" |
| 19831 | case "(($ac_try" in |
| 19832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19833 | *) ac_try_echo=$ac_try;; |
| 19834 | esac |
| 19835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19836 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19837 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19839 | rm -f conftest.er1 |
| 19840 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19842 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19843 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19844 | { (case "(($ac_try" in |
| 19845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19846 | *) ac_try_echo=$ac_try;; |
| 19847 | esac |
| 19848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19849 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19850 | ac_status=$? |
| 19851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19852 | (exit $ac_status); }; } && |
| 19853 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19854 | { (case "(($ac_try" in |
| 19855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19856 | *) ac_try_echo=$ac_try;; |
| 19857 | esac |
| 19858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19859 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19860 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19862 | (exit $ac_status); }; }; then |
| 19863 | ac_cv_type_pid_t=yes |
| 19864 | else |
| 19865 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19867 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19868 | ac_cv_type_pid_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19869 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19870 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19872 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19873 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 19874 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19875 | if test $ac_cv_type_pid_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19876 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19877 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19878 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19879 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19880 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19881 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19882 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19883 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 19884 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19885 | if test "${ac_cv_type_size_t+set}" = set; then |
| 19886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19887 | else |
| 19888 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19889 | /* confdefs.h. */ |
| 19890 | _ACEOF |
| 19891 | cat confdefs.h >>conftest.$ac_ext |
| 19892 | cat >>conftest.$ac_ext <<_ACEOF |
| 19893 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19894 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19895 | typedef size_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19896 | int |
| 19897 | main () |
| 19898 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19899 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19900 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19901 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19902 | return 0; |
| 19903 | ; |
| 19904 | return 0; |
| 19905 | } |
| 19906 | _ACEOF |
| 19907 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19908 | if { (ac_try="$ac_compile" |
| 19909 | case "(($ac_try" in |
| 19910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19911 | *) ac_try_echo=$ac_try;; |
| 19912 | esac |
| 19913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19914 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19915 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19917 | rm -f conftest.er1 |
| 19918 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19920 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19922 | { (case "(($ac_try" in |
| 19923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19924 | *) ac_try_echo=$ac_try;; |
| 19925 | esac |
| 19926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19927 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19928 | ac_status=$? |
| 19929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19930 | (exit $ac_status); }; } && |
| 19931 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19932 | { (case "(($ac_try" in |
| 19933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19934 | *) ac_try_echo=$ac_try;; |
| 19935 | esac |
| 19936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19937 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19938 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19940 | (exit $ac_status); }; }; then |
| 19941 | ac_cv_type_size_t=yes |
| 19942 | else |
| 19943 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19945 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19946 | ac_cv_type_size_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19947 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19948 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19950 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19951 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 19952 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19953 | if test $ac_cv_type_size_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19954 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19955 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19956 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19957 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19958 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19959 | |
| 19960 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19961 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 19962 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19963 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 19964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19965 | else |
| 19966 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19967 | /* confdefs.h. */ |
| 19968 | _ACEOF |
| 19969 | cat confdefs.h >>conftest.$ac_ext |
| 19970 | cat >>conftest.$ac_ext <<_ACEOF |
| 19971 | /* end confdefs.h. */ |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19972 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19973 | typedef ssize_t ac__type_new_; |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19974 | int |
| 19975 | main () |
| 19976 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19977 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19978 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19979 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19980 | return 0; |
| 19981 | ; |
| 19982 | return 0; |
| 19983 | } |
| 19984 | _ACEOF |
| 19985 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19986 | if { (ac_try="$ac_compile" |
| 19987 | case "(($ac_try" in |
| 19988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19989 | *) ac_try_echo=$ac_try;; |
| 19990 | esac |
| 19991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19992 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19993 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19995 | rm -f conftest.er1 |
| 19996 | cat conftest.err >&5 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19998 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20000 | { (case "(($ac_try" in |
| 20001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20002 | *) ac_try_echo=$ac_try;; |
| 20003 | esac |
| 20004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20005 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20006 | ac_status=$? |
| 20007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20008 | (exit $ac_status); }; } && |
| 20009 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20010 | { (case "(($ac_try" in |
| 20011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20012 | *) ac_try_echo=$ac_try;; |
| 20013 | esac |
| 20014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20015 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20016 | ac_status=$? |
| 20017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20018 | (exit $ac_status); }; }; then |
| 20019 | ac_cv_type_ssize_t=yes |
| 20020 | else |
| 20021 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20023 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20024 | ac_cv_type_ssize_t=no |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20025 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20026 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20028 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20029 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 20030 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20031 | if test $ac_cv_type_ssize_t = yes; then |
| 20032 | |
| 20033 | cat >>confdefs.h <<_ACEOF |
| 20034 | #define HAVE_SSIZE_T 1 |
| 20035 | _ACEOF |
| 20036 | |
| 20037 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20038 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20039 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 20040 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20041 | if test "${ac_cv_type_long_long+set}" = set; then |
| 20042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20043 | else |
| 20044 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20045 | /* confdefs.h. */ |
| 20046 | _ACEOF |
| 20047 | cat confdefs.h >>conftest.$ac_ext |
| 20048 | cat >>conftest.$ac_ext <<_ACEOF |
| 20049 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20050 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20051 | typedef long long ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20052 | int |
| 20053 | main () |
| 20054 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20055 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20056 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20057 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20058 | return 0; |
| 20059 | ; |
| 20060 | return 0; |
| 20061 | } |
| 20062 | _ACEOF |
| 20063 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20064 | if { (ac_try="$ac_compile" |
| 20065 | case "(($ac_try" in |
| 20066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20067 | *) ac_try_echo=$ac_try;; |
| 20068 | esac |
| 20069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20070 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20071 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20073 | rm -f conftest.er1 |
| 20074 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20076 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20078 | { (case "(($ac_try" in |
| 20079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20080 | *) ac_try_echo=$ac_try;; |
| 20081 | esac |
| 20082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20083 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20084 | ac_status=$? |
| 20085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20086 | (exit $ac_status); }; } && |
| 20087 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20088 | { (case "(($ac_try" in |
| 20089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20090 | *) ac_try_echo=$ac_try;; |
| 20091 | esac |
| 20092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20093 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20094 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20096 | (exit $ac_status); }; }; then |
| 20097 | ac_cv_type_long_long=yes |
| 20098 | else |
| 20099 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20101 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20102 | ac_cv_type_long_long=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20103 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20104 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20106 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20107 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 20108 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 20109 | if test $ac_cv_type_long_long = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20110 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20111 | cat >>confdefs.h <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 20112 | #define HAVE_LONG_LONG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20113 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 20114 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20115 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 20116 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20117 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 |
| 20118 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20119 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then |
| 20120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20121 | else |
| 20122 | cat >conftest.$ac_ext <<_ACEOF |
| 20123 | /* confdefs.h. */ |
| 20124 | _ACEOF |
| 20125 | cat confdefs.h >>conftest.$ac_ext |
| 20126 | cat >>conftest.$ac_ext <<_ACEOF |
| 20127 | /* end confdefs.h. */ |
| 20128 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20129 | typedef fsblkcnt_t ac__type_new_; |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20130 | int |
| 20131 | main () |
| 20132 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20133 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20134 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20135 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20136 | return 0; |
| 20137 | ; |
| 20138 | return 0; |
| 20139 | } |
| 20140 | _ACEOF |
| 20141 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20142 | if { (ac_try="$ac_compile" |
| 20143 | case "(($ac_try" in |
| 20144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20145 | *) ac_try_echo=$ac_try;; |
| 20146 | esac |
| 20147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20148 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20149 | ac_status=$? |
| 20150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20151 | rm -f conftest.er1 |
| 20152 | cat conftest.err >&5 |
| 20153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20154 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20156 | { (case "(($ac_try" in |
| 20157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20158 | *) ac_try_echo=$ac_try;; |
| 20159 | esac |
| 20160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20161 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20162 | ac_status=$? |
| 20163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20164 | (exit $ac_status); }; } && |
| 20165 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20166 | { (case "(($ac_try" in |
| 20167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20168 | *) ac_try_echo=$ac_try;; |
| 20169 | esac |
| 20170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20171 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20172 | ac_status=$? |
| 20173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20174 | (exit $ac_status); }; }; then |
| 20175 | ac_cv_type_fsblkcnt_t=yes |
| 20176 | else |
| 20177 | echo "$as_me: failed program was:" >&5 |
| 20178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20179 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20180 | ac_cv_type_fsblkcnt_t=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20181 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20182 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20184 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20185 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 |
| 20186 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20187 | if test $ac_cv_type_fsblkcnt_t = yes; then |
| 20188 | |
| 20189 | cat >>confdefs.h <<_ACEOF |
| 20190 | #define HAVE_FSBLKCNT_T 1 |
| 20191 | _ACEOF |
| 20192 | |
| 20193 | |
| 20194 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20195 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 |
| 20196 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20197 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then |
| 20198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20199 | else |
| 20200 | cat >conftest.$ac_ext <<_ACEOF |
| 20201 | /* confdefs.h. */ |
| 20202 | _ACEOF |
| 20203 | cat confdefs.h >>conftest.$ac_ext |
| 20204 | cat >>conftest.$ac_ext <<_ACEOF |
| 20205 | /* end confdefs.h. */ |
| 20206 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20207 | typedef fsfilcnt_t ac__type_new_; |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20208 | int |
| 20209 | main () |
| 20210 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20211 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20212 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20213 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20214 | return 0; |
| 20215 | ; |
| 20216 | return 0; |
| 20217 | } |
| 20218 | _ACEOF |
| 20219 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20220 | if { (ac_try="$ac_compile" |
| 20221 | case "(($ac_try" in |
| 20222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20223 | *) ac_try_echo=$ac_try;; |
| 20224 | esac |
| 20225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20226 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20227 | ac_status=$? |
| 20228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20229 | rm -f conftest.er1 |
| 20230 | cat conftest.err >&5 |
| 20231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20232 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20234 | { (case "(($ac_try" in |
| 20235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20236 | *) ac_try_echo=$ac_try;; |
| 20237 | esac |
| 20238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20239 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20240 | ac_status=$? |
| 20241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20242 | (exit $ac_status); }; } && |
| 20243 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20244 | { (case "(($ac_try" in |
| 20245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20246 | *) ac_try_echo=$ac_try;; |
| 20247 | esac |
| 20248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20249 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20250 | ac_status=$? |
| 20251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20252 | (exit $ac_status); }; }; then |
| 20253 | ac_cv_type_fsfilcnt_t=yes |
| 20254 | else |
| 20255 | echo "$as_me: failed program was:" >&5 |
| 20256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20257 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20258 | ac_cv_type_fsfilcnt_t=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20259 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20260 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20262 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20263 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 |
| 20264 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20265 | if test $ac_cv_type_fsfilcnt_t = yes; then |
| 20266 | |
| 20267 | cat >>confdefs.h <<_ACEOF |
| 20268 | #define HAVE_FSFILCNT_T 1 |
| 20269 | _ACEOF |
| 20270 | |
| 20271 | |
| 20272 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 20273 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20274 | { echo "$as_me:$LINENO: checking for sigset_t" >&5 |
| 20275 | echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20276 | if test "${ac_cv_type_sigset_t+set}" = set; then |
| 20277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20278 | else |
| 20279 | cat >conftest.$ac_ext <<_ACEOF |
| 20280 | /* confdefs.h. */ |
| 20281 | _ACEOF |
| 20282 | cat confdefs.h >>conftest.$ac_ext |
| 20283 | cat >>conftest.$ac_ext <<_ACEOF |
| 20284 | /* end confdefs.h. */ |
| 20285 | #include <signal.h> |
| 20286 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20287 | typedef sigset_t ac__type_new_; |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20288 | int |
| 20289 | main () |
| 20290 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20291 | if ((ac__type_new_ *) 0) |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20292 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20293 | if (sizeof (ac__type_new_)) |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20294 | return 0; |
| 20295 | ; |
| 20296 | return 0; |
| 20297 | } |
| 20298 | _ACEOF |
| 20299 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20300 | if { (ac_try="$ac_compile" |
| 20301 | case "(($ac_try" in |
| 20302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20303 | *) ac_try_echo=$ac_try;; |
| 20304 | esac |
| 20305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20306 | (eval "$ac_compile") 2>conftest.er1 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20307 | ac_status=$? |
| 20308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20309 | rm -f conftest.er1 |
| 20310 | cat conftest.err >&5 |
| 20311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20312 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20313 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20314 | { (case "(($ac_try" in |
| 20315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20316 | *) ac_try_echo=$ac_try;; |
| 20317 | esac |
| 20318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20319 | (eval "$ac_try") 2>&5 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20320 | ac_status=$? |
| 20321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20322 | (exit $ac_status); }; } && |
| 20323 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20324 | { (case "(($ac_try" in |
| 20325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20326 | *) ac_try_echo=$ac_try;; |
| 20327 | esac |
| 20328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20329 | (eval "$ac_try") 2>&5 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20330 | ac_status=$? |
| 20331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20332 | (exit $ac_status); }; }; then |
| 20333 | ac_cv_type_sigset_t=yes |
| 20334 | else |
| 20335 | echo "$as_me: failed program was:" >&5 |
| 20336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20337 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20338 | ac_cv_type_sigset_t=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20339 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20340 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20342 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20343 | { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5 |
| 20344 | echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20345 | if test $ac_cv_type_sigset_t = yes; then |
| 20346 | |
| 20347 | cat >>confdefs.h <<_ACEOF |
| 20348 | #define HAVE_SIGSET_T 1 |
| 20349 | _ACEOF |
| 20350 | |
| 20351 | |
| 20352 | fi |
| 20353 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20354 | { echo "$as_me:$LINENO: checking for request_sense" >&5 |
| 20355 | echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; } |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20356 | if test "${ac_cv_type_request_sense+set}" = set; then |
| 20357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20358 | else |
| 20359 | cat >conftest.$ac_ext <<_ACEOF |
| 20360 | /* confdefs.h. */ |
| 20361 | _ACEOF |
| 20362 | cat confdefs.h >>conftest.$ac_ext |
| 20363 | cat >>conftest.$ac_ext <<_ACEOF |
| 20364 | /* end confdefs.h. */ |
| 20365 | #include <linux/cdrom.h> |
| 20366 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20367 | typedef request_sense ac__type_new_; |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20368 | int |
| 20369 | main () |
| 20370 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20371 | if ((ac__type_new_ *) 0) |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20372 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20373 | if (sizeof (ac__type_new_)) |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20374 | return 0; |
| 20375 | ; |
| 20376 | return 0; |
| 20377 | } |
| 20378 | _ACEOF |
| 20379 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20380 | if { (ac_try="$ac_compile" |
| 20381 | case "(($ac_try" in |
| 20382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20383 | *) ac_try_echo=$ac_try;; |
| 20384 | esac |
| 20385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20386 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20387 | ac_status=$? |
| 20388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20389 | rm -f conftest.er1 |
| 20390 | cat conftest.err >&5 |
| 20391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20392 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20393 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20394 | { (case "(($ac_try" in |
| 20395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20396 | *) ac_try_echo=$ac_try;; |
| 20397 | esac |
| 20398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20399 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20400 | ac_status=$? |
| 20401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20402 | (exit $ac_status); }; } && |
| 20403 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20404 | { (case "(($ac_try" in |
| 20405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20406 | *) ac_try_echo=$ac_try;; |
| 20407 | esac |
| 20408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20409 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20410 | ac_status=$? |
| 20411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20412 | (exit $ac_status); }; }; then |
| 20413 | ac_cv_type_request_sense=yes |
| 20414 | else |
| 20415 | echo "$as_me: failed program was:" >&5 |
| 20416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20417 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20418 | ac_cv_type_request_sense=no |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20419 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20420 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20422 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20423 | { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5 |
| 20424 | echo "${ECHO_T}$ac_cv_type_request_sense" >&6; } |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20425 | if test $ac_cv_type_request_sense = yes; then |
| 20426 | |
| 20427 | cat >>confdefs.h <<_ACEOF |
| 20428 | #define HAVE_REQUEST_SENSE 1 |
| 20429 | _ACEOF |
| 20430 | |
| 20431 | |
| 20432 | fi |
| 20433 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20434 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20435 | { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5 |
| 20436 | echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; } |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20437 | if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then |
| 20438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20439 | else |
| 20440 | cat >conftest.$ac_ext <<_ACEOF |
| 20441 | /* confdefs.h. */ |
| 20442 | _ACEOF |
| 20443 | cat confdefs.h >>conftest.$ac_ext |
| 20444 | cat >>conftest.$ac_ext <<_ACEOF |
| 20445 | /* end confdefs.h. */ |
| 20446 | #ifdef HAVE_LINUX_INPUT_H |
| 20447 | #include <linux/input.h> |
| 20448 | #endif |
| 20449 | |
| 20450 | int |
| 20451 | main () |
| 20452 | { |
| 20453 | static struct ff_effect ac_aggr; |
| 20454 | if (ac_aggr.direction) |
| 20455 | return 0; |
| 20456 | ; |
| 20457 | return 0; |
| 20458 | } |
| 20459 | _ACEOF |
| 20460 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20461 | if { (ac_try="$ac_compile" |
| 20462 | case "(($ac_try" in |
| 20463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20464 | *) ac_try_echo=$ac_try;; |
| 20465 | esac |
| 20466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20467 | (eval "$ac_compile") 2>conftest.er1 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20468 | ac_status=$? |
| 20469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20470 | rm -f conftest.er1 |
| 20471 | cat conftest.err >&5 |
| 20472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20473 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20475 | { (case "(($ac_try" in |
| 20476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20477 | *) ac_try_echo=$ac_try;; |
| 20478 | esac |
| 20479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20480 | (eval "$ac_try") 2>&5 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20481 | ac_status=$? |
| 20482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20483 | (exit $ac_status); }; } && |
| 20484 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20485 | { (case "(($ac_try" in |
| 20486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20487 | *) ac_try_echo=$ac_try;; |
| 20488 | esac |
| 20489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20490 | (eval "$ac_try") 2>&5 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20491 | ac_status=$? |
| 20492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20493 | (exit $ac_status); }; }; then |
| 20494 | ac_cv_member_struct_ff_effect_direction=yes |
| 20495 | else |
| 20496 | echo "$as_me: failed program was:" >&5 |
| 20497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20498 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20499 | cat >conftest.$ac_ext <<_ACEOF |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20500 | /* confdefs.h. */ |
| 20501 | _ACEOF |
| 20502 | cat confdefs.h >>conftest.$ac_ext |
| 20503 | cat >>conftest.$ac_ext <<_ACEOF |
| 20504 | /* end confdefs.h. */ |
| 20505 | #ifdef HAVE_LINUX_INPUT_H |
| 20506 | #include <linux/input.h> |
| 20507 | #endif |
| 20508 | |
| 20509 | int |
| 20510 | main () |
| 20511 | { |
| 20512 | static struct ff_effect ac_aggr; |
| 20513 | if (sizeof ac_aggr.direction) |
| 20514 | return 0; |
| 20515 | ; |
| 20516 | return 0; |
| 20517 | } |
| 20518 | _ACEOF |
| 20519 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20520 | if { (ac_try="$ac_compile" |
| 20521 | case "(($ac_try" in |
| 20522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20523 | *) ac_try_echo=$ac_try;; |
| 20524 | esac |
| 20525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20526 | (eval "$ac_compile") 2>conftest.er1 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20527 | ac_status=$? |
| 20528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20529 | rm -f conftest.er1 |
| 20530 | cat conftest.err >&5 |
| 20531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20532 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20534 | { (case "(($ac_try" in |
| 20535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20536 | *) ac_try_echo=$ac_try;; |
| 20537 | esac |
| 20538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20539 | (eval "$ac_try") 2>&5 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20540 | ac_status=$? |
| 20541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20542 | (exit $ac_status); }; } && |
| 20543 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20544 | { (case "(($ac_try" in |
| 20545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20546 | *) ac_try_echo=$ac_try;; |
| 20547 | esac |
| 20548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20549 | (eval "$ac_try") 2>&5 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20550 | ac_status=$? |
| 20551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20552 | (exit $ac_status); }; }; then |
| 20553 | ac_cv_member_struct_ff_effect_direction=yes |
| 20554 | else |
| 20555 | echo "$as_me: failed program was:" >&5 |
| 20556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20557 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20558 | ac_cv_member_struct_ff_effect_direction=no |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20559 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20560 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20562 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20563 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20565 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20566 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5 |
| 20567 | echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; } |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20568 | if test $ac_cv_member_struct_ff_effect_direction = yes; then |
| 20569 | |
| 20570 | cat >>confdefs.h <<_ACEOF |
| 20571 | #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1 |
| 20572 | _ACEOF |
| 20573 | |
| 20574 | |
| 20575 | fi |
| 20576 | |
| 20577 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20578 | { echo "$as_me:$LINENO: checking for sigaddset" >&5 |
| 20579 | echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20580 | if test "${wine_cv_have_sigaddset+set}" = set; then |
| 20581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20582 | else |
| 20583 | cat >conftest.$ac_ext <<_ACEOF |
| 20584 | /* confdefs.h. */ |
| 20585 | _ACEOF |
| 20586 | cat confdefs.h >>conftest.$ac_ext |
| 20587 | cat >>conftest.$ac_ext <<_ACEOF |
| 20588 | /* end confdefs.h. */ |
| 20589 | #include <signal.h> |
| 20590 | int |
| 20591 | main () |
| 20592 | { |
| 20593 | sigset_t set; sigaddset(&set,SIGTERM); |
| 20594 | ; |
| 20595 | return 0; |
| 20596 | } |
| 20597 | _ACEOF |
| 20598 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20599 | if { (ac_try="$ac_link" |
| 20600 | case "(($ac_try" in |
| 20601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20602 | *) ac_try_echo=$ac_try;; |
| 20603 | esac |
| 20604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20605 | (eval "$ac_link") 2>conftest.er1 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20606 | ac_status=$? |
| 20607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20608 | rm -f conftest.er1 |
| 20609 | cat conftest.err >&5 |
| 20610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20611 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20612 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20613 | { (case "(($ac_try" in |
| 20614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20615 | *) ac_try_echo=$ac_try;; |
| 20616 | esac |
| 20617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20618 | (eval "$ac_try") 2>&5 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20619 | ac_status=$? |
| 20620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20621 | (exit $ac_status); }; } && |
| 20622 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20623 | { (case "(($ac_try" in |
| 20624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20625 | *) ac_try_echo=$ac_try;; |
| 20626 | esac |
| 20627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20628 | (eval "$ac_try") 2>&5 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20629 | ac_status=$? |
| 20630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20631 | (exit $ac_status); }; }; then |
| 20632 | wine_cv_have_sigaddset=yes |
| 20633 | else |
| 20634 | echo "$as_me: failed program was:" >&5 |
| 20635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20636 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20637 | wine_cv_have_sigaddset=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20638 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20639 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20640 | rm -f core conftest.err conftest.$ac_objext \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20641 | conftest$ac_exeext conftest.$ac_ext |
| 20642 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20643 | { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5 |
| 20644 | echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20645 | if test "$wine_cv_have_sigaddset" = "yes" |
| 20646 | then |
| 20647 | |
| 20648 | cat >>confdefs.h <<\_ACEOF |
| 20649 | #define HAVE_SIGADDSET 1 |
| 20650 | _ACEOF |
| 20651 | |
| 20652 | fi |
| 20653 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20654 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20655 | { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5 |
| 20656 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20657 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 20658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20659 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20660 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20661 | /* confdefs.h. */ |
| 20662 | _ACEOF |
| 20663 | cat confdefs.h >>conftest.$ac_ext |
| 20664 | cat >>conftest.$ac_ext <<_ACEOF |
| 20665 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20666 | |
| 20667 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20668 | |
| 20669 | int |
| 20670 | main () |
| 20671 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20672 | |
| 20673 | char *name=NULL; |
| 20674 | struct hostent he; |
| 20675 | struct hostent *result; |
| 20676 | char *buf=NULL; |
| 20677 | int bufsize=0; |
| 20678 | int res,errnr; |
| 20679 | char *addr=NULL; |
| 20680 | int addrlen=0; |
| 20681 | int addrtype=0; |
| 20682 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 20683 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20684 | |
| 20685 | ; |
| 20686 | return 0; |
| 20687 | } |
| 20688 | _ACEOF |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 20689 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20690 | if { (ac_try="$ac_link" |
| 20691 | case "(($ac_try" in |
| 20692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20693 | *) ac_try_echo=$ac_try;; |
| 20694 | esac |
| 20695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20696 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20697 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20699 | rm -f conftest.er1 |
| 20700 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20702 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20704 | { (case "(($ac_try" in |
| 20705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20706 | *) ac_try_echo=$ac_try;; |
| 20707 | esac |
| 20708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20709 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20710 | ac_status=$? |
| 20711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20712 | (exit $ac_status); }; } && |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 20713 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20714 | { (case "(($ac_try" in |
| 20715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20716 | *) ac_try_echo=$ac_try;; |
| 20717 | esac |
| 20718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20719 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20720 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20722 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20723 | wine_cv_linux_gethostbyname_r_6=yes |
| 20724 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20725 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20727 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20728 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20729 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20730 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20731 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20732 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 20733 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20734 | |
| 20735 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20736 | { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
| 20737 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; } |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20738 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 20739 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20740 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20741 | cat >>confdefs.h <<\_ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20742 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20743 | _ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20744 | |
| 20745 | fi |
| 20746 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20747 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20748 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20749 | { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5 |
| 20750 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20751 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 20752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20753 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20754 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20755 | /* confdefs.h. */ |
| 20756 | _ACEOF |
| 20757 | cat confdefs.h >>conftest.$ac_ext |
| 20758 | cat >>conftest.$ac_ext <<_ACEOF |
| 20759 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20760 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20761 | #include <sys/ioctl.h> |
| 20762 | #include <linux/joystick.h> |
| 20763 | |
| 20764 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 20765 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 20766 | #error "no 2.2 header" |
| 20767 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20768 | |
| 20769 | int |
| 20770 | main () |
| 20771 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20772 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20773 | ; |
| 20774 | return 0; |
| 20775 | } |
| 20776 | _ACEOF |
| 20777 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20778 | if { (ac_try="$ac_compile" |
| 20779 | case "(($ac_try" in |
| 20780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20781 | *) ac_try_echo=$ac_try;; |
| 20782 | esac |
| 20783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20784 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20785 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20787 | rm -f conftest.er1 |
| 20788 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20790 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20792 | { (case "(($ac_try" in |
| 20793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20794 | *) ac_try_echo=$ac_try;; |
| 20795 | esac |
| 20796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20797 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20798 | ac_status=$? |
| 20799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20800 | (exit $ac_status); }; } && |
| 20801 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20802 | { (case "(($ac_try" in |
| 20803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20804 | *) ac_try_echo=$ac_try;; |
| 20805 | esac |
| 20806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20807 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20808 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20810 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20811 | wine_cv_linux_joystick_22_api=yes |
| 20812 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20813 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20815 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20816 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20817 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20818 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20820 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20821 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20822 | { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
| 20823 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; } |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 20824 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20825 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20826 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20827 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20828 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20829 | _ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20830 | |
| 20831 | fi |
| 20832 | fi |
| 20833 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20834 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20835 | { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5 |
| 20836 | echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20837 | if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20839 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20840 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20841 | /* confdefs.h. */ |
| 20842 | _ACEOF |
| 20843 | cat confdefs.h >>conftest.$ac_ext |
| 20844 | cat >>conftest.$ac_ext <<_ACEOF |
| 20845 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20846 | #include <sys/types.h> |
| 20847 | #ifdef HAVE_SYS_PARAM_H |
| 20848 | # include <sys/param.h> |
| 20849 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20850 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20851 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20852 | #endif |
| 20853 | #ifdef HAVE_SYS_VFS_H |
| 20854 | # include <sys/vfs.h> |
| 20855 | #endif |
| 20856 | #ifdef HAVE_SYS_STATFS_H |
| 20857 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20858 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20859 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20860 | int |
| 20861 | main () |
| 20862 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20863 | static struct statfs ac_aggr; |
| 20864 | if (ac_aggr.f_bfree) |
| 20865 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20866 | ; |
| 20867 | return 0; |
| 20868 | } |
| 20869 | _ACEOF |
| 20870 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20871 | if { (ac_try="$ac_compile" |
| 20872 | case "(($ac_try" in |
| 20873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20874 | *) ac_try_echo=$ac_try;; |
| 20875 | esac |
| 20876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20877 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20878 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20880 | rm -f conftest.er1 |
| 20881 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20883 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20885 | { (case "(($ac_try" in |
| 20886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20887 | *) ac_try_echo=$ac_try;; |
| 20888 | esac |
| 20889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20890 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20891 | ac_status=$? |
| 20892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20893 | (exit $ac_status); }; } && |
| 20894 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20895 | { (case "(($ac_try" in |
| 20896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20897 | *) ac_try_echo=$ac_try;; |
| 20898 | esac |
| 20899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20900 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20901 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20903 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20904 | ac_cv_member_struct_statfs_f_bfree=yes |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20905 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20906 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20908 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20909 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20910 | /* confdefs.h. */ |
| 20911 | _ACEOF |
| 20912 | cat confdefs.h >>conftest.$ac_ext |
| 20913 | cat >>conftest.$ac_ext <<_ACEOF |
| 20914 | /* end confdefs.h. */ |
| 20915 | #include <sys/types.h> |
| 20916 | #ifdef HAVE_SYS_PARAM_H |
| 20917 | # include <sys/param.h> |
| 20918 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20919 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20920 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20921 | #endif |
| 20922 | #ifdef HAVE_SYS_VFS_H |
| 20923 | # include <sys/vfs.h> |
| 20924 | #endif |
| 20925 | #ifdef HAVE_SYS_STATFS_H |
| 20926 | # include <sys/statfs.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20927 | #endif |
| 20928 | |
| 20929 | int |
| 20930 | main () |
| 20931 | { |
| 20932 | static struct statfs ac_aggr; |
| 20933 | if (sizeof ac_aggr.f_bfree) |
| 20934 | return 0; |
| 20935 | ; |
| 20936 | return 0; |
| 20937 | } |
| 20938 | _ACEOF |
| 20939 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20940 | if { (ac_try="$ac_compile" |
| 20941 | case "(($ac_try" in |
| 20942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20943 | *) ac_try_echo=$ac_try;; |
| 20944 | esac |
| 20945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20946 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20947 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20949 | rm -f conftest.er1 |
| 20950 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20952 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20953 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20954 | { (case "(($ac_try" in |
| 20955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20956 | *) ac_try_echo=$ac_try;; |
| 20957 | esac |
| 20958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20959 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20960 | ac_status=$? |
| 20961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20962 | (exit $ac_status); }; } && |
| 20963 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20964 | { (case "(($ac_try" in |
| 20965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20966 | *) ac_try_echo=$ac_try;; |
| 20967 | esac |
| 20968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20969 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20970 | ac_status=$? |
| 20971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20972 | (exit $ac_status); }; }; then |
| 20973 | ac_cv_member_struct_statfs_f_bfree=yes |
| 20974 | else |
| 20975 | echo "$as_me: failed program was:" >&5 |
| 20976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20977 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20978 | ac_cv_member_struct_statfs_f_bfree=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20979 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20980 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20982 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20983 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20985 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20986 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5 |
| 20987 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20988 | if test $ac_cv_member_struct_statfs_f_bfree = yes; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20989 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20990 | cat >>confdefs.h <<_ACEOF |
| 20991 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20992 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20993 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20994 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20995 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20996 | { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5 |
| 20997 | echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20998 | if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 21000 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21001 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21002 | /* confdefs.h. */ |
| 21003 | _ACEOF |
| 21004 | cat confdefs.h >>conftest.$ac_ext |
| 21005 | cat >>conftest.$ac_ext <<_ACEOF |
| 21006 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21007 | #include <sys/types.h> |
| 21008 | #ifdef HAVE_SYS_PARAM_H |
| 21009 | # include <sys/param.h> |
| 21010 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21011 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21012 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21013 | #endif |
| 21014 | #ifdef HAVE_SYS_VFS_H |
| 21015 | # include <sys/vfs.h> |
| 21016 | #endif |
| 21017 | #ifdef HAVE_SYS_STATFS_H |
| 21018 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21019 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21020 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21021 | int |
| 21022 | main () |
| 21023 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21024 | static struct statfs ac_aggr; |
| 21025 | if (ac_aggr.f_bavail) |
| 21026 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21027 | ; |
| 21028 | return 0; |
| 21029 | } |
| 21030 | _ACEOF |
| 21031 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21032 | if { (ac_try="$ac_compile" |
| 21033 | case "(($ac_try" in |
| 21034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21035 | *) ac_try_echo=$ac_try;; |
| 21036 | esac |
| 21037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21038 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21039 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21041 | rm -f conftest.er1 |
| 21042 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21044 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21046 | { (case "(($ac_try" in |
| 21047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21048 | *) ac_try_echo=$ac_try;; |
| 21049 | esac |
| 21050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21051 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21052 | ac_status=$? |
| 21053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21054 | (exit $ac_status); }; } && |
| 21055 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21056 | { (case "(($ac_try" in |
| 21057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21058 | *) ac_try_echo=$ac_try;; |
| 21059 | esac |
| 21060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21061 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21062 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21064 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21065 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 21066 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21067 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21069 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21070 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21071 | /* confdefs.h. */ |
| 21072 | _ACEOF |
| 21073 | cat confdefs.h >>conftest.$ac_ext |
| 21074 | cat >>conftest.$ac_ext <<_ACEOF |
| 21075 | /* end confdefs.h. */ |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 21076 | #include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21077 | #ifdef HAVE_SYS_PARAM_H |
| 21078 | # include <sys/param.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 21079 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21080 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21081 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21082 | #endif |
| 21083 | #ifdef HAVE_SYS_VFS_H |
| 21084 | # include <sys/vfs.h> |
| 21085 | #endif |
| 21086 | #ifdef HAVE_SYS_STATFS_H |
| 21087 | # include <sys/statfs.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21088 | #endif |
| 21089 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21090 | int |
| 21091 | main () |
| 21092 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21093 | static struct statfs ac_aggr; |
| 21094 | if (sizeof ac_aggr.f_bavail) |
| 21095 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21096 | ; |
| 21097 | return 0; |
| 21098 | } |
| 21099 | _ACEOF |
| 21100 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21101 | if { (ac_try="$ac_compile" |
| 21102 | case "(($ac_try" in |
| 21103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21104 | *) ac_try_echo=$ac_try;; |
| 21105 | esac |
| 21106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21107 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21108 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21110 | rm -f conftest.er1 |
| 21111 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21113 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21114 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21115 | { (case "(($ac_try" in |
| 21116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21117 | *) ac_try_echo=$ac_try;; |
| 21118 | esac |
| 21119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21120 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21121 | ac_status=$? |
| 21122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21123 | (exit $ac_status); }; } && |
| 21124 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21125 | { (case "(($ac_try" in |
| 21126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21127 | *) ac_try_echo=$ac_try;; |
| 21128 | esac |
| 21129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21130 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21131 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21133 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21134 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 21135 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21136 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21138 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21139 | ac_cv_member_struct_statfs_f_bavail=no |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 21140 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21141 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 21143 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21144 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21146 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21147 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5 |
| 21148 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21149 | if test $ac_cv_member_struct_statfs_f_bavail = yes; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21150 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21151 | cat >>confdefs.h <<_ACEOF |
| 21152 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21153 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21154 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21155 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21156 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21157 | { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5 |
| 21158 | echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21159 | if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then |
| 21160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21161 | else |
| 21162 | cat >conftest.$ac_ext <<_ACEOF |
| 21163 | /* confdefs.h. */ |
| 21164 | _ACEOF |
| 21165 | cat confdefs.h >>conftest.$ac_ext |
| 21166 | cat >>conftest.$ac_ext <<_ACEOF |
| 21167 | /* end confdefs.h. */ |
| 21168 | #include <sys/types.h> |
| 21169 | #ifdef HAVE_SYS_PARAM_H |
| 21170 | # include <sys/param.h> |
| 21171 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21172 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21173 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21174 | #endif |
| 21175 | #ifdef HAVE_SYS_VFS_H |
| 21176 | # include <sys/vfs.h> |
| 21177 | #endif |
| 21178 | #ifdef HAVE_SYS_STATFS_H |
| 21179 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21180 | #endif |
| 21181 | |
| 21182 | int |
| 21183 | main () |
| 21184 | { |
| 21185 | static struct statfs ac_aggr; |
| 21186 | if (ac_aggr.f_frsize) |
| 21187 | return 0; |
| 21188 | ; |
| 21189 | return 0; |
| 21190 | } |
| 21191 | _ACEOF |
| 21192 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21193 | if { (ac_try="$ac_compile" |
| 21194 | case "(($ac_try" in |
| 21195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21196 | *) ac_try_echo=$ac_try;; |
| 21197 | esac |
| 21198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21199 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21200 | ac_status=$? |
| 21201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21202 | rm -f conftest.er1 |
| 21203 | cat conftest.err >&5 |
| 21204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21205 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21207 | { (case "(($ac_try" in |
| 21208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21209 | *) ac_try_echo=$ac_try;; |
| 21210 | esac |
| 21211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21212 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21213 | ac_status=$? |
| 21214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21215 | (exit $ac_status); }; } && |
| 21216 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21217 | { (case "(($ac_try" in |
| 21218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21219 | *) ac_try_echo=$ac_try;; |
| 21220 | esac |
| 21221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21222 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21223 | ac_status=$? |
| 21224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21225 | (exit $ac_status); }; }; then |
| 21226 | ac_cv_member_struct_statfs_f_frsize=yes |
| 21227 | else |
| 21228 | echo "$as_me: failed program was:" >&5 |
| 21229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21230 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21231 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21232 | /* confdefs.h. */ |
| 21233 | _ACEOF |
| 21234 | cat confdefs.h >>conftest.$ac_ext |
| 21235 | cat >>conftest.$ac_ext <<_ACEOF |
| 21236 | /* end confdefs.h. */ |
| 21237 | #include <sys/types.h> |
| 21238 | #ifdef HAVE_SYS_PARAM_H |
| 21239 | # include <sys/param.h> |
| 21240 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21241 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21242 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21243 | #endif |
| 21244 | #ifdef HAVE_SYS_VFS_H |
| 21245 | # include <sys/vfs.h> |
| 21246 | #endif |
| 21247 | #ifdef HAVE_SYS_STATFS_H |
| 21248 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21249 | #endif |
| 21250 | |
| 21251 | int |
| 21252 | main () |
| 21253 | { |
| 21254 | static struct statfs ac_aggr; |
| 21255 | if (sizeof ac_aggr.f_frsize) |
| 21256 | return 0; |
| 21257 | ; |
| 21258 | return 0; |
| 21259 | } |
| 21260 | _ACEOF |
| 21261 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21262 | if { (ac_try="$ac_compile" |
| 21263 | case "(($ac_try" in |
| 21264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21265 | *) ac_try_echo=$ac_try;; |
| 21266 | esac |
| 21267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21268 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21269 | ac_status=$? |
| 21270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21271 | rm -f conftest.er1 |
| 21272 | cat conftest.err >&5 |
| 21273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21274 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21275 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21276 | { (case "(($ac_try" in |
| 21277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21278 | *) ac_try_echo=$ac_try;; |
| 21279 | esac |
| 21280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21281 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21282 | ac_status=$? |
| 21283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21284 | (exit $ac_status); }; } && |
| 21285 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21286 | { (case "(($ac_try" in |
| 21287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21288 | *) ac_try_echo=$ac_try;; |
| 21289 | esac |
| 21290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21291 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21292 | ac_status=$? |
| 21293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21294 | (exit $ac_status); }; }; then |
| 21295 | ac_cv_member_struct_statfs_f_frsize=yes |
| 21296 | else |
| 21297 | echo "$as_me: failed program was:" >&5 |
| 21298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21299 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21300 | ac_cv_member_struct_statfs_f_frsize=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21301 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21302 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21304 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21305 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21307 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21308 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5 |
| 21309 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21310 | if test $ac_cv_member_struct_statfs_f_frsize = yes; then |
| 21311 | |
| 21312 | cat >>confdefs.h <<_ACEOF |
| 21313 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 |
| 21314 | _ACEOF |
| 21315 | |
| 21316 | |
| 21317 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21318 | { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5 |
| 21319 | echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21320 | if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then |
| 21321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21322 | else |
| 21323 | cat >conftest.$ac_ext <<_ACEOF |
| 21324 | /* confdefs.h. */ |
| 21325 | _ACEOF |
| 21326 | cat confdefs.h >>conftest.$ac_ext |
| 21327 | cat >>conftest.$ac_ext <<_ACEOF |
| 21328 | /* end confdefs.h. */ |
| 21329 | #include <sys/types.h> |
| 21330 | #ifdef HAVE_SYS_PARAM_H |
| 21331 | # include <sys/param.h> |
| 21332 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21333 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21334 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21335 | #endif |
| 21336 | #ifdef HAVE_SYS_VFS_H |
| 21337 | # include <sys/vfs.h> |
| 21338 | #endif |
| 21339 | #ifdef HAVE_SYS_STATFS_H |
| 21340 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21341 | #endif |
| 21342 | |
| 21343 | int |
| 21344 | main () |
| 21345 | { |
| 21346 | static struct statfs ac_aggr; |
| 21347 | if (ac_aggr.f_ffree) |
| 21348 | return 0; |
| 21349 | ; |
| 21350 | return 0; |
| 21351 | } |
| 21352 | _ACEOF |
| 21353 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21354 | if { (ac_try="$ac_compile" |
| 21355 | case "(($ac_try" in |
| 21356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21357 | *) ac_try_echo=$ac_try;; |
| 21358 | esac |
| 21359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21360 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21361 | ac_status=$? |
| 21362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21363 | rm -f conftest.er1 |
| 21364 | cat conftest.err >&5 |
| 21365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21366 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21367 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21368 | { (case "(($ac_try" in |
| 21369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21370 | *) ac_try_echo=$ac_try;; |
| 21371 | esac |
| 21372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21373 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21374 | ac_status=$? |
| 21375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21376 | (exit $ac_status); }; } && |
| 21377 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21378 | { (case "(($ac_try" in |
| 21379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21380 | *) ac_try_echo=$ac_try;; |
| 21381 | esac |
| 21382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21383 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21384 | ac_status=$? |
| 21385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21386 | (exit $ac_status); }; }; then |
| 21387 | ac_cv_member_struct_statfs_f_ffree=yes |
| 21388 | else |
| 21389 | echo "$as_me: failed program was:" >&5 |
| 21390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21391 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21392 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21393 | /* confdefs.h. */ |
| 21394 | _ACEOF |
| 21395 | cat confdefs.h >>conftest.$ac_ext |
| 21396 | cat >>conftest.$ac_ext <<_ACEOF |
| 21397 | /* end confdefs.h. */ |
| 21398 | #include <sys/types.h> |
| 21399 | #ifdef HAVE_SYS_PARAM_H |
| 21400 | # include <sys/param.h> |
| 21401 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21402 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21403 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21404 | #endif |
| 21405 | #ifdef HAVE_SYS_VFS_H |
| 21406 | # include <sys/vfs.h> |
| 21407 | #endif |
| 21408 | #ifdef HAVE_SYS_STATFS_H |
| 21409 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21410 | #endif |
| 21411 | |
| 21412 | int |
| 21413 | main () |
| 21414 | { |
| 21415 | static struct statfs ac_aggr; |
| 21416 | if (sizeof ac_aggr.f_ffree) |
| 21417 | return 0; |
| 21418 | ; |
| 21419 | return 0; |
| 21420 | } |
| 21421 | _ACEOF |
| 21422 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21423 | if { (ac_try="$ac_compile" |
| 21424 | case "(($ac_try" in |
| 21425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21426 | *) ac_try_echo=$ac_try;; |
| 21427 | esac |
| 21428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21429 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21430 | ac_status=$? |
| 21431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21432 | rm -f conftest.er1 |
| 21433 | cat conftest.err >&5 |
| 21434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21435 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21437 | { (case "(($ac_try" in |
| 21438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21439 | *) ac_try_echo=$ac_try;; |
| 21440 | esac |
| 21441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21442 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21443 | ac_status=$? |
| 21444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21445 | (exit $ac_status); }; } && |
| 21446 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21447 | { (case "(($ac_try" in |
| 21448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21449 | *) ac_try_echo=$ac_try;; |
| 21450 | esac |
| 21451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21452 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21453 | ac_status=$? |
| 21454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21455 | (exit $ac_status); }; }; then |
| 21456 | ac_cv_member_struct_statfs_f_ffree=yes |
| 21457 | else |
| 21458 | echo "$as_me: failed program was:" >&5 |
| 21459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21460 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21461 | ac_cv_member_struct_statfs_f_ffree=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21462 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21463 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21465 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21466 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21468 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21469 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5 |
| 21470 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21471 | if test $ac_cv_member_struct_statfs_f_ffree = yes; then |
| 21472 | |
| 21473 | cat >>confdefs.h <<_ACEOF |
| 21474 | #define HAVE_STRUCT_STATFS_F_FFREE 1 |
| 21475 | _ACEOF |
| 21476 | |
| 21477 | |
| 21478 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21479 | { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5 |
| 21480 | echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21481 | if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then |
| 21482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21483 | else |
| 21484 | cat >conftest.$ac_ext <<_ACEOF |
| 21485 | /* confdefs.h. */ |
| 21486 | _ACEOF |
| 21487 | cat confdefs.h >>conftest.$ac_ext |
| 21488 | cat >>conftest.$ac_ext <<_ACEOF |
| 21489 | /* end confdefs.h. */ |
| 21490 | #include <sys/types.h> |
| 21491 | #ifdef HAVE_SYS_PARAM_H |
| 21492 | # include <sys/param.h> |
| 21493 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21494 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21495 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21496 | #endif |
| 21497 | #ifdef HAVE_SYS_VFS_H |
| 21498 | # include <sys/vfs.h> |
| 21499 | #endif |
| 21500 | #ifdef HAVE_SYS_STATFS_H |
| 21501 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21502 | #endif |
| 21503 | |
| 21504 | int |
| 21505 | main () |
| 21506 | { |
| 21507 | static struct statfs ac_aggr; |
| 21508 | if (ac_aggr.f_favail) |
| 21509 | return 0; |
| 21510 | ; |
| 21511 | return 0; |
| 21512 | } |
| 21513 | _ACEOF |
| 21514 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21515 | if { (ac_try="$ac_compile" |
| 21516 | case "(($ac_try" in |
| 21517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21518 | *) ac_try_echo=$ac_try;; |
| 21519 | esac |
| 21520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21521 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21522 | ac_status=$? |
| 21523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21524 | rm -f conftest.er1 |
| 21525 | cat conftest.err >&5 |
| 21526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21527 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21529 | { (case "(($ac_try" in |
| 21530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21531 | *) ac_try_echo=$ac_try;; |
| 21532 | esac |
| 21533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21534 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21535 | ac_status=$? |
| 21536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21537 | (exit $ac_status); }; } && |
| 21538 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21539 | { (case "(($ac_try" in |
| 21540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21541 | *) ac_try_echo=$ac_try;; |
| 21542 | esac |
| 21543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21544 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21545 | ac_status=$? |
| 21546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21547 | (exit $ac_status); }; }; then |
| 21548 | ac_cv_member_struct_statfs_f_favail=yes |
| 21549 | else |
| 21550 | echo "$as_me: failed program was:" >&5 |
| 21551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21552 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21553 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21554 | /* confdefs.h. */ |
| 21555 | _ACEOF |
| 21556 | cat confdefs.h >>conftest.$ac_ext |
| 21557 | cat >>conftest.$ac_ext <<_ACEOF |
| 21558 | /* end confdefs.h. */ |
| 21559 | #include <sys/types.h> |
| 21560 | #ifdef HAVE_SYS_PARAM_H |
| 21561 | # include <sys/param.h> |
| 21562 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21563 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21564 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21565 | #endif |
| 21566 | #ifdef HAVE_SYS_VFS_H |
| 21567 | # include <sys/vfs.h> |
| 21568 | #endif |
| 21569 | #ifdef HAVE_SYS_STATFS_H |
| 21570 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21571 | #endif |
| 21572 | |
| 21573 | int |
| 21574 | main () |
| 21575 | { |
| 21576 | static struct statfs ac_aggr; |
| 21577 | if (sizeof ac_aggr.f_favail) |
| 21578 | return 0; |
| 21579 | ; |
| 21580 | return 0; |
| 21581 | } |
| 21582 | _ACEOF |
| 21583 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21584 | if { (ac_try="$ac_compile" |
| 21585 | case "(($ac_try" in |
| 21586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21587 | *) ac_try_echo=$ac_try;; |
| 21588 | esac |
| 21589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21590 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21591 | ac_status=$? |
| 21592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21593 | rm -f conftest.er1 |
| 21594 | cat conftest.err >&5 |
| 21595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21596 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21597 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21598 | { (case "(($ac_try" in |
| 21599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21600 | *) ac_try_echo=$ac_try;; |
| 21601 | esac |
| 21602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21603 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21604 | ac_status=$? |
| 21605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21606 | (exit $ac_status); }; } && |
| 21607 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21608 | { (case "(($ac_try" in |
| 21609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21610 | *) ac_try_echo=$ac_try;; |
| 21611 | esac |
| 21612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21613 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21614 | ac_status=$? |
| 21615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21616 | (exit $ac_status); }; }; then |
| 21617 | ac_cv_member_struct_statfs_f_favail=yes |
| 21618 | else |
| 21619 | echo "$as_me: failed program was:" >&5 |
| 21620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21621 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21622 | ac_cv_member_struct_statfs_f_favail=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21623 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21624 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21626 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21627 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21629 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21630 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5 |
| 21631 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21632 | if test $ac_cv_member_struct_statfs_f_favail = yes; then |
| 21633 | |
| 21634 | cat >>confdefs.h <<_ACEOF |
| 21635 | #define HAVE_STRUCT_STATFS_F_FAVAIL 1 |
| 21636 | _ACEOF |
| 21637 | |
| 21638 | |
| 21639 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21640 | { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5 |
| 21641 | echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; } |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21642 | if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then |
| 21643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21644 | else |
| 21645 | cat >conftest.$ac_ext <<_ACEOF |
| 21646 | /* confdefs.h. */ |
| 21647 | _ACEOF |
| 21648 | cat confdefs.h >>conftest.$ac_ext |
| 21649 | cat >>conftest.$ac_ext <<_ACEOF |
| 21650 | /* end confdefs.h. */ |
| 21651 | #include <sys/types.h> |
| 21652 | #ifdef HAVE_SYS_PARAM_H |
| 21653 | # include <sys/param.h> |
| 21654 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21655 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21656 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21657 | #endif |
| 21658 | #ifdef HAVE_SYS_VFS_H |
| 21659 | # include <sys/vfs.h> |
| 21660 | #endif |
| 21661 | #ifdef HAVE_SYS_STATFS_H |
| 21662 | # include <sys/statfs.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21663 | #endif |
| 21664 | |
| 21665 | int |
| 21666 | main () |
| 21667 | { |
| 21668 | static struct statfs ac_aggr; |
| 21669 | if (ac_aggr.f_namelen) |
| 21670 | return 0; |
| 21671 | ; |
| 21672 | return 0; |
| 21673 | } |
| 21674 | _ACEOF |
| 21675 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21676 | if { (ac_try="$ac_compile" |
| 21677 | case "(($ac_try" in |
| 21678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21679 | *) ac_try_echo=$ac_try;; |
| 21680 | esac |
| 21681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21682 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21683 | ac_status=$? |
| 21684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21685 | rm -f conftest.er1 |
| 21686 | cat conftest.err >&5 |
| 21687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21688 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21690 | { (case "(($ac_try" in |
| 21691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21692 | *) ac_try_echo=$ac_try;; |
| 21693 | esac |
| 21694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21695 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21696 | ac_status=$? |
| 21697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21698 | (exit $ac_status); }; } && |
| 21699 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21700 | { (case "(($ac_try" in |
| 21701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21702 | *) ac_try_echo=$ac_try;; |
| 21703 | esac |
| 21704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21705 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21706 | ac_status=$? |
| 21707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21708 | (exit $ac_status); }; }; then |
| 21709 | ac_cv_member_struct_statfs_f_namelen=yes |
| 21710 | else |
| 21711 | echo "$as_me: failed program was:" >&5 |
| 21712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21713 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21714 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21715 | /* confdefs.h. */ |
| 21716 | _ACEOF |
| 21717 | cat confdefs.h >>conftest.$ac_ext |
| 21718 | cat >>conftest.$ac_ext <<_ACEOF |
| 21719 | /* end confdefs.h. */ |
| 21720 | #include <sys/types.h> |
| 21721 | #ifdef HAVE_SYS_PARAM_H |
| 21722 | # include <sys/param.h> |
| 21723 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21724 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21725 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21726 | #endif |
| 21727 | #ifdef HAVE_SYS_VFS_H |
| 21728 | # include <sys/vfs.h> |
| 21729 | #endif |
| 21730 | #ifdef HAVE_SYS_STATFS_H |
| 21731 | # include <sys/statfs.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21732 | #endif |
| 21733 | |
| 21734 | int |
| 21735 | main () |
| 21736 | { |
| 21737 | static struct statfs ac_aggr; |
| 21738 | if (sizeof ac_aggr.f_namelen) |
| 21739 | return 0; |
| 21740 | ; |
| 21741 | return 0; |
| 21742 | } |
| 21743 | _ACEOF |
| 21744 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21745 | if { (ac_try="$ac_compile" |
| 21746 | case "(($ac_try" in |
| 21747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21748 | *) ac_try_echo=$ac_try;; |
| 21749 | esac |
| 21750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21751 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21752 | ac_status=$? |
| 21753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21754 | rm -f conftest.er1 |
| 21755 | cat conftest.err >&5 |
| 21756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21757 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21759 | { (case "(($ac_try" in |
| 21760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21761 | *) ac_try_echo=$ac_try;; |
| 21762 | esac |
| 21763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21764 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21765 | ac_status=$? |
| 21766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21767 | (exit $ac_status); }; } && |
| 21768 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21769 | { (case "(($ac_try" in |
| 21770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21771 | *) ac_try_echo=$ac_try;; |
| 21772 | esac |
| 21773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21774 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21775 | ac_status=$? |
| 21776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21777 | (exit $ac_status); }; }; then |
| 21778 | ac_cv_member_struct_statfs_f_namelen=yes |
| 21779 | else |
| 21780 | echo "$as_me: failed program was:" >&5 |
| 21781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21782 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21783 | ac_cv_member_struct_statfs_f_namelen=no |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21784 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21785 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21787 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21788 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21790 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21791 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5 |
| 21792 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; } |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21793 | if test $ac_cv_member_struct_statfs_f_namelen = yes; then |
| 21794 | |
| 21795 | cat >>confdefs.h <<_ACEOF |
| 21796 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 |
| 21797 | _ACEOF |
| 21798 | |
| 21799 | |
| 21800 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21801 | |
| 21802 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21803 | { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5 |
| 21804 | echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21805 | if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then |
| 21806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21807 | else |
| 21808 | cat >conftest.$ac_ext <<_ACEOF |
| 21809 | /* confdefs.h. */ |
| 21810 | _ACEOF |
| 21811 | cat confdefs.h >>conftest.$ac_ext |
| 21812 | cat >>conftest.$ac_ext <<_ACEOF |
| 21813 | /* end confdefs.h. */ |
| 21814 | #ifdef HAVE_SYS_STATVFS_H |
| 21815 | #include <sys/statvfs.h> |
| 21816 | #endif |
| 21817 | |
| 21818 | int |
| 21819 | main () |
| 21820 | { |
| 21821 | static struct statvfs ac_aggr; |
| 21822 | if (ac_aggr.f_blocks) |
| 21823 | return 0; |
| 21824 | ; |
| 21825 | return 0; |
| 21826 | } |
| 21827 | _ACEOF |
| 21828 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21829 | if { (ac_try="$ac_compile" |
| 21830 | case "(($ac_try" in |
| 21831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21832 | *) ac_try_echo=$ac_try;; |
| 21833 | esac |
| 21834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21835 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21836 | ac_status=$? |
| 21837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21838 | rm -f conftest.er1 |
| 21839 | cat conftest.err >&5 |
| 21840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21841 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21843 | { (case "(($ac_try" in |
| 21844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21845 | *) ac_try_echo=$ac_try;; |
| 21846 | esac |
| 21847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21848 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21849 | ac_status=$? |
| 21850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21851 | (exit $ac_status); }; } && |
| 21852 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21853 | { (case "(($ac_try" in |
| 21854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21855 | *) ac_try_echo=$ac_try;; |
| 21856 | esac |
| 21857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21858 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21859 | ac_status=$? |
| 21860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21861 | (exit $ac_status); }; }; then |
| 21862 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 21863 | else |
| 21864 | echo "$as_me: failed program was:" >&5 |
| 21865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21866 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21867 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21868 | /* confdefs.h. */ |
| 21869 | _ACEOF |
| 21870 | cat confdefs.h >>conftest.$ac_ext |
| 21871 | cat >>conftest.$ac_ext <<_ACEOF |
| 21872 | /* end confdefs.h. */ |
| 21873 | #ifdef HAVE_SYS_STATVFS_H |
| 21874 | #include <sys/statvfs.h> |
| 21875 | #endif |
| 21876 | |
| 21877 | int |
| 21878 | main () |
| 21879 | { |
| 21880 | static struct statvfs ac_aggr; |
| 21881 | if (sizeof ac_aggr.f_blocks) |
| 21882 | return 0; |
| 21883 | ; |
| 21884 | return 0; |
| 21885 | } |
| 21886 | _ACEOF |
| 21887 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21888 | if { (ac_try="$ac_compile" |
| 21889 | case "(($ac_try" in |
| 21890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21891 | *) ac_try_echo=$ac_try;; |
| 21892 | esac |
| 21893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21894 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21895 | ac_status=$? |
| 21896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21897 | rm -f conftest.er1 |
| 21898 | cat conftest.err >&5 |
| 21899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21900 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21902 | { (case "(($ac_try" in |
| 21903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21904 | *) ac_try_echo=$ac_try;; |
| 21905 | esac |
| 21906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21907 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21908 | ac_status=$? |
| 21909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21910 | (exit $ac_status); }; } && |
| 21911 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21912 | { (case "(($ac_try" in |
| 21913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21914 | *) ac_try_echo=$ac_try;; |
| 21915 | esac |
| 21916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21917 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21918 | ac_status=$? |
| 21919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21920 | (exit $ac_status); }; }; then |
| 21921 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 21922 | else |
| 21923 | echo "$as_me: failed program was:" >&5 |
| 21924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21925 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21926 | ac_cv_member_struct_statvfs_f_blocks=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21927 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21928 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21930 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21931 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21933 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21934 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5 |
| 21935 | echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21936 | if test $ac_cv_member_struct_statvfs_f_blocks = yes; then |
| 21937 | |
| 21938 | cat >>confdefs.h <<_ACEOF |
| 21939 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 |
| 21940 | _ACEOF |
| 21941 | |
| 21942 | |
| 21943 | fi |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21944 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21945 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21946 | { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5 |
| 21947 | echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21948 | if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21950 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21951 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21952 | /* confdefs.h. */ |
| 21953 | _ACEOF |
| 21954 | cat confdefs.h >>conftest.$ac_ext |
| 21955 | cat >>conftest.$ac_ext <<_ACEOF |
| 21956 | /* end confdefs.h. */ |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21957 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 21958 | #ifdef HAVE_SYS_SOCKET_H |
| 21959 | # include <sys/socket.h> |
| 21960 | #endif |
| 21961 | #ifdef HAVE_SYS_UN_H |
| 21962 | # include <sys/un.h> |
| 21963 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21964 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21965 | int |
| 21966 | main () |
| 21967 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21968 | static struct msghdr ac_aggr; |
| 21969 | if (ac_aggr.msg_accrights) |
| 21970 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21971 | ; |
| 21972 | return 0; |
| 21973 | } |
| 21974 | _ACEOF |
| 21975 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21976 | if { (ac_try="$ac_compile" |
| 21977 | case "(($ac_try" in |
| 21978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21979 | *) ac_try_echo=$ac_try;; |
| 21980 | esac |
| 21981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21982 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21983 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21985 | rm -f conftest.er1 |
| 21986 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21988 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21990 | { (case "(($ac_try" in |
| 21991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21992 | *) ac_try_echo=$ac_try;; |
| 21993 | esac |
| 21994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21995 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21996 | ac_status=$? |
| 21997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21998 | (exit $ac_status); }; } && |
| 21999 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22000 | { (case "(($ac_try" in |
| 22001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22002 | *) ac_try_echo=$ac_try;; |
| 22003 | esac |
| 22004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22005 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22006 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22008 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22009 | ac_cv_member_struct_msghdr_msg_accrights=yes |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22010 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22011 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 22012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22013 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22014 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22015 | /* confdefs.h. */ |
| 22016 | _ACEOF |
| 22017 | cat confdefs.h >>conftest.$ac_ext |
| 22018 | cat >>conftest.$ac_ext <<_ACEOF |
| 22019 | /* end confdefs.h. */ |
| 22020 | #include <sys/types.h> |
| 22021 | #ifdef HAVE_SYS_SOCKET_H |
| 22022 | # include <sys/socket.h> |
| 22023 | #endif |
| 22024 | #ifdef HAVE_SYS_UN_H |
| 22025 | # include <sys/un.h> |
| 22026 | #endif |
| 22027 | |
| 22028 | int |
| 22029 | main () |
| 22030 | { |
| 22031 | static struct msghdr ac_aggr; |
| 22032 | if (sizeof ac_aggr.msg_accrights) |
| 22033 | return 0; |
| 22034 | ; |
| 22035 | return 0; |
| 22036 | } |
| 22037 | _ACEOF |
| 22038 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22039 | if { (ac_try="$ac_compile" |
| 22040 | case "(($ac_try" in |
| 22041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22042 | *) ac_try_echo=$ac_try;; |
| 22043 | esac |
| 22044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22045 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22046 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22048 | rm -f conftest.er1 |
| 22049 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22051 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22053 | { (case "(($ac_try" in |
| 22054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22055 | *) ac_try_echo=$ac_try;; |
| 22056 | esac |
| 22057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22058 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22059 | ac_status=$? |
| 22060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22061 | (exit $ac_status); }; } && |
| 22062 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22063 | { (case "(($ac_try" in |
| 22064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22065 | *) ac_try_echo=$ac_try;; |
| 22066 | esac |
| 22067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22068 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22069 | ac_status=$? |
| 22070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22071 | (exit $ac_status); }; }; then |
| 22072 | ac_cv_member_struct_msghdr_msg_accrights=yes |
| 22073 | else |
| 22074 | echo "$as_me: failed program was:" >&5 |
| 22075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22076 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22077 | ac_cv_member_struct_msghdr_msg_accrights=no |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22078 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22079 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22081 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22082 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22084 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22085 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5 |
| 22086 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22087 | if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22088 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22089 | cat >>confdefs.h <<_ACEOF |
| 22090 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22091 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22092 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22093 | |
| 22094 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22095 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 22096 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22097 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
| 22098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22099 | else |
| 22100 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22101 | /* confdefs.h. */ |
| 22102 | _ACEOF |
| 22103 | cat confdefs.h >>conftest.$ac_ext |
| 22104 | cat >>conftest.$ac_ext <<_ACEOF |
| 22105 | /* end confdefs.h. */ |
| 22106 | #include <sys/types.h> |
| 22107 | #ifdef HAVE_SYS_SOCKET_H |
| 22108 | # include <sys/socket.h> |
| 22109 | #endif |
| 22110 | #ifdef HAVE_SYS_UN_H |
| 22111 | # include <sys/un.h> |
| 22112 | #endif |
| 22113 | |
| 22114 | int |
| 22115 | main () |
| 22116 | { |
| 22117 | static struct sockaddr ac_aggr; |
| 22118 | if (ac_aggr.sa_len) |
| 22119 | return 0; |
| 22120 | ; |
| 22121 | return 0; |
| 22122 | } |
| 22123 | _ACEOF |
| 22124 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22125 | if { (ac_try="$ac_compile" |
| 22126 | case "(($ac_try" in |
| 22127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22128 | *) ac_try_echo=$ac_try;; |
| 22129 | esac |
| 22130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22131 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22132 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22134 | rm -f conftest.er1 |
| 22135 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22137 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22139 | { (case "(($ac_try" in |
| 22140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22141 | *) ac_try_echo=$ac_try;; |
| 22142 | esac |
| 22143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22144 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22145 | ac_status=$? |
| 22146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22147 | (exit $ac_status); }; } && |
| 22148 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22149 | { (case "(($ac_try" in |
| 22150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22151 | *) ac_try_echo=$ac_try;; |
| 22152 | esac |
| 22153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22154 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22155 | ac_status=$? |
| 22156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22157 | (exit $ac_status); }; }; then |
| 22158 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 22159 | else |
| 22160 | echo "$as_me: failed program was:" >&5 |
| 22161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22162 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22163 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22164 | /* confdefs.h. */ |
| 22165 | _ACEOF |
| 22166 | cat confdefs.h >>conftest.$ac_ext |
| 22167 | cat >>conftest.$ac_ext <<_ACEOF |
| 22168 | /* end confdefs.h. */ |
| 22169 | #include <sys/types.h> |
| 22170 | #ifdef HAVE_SYS_SOCKET_H |
| 22171 | # include <sys/socket.h> |
| 22172 | #endif |
| 22173 | #ifdef HAVE_SYS_UN_H |
| 22174 | # include <sys/un.h> |
| 22175 | #endif |
| 22176 | |
| 22177 | int |
| 22178 | main () |
| 22179 | { |
| 22180 | static struct sockaddr ac_aggr; |
| 22181 | if (sizeof ac_aggr.sa_len) |
| 22182 | return 0; |
| 22183 | ; |
| 22184 | return 0; |
| 22185 | } |
| 22186 | _ACEOF |
| 22187 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22188 | if { (ac_try="$ac_compile" |
| 22189 | case "(($ac_try" in |
| 22190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22191 | *) ac_try_echo=$ac_try;; |
| 22192 | esac |
| 22193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22194 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22195 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22197 | rm -f conftest.er1 |
| 22198 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22200 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22202 | { (case "(($ac_try" in |
| 22203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22204 | *) ac_try_echo=$ac_try;; |
| 22205 | esac |
| 22206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22207 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22208 | ac_status=$? |
| 22209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22210 | (exit $ac_status); }; } && |
| 22211 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22212 | { (case "(($ac_try" in |
| 22213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22214 | *) ac_try_echo=$ac_try;; |
| 22215 | esac |
| 22216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22217 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22218 | ac_status=$? |
| 22219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22220 | (exit $ac_status); }; }; then |
| 22221 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 22222 | else |
| 22223 | echo "$as_me: failed program was:" >&5 |
| 22224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22225 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22226 | ac_cv_member_struct_sockaddr_sa_len=no |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22227 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22228 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22230 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22231 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22233 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22234 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 22235 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22236 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
| 22237 | |
| 22238 | cat >>confdefs.h <<_ACEOF |
| 22239 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 22240 | _ACEOF |
| 22241 | |
| 22242 | |
| 22243 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22244 | { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5 |
| 22245 | echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22246 | if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then |
| 22247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22248 | else |
| 22249 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22250 | /* confdefs.h. */ |
| 22251 | _ACEOF |
| 22252 | cat confdefs.h >>conftest.$ac_ext |
| 22253 | cat >>conftest.$ac_ext <<_ACEOF |
| 22254 | /* end confdefs.h. */ |
| 22255 | #include <sys/types.h> |
| 22256 | #ifdef HAVE_SYS_SOCKET_H |
| 22257 | # include <sys/socket.h> |
| 22258 | #endif |
| 22259 | #ifdef HAVE_SYS_UN_H |
| 22260 | # include <sys/un.h> |
| 22261 | #endif |
| 22262 | |
| 22263 | int |
| 22264 | main () |
| 22265 | { |
| 22266 | static struct sockaddr_un ac_aggr; |
| 22267 | if (ac_aggr.sun_len) |
| 22268 | return 0; |
| 22269 | ; |
| 22270 | return 0; |
| 22271 | } |
| 22272 | _ACEOF |
| 22273 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22274 | if { (ac_try="$ac_compile" |
| 22275 | case "(($ac_try" in |
| 22276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22277 | *) ac_try_echo=$ac_try;; |
| 22278 | esac |
| 22279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22280 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22281 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22283 | rm -f conftest.er1 |
| 22284 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22286 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22287 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22288 | { (case "(($ac_try" in |
| 22289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22290 | *) ac_try_echo=$ac_try;; |
| 22291 | esac |
| 22292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22293 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22294 | ac_status=$? |
| 22295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22296 | (exit $ac_status); }; } && |
| 22297 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22298 | { (case "(($ac_try" in |
| 22299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22300 | *) ac_try_echo=$ac_try;; |
| 22301 | esac |
| 22302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22303 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22304 | ac_status=$? |
| 22305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22306 | (exit $ac_status); }; }; then |
| 22307 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 22308 | else |
| 22309 | echo "$as_me: failed program was:" >&5 |
| 22310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22311 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22312 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22313 | /* confdefs.h. */ |
| 22314 | _ACEOF |
| 22315 | cat confdefs.h >>conftest.$ac_ext |
| 22316 | cat >>conftest.$ac_ext <<_ACEOF |
| 22317 | /* end confdefs.h. */ |
| 22318 | #include <sys/types.h> |
| 22319 | #ifdef HAVE_SYS_SOCKET_H |
| 22320 | # include <sys/socket.h> |
| 22321 | #endif |
| 22322 | #ifdef HAVE_SYS_UN_H |
| 22323 | # include <sys/un.h> |
| 22324 | #endif |
| 22325 | |
| 22326 | int |
| 22327 | main () |
| 22328 | { |
| 22329 | static struct sockaddr_un ac_aggr; |
| 22330 | if (sizeof ac_aggr.sun_len) |
| 22331 | return 0; |
| 22332 | ; |
| 22333 | return 0; |
| 22334 | } |
| 22335 | _ACEOF |
| 22336 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22337 | if { (ac_try="$ac_compile" |
| 22338 | case "(($ac_try" in |
| 22339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22340 | *) ac_try_echo=$ac_try;; |
| 22341 | esac |
| 22342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22343 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22344 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22346 | rm -f conftest.er1 |
| 22347 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22349 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22350 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22351 | { (case "(($ac_try" in |
| 22352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22353 | *) ac_try_echo=$ac_try;; |
| 22354 | esac |
| 22355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22356 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22357 | ac_status=$? |
| 22358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22359 | (exit $ac_status); }; } && |
| 22360 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22361 | { (case "(($ac_try" in |
| 22362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22363 | *) ac_try_echo=$ac_try;; |
| 22364 | esac |
| 22365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22366 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22367 | ac_status=$? |
| 22368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22369 | (exit $ac_status); }; }; then |
| 22370 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 22371 | else |
| 22372 | echo "$as_me: failed program was:" >&5 |
| 22373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22374 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22375 | ac_cv_member_struct_sockaddr_un_sun_len=no |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22376 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22377 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22379 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22380 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22382 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22383 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5 |
| 22384 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22385 | if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then |
| 22386 | |
| 22387 | cat >>confdefs.h <<_ACEOF |
| 22388 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 22389 | _ACEOF |
| 22390 | |
| 22391 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22392 | fi |
| 22393 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22394 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22395 | { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5 |
| 22396 | echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; } |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22397 | if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then |
| 22398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22399 | else |
| 22400 | cat >conftest.$ac_ext <<_ACEOF |
| 22401 | /* confdefs.h. */ |
| 22402 | _ACEOF |
| 22403 | cat confdefs.h >>conftest.$ac_ext |
| 22404 | cat >>conftest.$ac_ext <<_ACEOF |
| 22405 | /* end confdefs.h. */ |
| 22406 | #include <sys/types.h> |
| 22407 | #ifdef HAVE_SCSI_SG_H |
| 22408 | #include <scsi/sg.h> |
| 22409 | #endif |
| 22410 | |
| 22411 | int |
| 22412 | main () |
| 22413 | { |
| 22414 | static scsireq_t ac_aggr; |
| 22415 | if (ac_aggr.cmd) |
| 22416 | return 0; |
| 22417 | ; |
| 22418 | return 0; |
| 22419 | } |
| 22420 | _ACEOF |
| 22421 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22422 | if { (ac_try="$ac_compile" |
| 22423 | case "(($ac_try" in |
| 22424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22425 | *) ac_try_echo=$ac_try;; |
| 22426 | esac |
| 22427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22428 | (eval "$ac_compile") 2>conftest.er1 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22429 | ac_status=$? |
| 22430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22431 | rm -f conftest.er1 |
| 22432 | cat conftest.err >&5 |
| 22433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22434 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22436 | { (case "(($ac_try" in |
| 22437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22438 | *) ac_try_echo=$ac_try;; |
| 22439 | esac |
| 22440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22441 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22442 | ac_status=$? |
| 22443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22444 | (exit $ac_status); }; } && |
| 22445 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22446 | { (case "(($ac_try" in |
| 22447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22448 | *) ac_try_echo=$ac_try;; |
| 22449 | esac |
| 22450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22451 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22452 | ac_status=$? |
| 22453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22454 | (exit $ac_status); }; }; then |
| 22455 | ac_cv_member_scsireq_t_cmd=yes |
| 22456 | else |
| 22457 | echo "$as_me: failed program was:" >&5 |
| 22458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22459 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22460 | cat >conftest.$ac_ext <<_ACEOF |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22461 | /* confdefs.h. */ |
| 22462 | _ACEOF |
| 22463 | cat confdefs.h >>conftest.$ac_ext |
| 22464 | cat >>conftest.$ac_ext <<_ACEOF |
| 22465 | /* end confdefs.h. */ |
| 22466 | #include <sys/types.h> |
| 22467 | #ifdef HAVE_SCSI_SG_H |
| 22468 | #include <scsi/sg.h> |
| 22469 | #endif |
| 22470 | |
| 22471 | int |
| 22472 | main () |
| 22473 | { |
| 22474 | static scsireq_t ac_aggr; |
| 22475 | if (sizeof ac_aggr.cmd) |
| 22476 | return 0; |
| 22477 | ; |
| 22478 | return 0; |
| 22479 | } |
| 22480 | _ACEOF |
| 22481 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22482 | if { (ac_try="$ac_compile" |
| 22483 | case "(($ac_try" in |
| 22484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22485 | *) ac_try_echo=$ac_try;; |
| 22486 | esac |
| 22487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22488 | (eval "$ac_compile") 2>conftest.er1 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22489 | ac_status=$? |
| 22490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22491 | rm -f conftest.er1 |
| 22492 | cat conftest.err >&5 |
| 22493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22494 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22496 | { (case "(($ac_try" in |
| 22497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22498 | *) ac_try_echo=$ac_try;; |
| 22499 | esac |
| 22500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22501 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22502 | ac_status=$? |
| 22503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22504 | (exit $ac_status); }; } && |
| 22505 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22506 | { (case "(($ac_try" in |
| 22507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22508 | *) ac_try_echo=$ac_try;; |
| 22509 | esac |
| 22510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22511 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22512 | ac_status=$? |
| 22513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22514 | (exit $ac_status); }; }; then |
| 22515 | ac_cv_member_scsireq_t_cmd=yes |
| 22516 | else |
| 22517 | echo "$as_me: failed program was:" >&5 |
| 22518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22519 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22520 | ac_cv_member_scsireq_t_cmd=no |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22521 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22522 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22524 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22525 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22527 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22528 | { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5 |
| 22529 | echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; } |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22530 | if test $ac_cv_member_scsireq_t_cmd = yes; then |
| 22531 | |
| 22532 | cat >>confdefs.h <<_ACEOF |
| 22533 | #define HAVE_SCSIREQ_T_CMD 1 |
| 22534 | _ACEOF |
| 22535 | |
| 22536 | |
| 22537 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22538 | { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5 |
| 22539 | echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; } |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22540 | if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then |
| 22541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22542 | else |
| 22543 | cat >conftest.$ac_ext <<_ACEOF |
| 22544 | /* confdefs.h. */ |
| 22545 | _ACEOF |
| 22546 | cat confdefs.h >>conftest.$ac_ext |
| 22547 | cat >>conftest.$ac_ext <<_ACEOF |
| 22548 | /* end confdefs.h. */ |
| 22549 | #include <sys/types.h> |
| 22550 | #ifdef HAVE_SCSI_SG_H |
| 22551 | #include <scsi/sg.h> |
| 22552 | #endif |
| 22553 | |
| 22554 | int |
| 22555 | main () |
| 22556 | { |
| 22557 | static sg_io_hdr_t ac_aggr; |
| 22558 | if (ac_aggr.interface_id) |
| 22559 | return 0; |
| 22560 | ; |
| 22561 | return 0; |
| 22562 | } |
| 22563 | _ACEOF |
| 22564 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22565 | if { (ac_try="$ac_compile" |
| 22566 | case "(($ac_try" in |
| 22567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22568 | *) ac_try_echo=$ac_try;; |
| 22569 | esac |
| 22570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22571 | (eval "$ac_compile") 2>conftest.er1 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22572 | ac_status=$? |
| 22573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22574 | rm -f conftest.er1 |
| 22575 | cat conftest.err >&5 |
| 22576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22577 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22578 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22579 | { (case "(($ac_try" in |
| 22580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22581 | *) ac_try_echo=$ac_try;; |
| 22582 | esac |
| 22583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22584 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22585 | ac_status=$? |
| 22586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22587 | (exit $ac_status); }; } && |
| 22588 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22589 | { (case "(($ac_try" in |
| 22590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22591 | *) ac_try_echo=$ac_try;; |
| 22592 | esac |
| 22593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22594 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22595 | ac_status=$? |
| 22596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22597 | (exit $ac_status); }; }; then |
| 22598 | ac_cv_member_sg_io_hdr_t_interface_id=yes |
| 22599 | else |
| 22600 | echo "$as_me: failed program was:" >&5 |
| 22601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22602 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22603 | cat >conftest.$ac_ext <<_ACEOF |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22604 | /* confdefs.h. */ |
| 22605 | _ACEOF |
| 22606 | cat confdefs.h >>conftest.$ac_ext |
| 22607 | cat >>conftest.$ac_ext <<_ACEOF |
| 22608 | /* end confdefs.h. */ |
| 22609 | #include <sys/types.h> |
| 22610 | #ifdef HAVE_SCSI_SG_H |
| 22611 | #include <scsi/sg.h> |
| 22612 | #endif |
| 22613 | |
| 22614 | int |
| 22615 | main () |
| 22616 | { |
| 22617 | static sg_io_hdr_t ac_aggr; |
| 22618 | if (sizeof ac_aggr.interface_id) |
| 22619 | return 0; |
| 22620 | ; |
| 22621 | return 0; |
| 22622 | } |
| 22623 | _ACEOF |
| 22624 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22625 | if { (ac_try="$ac_compile" |
| 22626 | case "(($ac_try" in |
| 22627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22628 | *) ac_try_echo=$ac_try;; |
| 22629 | esac |
| 22630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22631 | (eval "$ac_compile") 2>conftest.er1 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22632 | ac_status=$? |
| 22633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22634 | rm -f conftest.er1 |
| 22635 | cat conftest.err >&5 |
| 22636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22637 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22639 | { (case "(($ac_try" in |
| 22640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22641 | *) ac_try_echo=$ac_try;; |
| 22642 | esac |
| 22643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22644 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22645 | ac_status=$? |
| 22646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22647 | (exit $ac_status); }; } && |
| 22648 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22649 | { (case "(($ac_try" in |
| 22650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22651 | *) ac_try_echo=$ac_try;; |
| 22652 | esac |
| 22653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22654 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22655 | ac_status=$? |
| 22656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22657 | (exit $ac_status); }; }; then |
| 22658 | ac_cv_member_sg_io_hdr_t_interface_id=yes |
| 22659 | else |
| 22660 | echo "$as_me: failed program was:" >&5 |
| 22661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22662 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22663 | ac_cv_member_sg_io_hdr_t_interface_id=no |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22664 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22665 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22667 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22668 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22670 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22671 | { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5 |
| 22672 | echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; } |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22673 | if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then |
| 22674 | |
| 22675 | cat >>confdefs.h <<_ACEOF |
| 22676 | #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1 |
| 22677 | _ACEOF |
| 22678 | |
| 22679 | |
| 22680 | fi |
| 22681 | |
| 22682 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22683 | { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5 |
| 22684 | echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22685 | if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then |
| 22686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22687 | else |
| 22688 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22689 | /* confdefs.h. */ |
| 22690 | _ACEOF |
| 22691 | cat confdefs.h >>conftest.$ac_ext |
| 22692 | cat >>conftest.$ac_ext <<_ACEOF |
| 22693 | /* end confdefs.h. */ |
| 22694 | #include <signal.h> |
| 22695 | |
| 22696 | int |
| 22697 | main () |
| 22698 | { |
| 22699 | static siginfo_t ac_aggr; |
| 22700 | if (ac_aggr.si_fd) |
| 22701 | return 0; |
| 22702 | ; |
| 22703 | return 0; |
| 22704 | } |
| 22705 | _ACEOF |
| 22706 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22707 | if { (ac_try="$ac_compile" |
| 22708 | case "(($ac_try" in |
| 22709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22710 | *) ac_try_echo=$ac_try;; |
| 22711 | esac |
| 22712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22713 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22714 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22716 | rm -f conftest.er1 |
| 22717 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22719 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22720 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22721 | { (case "(($ac_try" in |
| 22722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22723 | *) ac_try_echo=$ac_try;; |
| 22724 | esac |
| 22725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22726 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22727 | ac_status=$? |
| 22728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22729 | (exit $ac_status); }; } && |
| 22730 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22731 | { (case "(($ac_try" in |
| 22732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22733 | *) ac_try_echo=$ac_try;; |
| 22734 | esac |
| 22735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22736 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22737 | ac_status=$? |
| 22738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22739 | (exit $ac_status); }; }; then |
| 22740 | ac_cv_member_siginfo_t_si_fd=yes |
| 22741 | else |
| 22742 | echo "$as_me: failed program was:" >&5 |
| 22743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22744 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22745 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22746 | /* confdefs.h. */ |
| 22747 | _ACEOF |
| 22748 | cat confdefs.h >>conftest.$ac_ext |
| 22749 | cat >>conftest.$ac_ext <<_ACEOF |
| 22750 | /* end confdefs.h. */ |
| 22751 | #include <signal.h> |
| 22752 | |
| 22753 | int |
| 22754 | main () |
| 22755 | { |
| 22756 | static siginfo_t ac_aggr; |
| 22757 | if (sizeof ac_aggr.si_fd) |
| 22758 | return 0; |
| 22759 | ; |
| 22760 | return 0; |
| 22761 | } |
| 22762 | _ACEOF |
| 22763 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22764 | if { (ac_try="$ac_compile" |
| 22765 | case "(($ac_try" in |
| 22766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22767 | *) ac_try_echo=$ac_try;; |
| 22768 | esac |
| 22769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22770 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22771 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22773 | rm -f conftest.er1 |
| 22774 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22776 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22778 | { (case "(($ac_try" in |
| 22779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22780 | *) ac_try_echo=$ac_try;; |
| 22781 | esac |
| 22782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22783 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22784 | ac_status=$? |
| 22785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22786 | (exit $ac_status); }; } && |
| 22787 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22788 | { (case "(($ac_try" in |
| 22789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22790 | *) ac_try_echo=$ac_try;; |
| 22791 | esac |
| 22792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22793 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22794 | ac_status=$? |
| 22795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22796 | (exit $ac_status); }; }; then |
| 22797 | ac_cv_member_siginfo_t_si_fd=yes |
| 22798 | else |
| 22799 | echo "$as_me: failed program was:" >&5 |
| 22800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22801 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22802 | ac_cv_member_siginfo_t_si_fd=no |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22803 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22804 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22806 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22807 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22809 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22810 | { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5 |
| 22811 | echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22812 | if test $ac_cv_member_siginfo_t_si_fd = yes; then |
| 22813 | |
| 22814 | cat >>confdefs.h <<_ACEOF |
| 22815 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 22816 | _ACEOF |
| 22817 | |
| 22818 | |
| 22819 | fi |
| 22820 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22821 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22822 | { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5 |
| 22823 | echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22824 | if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then |
| 22825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22826 | else |
| 22827 | cat >conftest.$ac_ext <<_ACEOF |
| 22828 | /* confdefs.h. */ |
| 22829 | _ACEOF |
| 22830 | cat confdefs.h >>conftest.$ac_ext |
| 22831 | cat >>conftest.$ac_ext <<_ACEOF |
| 22832 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 22833 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22834 | #ifdef HAVE_SYS_MTIO_H |
| 22835 | #include <sys/mtio.h> |
| 22836 | #endif |
| 22837 | |
| 22838 | int |
| 22839 | main () |
| 22840 | { |
| 22841 | static struct mtget ac_aggr; |
| 22842 | if (ac_aggr.mt_blksiz) |
| 22843 | return 0; |
| 22844 | ; |
| 22845 | return 0; |
| 22846 | } |
| 22847 | _ACEOF |
| 22848 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22849 | if { (ac_try="$ac_compile" |
| 22850 | case "(($ac_try" in |
| 22851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22852 | *) ac_try_echo=$ac_try;; |
| 22853 | esac |
| 22854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22855 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22856 | ac_status=$? |
| 22857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22858 | rm -f conftest.er1 |
| 22859 | cat conftest.err >&5 |
| 22860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22861 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22863 | { (case "(($ac_try" in |
| 22864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22865 | *) ac_try_echo=$ac_try;; |
| 22866 | esac |
| 22867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22868 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22869 | ac_status=$? |
| 22870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22871 | (exit $ac_status); }; } && |
| 22872 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22873 | { (case "(($ac_try" in |
| 22874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22875 | *) ac_try_echo=$ac_try;; |
| 22876 | esac |
| 22877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22878 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22879 | ac_status=$? |
| 22880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22881 | (exit $ac_status); }; }; then |
| 22882 | ac_cv_member_struct_mtget_mt_blksiz=yes |
| 22883 | else |
| 22884 | echo "$as_me: failed program was:" >&5 |
| 22885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22886 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22887 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22888 | /* confdefs.h. */ |
| 22889 | _ACEOF |
| 22890 | cat confdefs.h >>conftest.$ac_ext |
| 22891 | cat >>conftest.$ac_ext <<_ACEOF |
| 22892 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 22893 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22894 | #ifdef HAVE_SYS_MTIO_H |
| 22895 | #include <sys/mtio.h> |
| 22896 | #endif |
| 22897 | |
| 22898 | int |
| 22899 | main () |
| 22900 | { |
| 22901 | static struct mtget ac_aggr; |
| 22902 | if (sizeof ac_aggr.mt_blksiz) |
| 22903 | return 0; |
| 22904 | ; |
| 22905 | return 0; |
| 22906 | } |
| 22907 | _ACEOF |
| 22908 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22909 | if { (ac_try="$ac_compile" |
| 22910 | case "(($ac_try" in |
| 22911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22912 | *) ac_try_echo=$ac_try;; |
| 22913 | esac |
| 22914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22915 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22916 | ac_status=$? |
| 22917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22918 | rm -f conftest.er1 |
| 22919 | cat conftest.err >&5 |
| 22920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22921 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22923 | { (case "(($ac_try" in |
| 22924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22925 | *) ac_try_echo=$ac_try;; |
| 22926 | esac |
| 22927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22928 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22929 | ac_status=$? |
| 22930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22931 | (exit $ac_status); }; } && |
| 22932 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22933 | { (case "(($ac_try" in |
| 22934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22935 | *) ac_try_echo=$ac_try;; |
| 22936 | esac |
| 22937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22938 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22939 | ac_status=$? |
| 22940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22941 | (exit $ac_status); }; }; then |
| 22942 | ac_cv_member_struct_mtget_mt_blksiz=yes |
| 22943 | else |
| 22944 | echo "$as_me: failed program was:" >&5 |
| 22945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22946 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22947 | ac_cv_member_struct_mtget_mt_blksiz=no |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22948 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22949 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22951 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22952 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22954 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22955 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5 |
| 22956 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22957 | if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then |
| 22958 | |
| 22959 | cat >>confdefs.h <<_ACEOF |
| 22960 | #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1 |
| 22961 | _ACEOF |
| 22962 | |
| 22963 | |
| 22964 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22965 | { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5 |
| 22966 | echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22967 | if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then |
| 22968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22969 | else |
| 22970 | cat >conftest.$ac_ext <<_ACEOF |
| 22971 | /* confdefs.h. */ |
| 22972 | _ACEOF |
| 22973 | cat confdefs.h >>conftest.$ac_ext |
| 22974 | cat >>conftest.$ac_ext <<_ACEOF |
| 22975 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 22976 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22977 | #ifdef HAVE_SYS_MTIO_H |
| 22978 | #include <sys/mtio.h> |
| 22979 | #endif |
| 22980 | |
| 22981 | int |
| 22982 | main () |
| 22983 | { |
| 22984 | static struct mtget ac_aggr; |
| 22985 | if (ac_aggr.mt_gstat) |
| 22986 | return 0; |
| 22987 | ; |
| 22988 | return 0; |
| 22989 | } |
| 22990 | _ACEOF |
| 22991 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22992 | if { (ac_try="$ac_compile" |
| 22993 | case "(($ac_try" in |
| 22994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22995 | *) ac_try_echo=$ac_try;; |
| 22996 | esac |
| 22997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22998 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22999 | ac_status=$? |
| 23000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23001 | rm -f conftest.er1 |
| 23002 | cat conftest.err >&5 |
| 23003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23004 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23005 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23006 | { (case "(($ac_try" in |
| 23007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23008 | *) ac_try_echo=$ac_try;; |
| 23009 | esac |
| 23010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23011 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23012 | ac_status=$? |
| 23013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23014 | (exit $ac_status); }; } && |
| 23015 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23016 | { (case "(($ac_try" in |
| 23017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23018 | *) ac_try_echo=$ac_try;; |
| 23019 | esac |
| 23020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23021 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23022 | ac_status=$? |
| 23023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23024 | (exit $ac_status); }; }; then |
| 23025 | ac_cv_member_struct_mtget_mt_gstat=yes |
| 23026 | else |
| 23027 | echo "$as_me: failed program was:" >&5 |
| 23028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23029 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23030 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23031 | /* confdefs.h. */ |
| 23032 | _ACEOF |
| 23033 | cat confdefs.h >>conftest.$ac_ext |
| 23034 | cat >>conftest.$ac_ext <<_ACEOF |
| 23035 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 23036 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23037 | #ifdef HAVE_SYS_MTIO_H |
| 23038 | #include <sys/mtio.h> |
| 23039 | #endif |
| 23040 | |
| 23041 | int |
| 23042 | main () |
| 23043 | { |
| 23044 | static struct mtget ac_aggr; |
| 23045 | if (sizeof ac_aggr.mt_gstat) |
| 23046 | return 0; |
| 23047 | ; |
| 23048 | return 0; |
| 23049 | } |
| 23050 | _ACEOF |
| 23051 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23052 | if { (ac_try="$ac_compile" |
| 23053 | case "(($ac_try" in |
| 23054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23055 | *) ac_try_echo=$ac_try;; |
| 23056 | esac |
| 23057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23058 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23059 | ac_status=$? |
| 23060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23061 | rm -f conftest.er1 |
| 23062 | cat conftest.err >&5 |
| 23063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23064 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23066 | { (case "(($ac_try" in |
| 23067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23068 | *) ac_try_echo=$ac_try;; |
| 23069 | esac |
| 23070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23071 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23072 | ac_status=$? |
| 23073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23074 | (exit $ac_status); }; } && |
| 23075 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23076 | { (case "(($ac_try" in |
| 23077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23078 | *) ac_try_echo=$ac_try;; |
| 23079 | esac |
| 23080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23081 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23082 | ac_status=$? |
| 23083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23084 | (exit $ac_status); }; }; then |
| 23085 | ac_cv_member_struct_mtget_mt_gstat=yes |
| 23086 | else |
| 23087 | echo "$as_me: failed program was:" >&5 |
| 23088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23089 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23090 | ac_cv_member_struct_mtget_mt_gstat=no |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23091 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23092 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23094 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23095 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23097 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23098 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5 |
| 23099 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23100 | if test $ac_cv_member_struct_mtget_mt_gstat = yes; then |
| 23101 | |
| 23102 | cat >>confdefs.h <<_ACEOF |
| 23103 | #define HAVE_STRUCT_MTGET_MT_GSTAT 1 |
| 23104 | _ACEOF |
| 23105 | |
| 23106 | |
| 23107 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23108 | { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5 |
| 23109 | echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; } |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23110 | if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then |
| 23111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23112 | else |
| 23113 | cat >conftest.$ac_ext <<_ACEOF |
| 23114 | /* confdefs.h. */ |
| 23115 | _ACEOF |
| 23116 | cat confdefs.h >>conftest.$ac_ext |
| 23117 | cat >>conftest.$ac_ext <<_ACEOF |
| 23118 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 23119 | #include <sys/types.h> |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23120 | #ifdef HAVE_SYS_MTIO_H |
| 23121 | #include <sys/mtio.h> |
| 23122 | #endif |
| 23123 | |
| 23124 | int |
| 23125 | main () |
| 23126 | { |
| 23127 | static struct mtget ac_aggr; |
| 23128 | if (ac_aggr.mt_blkno) |
| 23129 | return 0; |
| 23130 | ; |
| 23131 | return 0; |
| 23132 | } |
| 23133 | _ACEOF |
| 23134 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [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 |
| 23140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23141 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23142 | ac_status=$? |
| 23143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23144 | rm -f conftest.er1 |
| 23145 | cat conftest.err >&5 |
| 23146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23147 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23149 | { (case "(($ac_try" in |
| 23150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23151 | *) ac_try_echo=$ac_try;; |
| 23152 | esac |
| 23153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23154 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23155 | ac_status=$? |
| 23156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23157 | (exit $ac_status); }; } && |
| 23158 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23159 | { (case "(($ac_try" in |
| 23160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23161 | *) ac_try_echo=$ac_try;; |
| 23162 | esac |
| 23163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23164 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23165 | ac_status=$? |
| 23166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23167 | (exit $ac_status); }; }; then |
| 23168 | ac_cv_member_struct_mtget_mt_blkno=yes |
| 23169 | else |
| 23170 | echo "$as_me: failed program was:" >&5 |
| 23171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23172 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23173 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23174 | /* confdefs.h. */ |
| 23175 | _ACEOF |
| 23176 | cat confdefs.h >>conftest.$ac_ext |
| 23177 | cat >>conftest.$ac_ext <<_ACEOF |
| 23178 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 23179 | #include <sys/types.h> |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23180 | #ifdef HAVE_SYS_MTIO_H |
| 23181 | #include <sys/mtio.h> |
| 23182 | #endif |
| 23183 | |
| 23184 | int |
| 23185 | main () |
| 23186 | { |
| 23187 | static struct mtget ac_aggr; |
| 23188 | if (sizeof ac_aggr.mt_blkno) |
| 23189 | return 0; |
| 23190 | ; |
| 23191 | return 0; |
| 23192 | } |
| 23193 | _ACEOF |
| 23194 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23195 | if { (ac_try="$ac_compile" |
| 23196 | case "(($ac_try" in |
| 23197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23198 | *) ac_try_echo=$ac_try;; |
| 23199 | esac |
| 23200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23201 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23202 | ac_status=$? |
| 23203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23204 | rm -f conftest.er1 |
| 23205 | cat conftest.err >&5 |
| 23206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23207 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23208 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23209 | { (case "(($ac_try" in |
| 23210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23211 | *) ac_try_echo=$ac_try;; |
| 23212 | esac |
| 23213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23214 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23215 | ac_status=$? |
| 23216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23217 | (exit $ac_status); }; } && |
| 23218 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23219 | { (case "(($ac_try" in |
| 23220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23221 | *) ac_try_echo=$ac_try;; |
| 23222 | esac |
| 23223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23224 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23225 | ac_status=$? |
| 23226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23227 | (exit $ac_status); }; }; then |
| 23228 | ac_cv_member_struct_mtget_mt_blkno=yes |
| 23229 | else |
| 23230 | echo "$as_me: failed program was:" >&5 |
| 23231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23232 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23233 | ac_cv_member_struct_mtget_mt_blkno=no |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23234 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23235 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23237 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23238 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23240 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23241 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5 |
| 23242 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; } |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23243 | if test $ac_cv_member_struct_mtget_mt_blkno = yes; then |
| 23244 | |
| 23245 | cat >>confdefs.h <<_ACEOF |
| 23246 | #define HAVE_STRUCT_MTGET_MT_BLKNO 1 |
| 23247 | _ACEOF |
| 23248 | |
| 23249 | |
| 23250 | fi |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23251 | |
| 23252 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23253 | { echo "$as_me:$LINENO: checking for struct option.name" >&5 |
| 23254 | echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; } |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23255 | if test "${ac_cv_member_struct_option_name+set}" = set; then |
| 23256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23257 | else |
| 23258 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23259 | /* confdefs.h. */ |
| 23260 | _ACEOF |
| 23261 | cat confdefs.h >>conftest.$ac_ext |
| 23262 | cat >>conftest.$ac_ext <<_ACEOF |
| 23263 | /* end confdefs.h. */ |
| 23264 | #ifdef HAVE_GETOPT_H |
| 23265 | #include <getopt.h> |
| 23266 | #endif |
| 23267 | |
| 23268 | int |
| 23269 | main () |
| 23270 | { |
| 23271 | static struct option ac_aggr; |
| 23272 | if (ac_aggr.name) |
| 23273 | return 0; |
| 23274 | ; |
| 23275 | return 0; |
| 23276 | } |
| 23277 | _ACEOF |
| 23278 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23279 | if { (ac_try="$ac_compile" |
| 23280 | case "(($ac_try" in |
| 23281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23282 | *) ac_try_echo=$ac_try;; |
| 23283 | esac |
| 23284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23285 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23286 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23288 | rm -f conftest.er1 |
| 23289 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23291 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23292 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23293 | { (case "(($ac_try" in |
| 23294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23295 | *) ac_try_echo=$ac_try;; |
| 23296 | esac |
| 23297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23298 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23299 | ac_status=$? |
| 23300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23301 | (exit $ac_status); }; } && |
| 23302 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23303 | { (case "(($ac_try" in |
| 23304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23305 | *) ac_try_echo=$ac_try;; |
| 23306 | esac |
| 23307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23308 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23309 | ac_status=$? |
| 23310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23311 | (exit $ac_status); }; }; then |
| 23312 | ac_cv_member_struct_option_name=yes |
| 23313 | else |
| 23314 | echo "$as_me: failed program was:" >&5 |
| 23315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23316 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23317 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23318 | /* confdefs.h. */ |
| 23319 | _ACEOF |
| 23320 | cat confdefs.h >>conftest.$ac_ext |
| 23321 | cat >>conftest.$ac_ext <<_ACEOF |
| 23322 | /* end confdefs.h. */ |
| 23323 | #ifdef HAVE_GETOPT_H |
| 23324 | #include <getopt.h> |
| 23325 | #endif |
| 23326 | |
| 23327 | int |
| 23328 | main () |
| 23329 | { |
| 23330 | static struct option ac_aggr; |
| 23331 | if (sizeof ac_aggr.name) |
| 23332 | return 0; |
| 23333 | ; |
| 23334 | return 0; |
| 23335 | } |
| 23336 | _ACEOF |
| 23337 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23338 | if { (ac_try="$ac_compile" |
| 23339 | case "(($ac_try" in |
| 23340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23341 | *) ac_try_echo=$ac_try;; |
| 23342 | esac |
| 23343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23344 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23345 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23347 | rm -f conftest.er1 |
| 23348 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23350 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23352 | { (case "(($ac_try" in |
| 23353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23354 | *) ac_try_echo=$ac_try;; |
| 23355 | esac |
| 23356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23357 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23358 | ac_status=$? |
| 23359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23360 | (exit $ac_status); }; } && |
| 23361 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23362 | { (case "(($ac_try" in |
| 23363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23364 | *) ac_try_echo=$ac_try;; |
| 23365 | esac |
| 23366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23367 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23368 | ac_status=$? |
| 23369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23370 | (exit $ac_status); }; }; then |
| 23371 | ac_cv_member_struct_option_name=yes |
| 23372 | else |
| 23373 | echo "$as_me: failed program was:" >&5 |
| 23374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23375 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23376 | ac_cv_member_struct_option_name=no |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23377 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23378 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23380 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23381 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23383 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23384 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5 |
| 23385 | echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; } |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23386 | if test $ac_cv_member_struct_option_name = yes; then |
| 23387 | |
| 23388 | cat >>confdefs.h <<_ACEOF |
| 23389 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 23390 | _ACEOF |
| 23391 | |
| 23392 | |
| 23393 | fi |
| 23394 | |
| 23395 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23396 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 23397 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; } |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23398 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 23399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23400 | else |
| 23401 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23402 | /* confdefs.h. */ |
| 23403 | _ACEOF |
| 23404 | cat confdefs.h >>conftest.$ac_ext |
| 23405 | cat >>conftest.$ac_ext <<_ACEOF |
| 23406 | /* end confdefs.h. */ |
| 23407 | $ac_includes_default |
| 23408 | int |
| 23409 | main () |
| 23410 | { |
| 23411 | static struct stat ac_aggr; |
| 23412 | if (ac_aggr.st_blocks) |
| 23413 | return 0; |
| 23414 | ; |
| 23415 | return 0; |
| 23416 | } |
| 23417 | _ACEOF |
| 23418 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23419 | if { (ac_try="$ac_compile" |
| 23420 | case "(($ac_try" in |
| 23421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23422 | *) ac_try_echo=$ac_try;; |
| 23423 | esac |
| 23424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23425 | (eval "$ac_compile") 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23426 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23428 | rm -f conftest.er1 |
| 23429 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23431 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23432 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23433 | { (case "(($ac_try" in |
| 23434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23435 | *) ac_try_echo=$ac_try;; |
| 23436 | esac |
| 23437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23438 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23439 | ac_status=$? |
| 23440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23441 | (exit $ac_status); }; } && |
| 23442 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23443 | { (case "(($ac_try" in |
| 23444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23445 | *) ac_try_echo=$ac_try;; |
| 23446 | esac |
| 23447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23448 | (eval "$ac_try") 2>&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23449 | ac_status=$? |
| 23450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23451 | (exit $ac_status); }; }; then |
| 23452 | ac_cv_member_struct_stat_st_blocks=yes |
| 23453 | else |
| 23454 | echo "$as_me: failed program was:" >&5 |
| 23455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23456 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23457 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23458 | /* confdefs.h. */ |
| 23459 | _ACEOF |
| 23460 | cat confdefs.h >>conftest.$ac_ext |
| 23461 | cat >>conftest.$ac_ext <<_ACEOF |
| 23462 | /* end confdefs.h. */ |
| 23463 | $ac_includes_default |
| 23464 | int |
| 23465 | main () |
| 23466 | { |
| 23467 | static struct stat ac_aggr; |
| 23468 | if (sizeof ac_aggr.st_blocks) |
| 23469 | return 0; |
| 23470 | ; |
| 23471 | return 0; |
| 23472 | } |
| 23473 | _ACEOF |
| 23474 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23475 | if { (ac_try="$ac_compile" |
| 23476 | case "(($ac_try" in |
| 23477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23478 | *) ac_try_echo=$ac_try;; |
| 23479 | esac |
| 23480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23481 | (eval "$ac_compile") 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23482 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23484 | rm -f conftest.er1 |
| 23485 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23487 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23488 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23489 | { (case "(($ac_try" in |
| 23490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23491 | *) ac_try_echo=$ac_try;; |
| 23492 | esac |
| 23493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23494 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23495 | ac_status=$? |
| 23496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23497 | (exit $ac_status); }; } && |
| 23498 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23499 | { (case "(($ac_try" in |
| 23500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23501 | *) ac_try_echo=$ac_try;; |
| 23502 | esac |
| 23503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23504 | (eval "$ac_try") 2>&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23505 | ac_status=$? |
| 23506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23507 | (exit $ac_status); }; }; then |
| 23508 | ac_cv_member_struct_stat_st_blocks=yes |
| 23509 | else |
| 23510 | echo "$as_me: failed program was:" >&5 |
| 23511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23512 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23513 | ac_cv_member_struct_stat_st_blocks=no |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23514 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23515 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23517 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23518 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23520 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23521 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 23522 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23523 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
| 23524 | |
| 23525 | cat >>confdefs.h <<_ACEOF |
| 23526 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 23527 | _ACEOF |
| 23528 | |
| 23529 | |
| 23530 | fi |
| 23531 | |
| 23532 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23533 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 |
| 23534 | echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; } |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23535 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then |
| 23536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23537 | else |
| 23538 | cat >conftest.$ac_ext <<_ACEOF |
| 23539 | /* confdefs.h. */ |
| 23540 | _ACEOF |
| 23541 | cat confdefs.h >>conftest.$ac_ext |
| 23542 | cat >>conftest.$ac_ext <<_ACEOF |
| 23543 | /* end confdefs.h. */ |
| 23544 | #ifdef HAVE_SYS_TYPES_H |
| 23545 | #include <sys/types.h> |
| 23546 | #endif |
| 23547 | #ifdef HAVE_NETINET_IN_H |
| 23548 | #include <netinet/in.h> |
| 23549 | #endif |
| 23550 | |
| 23551 | int |
| 23552 | main () |
| 23553 | { |
| 23554 | static struct sockaddr_in6 ac_aggr; |
| 23555 | if (ac_aggr.sin6_scope_id) |
| 23556 | return 0; |
| 23557 | ; |
| 23558 | return 0; |
| 23559 | } |
| 23560 | _ACEOF |
| 23561 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23562 | if { (ac_try="$ac_compile" |
| 23563 | case "(($ac_try" in |
| 23564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23565 | *) ac_try_echo=$ac_try;; |
| 23566 | esac |
| 23567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23568 | (eval "$ac_compile") 2>conftest.er1 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23569 | ac_status=$? |
| 23570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23571 | rm -f conftest.er1 |
| 23572 | cat conftest.err >&5 |
| 23573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23574 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23576 | { (case "(($ac_try" in |
| 23577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23578 | *) ac_try_echo=$ac_try;; |
| 23579 | esac |
| 23580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23581 | (eval "$ac_try") 2>&5 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23582 | ac_status=$? |
| 23583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23584 | (exit $ac_status); }; } && |
| 23585 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23586 | { (case "(($ac_try" in |
| 23587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23588 | *) ac_try_echo=$ac_try;; |
| 23589 | esac |
| 23590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23591 | (eval "$ac_try") 2>&5 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23592 | ac_status=$? |
| 23593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23594 | (exit $ac_status); }; }; then |
| 23595 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes |
| 23596 | else |
| 23597 | echo "$as_me: failed program was:" >&5 |
| 23598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23599 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23600 | cat >conftest.$ac_ext <<_ACEOF |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23601 | /* confdefs.h. */ |
| 23602 | _ACEOF |
| 23603 | cat confdefs.h >>conftest.$ac_ext |
| 23604 | cat >>conftest.$ac_ext <<_ACEOF |
| 23605 | /* end confdefs.h. */ |
| 23606 | #ifdef HAVE_SYS_TYPES_H |
| 23607 | #include <sys/types.h> |
| 23608 | #endif |
| 23609 | #ifdef HAVE_NETINET_IN_H |
| 23610 | #include <netinet/in.h> |
| 23611 | #endif |
| 23612 | |
| 23613 | int |
| 23614 | main () |
| 23615 | { |
| 23616 | static struct sockaddr_in6 ac_aggr; |
| 23617 | if (sizeof ac_aggr.sin6_scope_id) |
| 23618 | return 0; |
| 23619 | ; |
| 23620 | return 0; |
| 23621 | } |
| 23622 | _ACEOF |
| 23623 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23624 | if { (ac_try="$ac_compile" |
| 23625 | case "(($ac_try" in |
| 23626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23627 | *) ac_try_echo=$ac_try;; |
| 23628 | esac |
| 23629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23630 | (eval "$ac_compile") 2>conftest.er1 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23631 | ac_status=$? |
| 23632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23633 | rm -f conftest.er1 |
| 23634 | cat conftest.err >&5 |
| 23635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23636 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23638 | { (case "(($ac_try" in |
| 23639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23640 | *) ac_try_echo=$ac_try;; |
| 23641 | esac |
| 23642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23643 | (eval "$ac_try") 2>&5 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23644 | ac_status=$? |
| 23645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23646 | (exit $ac_status); }; } && |
| 23647 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23648 | { (case "(($ac_try" in |
| 23649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23650 | *) ac_try_echo=$ac_try;; |
| 23651 | esac |
| 23652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23653 | (eval "$ac_try") 2>&5 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23654 | ac_status=$? |
| 23655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23656 | (exit $ac_status); }; }; then |
| 23657 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes |
| 23658 | else |
| 23659 | echo "$as_me: failed program was:" >&5 |
| 23660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23661 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23662 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23663 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23664 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23666 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23667 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23669 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23670 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 |
| 23671 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; } |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23672 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then |
| 23673 | |
| 23674 | cat >>confdefs.h <<_ACEOF |
| 23675 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 23676 | _ACEOF |
| 23677 | |
| 23678 | |
| 23679 | fi |
| 23680 | |
| 23681 | |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23682 | { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5 |
| 23683 | echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; } |
| 23684 | if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then |
| 23685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23686 | else |
| 23687 | cat >conftest.$ac_ext <<_ACEOF |
| 23688 | /* confdefs.h. */ |
| 23689 | _ACEOF |
| 23690 | cat confdefs.h >>conftest.$ac_ext |
| 23691 | cat >>conftest.$ac_ext <<_ACEOF |
| 23692 | /* end confdefs.h. */ |
| 23693 | #ifdef HAVE_SYS_TYPES_H |
| 23694 | #include <sys/types.h> |
| 23695 | #endif |
| 23696 | #ifdef HAVE_NETINET_IN_H |
| 23697 | # include <netinet/in.h> |
| 23698 | #endif |
| 23699 | #ifdef HAVE_ARPA_NAMESER_H |
| 23700 | # include <arpa/nameser.h> |
| 23701 | #endif |
| 23702 | |
| 23703 | int |
| 23704 | main () |
| 23705 | { |
| 23706 | static ns_msg ac_aggr; |
| 23707 | if (ac_aggr._msg_ptr) |
| 23708 | return 0; |
| 23709 | ; |
| 23710 | return 0; |
| 23711 | } |
| 23712 | _ACEOF |
| 23713 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23714 | if { (ac_try="$ac_compile" |
| 23715 | case "(($ac_try" in |
| 23716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23717 | *) ac_try_echo=$ac_try;; |
| 23718 | esac |
| 23719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23720 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23721 | ac_status=$? |
| 23722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23723 | rm -f conftest.er1 |
| 23724 | cat conftest.err >&5 |
| 23725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23726 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23728 | { (case "(($ac_try" in |
| 23729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23730 | *) ac_try_echo=$ac_try;; |
| 23731 | esac |
| 23732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23733 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23734 | ac_status=$? |
| 23735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23736 | (exit $ac_status); }; } && |
| 23737 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23738 | { (case "(($ac_try" in |
| 23739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23740 | *) ac_try_echo=$ac_try;; |
| 23741 | esac |
| 23742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23743 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23744 | ac_status=$? |
| 23745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23746 | (exit $ac_status); }; }; then |
| 23747 | ac_cv_member_ns_msg__msg_ptr=yes |
| 23748 | else |
| 23749 | echo "$as_me: failed program was:" >&5 |
| 23750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23751 | |
| 23752 | cat >conftest.$ac_ext <<_ACEOF |
| 23753 | /* confdefs.h. */ |
| 23754 | _ACEOF |
| 23755 | cat confdefs.h >>conftest.$ac_ext |
| 23756 | cat >>conftest.$ac_ext <<_ACEOF |
| 23757 | /* end confdefs.h. */ |
| 23758 | #ifdef HAVE_SYS_TYPES_H |
| 23759 | #include <sys/types.h> |
| 23760 | #endif |
| 23761 | #ifdef HAVE_NETINET_IN_H |
| 23762 | # include <netinet/in.h> |
| 23763 | #endif |
| 23764 | #ifdef HAVE_ARPA_NAMESER_H |
| 23765 | # include <arpa/nameser.h> |
| 23766 | #endif |
| 23767 | |
| 23768 | int |
| 23769 | main () |
| 23770 | { |
| 23771 | static ns_msg ac_aggr; |
| 23772 | if (sizeof ac_aggr._msg_ptr) |
| 23773 | return 0; |
| 23774 | ; |
| 23775 | return 0; |
| 23776 | } |
| 23777 | _ACEOF |
| 23778 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23779 | if { (ac_try="$ac_compile" |
| 23780 | case "(($ac_try" in |
| 23781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23782 | *) ac_try_echo=$ac_try;; |
| 23783 | esac |
| 23784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23785 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23786 | ac_status=$? |
| 23787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23788 | rm -f conftest.er1 |
| 23789 | cat conftest.err >&5 |
| 23790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23791 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23792 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23793 | { (case "(($ac_try" in |
| 23794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23795 | *) ac_try_echo=$ac_try;; |
| 23796 | esac |
| 23797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23798 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23799 | ac_status=$? |
| 23800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23801 | (exit $ac_status); }; } && |
| 23802 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23803 | { (case "(($ac_try" in |
| 23804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23805 | *) ac_try_echo=$ac_try;; |
| 23806 | esac |
| 23807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23808 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23809 | ac_status=$? |
| 23810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23811 | (exit $ac_status); }; }; then |
| 23812 | ac_cv_member_ns_msg__msg_ptr=yes |
| 23813 | else |
| 23814 | echo "$as_me: failed program was:" >&5 |
| 23815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23816 | |
| 23817 | ac_cv_member_ns_msg__msg_ptr=no |
| 23818 | fi |
| 23819 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23821 | fi |
| 23822 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23824 | fi |
| 23825 | { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5 |
| 23826 | echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; } |
| 23827 | if test $ac_cv_member_ns_msg__msg_ptr = yes; then |
| 23828 | |
| 23829 | cat >>confdefs.h <<_ACEOF |
| 23830 | #define HAVE_NS_MSG__MSG_PTR 1 |
| 23831 | _ACEOF |
| 23832 | |
| 23833 | |
| 23834 | fi |
| 23835 | |
| 23836 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23837 | { echo "$as_me:$LINENO: checking for timezone variable" >&5 |
| 23838 | echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23839 | if test "${ac_cv_have_timezone+set}" = set; then |
| 23840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23841 | else |
| 23842 | cat >conftest.$ac_ext <<_ACEOF |
| 23843 | /* confdefs.h. */ |
| 23844 | _ACEOF |
| 23845 | cat confdefs.h >>conftest.$ac_ext |
| 23846 | cat >>conftest.$ac_ext <<_ACEOF |
| 23847 | /* end confdefs.h. */ |
| 23848 | #include <time.h> |
| 23849 | int |
| 23850 | main () |
| 23851 | { |
| 23852 | timezone; |
| 23853 | ; |
| 23854 | return 0; |
| 23855 | } |
| 23856 | _ACEOF |
| 23857 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23858 | if { (ac_try="$ac_link" |
| 23859 | case "(($ac_try" in |
| 23860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23861 | *) ac_try_echo=$ac_try;; |
| 23862 | esac |
| 23863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23864 | (eval "$ac_link") 2>conftest.er1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23865 | ac_status=$? |
| 23866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23867 | rm -f conftest.er1 |
| 23868 | cat conftest.err >&5 |
| 23869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23870 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23871 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23872 | { (case "(($ac_try" in |
| 23873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23874 | *) ac_try_echo=$ac_try;; |
| 23875 | esac |
| 23876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23877 | (eval "$ac_try") 2>&5 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23878 | ac_status=$? |
| 23879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23880 | (exit $ac_status); }; } && |
| 23881 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23882 | { (case "(($ac_try" in |
| 23883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23884 | *) ac_try_echo=$ac_try;; |
| 23885 | esac |
| 23886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23887 | (eval "$ac_try") 2>&5 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23888 | ac_status=$? |
| 23889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23890 | (exit $ac_status); }; }; then |
| 23891 | ac_cv_have_timezone="yes" |
| 23892 | else |
| 23893 | echo "$as_me: failed program was:" >&5 |
| 23894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23895 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23896 | ac_cv_have_timezone="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23897 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23898 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23899 | rm -f core conftest.err conftest.$ac_objext \ |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23900 | conftest$ac_exeext conftest.$ac_ext |
| 23901 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23902 | { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5 |
| 23903 | echo "${ECHO_T}$ac_cv_have_timezone" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23904 | if test "$ac_cv_have_timezone" = "yes" |
| 23905 | then |
| 23906 | |
| 23907 | cat >>confdefs.h <<\_ACEOF |
| 23908 | #define HAVE_TIMEZONE 1 |
| 23909 | _ACEOF |
| 23910 | |
| 23911 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23912 | { echo "$as_me:$LINENO: checking for daylight variable" >&5 |
| 23913 | echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23914 | if test "${ac_cv_have_daylight+set}" = set; then |
| 23915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23916 | else |
| 23917 | cat >conftest.$ac_ext <<_ACEOF |
| 23918 | /* confdefs.h. */ |
| 23919 | _ACEOF |
| 23920 | cat confdefs.h >>conftest.$ac_ext |
| 23921 | cat >>conftest.$ac_ext <<_ACEOF |
| 23922 | /* end confdefs.h. */ |
| 23923 | #include <time.h> |
| 23924 | int |
| 23925 | main () |
| 23926 | { |
| 23927 | daylight; |
| 23928 | ; |
| 23929 | return 0; |
| 23930 | } |
| 23931 | _ACEOF |
| 23932 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23933 | if { (ac_try="$ac_link" |
| 23934 | case "(($ac_try" in |
| 23935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23936 | *) ac_try_echo=$ac_try;; |
| 23937 | esac |
| 23938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23939 | (eval "$ac_link") 2>conftest.er1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23940 | ac_status=$? |
| 23941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23942 | rm -f conftest.er1 |
| 23943 | cat conftest.err >&5 |
| 23944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23945 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23946 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23947 | { (case "(($ac_try" in |
| 23948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23949 | *) ac_try_echo=$ac_try;; |
| 23950 | esac |
| 23951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23952 | (eval "$ac_try") 2>&5 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23953 | ac_status=$? |
| 23954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23955 | (exit $ac_status); }; } && |
| 23956 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23957 | { (case "(($ac_try" in |
| 23958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23959 | *) ac_try_echo=$ac_try;; |
| 23960 | esac |
| 23961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23962 | (eval "$ac_try") 2>&5 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23963 | ac_status=$? |
| 23964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23965 | (exit $ac_status); }; }; then |
| 23966 | ac_cv_have_daylight="yes" |
| 23967 | else |
| 23968 | echo "$as_me: failed program was:" >&5 |
| 23969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23970 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23971 | ac_cv_have_daylight="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23972 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23973 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23974 | rm -f core conftest.err conftest.$ac_objext \ |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23975 | conftest$ac_exeext conftest.$ac_ext |
| 23976 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23977 | { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5 |
| 23978 | echo "${ECHO_T}$ac_cv_have_daylight" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23979 | if test "$ac_cv_have_daylight" = "yes" |
| 23980 | then |
| 23981 | |
| 23982 | cat >>confdefs.h <<\_ACEOF |
| 23983 | #define HAVE_DAYLIGHT 1 |
| 23984 | _ACEOF |
| 23985 | |
| 23986 | fi |
| 23987 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 23988 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 23989 | case $host_cpu in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23990 | *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5 |
| 23991 | echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23992 | if test "${ac_cv_cpp_def___i386__+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 23993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 23994 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 23995 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 23996 | /* confdefs.h. */ |
| 23997 | _ACEOF |
| 23998 | cat confdefs.h >>conftest.$ac_ext |
| 23999 | cat >>conftest.$ac_ext <<_ACEOF |
| 24000 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24001 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 24002 | yes |
| 24003 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24004 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 24005 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24006 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24007 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 24008 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24009 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 24010 | fi |
| 24011 | rm -f conftest* |
| 24012 | |
| 24013 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24014 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5 |
| 24015 | echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24016 | if test $ac_cv_cpp_def___i386__ = yes; then |
| 24017 | CFLAGS="$CFLAGS -D__i386__" |
| 24018 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 24019 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24020 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24021 | *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5 |
| 24022 | echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; } |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 24023 | if test "${ac_cv_cpp_def___x86_64__+set}" = set; then |
| 24024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24025 | else |
| 24026 | cat >conftest.$ac_ext <<_ACEOF |
| 24027 | /* confdefs.h. */ |
| 24028 | _ACEOF |
| 24029 | cat confdefs.h >>conftest.$ac_ext |
| 24030 | cat >>conftest.$ac_ext <<_ACEOF |
| 24031 | /* end confdefs.h. */ |
| 24032 | #ifndef __x86_64__ |
| 24033 | yes |
| 24034 | #endif |
| 24035 | _ACEOF |
| 24036 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24037 | $EGREP "yes" >/dev/null 2>&1; then |
| 24038 | ac_cv_cpp_def___x86_64__=yes |
| 24039 | else |
| 24040 | ac_cv_cpp_def___x86_64__=no |
| 24041 | fi |
| 24042 | rm -f conftest* |
| 24043 | |
| 24044 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24045 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5 |
| 24046 | echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; } |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 24047 | if test $ac_cv_cpp_def___x86_64__ = yes; then |
| 24048 | CFLAGS="$CFLAGS -D__x86_64__" |
| 24049 | LINTFLAGS="$LINTFLAGS -D__x86_64__" |
| 24050 | fi |
Alexandre Julliard | 58c6419 | 2006-07-10 13:05:20 +0200 | [diff] [blame] | 24051 | |
| 24052 | { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5 |
| 24053 | echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; } |
| 24054 | if test "${ac_cv_cpp_def__WIN64+set}" = set; then |
| 24055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24056 | else |
| 24057 | cat >conftest.$ac_ext <<_ACEOF |
| 24058 | /* confdefs.h. */ |
| 24059 | _ACEOF |
| 24060 | cat confdefs.h >>conftest.$ac_ext |
| 24061 | cat >>conftest.$ac_ext <<_ACEOF |
| 24062 | /* end confdefs.h. */ |
| 24063 | #ifndef _WIN64 |
| 24064 | yes |
| 24065 | #endif |
| 24066 | _ACEOF |
| 24067 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24068 | $EGREP "yes" >/dev/null 2>&1; then |
| 24069 | ac_cv_cpp_def__WIN64=yes |
| 24070 | else |
| 24071 | ac_cv_cpp_def__WIN64=no |
| 24072 | fi |
| 24073 | rm -f conftest* |
| 24074 | |
| 24075 | fi |
| 24076 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5 |
| 24077 | echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; } |
| 24078 | if test $ac_cv_cpp_def__WIN64 = yes; then |
| 24079 | CFLAGS="$CFLAGS -D_WIN64" |
| 24080 | LINTFLAGS="$LINTFLAGS -D_WIN64" |
| 24081 | fi |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 24082 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24083 | *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5 |
| 24084 | echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24085 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 24086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24087 | else |
| 24088 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24089 | /* confdefs.h. */ |
| 24090 | _ACEOF |
| 24091 | cat confdefs.h >>conftest.$ac_ext |
| 24092 | cat >>conftest.$ac_ext <<_ACEOF |
| 24093 | /* end confdefs.h. */ |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 24094 | #ifndef __ALPHA__ |
| 24095 | yes |
| 24096 | #endif |
| 24097 | _ACEOF |
| 24098 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24099 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24100 | ac_cv_cpp_def___ALPHA__=yes |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 24101 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24102 | ac_cv_cpp_def___ALPHA__=no |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 24103 | fi |
| 24104 | rm -f conftest* |
| 24105 | |
| 24106 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24107 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5 |
| 24108 | echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24109 | if test $ac_cv_cpp_def___ALPHA__ = yes; then |
| 24110 | CFLAGS="$CFLAGS -D__ALPHA__" |
| 24111 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 24112 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24113 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24114 | *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5 |
| 24115 | echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24116 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24118 | else |
| 24119 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24120 | /* confdefs.h. */ |
| 24121 | _ACEOF |
| 24122 | cat confdefs.h >>conftest.$ac_ext |
| 24123 | cat >>conftest.$ac_ext <<_ACEOF |
| 24124 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24125 | #ifndef __sparc__ |
| 24126 | yes |
| 24127 | #endif |
| 24128 | _ACEOF |
| 24129 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24130 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24131 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24132 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24133 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24134 | fi |
| 24135 | rm -f conftest* |
| 24136 | |
| 24137 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24138 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5 |
| 24139 | echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24140 | if test $ac_cv_cpp_def___sparc__ = yes; then |
| 24141 | CFLAGS="$CFLAGS -D__sparc__" |
| 24142 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24143 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24144 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24145 | *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5 |
| 24146 | echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; } |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 24147 | if test "${ac_cv_cpp_def___powerpc__+set}" = set; then |
| 24148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24149 | else |
| 24150 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 24151 | /* confdefs.h. */ |
| 24152 | _ACEOF |
| 24153 | cat confdefs.h >>conftest.$ac_ext |
| 24154 | cat >>conftest.$ac_ext <<_ACEOF |
| 24155 | /* end confdefs.h. */ |
| 24156 | #ifndef __powerpc__ |
| 24157 | yes |
| 24158 | #endif |
| 24159 | _ACEOF |
| 24160 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24161 | $EGREP "yes" >/dev/null 2>&1; then |
| 24162 | ac_cv_cpp_def___powerpc__=yes |
| 24163 | else |
| 24164 | ac_cv_cpp_def___powerpc__=no |
| 24165 | fi |
| 24166 | rm -f conftest* |
| 24167 | |
| 24168 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24169 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5 |
| 24170 | echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; } |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 24171 | if test $ac_cv_cpp_def___powerpc__ = yes; then |
| 24172 | CFLAGS="$CFLAGS -D__powerpc__" |
| 24173 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
| 24174 | fi |
| 24175 | ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24176 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24177 | |
| 24178 | case $host_vendor in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24179 | *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5 |
| 24180 | echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24181 | if test "${ac_cv_cpp_def___sun__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24183 | else |
| 24184 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24185 | /* confdefs.h. */ |
| 24186 | _ACEOF |
| 24187 | cat confdefs.h >>conftest.$ac_ext |
| 24188 | cat >>conftest.$ac_ext <<_ACEOF |
| 24189 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24190 | #ifndef __sun__ |
| 24191 | yes |
| 24192 | #endif |
| 24193 | _ACEOF |
| 24194 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24195 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24196 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24197 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24198 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24199 | fi |
| 24200 | rm -f conftest* |
| 24201 | |
| 24202 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24203 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5 |
| 24204 | echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24205 | if test $ac_cv_cpp_def___sun__ = yes; then |
| 24206 | CFLAGS="$CFLAGS -D__sun__" |
| 24207 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24208 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24209 | ;; |
| 24210 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24211 | |
| 24212 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24213 | |
| 24214 | |
| 24215 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24216 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 24217 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24218 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 24219 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24220 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24221 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24222 | ac_config_commands="$ac_config_commands dlls/user/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24223 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24224 | ac_config_commands="$ac_config_commands dlls/wineps.drv/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24225 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24226 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24227 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 24228 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 24229 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24230 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24231 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 24232 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 24233 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24234 | |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 24235 | MAKE_IMPLIB_RULES=dlls/Makeimplib.rules |
| 24236 | |
| 24237 | |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 24238 | MAKE_TEST_RULES=dlls/Maketest.rules |
| 24239 | |
| 24240 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 24241 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 24242 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24243 | |
Alexandre Julliard | fdfc24c | 2006-08-05 21:17:11 +0200 | [diff] [blame] | 24244 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hlink/Makefile dlls/hlink/tests/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24245 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 24246 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24247 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24248 | # This file is a shell script that caches the results of configure |
| 24249 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24250 | # scripts and configure runs, see configure's option --config-cache. |
| 24251 | # It is not useful on other systems. If it contains results you don't |
| 24252 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24253 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24254 | # config.status only pays attention to the cache file if you give it |
| 24255 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24256 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24257 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24258 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 24259 | # following values. |
| 24260 | |
| 24261 | _ACEOF |
| 24262 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 24263 | # The following way of writing the cache mishandles newlines in values, |
| 24264 | # but we know of no workaround that is simple, portable, and efficient. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24265 | # So, we kill variables containing newlines. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24266 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 24267 | # and sets the high bit in the cache file unless we assign to the vars. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24268 | ( |
| 24269 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 24270 | eval ac_val=\$$ac_var |
| 24271 | case $ac_val in #( |
| 24272 | *${as_nl}*) |
| 24273 | case $ac_var in #( |
| 24274 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 24275 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 24276 | esac |
| 24277 | case $ac_var in #( |
| 24278 | _ | IFS | as_nl) ;; #( |
| 24279 | *) $as_unset $ac_var ;; |
| 24280 | esac ;; |
| 24281 | esac |
| 24282 | done |
| 24283 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24284 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24285 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 24286 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24287 | # `set' does not quote correctly, so add quotes (double-quote |
| 24288 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 24289 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24290 | "s/'/'\\\\''/g; |
| 24291 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24292 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24293 | *) |
| 24294 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24295 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24296 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24297 | esac | |
| 24298 | sort |
| 24299 | ) | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24300 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24301 | /^ac_cv_env_/b end |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24302 | t clear |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24303 | :clear |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24304 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 24305 | t end |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24306 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 24307 | :end' >>confcache |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24308 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 24309 | if test -w "$cache_file"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24310 | test "x$cache_file" != "x/dev/null" && |
| 24311 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 24312 | echo "$as_me: updating cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24313 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24314 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24315 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 24316 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24317 | fi |
| 24318 | fi |
| 24319 | rm -f confcache |
| 24320 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24321 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 24322 | # Let make expand exec_prefix. |
| 24323 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 24324 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 24325 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24326 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24327 | ac_libobjs= |
| 24328 | ac_ltlibobjs= |
| 24329 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 24330 | # 1. Remove the extension, and $U if already installed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24331 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 24332 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 24333 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 24334 | # will be set to the directory where LIBOBJS objects are built. |
| 24335 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 24336 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24337 | done |
| 24338 | LIBOBJS=$ac_libobjs |
| 24339 | |
| 24340 | LTLIBOBJS=$ac_ltlibobjs |
| 24341 | |
| 24342 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24343 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24344 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24345 | ac_clean_files_save=$ac_clean_files |
| 24346 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24347 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24348 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 24349 | cat >$CONFIG_STATUS <<_ACEOF |
| 24350 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24351 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24352 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24353 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24354 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24355 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24356 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24357 | ac_cs_recheck=false |
| 24358 | ac_cs_silent=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24359 | SHELL=\${CONFIG_SHELL-$SHELL} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24360 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24361 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24362 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24363 | ## --------------------- ## |
| 24364 | ## M4sh Initialization. ## |
| 24365 | ## --------------------- ## |
| 24366 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24367 | # Be Bourne compatible |
| 24368 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 24369 | emulate sh |
| 24370 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24371 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 24372 | # is contrary to our usage. Disable this feature. |
| 24373 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24374 | setopt NO_GLOB_SUBST |
| 24375 | else |
| 24376 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 24377 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24378 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24379 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24380 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24381 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24382 | # PATH needs CR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24383 | # Avoid depending upon Character Ranges. |
| 24384 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 24385 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 24386 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 24387 | as_cr_digits='0123456789' |
| 24388 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 24389 | |
| 24390 | # The user is always right. |
| 24391 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24392 | echo "#! /bin/sh" >conf$$.sh |
| 24393 | echo "exit 0" >>conf$$.sh |
| 24394 | chmod +x conf$$.sh |
| 24395 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24396 | PATH_SEPARATOR=';' |
| 24397 | else |
| 24398 | PATH_SEPARATOR=: |
| 24399 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24400 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24401 | fi |
| 24402 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24403 | # Support unset when possible. |
| 24404 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 24405 | as_unset=unset |
| 24406 | else |
| 24407 | as_unset=false |
| 24408 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24409 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24410 | |
| 24411 | # IFS |
| 24412 | # We need space, tab and new line, in precisely that order. Quoting is |
| 24413 | # there to prevent editors from complaining about space-tab. |
| 24414 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 24415 | # splitting by setting IFS to empty value.) |
| 24416 | as_nl=' |
| 24417 | ' |
| 24418 | IFS=" "" $as_nl" |
| 24419 | |
| 24420 | # Find who we are. Look in the path if we contain no directory separator. |
| 24421 | case $0 in |
| 24422 | *[\\/]* ) as_myself=$0 ;; |
| 24423 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24424 | for as_dir in $PATH |
| 24425 | do |
| 24426 | IFS=$as_save_IFS |
| 24427 | test -z "$as_dir" && as_dir=. |
| 24428 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 24429 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24430 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24431 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24432 | ;; |
| 24433 | esac |
| 24434 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 24435 | # in which case we are not to be found in the path. |
| 24436 | if test "x$as_myself" = x; then |
| 24437 | as_myself=$0 |
| 24438 | fi |
| 24439 | if test ! -f "$as_myself"; then |
| 24440 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 24441 | { (exit 1); exit 1; } |
| 24442 | fi |
| 24443 | |
| 24444 | # Work around bugs in pre-3.0 UWIN ksh. |
| 24445 | for as_var in ENV MAIL MAILPATH |
| 24446 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 24447 | done |
| 24448 | PS1='$ ' |
| 24449 | PS2='> ' |
| 24450 | PS4='+ ' |
| 24451 | |
| 24452 | # NLS nuisances. |
| 24453 | for as_var in \ |
| 24454 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 24455 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 24456 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24457 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24458 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 24459 | eval $as_var=C; export $as_var |
| 24460 | else |
| 24461 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 24462 | fi |
| 24463 | done |
| 24464 | |
| 24465 | # Required to use basename. |
| 24466 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 24467 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 24468 | as_expr=expr |
| 24469 | else |
| 24470 | as_expr=false |
| 24471 | fi |
| 24472 | |
| 24473 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 24474 | as_basename=basename |
| 24475 | else |
| 24476 | as_basename=false |
| 24477 | fi |
| 24478 | |
| 24479 | |
| 24480 | # Name of the executable. |
| 24481 | as_me=`$as_basename -- "$0" || |
| 24482 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 24483 | X"$0" : 'X\(//\)$' \| \ |
| 24484 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 24485 | echo X/"$0" | |
| 24486 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 24487 | s//\1/ |
| 24488 | q |
| 24489 | } |
| 24490 | /^X\/\(\/\/\)$/{ |
| 24491 | s//\1/ |
| 24492 | q |
| 24493 | } |
| 24494 | /^X\/\(\/\).*/{ |
| 24495 | s//\1/ |
| 24496 | q |
| 24497 | } |
| 24498 | s/.*/./; q'` |
| 24499 | |
| 24500 | # CDPATH. |
| 24501 | $as_unset CDPATH |
| 24502 | |
| 24503 | |
| 24504 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24505 | as_lineno_1=$LINENO |
| 24506 | as_lineno_2=$LINENO |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24507 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24508 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24509 | |
| 24510 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 24511 | # uniformly replaced by the line number. The first 'sed' inserts a |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24512 | # line-number line after each line using $LINENO; the second 'sed' |
| 24513 | # does the real work. The second script uses 'N' to pair each |
| 24514 | # line-number line with the line containing $LINENO, and appends |
| 24515 | # trailing '-' during substitution so that $LINENO is not a special |
| 24516 | # case at line end. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24517 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24518 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 24519 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 24520 | sed -n ' |
| 24521 | p |
| 24522 | /[$]LINENO/= |
| 24523 | ' <$as_myself | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24524 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24525 | s/[$]LINENO.*/&-/ |
| 24526 | t lineno |
| 24527 | b |
| 24528 | :lineno |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24529 | N |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24530 | :loop |
| 24531 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24532 | t loop |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24533 | s/-\n.*// |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24534 | ' >$as_me.lineno && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24535 | chmod +x "$as_me.lineno" || |
| 24536 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24537 | { (exit 1); exit 1; }; } |
| 24538 | |
| 24539 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 24540 | # (the dirname of $[0] is not the place where we might find the |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24541 | # original and so on. Autoconf is especially sensitive to this). |
| 24542 | . "./$as_me.lineno" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24543 | # Exit status is that of the last command. |
| 24544 | exit |
| 24545 | } |
| 24546 | |
| 24547 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24548 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24549 | as_dirname=dirname |
| 24550 | else |
| 24551 | as_dirname=false |
| 24552 | fi |
| 24553 | |
| 24554 | ECHO_C= ECHO_N= ECHO_T= |
| 24555 | case `echo -n x` in |
| 24556 | -n*) |
| 24557 | case `echo 'x\c'` in |
| 24558 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 24559 | *) ECHO_C='\c';; |
| 24560 | esac;; |
| 24561 | *) |
| 24562 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24563 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24564 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24565 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 24566 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24567 | as_expr=expr |
| 24568 | else |
| 24569 | as_expr=false |
| 24570 | fi |
| 24571 | |
| 24572 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24573 | if test -d conf$$.dir; then |
| 24574 | rm -f conf$$.dir/conf$$.file |
| 24575 | else |
| 24576 | rm -f conf$$.dir |
| 24577 | mkdir conf$$.dir |
| 24578 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24579 | echo >conf$$.file |
| 24580 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24581 | as_ln_s='ln -s' |
| 24582 | # ... but there are two gotchas: |
| 24583 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 24584 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 24585 | # In both cases, we have to default to `cp -p'. |
| 24586 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24587 | as_ln_s='cp -p' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24588 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 24589 | as_ln_s=ln |
| 24590 | else |
| 24591 | as_ln_s='cp -p' |
| 24592 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24593 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 24594 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24595 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24596 | if mkdir -p . 2>/dev/null; then |
| 24597 | as_mkdir_p=: |
| 24598 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24599 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24600 | as_mkdir_p=false |
| 24601 | fi |
| 24602 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24603 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 24604 | # systems may use methods other than mode bits to determine executability. |
| 24605 | cat >conf$$.file <<_ASEOF |
| 24606 | #! /bin/sh |
| 24607 | exit 0 |
| 24608 | _ASEOF |
| 24609 | chmod +x conf$$.file |
| 24610 | if test -x conf$$.file >/dev/null 2>&1; then |
| 24611 | as_executable_p="test -x" |
| 24612 | else |
| 24613 | as_executable_p=: |
| 24614 | fi |
| 24615 | rm -f conf$$.file |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24616 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24617 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24618 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24619 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24620 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24621 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24622 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24623 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24624 | exec 6>&1 |
| 24625 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24626 | # Save the log message, to keep $[0] and so on meaningful, and to |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24627 | # report actual input values of CONFIG_FILES etc. instead of their |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24628 | # values after options handling. |
| 24629 | ac_log=" |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 24630 | This file was extended by Wine $as_me 0.9.18, which was |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 24631 | generated by GNU Autoconf 2.60a. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24632 | |
| 24633 | CONFIG_FILES = $CONFIG_FILES |
| 24634 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 24635 | CONFIG_LINKS = $CONFIG_LINKS |
| 24636 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 24637 | $ $0 $@ |
| 24638 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24639 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 24640 | " |
| 24641 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24642 | _ACEOF |
| 24643 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24644 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24645 | # Files that config.status was made for. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24646 | config_files="$ac_config_files" |
| 24647 | config_headers="$ac_config_headers" |
| 24648 | config_commands="$ac_config_commands" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24649 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24650 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24651 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24652 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24653 | ac_cs_usage="\ |
| 24654 | \`$as_me' instantiates files from templates according to the |
| 24655 | current configuration. |
| 24656 | |
| 24657 | Usage: $0 [OPTIONS] [FILE]... |
| 24658 | |
| 24659 | -h, --help print this help, then exit |
| 24660 | -V, --version print version number, then exit |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24661 | -q, --quiet do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24662 | -d, --debug don't remove temporary files |
| 24663 | --recheck update $as_me by reconfiguring in the same conditions |
| 24664 | --file=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24665 | instantiate the configuration file FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24666 | --header=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24667 | instantiate the configuration header FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24668 | |
| 24669 | Configuration files: |
| 24670 | $config_files |
| 24671 | |
| 24672 | Configuration headers: |
| 24673 | $config_headers |
| 24674 | |
| 24675 | Configuration commands: |
| 24676 | $config_commands |
| 24677 | |
| 24678 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 24679 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24680 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24681 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24682 | ac_cs_version="\\ |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 24683 | Wine config.status 0.9.18 |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 24684 | configured by $0, generated by GNU Autoconf 2.60a, |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24685 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24686 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24687 | Copyright (C) 2006 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24688 | This config.status script is free software; the Free Software Foundation |
| 24689 | gives unlimited permission to copy, distribute and modify it." |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24690 | |
| 24691 | ac_pwd='$ac_pwd' |
| 24692 | srcdir='$srcdir' |
| 24693 | INSTALL='$INSTALL' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24694 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24695 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24696 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24697 | # If no file are specified by the user, then we need to provide default |
| 24698 | # value. By we need to know if files were specified by the user. |
| 24699 | ac_need_defaults=: |
| 24700 | while test $# != 0 |
| 24701 | do |
| 24702 | case $1 in |
| 24703 | --*=*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24704 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 24705 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24706 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24707 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24708 | *) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24709 | ac_option=$1 |
| 24710 | ac_optarg=$2 |
| 24711 | ac_shift=shift |
| 24712 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24713 | esac |
| 24714 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24715 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24716 | # Handling of the options. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24717 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 24718 | ac_cs_recheck=: ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24719 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 24720 | echo "$ac_cs_version"; exit ;; |
| 24721 | --debug | --debu | --deb | --de | --d | -d ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24722 | debug=: ;; |
| 24723 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24724 | $ac_shift |
| 24725 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24726 | ac_need_defaults=false;; |
| 24727 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24728 | $ac_shift |
| 24729 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24730 | ac_need_defaults=false;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24731 | --he | --h) |
| 24732 | # Conflict between --help and --header |
| 24733 | { echo "$as_me: error: ambiguous option: $1 |
| 24734 | Try \`$0 --help' for more information." >&2 |
| 24735 | { (exit 1); exit 1; }; };; |
| 24736 | --help | --hel | -h ) |
| 24737 | echo "$ac_cs_usage"; exit ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24738 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 24739 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 24740 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24741 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24742 | # This is an error. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24743 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 24744 | Try \`$0 --help' for more information." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24745 | { (exit 1); exit 1; }; } ;; |
| 24746 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24747 | *) ac_config_targets="$ac_config_targets $1" |
| 24748 | ac_need_defaults=false ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24749 | |
| 24750 | esac |
| 24751 | shift |
| 24752 | done |
| 24753 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24754 | ac_configure_extra_args= |
| 24755 | |
| 24756 | if $ac_cs_silent; then |
| 24757 | exec 6>/dev/null |
| 24758 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 24759 | fi |
| 24760 | |
| 24761 | _ACEOF |
| 24762 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24763 | if \$ac_cs_recheck; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24764 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24765 | CONFIG_SHELL=$SHELL |
| 24766 | export CONFIG_SHELL |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24767 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24768 | fi |
| 24769 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24770 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24771 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24772 | exec 5>>config.log |
| 24773 | { |
| 24774 | echo |
| 24775 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 24776 | ## Running $as_me. ## |
| 24777 | _ASBOX |
| 24778 | echo "$ac_log" |
| 24779 | } >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24780 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24781 | _ACEOF |
| 24782 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24783 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24784 | |
| 24785 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24786 | |
| 24787 | # Handling of arguments. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24788 | for ac_config_target in $ac_config_targets |
| 24789 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24790 | case $ac_config_target in |
| 24791 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
| 24792 | "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
| 24793 | "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; |
| 24794 | "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
| 24795 | "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
| 24796 | "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;; |
| 24797 | "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
| 24798 | "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 24799 | "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
| 24800 | "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;; |
| 24801 | "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24802 | "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 24803 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 24804 | "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 24805 | "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;; |
| 24806 | "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
| 24807 | "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;; |
| 24808 | "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;; |
| 24809 | "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;; |
| 24810 | "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;; |
| 24811 | "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;; |
| 24812 | "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 24813 | "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
| 24814 | "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;; |
| 24815 | "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;; |
| 24816 | "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;; |
| 24817 | "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;; |
| 24818 | "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;; |
| 24819 | "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
Aric Stewart | 9c3b12b | 2006-07-13 14:16:59 -0500 | [diff] [blame] | 24820 | "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24821 | "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
| 24822 | "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;; |
| 24823 | "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;; |
Detlef Riekenberg | 955fe0d | 2006-07-03 22:55:53 +0200 | [diff] [blame] | 24824 | "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;; |
Detlef Riekenberg | 5640b56 | 2006-06-20 06:12:36 +0200 | [diff] [blame] | 24825 | "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24826 | "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 24827 | "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
| 24828 | "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;; |
| 24829 | "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;; |
Maarten Lankhorst | d2ee387 | 2006-06-28 16:51:41 +0200 | [diff] [blame] | 24830 | "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24831 | "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;; |
| 24832 | "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; |
| 24833 | "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;; |
| 24834 | "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;; |
| 24835 | "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;; |
| 24836 | "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;; |
| 24837 | "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;; |
| 24838 | "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;; |
| 24839 | "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;; |
| 24840 | "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;; |
| 24841 | "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 24842 | "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
| 24843 | "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;; |
| 24844 | "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 24845 | "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
| 24846 | "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;; |
| 24847 | "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; |
| 24848 | "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;; |
| 24849 | "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;; |
| 24850 | "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;; |
| 24851 | "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;; |
| 24852 | "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;; |
| 24853 | "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;; |
| 24854 | "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;; |
| 24855 | "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;; |
| 24856 | "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;; |
| 24857 | "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;; |
| 24858 | "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;; |
| 24859 | "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 24860 | "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
| 24861 | "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;; |
| 24862 | "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;; |
| 24863 | "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
| 24864 | "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; |
| 24865 | "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;; |
| 24866 | "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;; |
| 24867 | "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;; |
| 24868 | "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;; |
| 24869 | "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;; |
| 24870 | "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
| 24871 | "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;; |
| 24872 | "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
| 24873 | "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;; |
| 24874 | "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;; |
| 24875 | "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;; |
Mike McCormack | b732e9b | 2006-06-06 19:26:24 +0900 | [diff] [blame] | 24876 | "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;; |
Mike McCormack | a430db9 | 2006-08-02 02:19:15 +0900 | [diff] [blame] | 24877 | "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24878 | "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;; |
| 24879 | "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
| 24880 | "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;; |
| 24881 | "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;; |
| 24882 | "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 24883 | "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
Mike McCormack | 4d3877b | 2006-07-11 11:13:18 +0900 | [diff] [blame] | 24884 | "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;; |
| 24885 | "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24886 | "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;; |
| 24887 | "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;; |
| 24888 | "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;; |
| 24889 | "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
| 24890 | "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;; |
| 24891 | "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;; |
| 24892 | "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;; |
| 24893 | "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
| 24894 | "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;; |
| 24895 | "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;; |
| 24896 | "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;; |
| 24897 | "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;; |
| 24898 | "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;; |
| 24899 | "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;; |
| 24900 | "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;; |
| 24901 | "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;; |
| 24902 | "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;; |
| 24903 | "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;; |
| 24904 | "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 24905 | "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;; |
| 24906 | "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;; |
| 24907 | "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;; |
| 24908 | "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;; |
| 24909 | "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;; |
| 24910 | "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;; |
| 24911 | "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;; |
| 24912 | "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
| 24913 | "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;; |
| 24914 | "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;; |
| 24915 | "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;; |
| 24916 | "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;; |
| 24917 | "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;; |
| 24918 | "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;; |
| 24919 | "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
| 24920 | "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;; |
| 24921 | "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
| 24922 | "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;; |
| 24923 | "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
| 24924 | "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;; |
| 24925 | "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
| 24926 | "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;; |
| 24927 | "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;; |
| 24928 | "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;; |
| 24929 | "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;; |
| 24930 | "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;; |
| 24931 | "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;; |
| 24932 | "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;; |
| 24933 | "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;; |
| 24934 | "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
| 24935 | "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; |
| 24936 | "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;; |
| 24937 | "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
| 24938 | "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; |
| 24939 | "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;; |
| 24940 | "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;; |
| 24941 | "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 24942 | "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;; |
| 24943 | "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
| 24944 | "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;; |
| 24945 | "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;; |
| 24946 | "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
| 24947 | "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;; |
| 24948 | "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;; |
| 24949 | "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 24950 | "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 24951 | "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;; |
| 24952 | "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 24953 | "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;; |
| 24954 | "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
| 24955 | "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;; |
| 24956 | "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 24957 | "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
| 24958 | "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;; |
Mike McCormack | defbc49 | 2006-07-07 18:21:36 +0900 | [diff] [blame] | 24959 | "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24960 | "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 24961 | "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;; |
| 24962 | "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;; |
| 24963 | "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;; |
| 24964 | "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
| 24965 | "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;; |
| 24966 | "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;; |
| 24967 | "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;; |
| 24968 | "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;; |
| 24969 | "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;; |
| 24970 | "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;; |
| 24971 | "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;; |
| 24972 | "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;; |
| 24973 | "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;; |
| 24974 | "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;; |
| 24975 | "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 24976 | "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 24977 | "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;; |
| 24978 | "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;; |
| 24979 | "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 24980 | "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;; |
| 24981 | "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
| 24982 | "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;; |
| 24983 | "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 24984 | "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
| 24985 | "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;; |
| 24986 | "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
| 24987 | "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;; |
| 24988 | "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;; |
| 24989 | "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;; |
| 24990 | "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
| 24991 | "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;; |
| 24992 | "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 24993 | "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;; |
| 24994 | "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;; |
| 24995 | "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 24996 | "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
| 24997 | "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; |
| 24998 | "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
| 24999 | "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;; |
Mike McCormack | a6ea0f6 | 2006-06-05 14:01:10 +0900 | [diff] [blame] | 25000 | "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25001 | "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;; |
| 25002 | "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;; |
| 25003 | "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;; |
| 25004 | "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;; |
Paul Vriens | 569a452 | 2006-06-13 14:16:58 +0200 | [diff] [blame] | 25005 | "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25006 | "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;; |
| 25007 | "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;; |
| 25008 | "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
| 25009 | "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;; |
| 25010 | "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;; |
| 25011 | "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;; |
| 25012 | "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;; |
| 25013 | "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;; |
| 25014 | "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;; |
| 25015 | "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;; |
| 25016 | "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;; |
| 25017 | "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;; |
| 25018 | "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 25019 | "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;; |
| 25020 | "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;; |
Alexandre Julliard | bdb4fab | 2006-06-16 09:57:50 +0200 | [diff] [blame] | 25021 | "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25022 | "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
| 25023 | "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;; |
| 25024 | "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 25025 | "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 25026 | "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;; |
| 25027 | "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; |
| 25028 | "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
| 25029 | "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 25030 | "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25031 | "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;; |
| 25032 | "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;; |
| 25033 | "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; |
| 25034 | "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 25035 | "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;; |
| 25036 | "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;; |
| 25037 | "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;; |
| 25038 | "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;; |
| 25039 | "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
| 25040 | "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;; |
| 25041 | "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;; |
| 25042 | "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 25043 | "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;; |
| 25044 | "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;; |
| 25045 | "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
| 25046 | "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25047 | "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
| 25048 | "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;; |
| 25049 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
| 25050 | "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; |
| 25051 | "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25052 | "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;; |
| 25053 | "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;; |
| 25054 | "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;; |
| 25055 | "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 25056 | "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 25057 | "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 25058 | "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
| 25059 | "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;; |
| 25060 | "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
| 25061 | "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;; |
| 25062 | "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;; |
| 25063 | "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;; |
| 25064 | "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;; |
| 25065 | "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;; |
| 25066 | "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
Piotr Caban | 68f590c | 2006-06-14 19:50:28 +0200 | [diff] [blame] | 25067 | "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25068 | "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
| 25069 | "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
| 25070 | "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
| 25071 | "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;; |
| 25072 | "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;; |
| 25073 | "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;; |
| 25074 | "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;; |
| 25075 | "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 25076 | "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 25077 | "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
| 25078 | "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;; |
| 25079 | "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;; |
| 25080 | "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;; |
| 25081 | "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
| 25082 | "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;; |
| 25083 | "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; |
| 25084 | "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;; |
| 25085 | "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
| 25086 | "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
| 25087 | "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;; |
| 25088 | "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;; |
| 25089 | "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 25090 | "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
| 25091 | "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;; |
| 25092 | "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 25093 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
| 25094 | "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; |
| 25095 | "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; |
| 25096 | "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 25097 | "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
| 25098 | "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;; |
| 25099 | "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
| 25100 | "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
| 25101 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25102 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25103 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 25104 | { (exit 1); exit 1; }; };; |
| 25105 | esac |
| 25106 | done |
| 25107 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25108 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25109 | # If the user did not use the arguments to specify the items to instantiate, |
| 25110 | # then the envvar interface is used. Set only those that are not. |
| 25111 | # We use the long form for the default assignment because of an extremely |
| 25112 | # bizarre bug on SunOS 4.1.3. |
| 25113 | if $ac_need_defaults; then |
| 25114 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 25115 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 25116 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 25117 | fi |
| 25118 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25119 | # Have a temporary directory for convenience. Make it in the build tree |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25120 | # simply because there is no reason against having it here, and in addition, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25121 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25122 | # Hook for its removal unless debugging. |
| 25123 | # Note that there is a small window in which the directory will not be cleaned: |
| 25124 | # after its creation but before its name has been assigned to `$tmp'. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25125 | $debug || |
| 25126 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25127 | tmp= |
| 25128 | trap 'exit_status=$? |
| 25129 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 25130 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25131 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 25132 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25133 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25134 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25135 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25136 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25137 | test -n "$tmp" && test -d "$tmp" |
| 25138 | } || |
| 25139 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25140 | tmp=./conf$$-$RANDOM |
| 25141 | (umask 077 && mkdir "$tmp") |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25142 | } || |
| 25143 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25144 | echo "$me: cannot create a temporary directory in ." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25145 | { (exit 1); exit 1; } |
| 25146 | } |
| 25147 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25148 | # |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25149 | # Set up the sed scripts for CONFIG_FILES section. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25150 | # |
| 25151 | |
| 25152 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 25153 | # This happens for instance when ./config.status config.h |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25154 | if test -n "$CONFIG_FILES"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25155 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25156 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25157 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25158 | # Create sed commands to just substitute file output variables. |
| 25159 | |
| 25160 | # Remaining file output variables are in a fragment that also has non-file |
| 25161 | # output varibles. |
| 25162 | |
| 25163 | |
| 25164 | |
| 25165 | ac_delim='%!_!# ' |
| 25166 | for ac_last_try in false false false false false :; do |
| 25167 | cat >conf$$subs.sed <<_ACEOF |
| 25168 | SHELL!$SHELL$ac_delim |
| 25169 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 25170 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 25171 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 25172 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 25173 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 25174 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 25175 | exec_prefix!$exec_prefix$ac_delim |
| 25176 | prefix!$prefix$ac_delim |
| 25177 | program_transform_name!$program_transform_name$ac_delim |
| 25178 | bindir!$bindir$ac_delim |
| 25179 | sbindir!$sbindir$ac_delim |
| 25180 | libexecdir!$libexecdir$ac_delim |
| 25181 | datarootdir!$datarootdir$ac_delim |
| 25182 | datadir!$datadir$ac_delim |
| 25183 | sysconfdir!$sysconfdir$ac_delim |
| 25184 | sharedstatedir!$sharedstatedir$ac_delim |
| 25185 | localstatedir!$localstatedir$ac_delim |
| 25186 | includedir!$includedir$ac_delim |
| 25187 | oldincludedir!$oldincludedir$ac_delim |
| 25188 | docdir!$docdir$ac_delim |
| 25189 | infodir!$infodir$ac_delim |
| 25190 | htmldir!$htmldir$ac_delim |
| 25191 | dvidir!$dvidir$ac_delim |
| 25192 | pdfdir!$pdfdir$ac_delim |
| 25193 | psdir!$psdir$ac_delim |
| 25194 | libdir!$libdir$ac_delim |
| 25195 | localedir!$localedir$ac_delim |
| 25196 | mandir!$mandir$ac_delim |
| 25197 | DEFS!$DEFS$ac_delim |
| 25198 | ECHO_C!$ECHO_C$ac_delim |
| 25199 | ECHO_N!$ECHO_N$ac_delim |
| 25200 | ECHO_T!$ECHO_T$ac_delim |
| 25201 | LIBS!$LIBS$ac_delim |
| 25202 | build_alias!$build_alias$ac_delim |
| 25203 | host_alias!$host_alias$ac_delim |
| 25204 | target_alias!$target_alias$ac_delim |
| 25205 | build!$build$ac_delim |
| 25206 | build_cpu!$build_cpu$ac_delim |
| 25207 | build_vendor!$build_vendor$ac_delim |
| 25208 | build_os!$build_os$ac_delim |
| 25209 | host!$host$ac_delim |
| 25210 | host_cpu!$host_cpu$ac_delim |
| 25211 | host_vendor!$host_vendor$ac_delim |
| 25212 | host_os!$host_os$ac_delim |
| 25213 | WIN16_FILES!$WIN16_FILES$ac_delim |
| 25214 | WIN16_INSTALL!$WIN16_INSTALL$ac_delim |
| 25215 | SET_MAKE!$SET_MAKE$ac_delim |
| 25216 | CC!$CC$ac_delim |
| 25217 | CFLAGS!$CFLAGS$ac_delim |
| 25218 | LDFLAGS!$LDFLAGS$ac_delim |
| 25219 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 25220 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 25221 | EXEEXT!$EXEEXT$ac_delim |
| 25222 | OBJEXT!$OBJEXT$ac_delim |
| 25223 | CXX!$CXX$ac_delim |
| 25224 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 25225 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 25226 | CPPBIN!$CPPBIN$ac_delim |
| 25227 | TOOLSDIR!$TOOLSDIR$ac_delim |
| 25228 | XMKMF!$XMKMF$ac_delim |
| 25229 | CPP!$CPP$ac_delim |
| 25230 | X_CFLAGS!$X_CFLAGS$ac_delim |
| 25231 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
| 25232 | X_LIBS!$X_LIBS$ac_delim |
| 25233 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
| 25234 | LEX!$LEX$ac_delim |
| 25235 | LEXLIB!$LEXLIB$ac_delim |
| 25236 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
| 25237 | XLEX!$XLEX$ac_delim |
| 25238 | BISON!$BISON$ac_delim |
| 25239 | AS!$AS$ac_delim |
| 25240 | ac_ct_AS!$ac_ct_AS$ac_delim |
| 25241 | LD!$LD$ac_delim |
| 25242 | AR!$AR$ac_delim |
| 25243 | RANLIB!$RANLIB$ac_delim |
| 25244 | STRIP!$STRIP$ac_delim |
| 25245 | WINDRES!$WINDRES$ac_delim |
| 25246 | LN_S!$LN_S$ac_delim |
Alexandre Julliard | fdfc24c | 2006-08-05 21:17:11 +0200 | [diff] [blame] | 25247 | LN!$LN$ac_delim |
| 25248 | GREP!$GREP$ac_delim |
| 25249 | EGREP!$EGREP$ac_delim |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25250 | _ACEOF |
| 25251 | |
Alexandre Julliard | fdfc24c | 2006-08-05 21:17:11 +0200 | [diff] [blame] | 25252 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25253 | break |
| 25254 | elif $ac_last_try; then |
| 25255 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 25256 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 25257 | { (exit 1); exit 1; }; } |
| 25258 | else |
| 25259 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25260 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25261 | done |
| 25262 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25263 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 25264 | if test -n "$ac_eof"; then |
| 25265 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 25266 | ac_eof=`expr $ac_eof + 1` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25267 | fi |
| 25268 | |
| 25269 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25270 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 25271 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 25272 | /^[ ]*@MAKE_RULES@[ ]*$/{ |
| 25273 | r $MAKE_RULES |
| 25274 | d |
| 25275 | } |
| 25276 | /^[ ]*@MAKE_DLL_RULES@[ ]*$/{ |
| 25277 | r $MAKE_DLL_RULES |
| 25278 | d |
| 25279 | } |
| 25280 | /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{ |
| 25281 | r $MAKE_IMPLIB_RULES |
| 25282 | d |
| 25283 | } |
| 25284 | /^[ ]*@MAKE_TEST_RULES@[ ]*$/{ |
| 25285 | r $MAKE_TEST_RULES |
| 25286 | d |
| 25287 | } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25288 | /^[ ]*@MAKE_PROG_RULES@[ ]*$/{ |
| 25289 | r $MAKE_PROG_RULES |
| 25290 | d |
| 25291 | } |
| 25292 | _ACEOF |
| 25293 | sed ' |
| 25294 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 25295 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 25296 | :n |
| 25297 | t n |
| 25298 | s/'"$ac_delim"'$/,g/; t |
| 25299 | s/$/\\/; p |
| 25300 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 25301 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 25302 | rm -f conf$$subs.sed |
| 25303 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25304 | CEOF$ac_eof |
| 25305 | _ACEOF |
| 25306 | |
| 25307 | |
| 25308 | ac_delim='%!_!# ' |
| 25309 | for ac_last_try in false false false false false :; do |
| 25310 | cat >conf$$subs.sed <<_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25311 | LDCONFIG!$LDCONFIG$ac_delim |
| 25312 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 25313 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 25314 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 25315 | LINT!$LINT$ac_delim |
| 25316 | LINTFLAGS!$LINTFLAGS$ac_delim |
| 25317 | FONTFORGE!$FONTFORGE$ac_delim |
| 25318 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
| 25319 | PRELINK!$PRELINK$ac_delim |
| 25320 | LIBPTHREAD!$LIBPTHREAD$ac_delim |
| 25321 | XLIB!$XLIB$ac_delim |
| 25322 | XFILES!$XFILES$ac_delim |
| 25323 | OPENGLFILES!$OPENGLFILES$ac_delim |
| 25324 | GLU32FILES!$GLU32FILES$ac_delim |
| 25325 | OPENGL_LIBS!$OPENGL_LIBS$ac_delim |
| 25326 | GLUT_LIBS!$GLUT_LIBS$ac_delim |
| 25327 | GLUT32FILES!$GLUT32FILES$ac_delim |
| 25328 | NASLIBS!$NASLIBS$ac_delim |
| 25329 | XML2LIBS!$XML2LIBS$ac_delim |
| 25330 | XML2INCL!$XML2INCL$ac_delim |
| 25331 | XSLTLIBS!$XSLTLIBS$ac_delim |
| 25332 | XSLTINCL!$XSLTINCL$ac_delim |
| 25333 | HALINCL!$HALINCL$ac_delim |
| 25334 | CURSESLIBS!$CURSESLIBS$ac_delim |
| 25335 | sane_devel!$sane_devel$ac_delim |
| 25336 | SANELIBS!$SANELIBS$ac_delim |
| 25337 | SANEINCL!$SANEINCL$ac_delim |
| 25338 | gphoto2_devel!$gphoto2_devel$ac_delim |
| 25339 | gphoto2port_devel!$gphoto2port_devel$ac_delim |
| 25340 | GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim |
| 25341 | GPHOTO2INCL!$GPHOTO2INCL$ac_delim |
| 25342 | ICULIBS!$ICULIBS$ac_delim |
| 25343 | RESOLVLIBS!$RESOLVLIBS$ac_delim |
| 25344 | LCMSLIBS!$LCMSLIBS$ac_delim |
| 25345 | LDAPLIBS!$LDAPLIBS$ac_delim |
| 25346 | FREETYPELIBS!$FREETYPELIBS$ac_delim |
| 25347 | FREETYPEINCL!$FREETYPEINCL$ac_delim |
| 25348 | ft_devel!$ft_devel$ac_delim |
| 25349 | ft_devel2!$ft_devel2$ac_delim |
| 25350 | FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim |
| 25351 | ARTSCCONFIG!$ARTSCCONFIG$ac_delim |
| 25352 | ARTSLIBS!$ARTSLIBS$ac_delim |
| 25353 | ARTSINCL!$ARTSINCL$ac_delim |
| 25354 | ESDCONFIG!$ESDCONFIG$ac_delim |
| 25355 | ESDLIBS!$ESDLIBS$ac_delim |
| 25356 | ESDINCL!$ESDINCL$ac_delim |
| 25357 | ALSALIBS!$ALSALIBS$ac_delim |
| 25358 | AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim |
| 25359 | EXTRACFLAGS!$EXTRACFLAGS$ac_delim |
| 25360 | BUILTINFLAG!$BUILTINFLAG$ac_delim |
| 25361 | DLLEXT!$DLLEXT$ac_delim |
| 25362 | DLLFLAGS!$DLLFLAGS$ac_delim |
| 25363 | DLLIBS!$DLLIBS$ac_delim |
| 25364 | LDSHARED!$LDSHARED$ac_delim |
| 25365 | LDDLLFLAGS!$LDDLLFLAGS$ac_delim |
| 25366 | LIBEXT!$LIBEXT$ac_delim |
| 25367 | IMPLIBEXT!$IMPLIBEXT$ac_delim |
| 25368 | DLLTOOL!$DLLTOOL$ac_delim |
| 25369 | DLLWRAP!$DLLWRAP$ac_delim |
| 25370 | LDEXECFLAGS!$LDEXECFLAGS$ac_delim |
| 25371 | LDEXERPATH!$LDEXERPATH$ac_delim |
| 25372 | LDDLLRPATH!$LDDLLRPATH$ac_delim |
| 25373 | COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim |
| 25374 | IOKITLIB!$IOKITLIB$ac_delim |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 25375 | COREAUDIO!$COREAUDIO$ac_delim |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25376 | CROSSTEST!$CROSSTEST$ac_delim |
| 25377 | CROSSCC!$CROSSCC$ac_delim |
| 25378 | CROSSWINDRES!$CROSSWINDRES$ac_delim |
| 25379 | LDPATH!$LDPATH$ac_delim |
| 25380 | CRTLIBS!$CRTLIBS$ac_delim |
| 25381 | SOCKETLIBS!$SOCKETLIBS$ac_delim |
| 25382 | MAIN_BINARY!$MAIN_BINARY$ac_delim |
| 25383 | EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim |
| 25384 | LDD!$LDD$ac_delim |
| 25385 | LIBOBJS!$LIBOBJS$ac_delim |
| 25386 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 25387 | _ACEOF |
| 25388 | |
Alexandre Julliard | fdfc24c | 2006-08-05 21:17:11 +0200 | [diff] [blame] | 25389 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25390 | break |
| 25391 | elif $ac_last_try; then |
| 25392 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 25393 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 25394 | { (exit 1); exit 1; }; } |
| 25395 | else |
| 25396 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 25397 | fi |
| 25398 | done |
| 25399 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25400 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 25401 | if test -n "$ac_eof"; then |
| 25402 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 25403 | ac_eof=`expr $ac_eof + 1` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25404 | fi |
| 25405 | |
| 25406 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25407 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 25408 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 25409 | _ACEOF |
| 25410 | sed ' |
| 25411 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 25412 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 25413 | :n |
| 25414 | t n |
| 25415 | s/'"$ac_delim"'$/,g/; t |
| 25416 | s/$/\\/; p |
| 25417 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 25418 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 25419 | rm -f conf$$subs.sed |
| 25420 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25421 | :end |
| 25422 | s/|#_!!_#|//g |
| 25423 | CEOF$ac_eof |
| 25424 | _ACEOF |
| 25425 | |
| 25426 | |
| 25427 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 25428 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 25429 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 25430 | # (actually we leave an empty line to preserve line numbers). |
| 25431 | if test "x$srcdir" = x.; then |
| 25432 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 25433 | s/:*\$(srcdir):*/:/ |
| 25434 | s/:*\${srcdir}:*/:/ |
| 25435 | s/:*@srcdir@:*/:/ |
| 25436 | s/^\([^=]*=[ ]*\):*/\1/ |
| 25437 | s/:*$// |
| 25438 | s/^[^=]*=[ ]*$// |
| 25439 | }' |
| 25440 | fi |
| 25441 | |
| 25442 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25443 | fi # test -n "$CONFIG_FILES" |
| 25444 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25445 | |
| 25446 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 25447 | do |
| 25448 | case $ac_tag in |
| 25449 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 25450 | esac |
| 25451 | case $ac_mode$ac_tag in |
| 25452 | :[FHL]*:*);; |
| 25453 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 25454 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 25455 | { (exit 1); exit 1; }; };; |
| 25456 | :[FH]-) ac_tag=-:-;; |
| 25457 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 25458 | esac |
| 25459 | ac_save_IFS=$IFS |
| 25460 | IFS=: |
| 25461 | set x $ac_tag |
| 25462 | IFS=$ac_save_IFS |
| 25463 | shift |
| 25464 | ac_file=$1 |
| 25465 | shift |
| 25466 | |
| 25467 | case $ac_mode in |
| 25468 | :L) ac_source=$1;; |
| 25469 | :[FH]) |
| 25470 | ac_file_inputs= |
| 25471 | for ac_f |
| 25472 | do |
| 25473 | case $ac_f in |
| 25474 | -) ac_f="$tmp/stdin";; |
| 25475 | *) # Look for the file first in the build tree, then in the source tree |
| 25476 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 25477 | # because $ac_f cannot contain `:'. |
| 25478 | test -f "$ac_f" || |
| 25479 | case $ac_f in |
| 25480 | [\\/$]*) false;; |
| 25481 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 25482 | esac || |
| 25483 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 25484 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 25485 | { (exit 1); exit 1; }; };; |
| 25486 | esac |
| 25487 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 25488 | done |
| 25489 | |
| 25490 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 25491 | # use $as_me), people would be surprised to read: |
| 25492 | # /* config.h. Generated by config.status. */ |
| 25493 | configure_input="Generated from "`IFS=: |
| 25494 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 25495 | if test x"$ac_file" != x-; then |
| 25496 | configure_input="$ac_file. $configure_input" |
| 25497 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 25498 | echo "$as_me: creating $ac_file" >&6;} |
| 25499 | fi |
| 25500 | |
| 25501 | case $ac_tag in |
| 25502 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 25503 | esac |
| 25504 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25505 | esac |
| 25506 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25507 | ac_dir=`$as_dirname -- "$ac_file" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25508 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 25509 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 25510 | X"$ac_file" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25511 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25512 | echo X"$ac_file" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25513 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25514 | s//\1/ |
| 25515 | q |
| 25516 | } |
| 25517 | /^X\(\/\/\)[^/].*/{ |
| 25518 | s//\1/ |
| 25519 | q |
| 25520 | } |
| 25521 | /^X\(\/\/\)$/{ |
| 25522 | s//\1/ |
| 25523 | q |
| 25524 | } |
| 25525 | /^X\(\/\).*/{ |
| 25526 | s//\1/ |
| 25527 | q |
| 25528 | } |
| 25529 | s/.*/./; q'` |
| 25530 | { as_dir="$ac_dir" |
| 25531 | case $as_dir in #( |
| 25532 | -*) as_dir=./$as_dir;; |
| 25533 | esac |
| 25534 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25535 | as_dirs= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25536 | while :; do |
| 25537 | case $as_dir in #( |
| 25538 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 25539 | *) as_qdir=$as_dir;; |
| 25540 | esac |
| 25541 | as_dirs="'$as_qdir' $as_dirs" |
| 25542 | as_dir=`$as_dirname -- "$as_dir" || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25543 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 25544 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25545 | X"$as_dir" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25546 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25547 | echo X"$as_dir" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25548 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25549 | s//\1/ |
| 25550 | q |
| 25551 | } |
| 25552 | /^X\(\/\/\)[^/].*/{ |
| 25553 | s//\1/ |
| 25554 | q |
| 25555 | } |
| 25556 | /^X\(\/\/\)$/{ |
| 25557 | s//\1/ |
| 25558 | q |
| 25559 | } |
| 25560 | /^X\(\/\).*/{ |
| 25561 | s//\1/ |
| 25562 | q |
| 25563 | } |
| 25564 | s/.*/./; q'` |
| 25565 | test -d "$as_dir" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25566 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25567 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 25568 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 25569 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25570 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25571 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25572 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25573 | case "$ac_dir" in |
| 25574 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25575 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25576 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25577 | # A ".." for each directory in $ac_dir_suffix. |
| 25578 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 25579 | case $ac_top_builddir_sub in |
| 25580 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25581 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 25582 | esac ;; |
| 25583 | esac |
| 25584 | ac_abs_top_builddir=$ac_pwd |
| 25585 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 25586 | # for backward compatibility: |
| 25587 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25588 | |
| 25589 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25590 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25591 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25592 | ac_top_srcdir=$ac_top_builddir_sub |
| 25593 | ac_abs_top_srcdir=$ac_pwd ;; |
| 25594 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25595 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25596 | ac_top_srcdir=$srcdir |
| 25597 | ac_abs_top_srcdir=$srcdir ;; |
| 25598 | *) # Relative name. |
| 25599 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 25600 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 25601 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25602 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25603 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 25604 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25605 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25606 | case $ac_mode in |
| 25607 | :F) |
| 25608 | # |
| 25609 | # CONFIG_FILE |
| 25610 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25611 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25612 | case $INSTALL in |
| 25613 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25614 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 25615 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25616 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25617 | |
| 25618 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25619 | # If the template does not know about datarootdir, expand it. |
| 25620 | # FIXME: This hack should be removed a few years after 2.60. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25621 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25622 | |
| 25623 | case `sed -n '/datarootdir/ { |
| 25624 | p |
| 25625 | q |
| 25626 | } |
| 25627 | /@datadir@/p |
| 25628 | /@docdir@/p |
| 25629 | /@infodir@/p |
| 25630 | /@localedir@/p |
| 25631 | /@mandir@/p |
| 25632 | ' $ac_file_inputs` in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25633 | *datarootdir*) ac_datarootdir_seen=yes;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25634 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 25635 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 25636 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 25637 | _ACEOF |
| 25638 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25639 | ac_datarootdir_hack=' |
| 25640 | s&@datadir@&$datadir&g |
| 25641 | s&@docdir@&$docdir&g |
| 25642 | s&@infodir@&$infodir&g |
| 25643 | s&@localedir@&$localedir&g |
| 25644 | s&@mandir@&$mandir&g |
| 25645 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 25646 | esac |
| 25647 | _ACEOF |
| 25648 | |
| 25649 | # Neutralize VPATH when `$srcdir' = `.'. |
| 25650 | # Shell code in configure.ac might set extrasub. |
| 25651 | # FIXME: do we really want to maintain this feature? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25652 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25653 | sed "$ac_vpsub |
| 25654 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25655 | _ACEOF |
| 25656 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25657 | :t |
| 25658 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25659 | s&@configure_input@&$configure_input&;t t |
| 25660 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 25661 | s&@srcdir@&$ac_srcdir&;t t |
| 25662 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 25663 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 25664 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 25665 | s&@builddir@&$ac_builddir&;t t |
| 25666 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 25667 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 25668 | s&@INSTALL@&$ac_INSTALL&;t t |
| 25669 | $ac_datarootdir_hack |
| 25670 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25671 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25672 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 25673 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 25674 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25675 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 25676 | which seems to be undefined. Please make sure it is defined." >&5 |
| 25677 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 25678 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 25679 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25680 | rm -f "$tmp/stdin" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25681 | case $ac_file in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25682 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 25683 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25684 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25685 | ;; |
| 25686 | :H) |
| 25687 | # |
| 25688 | # CONFIG_HEADER |
| 25689 | # |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25690 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25691 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25692 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 25693 | # substitutes the proper values into config.h.in to produce config.h. |
| 25694 | rm -f conftest.defines conftest.tail |
| 25695 | # First, append a space to every undef/define line, to ease matching. |
| 25696 | echo 's/$/ /' >conftest.defines |
| 25697 | # Then, protect against being on the right side of a sed subst, or in |
| 25698 | # an unquoted here document, in config.status. If some macros were |
| 25699 | # called several times there might be several #defines for the same |
| 25700 | # symbol, which is useless. But do not sort them, since the last |
| 25701 | # AC_DEFINE must be honored. |
| 25702 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25703 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 25704 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 25705 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 25706 | # just an empty string. |
| 25707 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 25708 | ac_dB='\\)[ (].*,\\1define\\2' |
| 25709 | ac_dC=' ' |
| 25710 | ac_dD=' ,' |
| 25711 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25712 | uniq confdefs.h | |
| 25713 | sed -n ' |
| 25714 | t rset |
| 25715 | :rset |
| 25716 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 25717 | t ok |
| 25718 | d |
| 25719 | :ok |
| 25720 | s/[\\&,]/\\&/g |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25721 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 25722 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25723 | ' >>conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25724 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25725 | # Remove the space that was appended to ease matching. |
| 25726 | # Then replace #undef with comments. This is necessary, for |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25727 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 25728 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25729 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 25730 | echo 's/ $// |
| 25731 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25732 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25733 | # Break up conftest.defines: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25734 | ac_max_sed_lines=50 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25735 | |
| 25736 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 25737 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 25738 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 25739 | # et cetera. |
| 25740 | ac_in='$ac_file_inputs' |
| 25741 | ac_out='"$tmp/out1"' |
| 25742 | ac_nxt='"$tmp/out2"' |
| 25743 | |
| 25744 | while : |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25745 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25746 | # Write a here document: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25747 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25748 | # First, check the format of the line: |
| 25749 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 25750 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 25751 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25752 | b |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25753 | :def |
| 25754 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25755 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25756 | echo 'CEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25757 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 25758 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 25759 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 25760 | grep . conftest.tail >/dev/null || break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25761 | rm -f conftest.defines |
| 25762 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25763 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25764 | rm -f conftest.defines conftest.tail |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25765 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25766 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25767 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25768 | if test x"$ac_file" != x-; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25769 | echo "/* $configure_input */" >"$tmp/config.h" |
| 25770 | cat "$ac_result" >>"$tmp/config.h" |
| 25771 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25772 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25773 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 25774 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25775 | rm -f $ac_file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25776 | mv "$tmp/config.h" $ac_file |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25777 | fi |
| 25778 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25779 | echo "/* $configure_input */" |
| 25780 | cat "$ac_result" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25781 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25782 | rm -f "$tmp/out12" |
| 25783 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25784 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25785 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 25786 | echo "$as_me: executing $ac_file commands" >&6;} |
| 25787 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25788 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25789 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25790 | |
| 25791 | case $ac_file$ac_mode in |
| 25792 | "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
| 25793 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
| 25794 | "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
| 25795 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
| 25796 | "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
| 25797 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
| 25798 | "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
| 25799 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
| 25800 | "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5 |
| 25801 | echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;; |
| 25802 | "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
| 25803 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
| 25804 | |
| 25805 | esac |
| 25806 | done # for ac_tag |
| 25807 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 25808 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25809 | { (exit 0); exit 0; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25810 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25811 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25812 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25813 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25814 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25815 | # configure is writing to config.log, and then calls config.status. |
| 25816 | # config.status does its own redirection, appending to config.log. |
| 25817 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 25818 | # by configure, so config.status won't be able to write to it; its |
| 25819 | # output is simply discarded. So we exec the FD to /dev/null, |
| 25820 | # effectively closing config.log, so it can be properly (re)opened and |
| 25821 | # appended to by config.status. When coming back to configure, we |
| 25822 | # need to make the FD available again. |
| 25823 | if test "$no_create" != yes; then |
| 25824 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25825 | ac_config_status_args= |
| 25826 | test "$silent" = yes && |
| 25827 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25828 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25829 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25830 | exec 5>>config.log |
| 25831 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 25832 | # would make configure fail if this is the last instruction. |
| 25833 | $ac_cs_success || { (exit 1); exit 1; } |
| 25834 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25835 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25836 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 25837 | if test "$have_x" = "no" |
| 25838 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25839 | echo >&2 |
| 25840 | { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5 |
| 25841 | echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;} |
| 25842 | { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5 |
| 25843 | echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;} |
| 25844 | { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5 |
| 25845 | echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;} |
| 25846 | { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5 |
| 25847 | echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;} |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 25848 | fi |
| 25849 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 25850 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 25851 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25852 | echo >&2 |
| 25853 | { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5 |
| 25854 | echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;} |
| 25855 | { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5 |
| 25856 | echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;} |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 25857 | fi |
| 25858 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 25859 | if test "$wine_cv_msg_freetype" = "yes" |
| 25860 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25861 | echo >&2 |
| 25862 | { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5 |
| 25863 | echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;} |
| 25864 | { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5 |
| 25865 | echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;} |
| 25866 | { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5 |
| 25867 | echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;} |
| 25868 | { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5 |
| 25869 | echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;} |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 25870 | fi |
| 25871 | |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 25872 | if test -z "$FONTSSUBDIRS" |
Mike McCormack | 8f6aa41 | 2006-04-04 13:36:51 +0900 | [diff] [blame] | 25873 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25874 | echo >&2 |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 25875 | if test "$FONTFORGE" = "false" |
| 25876 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25877 | { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5 |
| 25878 | echo "$as_me: WARNING: FontForge is missing." >&2;} |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 25879 | else |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25880 | { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5 |
| 25881 | echo "$as_me: WARNING: FreeType is missing." >&2;} |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 25882 | fi |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25883 | { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5 |
| 25884 | echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;} |
Mike McCormack | 8f6aa41 | 2006-04-04 13:36:51 +0900 | [diff] [blame] | 25885 | fi |
| 25886 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 25887 | if test -z "$ALSALIBS" -a \ |
| 25888 | -z "$ARTSC_LIBS" -a \ |
| 25889 | -z "$AUDIOIOLIBS" -a \ |
| 25890 | -z "$NASLIBS" -a \ |
| 25891 | -z "$ESD_LIBS" -a \ |
| 25892 | -z "$ac_cv_lib_soname_jack" -a \ |
| 25893 | "$ac_cv_header_sys_soundcard_h" != "yes" -a \ |
| 25894 | "$ac_cv_header_machine_soundcard_h" != "yes" -a \ |
| 25895 | "$ac_cv_header_soundcard_h" != "yes" |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 25896 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25897 | echo >&2 |
| 25898 | { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5 |
| 25899 | echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;} |
| 25900 | { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5 |
| 25901 | echo "$as_me: WARNING: The currently supported sound systems are:" >&2;} |
| 25902 | { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5 |
| 25903 | echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;} |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 25904 | fi |
| 25905 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25906 | echo |
Vincent Béron | 5606d10 | 2004-08-19 00:03:45 +0000 | [diff] [blame] | 25907 | echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25908 | echo |
| 25909 | |