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 | 2962ded | 2006-06-08 17:04:58 +0200 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59d for Wine 0.9.15. |
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 |
| 235 | # Try only shells which exist, to save several forks. |
| 236 | if test -f $as_shell && |
| 237 | { ($as_shell) 2> /dev/null <<\_ASEOF |
| 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 |
| 257 | if { $as_shell 2> /dev/null <<\_ASEOF |
| 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 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 462 | if (dirname -- /) >/dev/null 2>&1; then |
| 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 | 2962ded | 2006-06-08 17:04:58 +0200 | [diff] [blame] | 562 | PACKAGE_VERSION='0.9.15' |
| 563 | PACKAGE_STRING='Wine 0.9.15' |
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 |
| 765 | MAKE_LIB_RULES |
| 766 | MAKE_PROG_RULES' |
| 767 | ac_precious_vars='build_alias |
| 768 | host_alias |
| 769 | target_alias |
| 770 | CC |
| 771 | CFLAGS |
| 772 | LDFLAGS |
| 773 | CPPFLAGS |
| 774 | CXX |
| 775 | CXXFLAGS |
| 776 | CCC |
| 777 | XMKMF |
| 778 | CPP' |
| 779 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 780 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 781 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 782 | ac_init_help= |
| 783 | ac_init_version=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 784 | # The variables have the same names as the options, with |
| 785 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 786 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 787 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 788 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 789 | no_recursion= |
| 790 | prefix=NONE |
| 791 | program_prefix=NONE |
| 792 | program_suffix=NONE |
| 793 | program_transform_name=s,x,x, |
| 794 | silent= |
| 795 | site= |
| 796 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 797 | verbose= |
| 798 | x_includes=NONE |
| 799 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 800 | |
| 801 | # Installation directory options. |
| 802 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 803 | # and all the variables that are supposed to be based on exec_prefix |
| 804 | # by default will actually change. |
| 805 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 806 | # (The list follows the same order as the GNU Coding Standards.) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 807 | bindir='${exec_prefix}/bin' |
| 808 | sbindir='${exec_prefix}/sbin' |
| 809 | libexecdir='${exec_prefix}/libexec' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 810 | datarootdir='${prefix}/share' |
| 811 | datadir='${datarootdir}' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 812 | sysconfdir='${prefix}/etc' |
| 813 | sharedstatedir='${prefix}/com' |
| 814 | localstatedir='${prefix}/var' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 815 | includedir='${prefix}/include' |
| 816 | oldincludedir='/usr/include' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 817 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 818 | infodir='${datarootdir}/info' |
| 819 | htmldir='${docdir}' |
| 820 | dvidir='${docdir}' |
| 821 | pdfdir='${docdir}' |
| 822 | psdir='${docdir}' |
| 823 | libdir='${exec_prefix}/lib' |
| 824 | localedir='${datarootdir}/locale' |
| 825 | mandir='${datarootdir}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 826 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 827 | ac_prev= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 828 | ac_dashdash= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 829 | for ac_option |
| 830 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 831 | # If the previous option needs an argument, assign it. |
| 832 | if test -n "$ac_prev"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 833 | eval $ac_prev=\$ac_option |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 834 | ac_prev= |
| 835 | continue |
| 836 | fi |
| 837 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 838 | case $ac_option in |
| 839 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 840 | *) ac_optarg=yes ;; |
| 841 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 842 | |
| 843 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 844 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 845 | case $ac_dashdash$ac_option in |
| 846 | --) |
| 847 | ac_dashdash=yes ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 848 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 849 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 850 | ac_prev=bindir ;; |
| 851 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 852 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 853 | |
| 854 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 855 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 856 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 857 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 858 | |
| 859 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 860 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 861 | ac_prev=cache_file ;; |
| 862 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 863 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 864 | cache_file=$ac_optarg ;; |
| 865 | |
| 866 | --config-cache | -C) |
| 867 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 868 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 869 | -datadir | --datadir | --datadi | --datad) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 870 | ac_prev=datadir ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 871 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 872 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 873 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 874 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 875 | | --dataroo | --dataro | --datar) |
| 876 | ac_prev=datarootdir ;; |
| 877 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 878 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 879 | datarootdir=$ac_optarg ;; |
| 880 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 881 | -disable-* | --disable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 882 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 883 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 884 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 885 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 886 | { (exit 1); exit 1; }; } |
| 887 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 888 | eval enable_$ac_feature=no ;; |
| 889 | |
| 890 | -docdir | --docdir | --docdi | --doc | --do) |
| 891 | ac_prev=docdir ;; |
| 892 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 893 | docdir=$ac_optarg ;; |
| 894 | |
| 895 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 896 | ac_prev=dvidir ;; |
| 897 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 898 | dvidir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 899 | |
| 900 | -enable-* | --enable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 901 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 902 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 903 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 904 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 905 | { (exit 1); exit 1; }; } |
| 906 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 907 | eval enable_$ac_feature=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 908 | |
| 909 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 910 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 911 | | --exec | --exe | --ex) |
| 912 | ac_prev=exec_prefix ;; |
| 913 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 914 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 915 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 916 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 917 | |
| 918 | -gas | --gas | --ga | --g) |
| 919 | # Obsolete; use --with-gas. |
| 920 | with_gas=yes ;; |
| 921 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 922 | -help | --help | --hel | --he | -h) |
| 923 | ac_init_help=long ;; |
| 924 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 925 | ac_init_help=recursive ;; |
| 926 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 927 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 928 | |
| 929 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 930 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 931 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 932 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 933 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 934 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 935 | ac_prev=htmldir ;; |
| 936 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 937 | | --ht=*) |
| 938 | htmldir=$ac_optarg ;; |
| 939 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 940 | -includedir | --includedir | --includedi | --included | --include \ |
| 941 | | --includ | --inclu | --incl | --inc) |
| 942 | ac_prev=includedir ;; |
| 943 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 944 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 945 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 946 | |
| 947 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 948 | ac_prev=infodir ;; |
| 949 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 950 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 951 | |
| 952 | -libdir | --libdir | --libdi | --libd) |
| 953 | ac_prev=libdir ;; |
| 954 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 955 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 956 | |
| 957 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 958 | | --libexe | --libex | --libe) |
| 959 | ac_prev=libexecdir ;; |
| 960 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 961 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 962 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 963 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 964 | -localedir | --localedir | --localedi | --localed | --locale) |
| 965 | ac_prev=localedir ;; |
| 966 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 967 | localedir=$ac_optarg ;; |
| 968 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 969 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 970 | | --localstate | --localstat | --localsta | --localst | --locals) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 971 | ac_prev=localstatedir ;; |
| 972 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 973 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 974 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 975 | |
| 976 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 977 | ac_prev=mandir ;; |
| 978 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 979 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 980 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 981 | -nfp | --nfp | --nf) |
| 982 | # Obsolete; use --without-fp. |
| 983 | with_fp=no ;; |
| 984 | |
| 985 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 986 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 987 | no_create=yes ;; |
| 988 | |
| 989 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 990 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 991 | no_recursion=yes ;; |
| 992 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 993 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 994 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 995 | | --oldin | --oldi | --old | --ol | --o) |
| 996 | ac_prev=oldincludedir ;; |
| 997 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 998 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 999 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1000 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1001 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1002 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1003 | ac_prev=prefix ;; |
| 1004 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1005 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1006 | |
| 1007 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1008 | | --program-pre | --program-pr | --program-p) |
| 1009 | ac_prev=program_prefix ;; |
| 1010 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1011 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1012 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1013 | |
| 1014 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1015 | | --program-suf | --program-su | --program-s) |
| 1016 | ac_prev=program_suffix ;; |
| 1017 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1018 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1019 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1020 | |
| 1021 | -program-transform-name | --program-transform-name \ |
| 1022 | | --program-transform-nam | --program-transform-na \ |
| 1023 | | --program-transform-n | --program-transform- \ |
| 1024 | | --program-transform | --program-transfor \ |
| 1025 | | --program-transfo | --program-transf \ |
| 1026 | | --program-trans | --program-tran \ |
| 1027 | | --progr-tra | --program-tr | --program-t) |
| 1028 | ac_prev=program_transform_name ;; |
| 1029 | -program-transform-name=* | --program-transform-name=* \ |
| 1030 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1031 | | --program-transform-n=* | --program-transform-=* \ |
| 1032 | | --program-transform=* | --program-transfor=* \ |
| 1033 | | --program-transfo=* | --program-transf=* \ |
| 1034 | | --program-trans=* | --program-tran=* \ |
| 1035 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1036 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1037 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1038 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1039 | ac_prev=pdfdir ;; |
| 1040 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1041 | pdfdir=$ac_optarg ;; |
| 1042 | |
| 1043 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1044 | ac_prev=psdir ;; |
| 1045 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1046 | psdir=$ac_optarg ;; |
| 1047 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1048 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1049 | | -silent | --silent | --silen | --sile | --sil) |
| 1050 | silent=yes ;; |
| 1051 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1052 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1053 | ac_prev=sbindir ;; |
| 1054 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1055 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1056 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1057 | |
| 1058 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1059 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1060 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1061 | | --sha | --sh) |
| 1062 | ac_prev=sharedstatedir ;; |
| 1063 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1064 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1065 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1066 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1067 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1068 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1069 | -site | --site | --sit) |
| 1070 | ac_prev=site ;; |
| 1071 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1072 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1073 | |
| 1074 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1075 | ac_prev=srcdir ;; |
| 1076 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1077 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1078 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1079 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1080 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1081 | ac_prev=sysconfdir ;; |
| 1082 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1083 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1084 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1085 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1086 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1087 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1088 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1089 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1090 | |
| 1091 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1092 | verbose=yes ;; |
| 1093 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1094 | -version | --version | --versio | --versi | --vers | -V) |
| 1095 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1096 | |
| 1097 | -with-* | --with-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1098 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1099 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1100 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1101 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1102 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1103 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1104 | eval with_$ac_package=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1105 | |
| 1106 | -without-* | --without-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1107 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1108 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1109 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1110 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1111 | { (exit 1); exit 1; }; } |
| 1112 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1113 | eval with_$ac_package=no ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1114 | |
| 1115 | --x) |
| 1116 | # Obsolete; use --with-x. |
| 1117 | with_x=yes ;; |
| 1118 | |
| 1119 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1120 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1121 | ac_prev=x_includes ;; |
| 1122 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1123 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1124 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1125 | |
| 1126 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1127 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1128 | ac_prev=x_libraries ;; |
| 1129 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1130 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1131 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1132 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1133 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1134 | Try \`$0 --help' for more information." >&2 |
| 1135 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1136 | ;; |
| 1137 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1138 | *=*) |
| 1139 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1140 | # Reject names that are not valid shell variable names. |
| 1141 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1142 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1143 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1144 | eval $ac_envvar=\$ac_optarg |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1145 | export $ac_envvar ;; |
| 1146 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1147 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1148 | # FIXME: should be removed in autoconf 3.0. |
| 1149 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1150 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1151 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1152 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1153 | ;; |
| 1154 | |
| 1155 | esac |
| 1156 | done |
| 1157 | |
| 1158 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1159 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1160 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1161 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1162 | fi |
| 1163 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1164 | # Be sure to have absolute directory names. |
| 1165 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1166 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1167 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1168 | libdir localedir mandir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1169 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1170 | eval ac_val=\$$ac_var |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1171 | case $ac_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1172 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1173 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1174 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1175 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1176 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1177 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1178 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1179 | # There might be people who depend on the old broken behavior: `$host' |
| 1180 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1181 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1182 | build=$build_alias |
| 1183 | host=$host_alias |
| 1184 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1185 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1186 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1187 | if test "x$host_alias" != x; then |
| 1188 | if test "x$build_alias" = x; then |
| 1189 | cross_compiling=maybe |
| 1190 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1191 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1192 | elif test "x$build_alias" != "x$host_alias"; then |
| 1193 | cross_compiling=yes |
| 1194 | fi |
| 1195 | fi |
| 1196 | |
| 1197 | ac_tool_prefix= |
| 1198 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1199 | |
| 1200 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1201 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1202 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1203 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1204 | ac_ls_di=`ls -di .` && |
| 1205 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1206 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1207 | { (exit 1); exit 1; }; } |
| 1208 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1209 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1210 | { (exit 1); exit 1; }; } |
| 1211 | |
| 1212 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1213 | # Find the source files, if location was not specified. |
| 1214 | if test -z "$srcdir"; then |
| 1215 | ac_srcdir_defaulted=yes |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1216 | # Try the directory containing this script, then the parent directory. |
| 1217 | ac_confdir=`$as_dirname -- "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1218 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1219 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1220 | X"$0" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1221 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1222 | echo X"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1224 | s//\1/ |
| 1225 | q |
| 1226 | } |
| 1227 | /^X\(\/\/\)[^/].*/{ |
| 1228 | s//\1/ |
| 1229 | q |
| 1230 | } |
| 1231 | /^X\(\/\/\)$/{ |
| 1232 | s//\1/ |
| 1233 | q |
| 1234 | } |
| 1235 | /^X\(\/\).*/{ |
| 1236 | s//\1/ |
| 1237 | q |
| 1238 | } |
| 1239 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1240 | srcdir=$ac_confdir |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1241 | if test ! -r "$srcdir/$ac_unique_file"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1242 | srcdir=.. |
| 1243 | fi |
| 1244 | else |
| 1245 | ac_srcdir_defaulted=no |
| 1246 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1247 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1248 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1249 | { 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] | 1250 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1251 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1252 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1253 | ac_abs_confdir=`( |
| 1254 | 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] | 1255 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1256 | pwd)` |
| 1257 | # When building in place, set srcdir=. |
| 1258 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1259 | srcdir=. |
| 1260 | fi |
| 1261 | # Remove unnecessary trailing slashes from srcdir. |
| 1262 | # Double slashes in file names in object file debugging info |
| 1263 | # mess up M-x gdb in Emacs. |
| 1264 | case $srcdir in |
| 1265 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1266 | esac |
| 1267 | for ac_var in $ac_precious_vars; do |
| 1268 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1269 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1270 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1271 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1272 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1273 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1274 | # |
| 1275 | # Report the --help message. |
| 1276 | # |
| 1277 | if test "$ac_init_help" = "long"; then |
| 1278 | # Omit some internal or obsolete options to make the list less imposing. |
| 1279 | # 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] | 1280 | cat <<_ACEOF |
Alexandre Julliard | 2962ded | 2006-06-08 17:04:58 +0200 | [diff] [blame] | 1281 | \`configure' configures Wine 0.9.15 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1282 | |
| 1283 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1284 | |
| 1285 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1286 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1287 | |
| 1288 | Defaults for the options are specified in brackets. |
| 1289 | |
| 1290 | Configuration: |
| 1291 | -h, --help display this help and exit |
| 1292 | --help=short display options specific to this package |
| 1293 | --help=recursive display the short help of all the included packages |
| 1294 | -V, --version display version information and exit |
| 1295 | -q, --quiet, --silent do not print \`checking...' messages |
| 1296 | --cache-file=FILE cache test results in FILE [disabled] |
| 1297 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1298 | -n, --no-create do not create output files |
| 1299 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1300 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1301 | Installation directories: |
| 1302 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1303 | [$ac_default_prefix] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1304 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1305 | [PREFIX] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1306 | |
| 1307 | By default, \`make install' will install all the files in |
| 1308 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1309 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1310 | for instance \`--prefix=\$HOME'. |
| 1311 | |
| 1312 | For better control, use the options below. |
| 1313 | |
| 1314 | Fine tuning of the installation directories: |
| 1315 | --bindir=DIR user executables [EPREFIX/bin] |
| 1316 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1317 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1318 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1319 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1320 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1321 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1322 | --includedir=DIR C header files [PREFIX/include] |
| 1323 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1324 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1325 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1326 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1327 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1328 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1329 | --docdir=DIR documentation root [DATAROOTDIR/doc/wine] |
| 1330 | --htmldir=DIR html documentation [DOCDIR] |
| 1331 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1332 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1333 | --psdir=DIR ps documentation [DOCDIR] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1334 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1335 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1336 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1337 | |
| 1338 | X features: |
| 1339 | --x-includes=DIR X include files are in DIR |
| 1340 | --x-libraries=DIR X library files are in DIR |
| 1341 | |
| 1342 | System types: |
| 1343 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1344 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1345 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1346 | fi |
| 1347 | |
| 1348 | if test -n "$ac_init_help"; then |
| 1349 | case $ac_init_help in |
Alexandre Julliard | 2962ded | 2006-06-08 17:04:58 +0200 | [diff] [blame] | 1350 | short | recursive ) echo "Configuration of Wine 0.9.15:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1351 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1352 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1353 | |
| 1354 | Optional Features: |
| 1355 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1356 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1357 | --disable-win16 do not include Win16 support |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1358 | --enable-win64 build a Win64 emulator on AMD64 (won't run Win32 |
| 1359 | binaries) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1360 | |
| 1361 | Optional Packages: |
| 1362 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1363 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1364 | --without-opengl do not use OpenGL |
| 1365 | --without-curses do not use curses |
| 1366 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1367 | --with-x use the X Window System |
| 1368 | |
| 1369 | Some influential environment variables: |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1370 | CC C compiler command |
| 1371 | CFLAGS C compiler flags |
| 1372 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1373 | nonstandard directory <lib dir> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1374 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1375 | you have headers in a nonstandard directory <include dir> |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 1376 | CXX C++ compiler command |
| 1377 | CXXFLAGS C++ compiler flags |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1378 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1379 | CPP C preprocessor |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1380 | |
| 1381 | Use these variables to override the choices made by `configure' or to help |
| 1382 | it to find libraries and programs with nonstandard names/locations. |
| 1383 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1384 | Report bugs to <wine-devel@winehq.org>. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1385 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1386 | ac_status=$? |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1387 | fi |
| 1388 | |
| 1389 | if test "$ac_init_help" = "recursive"; then |
| 1390 | # If there are subdirs, report their specific --help. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1391 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1392 | test -d $ac_dir || continue |
| 1393 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1394 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1395 | case "$ac_dir" in |
| 1396 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1397 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1398 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1399 | # A ".." for each directory in $ac_dir_suffix. |
| 1400 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1401 | case $ac_top_builddir_sub in |
| 1402 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1403 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1404 | esac ;; |
| 1405 | esac |
| 1406 | ac_abs_top_builddir=$ac_pwd |
| 1407 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1408 | # for backward compatibility: |
| 1409 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1410 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1411 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1412 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1413 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1414 | ac_top_srcdir=$ac_top_builddir_sub |
| 1415 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1416 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1417 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1418 | ac_top_srcdir=$srcdir |
| 1419 | ac_abs_top_srcdir=$srcdir ;; |
| 1420 | *) # Relative name. |
| 1421 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1422 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1423 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1424 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1425 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1426 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1427 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1428 | # Check for guested configure. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1429 | if test -f $ac_srcdir/configure.gnu; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1430 | echo && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1431 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1432 | elif test -f $ac_srcdir/configure; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1433 | echo && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1434 | $SHELL $ac_srcdir/configure --help=recursive |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1435 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1436 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1437 | fi || ac_status=$? |
| 1438 | cd "$ac_pwd" || { ac_status=$?; break; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1439 | done |
| 1440 | fi |
| 1441 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1442 | test -n "$ac_init_help" && exit $ac_status |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1443 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1444 | cat <<\_ACEOF |
Alexandre Julliard | 2962ded | 2006-06-08 17:04:58 +0200 | [diff] [blame] | 1445 | Wine configure 0.9.15 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1446 | generated by GNU Autoconf 2.59d |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1447 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1448 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1449 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1450 | This configure script is free software; the Free Software Foundation |
| 1451 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1452 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1453 | exit |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1454 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1455 | cat >config.log <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1456 | This file contains any messages produced by compilers while |
| 1457 | running configure, to aid debugging if configure makes a mistake. |
| 1458 | |
Alexandre Julliard | 2962ded | 2006-06-08 17:04:58 +0200 | [diff] [blame] | 1459 | It was created by Wine $as_me 0.9.15, which was |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1460 | generated by GNU Autoconf 2.59d. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1461 | |
| 1462 | $ $0 $@ |
| 1463 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1464 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1465 | exec 5>>config.log |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1466 | { |
| 1467 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1468 | ## --------- ## |
| 1469 | ## Platform. ## |
| 1470 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1471 | |
| 1472 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1473 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1474 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1475 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1476 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1477 | |
| 1478 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1479 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1480 | |
| 1481 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1482 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1483 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1484 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1485 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1486 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1487 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1488 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1489 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1490 | |
| 1491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1492 | for as_dir in $PATH |
| 1493 | do |
| 1494 | IFS=$as_save_IFS |
| 1495 | test -z "$as_dir" && as_dir=. |
| 1496 | echo "PATH: $as_dir" |
| 1497 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1498 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1499 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1500 | } >&5 |
| 1501 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1502 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1503 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1504 | |
| 1505 | ## ----------- ## |
| 1506 | ## Core tests. ## |
| 1507 | ## ----------- ## |
| 1508 | |
| 1509 | _ACEOF |
| 1510 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1511 | |
| 1512 | # Keep a trace of the command line. |
| 1513 | # 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] | 1514 | # 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] | 1515 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1516 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1517 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1518 | ac_configure_args0= |
| 1519 | ac_configure_args1= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1520 | ac_sep= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1521 | ac_must_keep_next=false |
| 1522 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1523 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1524 | for ac_arg |
| 1525 | do |
| 1526 | case $ac_arg in |
| 1527 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1528 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1529 | | -silent | --silent | --silen | --sile | --sil) |
| 1530 | continue ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1531 | *\'*) |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1532 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1533 | esac |
| 1534 | case $ac_pass in |
| 1535 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1536 | 2) |
| 1537 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1538 | if test $ac_must_keep_next = true; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1539 | ac_must_keep_next=false # Got value, back to normal. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1540 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1541 | case $ac_arg in |
| 1542 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1543 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1544 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1545 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1546 | case "$ac_configure_args0 " in |
| 1547 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1548 | esac |
| 1549 | ;; |
| 1550 | -* ) ac_must_keep_next=true ;; |
| 1551 | esac |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1552 | fi |
| 1553 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1554 | # Get rid of the leading space. |
| 1555 | ac_sep=" " |
| 1556 | ;; |
| 1557 | esac |
| 1558 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1559 | done |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1560 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1561 | $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] | 1562 | |
| 1563 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1564 | # config.log. We remove comments because anyway the quotes in there |
| 1565 | # would cause problems or look ugly. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1566 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1567 | # 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] | 1568 | trap 'exit_status=$? |
| 1569 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1570 | { |
| 1571 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1572 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1573 | cat <<\_ASBOX |
| 1574 | ## ---------------- ## |
| 1575 | ## Cache variables. ## |
| 1576 | ## ---------------- ## |
| 1577 | _ASBOX |
| 1578 | echo |
| 1579 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1580 | ( |
| 1581 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1582 | eval ac_val=\$$ac_var |
| 1583 | case $ac_val in #( |
| 1584 | *${as_nl}*) |
| 1585 | case $ac_var in #( |
| 1586 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1587 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1588 | esac |
| 1589 | case $ac_var in #( |
| 1590 | _ | IFS | as_nl) ;; #( |
| 1591 | *) $as_unset $ac_var ;; |
| 1592 | esac ;; |
| 1593 | esac |
| 1594 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1595 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1596 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1597 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1598 | sed -n \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1599 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1600 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1601 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1602 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1603 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1604 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1605 | esac | |
| 1606 | sort |
| 1607 | ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1608 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1609 | |
| 1610 | cat <<\_ASBOX |
| 1611 | ## ----------------- ## |
| 1612 | ## Output variables. ## |
| 1613 | ## ----------------- ## |
| 1614 | _ASBOX |
| 1615 | echo |
| 1616 | for ac_var in $ac_subst_vars |
| 1617 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1618 | eval ac_val=\$$ac_var |
| 1619 | echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1620 | done | sort |
| 1621 | echo |
| 1622 | |
| 1623 | if test -n "$ac_subst_files"; then |
| 1624 | cat <<\_ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1625 | ## ------------------- ## |
| 1626 | ## File substitutions. ## |
| 1627 | ## ------------------- ## |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1628 | _ASBOX |
| 1629 | echo |
| 1630 | for ac_var in $ac_subst_files |
| 1631 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1632 | eval ac_val=\$$ac_var |
| 1633 | echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1634 | done | sort |
| 1635 | echo |
| 1636 | fi |
| 1637 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1638 | if test -s confdefs.h; then |
| 1639 | cat <<\_ASBOX |
| 1640 | ## ----------- ## |
| 1641 | ## confdefs.h. ## |
| 1642 | ## ----------- ## |
| 1643 | _ASBOX |
| 1644 | echo |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1645 | cat confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1646 | echo |
| 1647 | fi |
| 1648 | test "$ac_signal" != 0 && |
| 1649 | echo "$as_me: caught signal $ac_signal" |
| 1650 | echo "$as_me: exit $exit_status" |
| 1651 | } >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1652 | rm -f core *.core core.conftest.* && |
| 1653 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1654 | exit $exit_status |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1655 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1656 | for ac_signal in 1 2 13 15; do |
| 1657 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1658 | done |
| 1659 | ac_signal=0 |
| 1660 | |
| 1661 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1662 | rm -f -r conftest* confdefs.h |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1663 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1664 | # Predefined preprocessor variables. |
| 1665 | |
| 1666 | cat >>confdefs.h <<_ACEOF |
| 1667 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1668 | _ACEOF |
| 1669 | |
| 1670 | |
| 1671 | cat >>confdefs.h <<_ACEOF |
| 1672 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1673 | _ACEOF |
| 1674 | |
| 1675 | |
| 1676 | cat >>confdefs.h <<_ACEOF |
| 1677 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1678 | _ACEOF |
| 1679 | |
| 1680 | |
| 1681 | cat >>confdefs.h <<_ACEOF |
| 1682 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1683 | _ACEOF |
| 1684 | |
| 1685 | |
| 1686 | cat >>confdefs.h <<_ACEOF |
| 1687 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1688 | _ACEOF |
| 1689 | |
| 1690 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1691 | # 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] | 1692 | # Prefer explicitly selected file to automatically selected ones. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1693 | if test -n "$CONFIG_SITE"; then |
| 1694 | set x "$CONFIG_SITE" |
| 1695 | elif test "x$prefix" != xNONE; then |
| 1696 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1697 | else |
| 1698 | set x "$ac_default_prefix/share/config.site" \ |
| 1699 | "$ac_default_prefix/etc/config.site" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1700 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1701 | shift |
| 1702 | for ac_site_file |
| 1703 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1704 | if test -r "$ac_site_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1705 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1706 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1707 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1708 | . "$ac_site_file" |
| 1709 | fi |
| 1710 | done |
| 1711 | |
| 1712 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1713 | # Some versions of bash will fail to source /dev/null (special |
| 1714 | # files actually), so we avoid doing that. |
| 1715 | if test -f "$cache_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1716 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1717 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1718 | case $cache_file in |
| 1719 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1720 | *) . ./$cache_file;; |
| 1721 | esac |
| 1722 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1723 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1724 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1725 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1726 | >$cache_file |
| 1727 | fi |
| 1728 | |
| 1729 | # Check that the precious variables saved in the cache have kept the same |
| 1730 | # value. |
| 1731 | ac_cache_corrupted=false |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1732 | for ac_var in $ac_precious_vars; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1733 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1734 | eval ac_new_set=\$ac_env_${ac_var}_set |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1735 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1736 | eval ac_new_val=\$ac_env_${ac_var}_value |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1737 | case $ac_old_set,$ac_new_set in |
| 1738 | set,) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1739 | { 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] | 1740 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1741 | ac_cache_corrupted=: ;; |
| 1742 | ,set) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1743 | { 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] | 1744 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1745 | ac_cache_corrupted=: ;; |
| 1746 | ,);; |
| 1747 | *) |
| 1748 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1749 | { 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] | 1750 | 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] | 1751 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1752 | echo "$as_me: former value: $ac_old_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1753 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1754 | echo "$as_me: current value: $ac_new_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1755 | ac_cache_corrupted=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1756 | fi;; |
| 1757 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1758 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1759 | if test "$ac_new_set" = set; then |
| 1760 | case $ac_new_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1761 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1762 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1763 | esac |
| 1764 | case " $ac_configure_args " in |
| 1765 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1766 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1767 | esac |
| 1768 | fi |
| 1769 | done |
| 1770 | if $ac_cache_corrupted; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1771 | { 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] | 1772 | 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] | 1773 | { { 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] | 1774 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1775 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1776 | fi |
| 1777 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1778 | |
| 1779 | |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1802 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1803 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1804 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1805 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1807 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1808 | |
| 1809 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1810 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1811 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1812 | ac_aux_dir= |
| 1813 | for ac_dir in tools $srcdir/tools; do |
| 1814 | if test -f $ac_dir/install-sh; then |
| 1815 | ac_aux_dir=$ac_dir |
| 1816 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1817 | break |
| 1818 | elif test -f $ac_dir/install.sh; then |
| 1819 | ac_aux_dir=$ac_dir |
| 1820 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1821 | break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1822 | elif test -f $ac_dir/shtool; then |
| 1823 | ac_aux_dir=$ac_dir |
| 1824 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1825 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1826 | fi |
| 1827 | done |
| 1828 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1829 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1830 | echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;} |
| 1831 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1832 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1833 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1834 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1835 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1836 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1837 | |
| 1838 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1839 | # Check whether --enable-win16 was given. |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1840 | if test "${enable_win16+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1841 | enableval=$enable_win16; |
| 1842 | fi |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1843 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1844 | # Check whether --enable-win64 was given. |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1845 | if test "${enable_win64+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1846 | enableval=$enable_win64; |
| 1847 | fi |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1848 | |
| 1849 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1850 | |
| 1851 | # Check whether --with-opengl was given. |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1852 | if test "${with_opengl+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1853 | withval=$with_opengl; |
| 1854 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1855 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1856 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1857 | # Check whether --with-curses was given. |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1858 | if test "${with_curses+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1859 | withval=$with_curses; |
| 1860 | fi |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1861 | |
| 1862 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1863 | # Check whether --with-wine-tools was given. |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1864 | if test "${with_wine_tools+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1865 | withval=$with_wine_tools; |
| 1866 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1867 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1868 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1869 | # Make sure we can run config.sub. |
| 1870 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1871 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1872 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1873 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1874 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1875 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1876 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1877 | if test "${ac_cv_build+set}" = set; then |
| 1878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1879 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1880 | ac_build_alias=$build_alias |
| 1881 | test "x$ac_build_alias" = x && |
| 1882 | ac_build_alias=`$ac_config_guess` |
| 1883 | test "x$ac_build_alias" = x && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1884 | { { 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] | 1885 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1886 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1887 | ac_cv_build=`$ac_config_sub $ac_build_alias` || |
| 1888 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5 |
| 1889 | echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1890 | { (exit 1); exit 1; }; } |
| 1891 | |
| 1892 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1893 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1894 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1895 | case $ac_cv_build in |
| 1896 | *-*-*) ;; |
| 1897 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1898 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1899 | { (exit 1); exit 1; }; };; |
| 1900 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1901 | build=$ac_cv_build |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1902 | ac_save_IFS=$IFS; IFS='-' |
| 1903 | set x $ac_cv_build |
| 1904 | shift |
| 1905 | build_cpu=$1 |
| 1906 | build_vendor=$2 |
| 1907 | shift; shift |
| 1908 | # Remember, the first character of IFS is used to create $*, |
| 1909 | # except with old shells: |
| 1910 | build_os=$* |
| 1911 | IFS=$ac_save_IFS |
| 1912 | 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] | 1913 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1914 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1915 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1916 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1917 | if test "${ac_cv_host+set}" = set; then |
| 1918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1919 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1920 | if test "x$host_alias" = x; then |
| 1921 | ac_cv_host=$ac_cv_build |
| 1922 | else |
| 1923 | ac_cv_host=`$ac_config_sub $host_alias` || |
| 1924 | { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5 |
| 1925 | echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1926 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1927 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1928 | |
| 1929 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1930 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1931 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1932 | case $ac_cv_host in |
| 1933 | *-*-*) ;; |
| 1934 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1935 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1936 | { (exit 1); exit 1; }; };; |
| 1937 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1938 | host=$ac_cv_host |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1939 | ac_save_IFS=$IFS; IFS='-' |
| 1940 | set x $ac_cv_host |
| 1941 | shift |
| 1942 | host_cpu=$1 |
| 1943 | host_vendor=$2 |
| 1944 | shift; shift |
| 1945 | # Remember, the first character of IFS is used to create $*, |
| 1946 | # except with old shells: |
| 1947 | host_os=$* |
| 1948 | IFS=$ac_save_IFS |
| 1949 | 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] | 1950 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1951 | |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1952 | case $host in |
| 1953 | x86_64*linux*) |
| 1954 | if test "x$enable_win64" != "xyes" |
| 1955 | then |
| 1956 | test -n "$CC" || CC="gcc -m32" |
| 1957 | test -n "$LD" || LD="ld -m elf_i386" |
| 1958 | test -n "$AS" || AS="as --32" |
Alex Woods | bbcf986 | 2005-02-10 19:09:08 +0000 | [diff] [blame] | 1959 | host_cpu="i386" |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1960 | fi |
| 1961 | ;; |
| 1962 | esac |
| 1963 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 1964 | case $host_cpu in |
| 1965 | *i[3456789]86*) |
| 1966 | if test "x$enable_win16" != "xno" |
| 1967 | then |
| 1968 | enable_win16="yes" |
| 1969 | fi |
| 1970 | ;; |
| 1971 | esac |
| 1972 | |
| 1973 | WIN16_FILES="\$(WIN16_FILES)" |
| 1974 | |
| 1975 | WIN16_INSTALL="\$(WIN16_INSTALL)" |
| 1976 | |
| 1977 | if test "x$enable_win16" != "xyes" |
| 1978 | then |
| 1979 | WIN16_FILES="" |
| 1980 | WIN16_INSTALL="" |
| 1981 | fi |
| 1982 | |
| 1983 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1984 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1985 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1986 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1987 | 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] | 1988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1989 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1990 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1991 | SHELL = /bin/sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1992 | all: |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1993 | @echo 'ac_maketemp=X"$(MAKE)"' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1994 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1995 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1996 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1997 | if test "$ac_maketemp" != X ; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1998 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1999 | else |
| 2000 | eval ac_cv_prog_make_${ac_make}_set=no |
| 2001 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2002 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2003 | fi |
| 2004 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2005 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2006 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2007 | SET_MAKE= |
| 2008 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2009 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2010 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2011 | SET_MAKE="MAKE=${MAKE-make}" |
| 2012 | fi |
| 2013 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2014 | ac_ext=c |
| 2015 | ac_cpp='$CPP $CPPFLAGS' |
| 2016 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2017 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2019 | if test -n "$ac_tool_prefix"; then |
| 2020 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2021 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2022 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2024 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2026 | else |
| 2027 | if test -n "$CC"; then |
| 2028 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2029 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2031 | for as_dir in $PATH |
| 2032 | do |
| 2033 | IFS=$as_save_IFS |
| 2034 | test -z "$as_dir" && as_dir=. |
| 2035 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2036 | 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] | 2037 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2038 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2039 | break 2 |
| 2040 | fi |
| 2041 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2042 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2043 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2044 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2045 | fi |
| 2046 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2047 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2048 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2049 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2050 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2051 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2052 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2053 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2054 | fi |
| 2055 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2056 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2057 | fi |
| 2058 | if test -z "$ac_cv_prog_CC"; then |
| 2059 | ac_ct_CC=$CC |
| 2060 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2061 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2062 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2063 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2064 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2066 | else |
| 2067 | if test -n "$ac_ct_CC"; then |
| 2068 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2069 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2071 | for as_dir in $PATH |
| 2072 | do |
| 2073 | IFS=$as_save_IFS |
| 2074 | test -z "$as_dir" && as_dir=. |
| 2075 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2076 | 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] | 2077 | ac_cv_prog_ac_ct_CC="gcc" |
| 2078 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2079 | break 2 |
| 2080 | fi |
| 2081 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2082 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2083 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2084 | |
| 2085 | fi |
| 2086 | fi |
| 2087 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2088 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2089 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2090 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2091 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2092 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2093 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2094 | fi |
| 2095 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2096 | if test "x$ac_ct_CC" = x; then |
| 2097 | CC="" |
| 2098 | else |
| 2099 | case $cross_compiling:$ac_tool_warned in |
| 2100 | yes:) |
| 2101 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2102 | whose name does not start with the host triplet. If you think this |
| 2103 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2104 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2105 | whose name does not start with the host triplet. If you think this |
| 2106 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2107 | ac_tool_warned=yes ;; |
| 2108 | esac |
| 2109 | CC=$ac_ct_CC |
| 2110 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2111 | else |
| 2112 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2113 | fi |
| 2114 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2115 | if test -z "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2116 | if test -n "$ac_tool_prefix"; then |
| 2117 | # 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] | 2118 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2119 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2121 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2123 | else |
| 2124 | if test -n "$CC"; then |
| 2125 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2126 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2128 | for as_dir in $PATH |
| 2129 | do |
| 2130 | IFS=$as_save_IFS |
| 2131 | test -z "$as_dir" && as_dir=. |
| 2132 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2133 | 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] | 2134 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2135 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2136 | break 2 |
| 2137 | fi |
| 2138 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2139 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2140 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2141 | |
| 2142 | fi |
| 2143 | fi |
| 2144 | CC=$ac_cv_prog_CC |
| 2145 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2146 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2147 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2148 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2149 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2150 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2151 | fi |
| 2152 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2153 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2154 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2155 | fi |
| 2156 | if test -z "$CC"; then |
| 2157 | # Extract the first word of "cc", so it can be a program name with args. |
| 2158 | set dummy cc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2159 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2161 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2163 | else |
| 2164 | if test -n "$CC"; then |
| 2165 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2166 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2167 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2169 | for as_dir in $PATH |
| 2170 | do |
| 2171 | IFS=$as_save_IFS |
| 2172 | test -z "$as_dir" && as_dir=. |
| 2173 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2174 | 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] | 2175 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2176 | ac_prog_rejected=yes |
| 2177 | continue |
| 2178 | fi |
| 2179 | ac_cv_prog_CC="cc" |
| 2180 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2181 | break 2 |
| 2182 | fi |
| 2183 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2184 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2185 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2186 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2187 | if test $ac_prog_rejected = yes; then |
| 2188 | # We found a bogon in the path, so make sure we never use it. |
| 2189 | set dummy $ac_cv_prog_CC |
| 2190 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2191 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2192 | # We chose a different compiler from the bogus one. |
| 2193 | # However, it has the same basename, so the bogon will be chosen |
| 2194 | # first if we set CC to just the basename; use the full file name. |
| 2195 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2196 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2197 | fi |
| 2198 | fi |
| 2199 | fi |
| 2200 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2201 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2202 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2203 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2204 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2205 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2206 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2207 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2208 | fi |
| 2209 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2210 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2211 | fi |
| 2212 | if test -z "$CC"; then |
| 2213 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2214 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2215 | do |
| 2216 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2217 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2218 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2220 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2222 | else |
| 2223 | if test -n "$CC"; then |
| 2224 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2225 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2227 | for as_dir in $PATH |
| 2228 | do |
| 2229 | IFS=$as_save_IFS |
| 2230 | test -z "$as_dir" && as_dir=. |
| 2231 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2232 | 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] | 2233 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2234 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2235 | break 2 |
| 2236 | fi |
| 2237 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2238 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2239 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2240 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2241 | fi |
| 2242 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2243 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2244 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2245 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2246 | echo "${ECHO_T}$CC" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2247 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2248 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2249 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2250 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2251 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2252 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2253 | test -n "$CC" && break |
| 2254 | done |
| 2255 | fi |
| 2256 | if test -z "$CC"; then |
| 2257 | ac_ct_CC=$CC |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2258 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2259 | do |
| 2260 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2261 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2262 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2264 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2266 | else |
| 2267 | if test -n "$ac_ct_CC"; then |
| 2268 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2269 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2271 | for as_dir in $PATH |
| 2272 | do |
| 2273 | IFS=$as_save_IFS |
| 2274 | test -z "$as_dir" && as_dir=. |
| 2275 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2276 | 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] | 2277 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2279 | break 2 |
| 2280 | fi |
| 2281 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2282 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2283 | IFS=$as_save_IFS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2284 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2285 | fi |
| 2286 | fi |
| 2287 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2288 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2289 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2290 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2291 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2292 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2293 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2294 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2295 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2296 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2297 | test -n "$ac_ct_CC" && break |
| 2298 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2299 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2300 | if test "x$ac_ct_CC" = x; then |
| 2301 | CC="" |
| 2302 | else |
| 2303 | case $cross_compiling:$ac_tool_warned in |
| 2304 | yes:) |
| 2305 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2306 | whose name does not start with the host triplet. If you think this |
| 2307 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2308 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2309 | whose name does not start with the host triplet. If you think this |
| 2310 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2311 | ac_tool_warned=yes ;; |
| 2312 | esac |
| 2313 | CC=$ac_ct_CC |
| 2314 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2315 | fi |
| 2316 | |
| 2317 | fi |
| 2318 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2319 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2320 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2321 | See \`config.log' for more details." >&5 |
| 2322 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2323 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2324 | { (exit 1); exit 1; }; } |
| 2325 | |
| 2326 | # Provide some information about the compiler. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2327 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2328 | ac_compiler=`set X $ac_compile; echo $2` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2329 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5 |
| 2330 | (eval $ac_compiler --version >&5) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2331 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2333 | (exit $ac_status); } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2334 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5 |
| 2335 | (eval $ac_compiler -v >&5) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2336 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2338 | (exit $ac_status); } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2339 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5 |
| 2340 | (eval $ac_compiler -V >&5) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2341 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2343 | (exit $ac_status); } |
| 2344 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2345 | |
| 2346 | # List of possible output files. We want to start from the most likely, |
| 2347 | # but we have to check foo.exe before foo, because Cygwin `test -f' looks |
| 2348 | # also for foo.exe. b.out is created by i960 compilers. |
| 2349 | # As a last resort, we also try wildcards: `conftest.*' and `a.*'. |
| 2350 | # But we are not allowed to rm a.*, and we do not want always remove |
| 2351 | # conftest.*, so we will list them literally, when appropriate. |
| 2352 | ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out" |
| 2353 | |
| 2354 | # The IRIX 6 linker writes into existing files which may not be |
| 2355 | # executable, retaining their permissions. Remove them first so a |
| 2356 | # subsequent execution test works. |
| 2357 | rm -f $ac_outfiles conftest.* |
| 2358 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2359 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2360 | /* confdefs.h. */ |
| 2361 | _ACEOF |
| 2362 | cat confdefs.h >>conftest.$ac_ext |
| 2363 | cat >>conftest.$ac_ext <<_ACEOF |
| 2364 | /* end confdefs.h. */ |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2365 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2366 | int |
| 2367 | main () |
| 2368 | { |
| 2369 | |
| 2370 | ; |
| 2371 | return 0; |
| 2372 | } |
| 2373 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2374 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2375 | ac_clean_files_save=$ac_clean_files |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2376 | ac_clean_files="$ac_clean_files $ac_outfiles" |
| 2377 | |
| 2378 | # The following tests should remove their output except files matching conftest.*. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2379 | # Try to create an executable without -o first, disregard a.out. |
| 2380 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2381 | # of exeext. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2382 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2383 | 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] | 2384 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2385 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2386 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2387 | (eval $ac_link_default) 2>&5 |
| 2388 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2390 | (exit $ac_status); }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2391 | for ac_file in $ac_outfiles a.* conftest.* NO |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2392 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2393 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2394 | case $ac_file in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2395 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2396 | * ) break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2397 | esac |
| 2398 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2399 | if test "$ac_file" = NO; then |
| 2400 | { { echo "$as_me:$LINENO: error: no output file found |
| 2401 | See \`config.log' for more details." >&5 |
| 2402 | echo "$as_me: error: no output file found |
| 2403 | See \`config.log' for more details." >&2;} |
| 2404 | { (exit 1); exit 1; }; } |
| 2405 | fi |
| 2406 | |
| 2407 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2408 | else |
| 2409 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2411 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2412 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2413 | See \`config.log' for more details." >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2414 | echo "$as_me: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2415 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2416 | { (exit 77); exit 77; }; } |
| 2417 | fi |
| 2418 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2419 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2420 | echo "${ECHO_T}$ac_file" >&6; } |
| 2421 | # Check that the compiler produces executables we can run. If not, either |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2422 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2423 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2424 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2425 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2426 | # If not cross compiling, check that we can run a simple program. |
| 2427 | if test "$cross_compiling" != yes; then |
| 2428 | if { ac_try='./$ac_file' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2430 | (eval $ac_try) 2>&5 |
| 2431 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2433 | (exit $ac_status); }; }; then |
| 2434 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2435 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2436 | if test "$cross_compiling" = maybe; then |
| 2437 | cross_compiling=yes |
| 2438 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2439 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2440 | If you meant to cross compile, use \`--host'. |
| 2441 | See \`config.log' for more details." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2442 | echo "$as_me: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2443 | If you meant to cross compile, use \`--host'. |
| 2444 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2445 | { (exit 1); exit 1; }; } |
| 2446 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2447 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2448 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2449 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2450 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2451 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2452 | # Clean up; list also $ac_file, in case it matched a wildcard entry. |
| 2453 | rm -f $ac_outfiles $ac_file |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2454 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2455 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2456 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2457 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2458 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2459 | |
| 2460 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2461 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2462 | if test "${ac_cv_exeext+set}" = set; then |
| 2463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2464 | else |
| 2465 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2466 | (eval $ac_link) 2>&5 |
| 2467 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2469 | (exit $ac_status); }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2470 | # If both `conftest.exe' and `conftest' are `present' (well, observable), |
| 2471 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2472 | # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'. |
| 2473 | for ac_file in conftest.exe conftest conftest.* NO; do |
| 2474 | test -f "$ac_file" || continue |
| 2475 | case $ac_file in |
| 2476 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2477 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2478 | break;; |
| 2479 | * ) break;; |
| 2480 | esac |
| 2481 | done |
| 2482 | if test "$ac_file" = NO; then |
| 2483 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found |
| 2484 | See \`config.log' for more details." >&5 |
| 2485 | echo "$as_me: error: cannot compute suffix of executables: no output file found |
| 2486 | See \`config.log' for more details." >&2;} |
| 2487 | { (exit 1); exit 1; }; } |
| 2488 | fi |
| 2489 | |
| 2490 | # Clean up; list also $ac_file, in case it matched conftest.*. |
| 2491 | rm -f $ac_outfiles $ac_file |
| 2492 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2493 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2494 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2495 | See \`config.log' for more details." >&5 |
| 2496 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2497 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2498 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2499 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2500 | fi |
| 2501 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2502 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2503 | fi |
| 2504 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2505 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2506 | EXEEXT=$ac_cv_exeext |
| 2507 | ac_exeext=$EXEEXT |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2508 | |
| 2509 | |
| 2510 | ac_clean_files=$ac_clean_files_save |
| 2511 | |
| 2512 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2513 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2514 | if test "${ac_cv_objext+set}" = set; then |
| 2515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2516 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2517 | rm -f conftest.o conftest.obj |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2519 | (eval $ac_compile) 2>&5 |
| 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 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2523 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2524 | test -f "$ac_file" || continue; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2525 | case $ac_file in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2526 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2527 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2528 | break;; |
| 2529 | esac |
| 2530 | done |
| 2531 | else |
| 2532 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2534 | |
| 2535 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2536 | See \`config.log' for more details." >&5 |
| 2537 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2538 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2539 | { (exit 1); exit 1; }; } |
| 2540 | fi |
| 2541 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2542 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2543 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2544 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2545 | OBJEXT=$ac_cv_objext |
| 2546 | ac_objext=$OBJEXT |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2547 | |
| 2548 | |
| 2549 | rm -f conftest.* |
| 2550 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2551 | 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] | 2552 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2554 | else |
| 2555 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2556 | /* confdefs.h. */ |
| 2557 | _ACEOF |
| 2558 | cat confdefs.h >>conftest.$ac_ext |
| 2559 | cat >>conftest.$ac_ext <<_ACEOF |
| 2560 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2561 | |
| 2562 | int |
| 2563 | main () |
| 2564 | { |
| 2565 | #ifndef __GNUC__ |
| 2566 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2567 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2568 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2569 | ; |
| 2570 | return 0; |
| 2571 | } |
| 2572 | _ACEOF |
| 2573 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2575 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2576 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2578 | rm -f conftest.er1 |
| 2579 | cat conftest.err >&5 |
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); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2584 | (eval $ac_try) 2>&5 |
| 2585 | ac_status=$? |
| 2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2587 | (exit $ac_status); }; } && |
| 2588 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2590 | (eval $ac_try) 2>&5 |
| 2591 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2593 | (exit $ac_status); }; }; then |
| 2594 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2595 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2596 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2598 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2599 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2600 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2601 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2603 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2604 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2605 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2606 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2607 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2608 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2609 | ac_test_CFLAGS=${CFLAGS+set} |
| 2610 | ac_save_CFLAGS=$CFLAGS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2611 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2612 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2613 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2615 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2616 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2617 | ac_c_werror_flag=yes |
| 2618 | ac_cv_prog_cc_g=no |
| 2619 | CFLAGS="-g" |
| 2620 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2621 | /* confdefs.h. */ |
| 2622 | _ACEOF |
| 2623 | cat confdefs.h >>conftest.$ac_ext |
| 2624 | cat >>conftest.$ac_ext <<_ACEOF |
| 2625 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2626 | |
| 2627 | int |
| 2628 | main () |
| 2629 | { |
| 2630 | |
| 2631 | ; |
| 2632 | return 0; |
| 2633 | } |
| 2634 | _ACEOF |
| 2635 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 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); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2644 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2646 | (eval $ac_try) 2>&5 |
| 2647 | ac_status=$? |
| 2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2649 | (exit $ac_status); }; } && |
| 2650 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2652 | (eval $ac_try) 2>&5 |
| 2653 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2655 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2656 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2657 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2658 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2660 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2661 | CFLAGS="" |
| 2662 | cat >conftest.$ac_ext <<_ACEOF |
| 2663 | /* confdefs.h. */ |
| 2664 | _ACEOF |
| 2665 | cat confdefs.h >>conftest.$ac_ext |
| 2666 | cat >>conftest.$ac_ext <<_ACEOF |
| 2667 | /* end confdefs.h. */ |
| 2668 | |
| 2669 | int |
| 2670 | main () |
| 2671 | { |
| 2672 | |
| 2673 | ; |
| 2674 | return 0; |
| 2675 | } |
| 2676 | _ACEOF |
| 2677 | rm -f conftest.$ac_objext |
| 2678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2679 | (eval $ac_compile) 2>conftest.er1 |
| 2680 | ac_status=$? |
| 2681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2682 | rm -f conftest.er1 |
| 2683 | cat conftest.err >&5 |
| 2684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2685 | (exit $ac_status); } && |
| 2686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2688 | (eval $ac_try) 2>&5 |
| 2689 | ac_status=$? |
| 2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2691 | (exit $ac_status); }; } && |
| 2692 | { ac_try='test -s conftest.$ac_objext' |
| 2693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2694 | (eval $ac_try) 2>&5 |
| 2695 | ac_status=$? |
| 2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2697 | (exit $ac_status); }; }; then |
| 2698 | : |
| 2699 | else |
| 2700 | echo "$as_me: failed program was:" >&5 |
| 2701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2702 | |
| 2703 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2704 | CFLAGS="-g" |
| 2705 | cat >conftest.$ac_ext <<_ACEOF |
| 2706 | /* confdefs.h. */ |
| 2707 | _ACEOF |
| 2708 | cat confdefs.h >>conftest.$ac_ext |
| 2709 | cat >>conftest.$ac_ext <<_ACEOF |
| 2710 | /* end confdefs.h. */ |
| 2711 | |
| 2712 | int |
| 2713 | main () |
| 2714 | { |
| 2715 | |
| 2716 | ; |
| 2717 | return 0; |
| 2718 | } |
| 2719 | _ACEOF |
| 2720 | rm -f conftest.$ac_objext |
| 2721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2722 | (eval $ac_compile) 2>conftest.er1 |
| 2723 | ac_status=$? |
| 2724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2725 | rm -f conftest.er1 |
| 2726 | cat conftest.err >&5 |
| 2727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2728 | (exit $ac_status); } && |
| 2729 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2731 | (eval $ac_try) 2>&5 |
| 2732 | ac_status=$? |
| 2733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2734 | (exit $ac_status); }; } && |
| 2735 | { ac_try='test -s conftest.$ac_objext' |
| 2736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2737 | (eval $ac_try) 2>&5 |
| 2738 | ac_status=$? |
| 2739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2740 | (exit $ac_status); }; }; then |
| 2741 | ac_cv_prog_cc_g=yes |
| 2742 | else |
| 2743 | echo "$as_me: failed program was:" >&5 |
| 2744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2745 | |
| 2746 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2747 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2748 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2750 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2751 | |
| 2752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2753 | fi |
| 2754 | |
| 2755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2756 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2757 | fi |
| 2758 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2759 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2760 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2761 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2762 | elif test $ac_cv_prog_cc_g = yes; then |
| 2763 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2764 | CFLAGS="-g -O2" |
| 2765 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2766 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2767 | fi |
| 2768 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2769 | if test "$GCC" = yes; then |
| 2770 | CFLAGS="-O2" |
| 2771 | else |
| 2772 | CFLAGS= |
| 2773 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2774 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2775 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2776 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2777 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2779 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2780 | ac_cv_prog_cc_c89=no |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2781 | ac_save_CC=$CC |
| 2782 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2783 | /* confdefs.h. */ |
| 2784 | _ACEOF |
| 2785 | cat confdefs.h >>conftest.$ac_ext |
| 2786 | cat >>conftest.$ac_ext <<_ACEOF |
| 2787 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2788 | #include <stdarg.h> |
| 2789 | #include <stdio.h> |
| 2790 | #include <sys/types.h> |
| 2791 | #include <sys/stat.h> |
| 2792 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2793 | struct buf { int x; }; |
| 2794 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2795 | static char *e (p, i) |
| 2796 | char **p; |
| 2797 | int i; |
| 2798 | { |
| 2799 | return p[i]; |
| 2800 | } |
| 2801 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2802 | { |
| 2803 | char *s; |
| 2804 | va_list v; |
| 2805 | va_start (v,p); |
| 2806 | s = g (p, va_arg (v,int)); |
| 2807 | va_end (v); |
| 2808 | return s; |
| 2809 | } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2810 | |
| 2811 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2812 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2813 | These don't provoke an error unfortunately, instead are silently treated |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2814 | 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] | 2815 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2816 | 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] | 2817 | that's true only with -std. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2818 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2819 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2820 | int test (int i, double x); |
| 2821 | struct s1 {int (*f) (int a);}; |
| 2822 | struct s2 {int (*f) (double a);}; |
| 2823 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2824 | int argc; |
| 2825 | char **argv; |
| 2826 | int |
| 2827 | main () |
| 2828 | { |
| 2829 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2830 | ; |
| 2831 | return 0; |
| 2832 | } |
| 2833 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2834 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2835 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2836 | do |
| 2837 | CC="$ac_save_CC $ac_arg" |
| 2838 | rm -f conftest.$ac_objext |
| 2839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2840 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2841 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2843 | rm -f conftest.er1 |
| 2844 | cat conftest.err >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2846 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2847 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2849 | (eval $ac_try) 2>&5 |
| 2850 | ac_status=$? |
| 2851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2852 | (exit $ac_status); }; } && |
| 2853 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2855 | (eval $ac_try) 2>&5 |
| 2856 | ac_status=$? |
| 2857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2858 | (exit $ac_status); }; }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2859 | ac_cv_prog_cc_c89=$ac_arg |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2860 | else |
| 2861 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2863 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2864 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2865 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2866 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2867 | rm -f conftest.err conftest.$ac_objext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2868 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2869 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2870 | rm -f conftest.$ac_ext |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2871 | CC=$ac_save_CC |
| 2872 | |
| 2873 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2874 | # AC_CACHE_VAL |
| 2875 | case "x$ac_cv_prog_cc_c89" in |
| 2876 | x) |
| 2877 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2878 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2879 | xno) |
| 2880 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2881 | echo "${ECHO_T}unsupported" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2882 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2883 | CC="$CC $ac_cv_prog_cc_c89" |
| 2884 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2885 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2886 | esac |
| 2887 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2888 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2889 | ac_ext=c |
| 2890 | ac_cpp='$CPP $CPPFLAGS' |
| 2891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2894 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2895 | ac_ext=cpp |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2896 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2897 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2898 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2899 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2900 | if test -z "$CXX"; then |
| 2901 | if test -n "$CCC"; then |
| 2902 | CXX=$CCC |
| 2903 | else |
| 2904 | if test -n "$ac_tool_prefix"; then |
| 2905 | 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] | 2906 | do |
| 2907 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2908 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2909 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2910 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2911 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2913 | else |
| 2914 | if test -n "$CXX"; then |
| 2915 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2916 | else |
| 2917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2918 | for as_dir in $PATH |
| 2919 | do |
| 2920 | IFS=$as_save_IFS |
| 2921 | test -z "$as_dir" && as_dir=. |
| 2922 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2923 | 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] | 2924 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2925 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2926 | break 2 |
| 2927 | fi |
| 2928 | done |
| 2929 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2930 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2931 | |
| 2932 | fi |
| 2933 | fi |
| 2934 | CXX=$ac_cv_prog_CXX |
| 2935 | if test -n "$CXX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2936 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2937 | echo "${ECHO_T}$CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2938 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2939 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2940 | echo "${ECHO_T}no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2941 | fi |
| 2942 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2943 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2944 | test -n "$CXX" && break |
| 2945 | done |
| 2946 | fi |
| 2947 | if test -z "$CXX"; then |
| 2948 | ac_ct_CXX=$CXX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2949 | 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] | 2950 | do |
| 2951 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2952 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2953 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2955 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2957 | else |
| 2958 | if test -n "$ac_ct_CXX"; then |
| 2959 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2960 | else |
| 2961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2962 | for as_dir in $PATH |
| 2963 | do |
| 2964 | IFS=$as_save_IFS |
| 2965 | test -z "$as_dir" && as_dir=. |
| 2966 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2967 | 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] | 2968 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2970 | break 2 |
| 2971 | fi |
| 2972 | done |
| 2973 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2974 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2975 | |
| 2976 | fi |
| 2977 | fi |
| 2978 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2979 | if test -n "$ac_ct_CXX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2980 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2981 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2982 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2983 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2984 | echo "${ECHO_T}no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2985 | fi |
| 2986 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2987 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2988 | test -n "$ac_ct_CXX" && break |
| 2989 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2990 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2991 | if test "x$ac_ct_CXX" = x; then |
| 2992 | CXX="g++" |
| 2993 | else |
| 2994 | case $cross_compiling:$ac_tool_warned in |
| 2995 | yes:) |
| 2996 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2997 | whose name does not start with the host triplet. If you think this |
| 2998 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2999 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3000 | whose name does not start with the host triplet. If you think this |
| 3001 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3002 | ac_tool_warned=yes ;; |
| 3003 | esac |
| 3004 | CXX=$ac_ct_CXX |
| 3005 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3006 | fi |
| 3007 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3008 | fi |
| 3009 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3010 | # Provide some information about the compiler. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3011 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3012 | ac_compiler=`set X $ac_compile; echo $2` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3013 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5 |
| 3014 | (eval $ac_compiler --version >&5) 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3015 | ac_status=$? |
| 3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3017 | (exit $ac_status); } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3018 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5 |
| 3019 | (eval $ac_compiler -v >&5) 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3020 | ac_status=$? |
| 3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3022 | (exit $ac_status); } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3023 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5 |
| 3024 | (eval $ac_compiler -V >&5) 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3025 | ac_status=$? |
| 3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3027 | (exit $ac_status); } |
| 3028 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3029 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3030 | 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] | 3031 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3033 | else |
| 3034 | cat >conftest.$ac_ext <<_ACEOF |
| 3035 | /* confdefs.h. */ |
| 3036 | _ACEOF |
| 3037 | cat confdefs.h >>conftest.$ac_ext |
| 3038 | cat >>conftest.$ac_ext <<_ACEOF |
| 3039 | /* end confdefs.h. */ |
| 3040 | |
| 3041 | int |
| 3042 | main () |
| 3043 | { |
| 3044 | #ifndef __GNUC__ |
| 3045 | choke me |
| 3046 | #endif |
| 3047 | |
| 3048 | ; |
| 3049 | return 0; |
| 3050 | } |
| 3051 | _ACEOF |
| 3052 | rm -f conftest.$ac_objext |
| 3053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3054 | (eval $ac_compile) 2>conftest.er1 |
| 3055 | ac_status=$? |
| 3056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3057 | rm -f conftest.er1 |
| 3058 | cat conftest.err >&5 |
| 3059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3060 | (exit $ac_status); } && |
| 3061 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3063 | (eval $ac_try) 2>&5 |
| 3064 | ac_status=$? |
| 3065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3066 | (exit $ac_status); }; } && |
| 3067 | { ac_try='test -s conftest.$ac_objext' |
| 3068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3069 | (eval $ac_try) 2>&5 |
| 3070 | ac_status=$? |
| 3071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3072 | (exit $ac_status); }; }; then |
| 3073 | ac_compiler_gnu=yes |
| 3074 | else |
| 3075 | echo "$as_me: failed program was:" >&5 |
| 3076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3077 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3078 | ac_compiler_gnu=no |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3079 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3080 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3082 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3083 | |
| 3084 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3085 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3086 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3087 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3088 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3089 | ac_save_CXXFLAGS=$CXXFLAGS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3090 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3091 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3092 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3094 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3095 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3096 | ac_cxx_werror_flag=yes |
| 3097 | ac_cv_prog_cxx_g=no |
| 3098 | CXXFLAGS="-g" |
| 3099 | cat >conftest.$ac_ext <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3100 | /* confdefs.h. */ |
| 3101 | _ACEOF |
| 3102 | cat confdefs.h >>conftest.$ac_ext |
| 3103 | cat >>conftest.$ac_ext <<_ACEOF |
| 3104 | /* end confdefs.h. */ |
| 3105 | |
| 3106 | int |
| 3107 | main () |
| 3108 | { |
| 3109 | |
| 3110 | ; |
| 3111 | return 0; |
| 3112 | } |
| 3113 | _ACEOF |
| 3114 | rm -f conftest.$ac_objext |
| 3115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3116 | (eval $ac_compile) 2>conftest.er1 |
| 3117 | ac_status=$? |
| 3118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3119 | rm -f conftest.er1 |
| 3120 | cat conftest.err >&5 |
| 3121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3122 | (exit $ac_status); } && |
| 3123 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3125 | (eval $ac_try) 2>&5 |
| 3126 | ac_status=$? |
| 3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3128 | (exit $ac_status); }; } && |
| 3129 | { ac_try='test -s conftest.$ac_objext' |
| 3130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3131 | (eval $ac_try) 2>&5 |
| 3132 | ac_status=$? |
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3134 | (exit $ac_status); }; }; then |
| 3135 | ac_cv_prog_cxx_g=yes |
| 3136 | else |
| 3137 | echo "$as_me: failed program was:" >&5 |
| 3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3139 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3140 | CXXFLAGS="" |
| 3141 | cat >conftest.$ac_ext <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3142 | /* confdefs.h. */ |
| 3143 | _ACEOF |
| 3144 | cat confdefs.h >>conftest.$ac_ext |
| 3145 | cat >>conftest.$ac_ext <<_ACEOF |
| 3146 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3147 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3148 | int |
| 3149 | main () |
| 3150 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3151 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3152 | ; |
| 3153 | return 0; |
| 3154 | } |
| 3155 | _ACEOF |
| 3156 | rm -f conftest.$ac_objext |
| 3157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3158 | (eval $ac_compile) 2>conftest.er1 |
| 3159 | ac_status=$? |
| 3160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3161 | rm -f conftest.er1 |
| 3162 | cat conftest.err >&5 |
| 3163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3164 | (exit $ac_status); } && |
| 3165 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3167 | (eval $ac_try) 2>&5 |
| 3168 | ac_status=$? |
| 3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3170 | (exit $ac_status); }; } && |
| 3171 | { ac_try='test -s conftest.$ac_objext' |
| 3172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3173 | (eval $ac_try) 2>&5 |
| 3174 | ac_status=$? |
| 3175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3176 | (exit $ac_status); }; }; then |
| 3177 | : |
| 3178 | else |
| 3179 | echo "$as_me: failed program was:" >&5 |
| 3180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3181 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3182 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3183 | CXXFLAGS="-g" |
| 3184 | cat >conftest.$ac_ext <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3185 | /* confdefs.h. */ |
| 3186 | _ACEOF |
| 3187 | cat confdefs.h >>conftest.$ac_ext |
| 3188 | cat >>conftest.$ac_ext <<_ACEOF |
| 3189 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3190 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3191 | int |
| 3192 | main () |
| 3193 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3194 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3195 | ; |
| 3196 | return 0; |
| 3197 | } |
| 3198 | _ACEOF |
| 3199 | rm -f conftest.$ac_objext |
| 3200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3201 | (eval $ac_compile) 2>conftest.er1 |
| 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); } && |
| 3208 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3210 | (eval $ac_try) 2>&5 |
| 3211 | ac_status=$? |
| 3212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3213 | (exit $ac_status); }; } && |
| 3214 | { ac_try='test -s conftest.$ac_objext' |
| 3215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3216 | (eval $ac_try) 2>&5 |
| 3217 | ac_status=$? |
| 3218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3219 | (exit $ac_status); }; }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3220 | ac_cv_prog_cxx_g=yes |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3221 | else |
| 3222 | echo "$as_me: failed program was:" >&5 |
| 3223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3224 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3225 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3226 | fi |
| 3227 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3229 | fi |
| 3230 | |
| 3231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3232 | fi |
| 3233 | |
| 3234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3235 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3236 | fi |
| 3237 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3238 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3239 | if test "$ac_test_CXXFLAGS" = set; then |
| 3240 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3241 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3242 | if test "$GXX" = yes; then |
| 3243 | CXXFLAGS="-g -O2" |
| 3244 | else |
| 3245 | CXXFLAGS="-g" |
| 3246 | fi |
| 3247 | else |
| 3248 | if test "$GXX" = yes; then |
| 3249 | CXXFLAGS="-O2" |
| 3250 | else |
| 3251 | CXXFLAGS= |
| 3252 | fi |
| 3253 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3254 | ac_ext=c |
| 3255 | ac_cpp='$CPP $CPPFLAGS' |
| 3256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3259 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3260 | if test -n "$ac_tool_prefix"; then |
| 3261 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. |
| 3262 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3263 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3265 | if test "${ac_cv_prog_CPPBIN+set}" = set; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3267 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3268 | if test -n "$CPPBIN"; then |
| 3269 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3270 | else |
| 3271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3272 | for as_dir in $PATH |
| 3273 | do |
| 3274 | IFS=$as_save_IFS |
| 3275 | test -z "$as_dir" && as_dir=. |
| 3276 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3277 | 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] | 3278 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3279 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3280 | break 2 |
| 3281 | fi |
| 3282 | done |
| 3283 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3284 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3285 | |
| 3286 | fi |
| 3287 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3288 | CPPBIN=$ac_cv_prog_CPPBIN |
| 3289 | if test -n "$CPPBIN"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3290 | { echo "$as_me:$LINENO: result: $CPPBIN" >&5 |
| 3291 | echo "${ECHO_T}$CPPBIN" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3292 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3293 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3294 | echo "${ECHO_T}no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3295 | fi |
| 3296 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3297 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3298 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3299 | if test -z "$ac_cv_prog_CPPBIN"; then |
| 3300 | ac_ct_CPPBIN=$CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3301 | # Extract the first word of "cpp", so it can be a program name with args. |
| 3302 | set dummy cpp; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3303 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3305 | if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3307 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3308 | if test -n "$ac_ct_CPPBIN"; then |
| 3309 | 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] | 3310 | else |
| 3311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3312 | for as_dir in $PATH |
| 3313 | do |
| 3314 | IFS=$as_save_IFS |
| 3315 | test -z "$as_dir" && as_dir=. |
| 3316 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3317 | 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] | 3318 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3320 | break 2 |
| 3321 | fi |
| 3322 | done |
| 3323 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3324 | IFS=$as_save_IFS |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3325 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3326 | fi |
| 3327 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3328 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
| 3329 | if test -n "$ac_ct_CPPBIN"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3330 | { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5 |
| 3331 | echo "${ECHO_T}$ac_ct_CPPBIN" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3332 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3333 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3334 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3335 | fi |
| 3336 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3337 | if test "x$ac_ct_CPPBIN" = x; then |
| 3338 | CPPBIN="cpp" |
| 3339 | else |
| 3340 | case $cross_compiling:$ac_tool_warned in |
| 3341 | yes:) |
| 3342 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3343 | whose name does not start with the host triplet. If you think this |
| 3344 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3345 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3346 | whose name does not start with the host triplet. If you think this |
| 3347 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3348 | ac_tool_warned=yes ;; |
| 3349 | esac |
| 3350 | CPPBIN=$ac_ct_CPPBIN |
| 3351 | fi |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3352 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3353 | CPPBIN="$ac_cv_prog_CPPBIN" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3354 | fi |
| 3355 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3356 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3357 | { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
| 3358 | 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] | 3359 | if test "${wine_cv_toolsdir+set}" = set; then |
| 3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3361 | else |
| 3362 | if test -z "$with_wine_tools"; then |
| 3363 | if test "$cross_compiling" = "yes"; then |
| 3364 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 |
| 3365 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} |
| 3366 | { (exit 1); exit 1; }; } |
| 3367 | else |
| 3368 | wine_cv_toolsdir="\$(TOPOBJDIR)" |
| 3369 | fi |
| 3370 | elif test -d "$with_wine_tools/tools/winebuild"; then |
| 3371 | case $with_wine_tools in |
| 3372 | /*) wine_cv_toolsdir="$with_wine_tools" ;; |
| 3373 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; |
| 3374 | esac |
| 3375 | else |
| 3376 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 |
| 3377 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} |
| 3378 | { (exit 1); exit 1; }; } |
| 3379 | fi |
| 3380 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3381 | { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
| 3382 | echo "${ECHO_T}$wine_cv_toolsdir" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3383 | TOOLSDIR=$wine_cv_toolsdir |
| 3384 | |
| 3385 | |
| 3386 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3387 | ac_ext=c |
| 3388 | ac_cpp='$CPP $CPPFLAGS' |
| 3389 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3390 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3391 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3392 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3393 | 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] | 3394 | # On Suns, sometimes $CPP names a directory. |
| 3395 | if test -n "$CPP" && test -d "$CPP"; then |
| 3396 | CPP= |
| 3397 | fi |
| 3398 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3399 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3401 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3402 | # Double quotes because CPP needs to be expanded |
| 3403 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3404 | do |
| 3405 | ac_preproc_ok=false |
| 3406 | for ac_c_preproc_warn_flag in '' yes |
| 3407 | do |
| 3408 | # Use a header file that comes with gcc, so configuring glibc |
| 3409 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3410 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3411 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3412 | # 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] | 3413 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3414 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3415 | /* confdefs.h. */ |
| 3416 | _ACEOF |
| 3417 | cat confdefs.h >>conftest.$ac_ext |
| 3418 | cat >>conftest.$ac_ext <<_ACEOF |
| 3419 | /* end confdefs.h. */ |
| 3420 | #ifdef __STDC__ |
| 3421 | # include <limits.h> |
| 3422 | #else |
| 3423 | # include <assert.h> |
| 3424 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3425 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3426 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3427 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3428 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3429 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3430 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3431 | rm -f conftest.er1 |
| 3432 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3434 | (exit $ac_status); } >/dev/null; then |
| 3435 | if test -s conftest.err; then |
| 3436 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3437 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3438 | else |
| 3439 | ac_cpp_err= |
| 3440 | fi |
| 3441 | else |
| 3442 | ac_cpp_err=yes |
| 3443 | fi |
| 3444 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3445 | : |
| 3446 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3447 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3449 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3450 | # Broken: fails on valid input. |
| 3451 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3452 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3453 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3454 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3455 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3456 | # OK, works on sane cases. Now check whether nonexistent headers |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3457 | # can be detected and how. |
| 3458 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3459 | /* confdefs.h. */ |
| 3460 | _ACEOF |
| 3461 | cat confdefs.h >>conftest.$ac_ext |
| 3462 | cat >>conftest.$ac_ext <<_ACEOF |
| 3463 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3464 | #include <ac_nonexistent.h> |
| 3465 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3466 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3467 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3468 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3469 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3470 | rm -f conftest.er1 |
| 3471 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3473 | (exit $ac_status); } >/dev/null; then |
| 3474 | if test -s conftest.err; then |
| 3475 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3476 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3477 | else |
| 3478 | ac_cpp_err= |
| 3479 | fi |
| 3480 | else |
| 3481 | ac_cpp_err=yes |
| 3482 | fi |
| 3483 | if test -z "$ac_cpp_err"; then |
| 3484 | # Broken: success on invalid input. |
| 3485 | continue |
| 3486 | else |
| 3487 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3489 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3490 | # Passes both tests. |
| 3491 | ac_preproc_ok=: |
| 3492 | break |
| 3493 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3494 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3495 | rm -f conftest.err conftest.$ac_ext |
| 3496 | |
| 3497 | done |
| 3498 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3499 | rm -f conftest.err conftest.$ac_ext |
| 3500 | if $ac_preproc_ok; then |
| 3501 | break |
| 3502 | fi |
| 3503 | |
| 3504 | done |
| 3505 | ac_cv_prog_CPP=$CPP |
| 3506 | |
| 3507 | fi |
| 3508 | CPP=$ac_cv_prog_CPP |
| 3509 | else |
| 3510 | ac_cv_prog_CPP=$CPP |
| 3511 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3512 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3513 | echo "${ECHO_T}$CPP" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3514 | ac_preproc_ok=false |
| 3515 | for ac_c_preproc_warn_flag in '' yes |
| 3516 | do |
| 3517 | # Use a header file that comes with gcc, so configuring glibc |
| 3518 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3519 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3520 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3521 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3522 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3523 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3524 | /* confdefs.h. */ |
| 3525 | _ACEOF |
| 3526 | cat confdefs.h >>conftest.$ac_ext |
| 3527 | cat >>conftest.$ac_ext <<_ACEOF |
| 3528 | /* end confdefs.h. */ |
| 3529 | #ifdef __STDC__ |
| 3530 | # include <limits.h> |
| 3531 | #else |
| 3532 | # include <assert.h> |
| 3533 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3534 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3535 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3536 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3537 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3538 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3539 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3540 | rm -f conftest.er1 |
| 3541 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3543 | (exit $ac_status); } >/dev/null; then |
| 3544 | if test -s conftest.err; then |
| 3545 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3546 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3547 | else |
| 3548 | ac_cpp_err= |
| 3549 | fi |
| 3550 | else |
| 3551 | ac_cpp_err=yes |
| 3552 | fi |
| 3553 | if test -z "$ac_cpp_err"; then |
| 3554 | : |
| 3555 | else |
| 3556 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3558 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3559 | # Broken: fails on valid input. |
| 3560 | continue |
| 3561 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3562 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3563 | rm -f conftest.err conftest.$ac_ext |
| 3564 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3565 | # OK, works on sane cases. Now check whether nonexistent headers |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3566 | # can be detected and how. |
| 3567 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3568 | /* confdefs.h. */ |
| 3569 | _ACEOF |
| 3570 | cat confdefs.h >>conftest.$ac_ext |
| 3571 | cat >>conftest.$ac_ext <<_ACEOF |
| 3572 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3573 | #include <ac_nonexistent.h> |
| 3574 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3575 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3576 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3577 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3578 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3579 | rm -f conftest.er1 |
| 3580 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3582 | (exit $ac_status); } >/dev/null; then |
| 3583 | if test -s conftest.err; then |
| 3584 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3585 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3586 | else |
| 3587 | ac_cpp_err= |
| 3588 | fi |
| 3589 | else |
| 3590 | ac_cpp_err=yes |
| 3591 | fi |
| 3592 | if test -z "$ac_cpp_err"; then |
| 3593 | # Broken: success on invalid input. |
| 3594 | continue |
| 3595 | else |
| 3596 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3598 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3599 | # Passes both tests. |
| 3600 | ac_preproc_ok=: |
| 3601 | break |
| 3602 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3603 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3604 | rm -f conftest.err conftest.$ac_ext |
| 3605 | |
| 3606 | done |
| 3607 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3608 | rm -f conftest.err conftest.$ac_ext |
| 3609 | if $ac_preproc_ok; then |
| 3610 | : |
| 3611 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3612 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3613 | See \`config.log' for more details." >&5 |
| 3614 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3615 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3616 | { (exit 1); exit 1; }; } |
| 3617 | fi |
| 3618 | |
| 3619 | ac_ext=c |
| 3620 | ac_cpp='$CPP $CPPFLAGS' |
| 3621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3624 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3625 | |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3626 | |
| 3627 | if test "x$ac_path_x_has_been_run" != xyes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3628 | { echo "$as_me:$LINENO: checking for X" >&5 |
| 3629 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3630 | |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3631 | ac_path_x_has_been_run=yes |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3632 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3633 | # Check whether --with-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3634 | if test "${with_x+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3635 | withval=$with_x; |
| 3636 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3637 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3638 | # $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] | 3639 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3640 | # The user explicitly disabled X. |
| 3641 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3642 | else |
| 3643 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3644 | # Both variables are already set. |
| 3645 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3646 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3647 | if test "${ac_cv_have_x+set}" = set; then |
| 3648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3649 | else |
| 3650 | # 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] | 3651 | ac_x_includes=no ac_x_libraries=no |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3652 | rm -f -r conftest.dir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3653 | if mkdir conftest.dir; then |
| 3654 | cd conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3655 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3656 | cat >Imakefile <<'_ACEOF' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3657 | acfindx: |
| 3658 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3659 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3660 | 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] | 3661 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3662 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3663 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 3664 | for ac_extension in a so sl; do |
| 3665 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3666 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 3667 | ac_im_usrlibdir=$ac_im_libdir; break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3668 | fi |
| 3669 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3670 | # Screen out bogus values from the imake configuration. They are |
| 3671 | # bogus both because they are the default anyway, and because |
| 3672 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3673 | case $ac_im_incroot in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3674 | /usr/include) ac_x_includes= ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3675 | *) 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] | 3676 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3677 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3678 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3679 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3680 | esac |
| 3681 | fi |
| 3682 | cd .. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3683 | rm -f -r conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3684 | fi |
| 3685 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3686 | # Standard set of common directories for X headers. |
| 3687 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 3688 | ac_x_header_dirs=' |
| 3689 | /usr/X11/include |
| 3690 | /usr/X11R6/include |
| 3691 | /usr/X11R5/include |
| 3692 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3693 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3694 | /usr/include/X11 |
| 3695 | /usr/include/X11R6 |
| 3696 | /usr/include/X11R5 |
| 3697 | /usr/include/X11R4 |
| 3698 | |
| 3699 | /usr/local/X11/include |
| 3700 | /usr/local/X11R6/include |
| 3701 | /usr/local/X11R5/include |
| 3702 | /usr/local/X11R4/include |
| 3703 | |
| 3704 | /usr/local/include/X11 |
| 3705 | /usr/local/include/X11R6 |
| 3706 | /usr/local/include/X11R5 |
| 3707 | /usr/local/include/X11R4 |
| 3708 | |
| 3709 | /usr/X386/include |
| 3710 | /usr/x386/include |
| 3711 | /usr/XFree86/include/X11 |
| 3712 | |
| 3713 | /usr/include |
| 3714 | /usr/local/include |
| 3715 | /usr/unsupported/include |
| 3716 | /usr/athena/include |
| 3717 | /usr/local/x11r5/include |
| 3718 | /usr/lpp/Xamples/include |
| 3719 | |
| 3720 | /usr/openwin/include |
| 3721 | /usr/openwin/share/include' |
| 3722 | |
| 3723 | if test "$ac_x_includes" = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3724 | # Guess where to find include files, by looking for Xlib.h. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3725 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3726 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3727 | /* confdefs.h. */ |
| 3728 | _ACEOF |
| 3729 | cat confdefs.h >>conftest.$ac_ext |
| 3730 | cat >>conftest.$ac_ext <<_ACEOF |
| 3731 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3732 | #include <X11/Xlib.h.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3733 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3734 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3735 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3736 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3737 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3738 | rm -f conftest.er1 |
| 3739 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3741 | (exit $ac_status); } >/dev/null; then |
| 3742 | if test -s conftest.err; then |
| 3743 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3744 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3745 | else |
| 3746 | ac_cpp_err= |
| 3747 | fi |
| 3748 | else |
| 3749 | ac_cpp_err=yes |
| 3750 | fi |
| 3751 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3752 | # We can compile using X headers with no special include directory. |
| 3753 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3754 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3755 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3757 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3758 | for ac_dir in $ac_x_header_dirs; do |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 3759 | if test -r "$ac_dir/X11/Xlib.h"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3760 | ac_x_includes=$ac_dir |
| 3761 | break |
| 3762 | fi |
| 3763 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3764 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3765 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3766 | rm -f conftest.err conftest.$ac_ext |
| 3767 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3768 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3769 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3770 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3771 | # See if we find them without any special options. |
| 3772 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3773 | ac_save_LIBS=$LIBS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3774 | LIBS="-lXt $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3775 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3776 | /* confdefs.h. */ |
| 3777 | _ACEOF |
| 3778 | cat confdefs.h >>conftest.$ac_ext |
| 3779 | cat >>conftest.$ac_ext <<_ACEOF |
| 3780 | /* end confdefs.h. */ |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 3781 | #include <X11/Xlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3782 | int |
| 3783 | main () |
| 3784 | { |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 3785 | XrmInitialize () |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3786 | ; |
| 3787 | return 0; |
| 3788 | } |
| 3789 | _ACEOF |
| 3790 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3792 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3793 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3795 | rm -f conftest.er1 |
| 3796 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3798 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3801 | (eval $ac_try) 2>&5 |
| 3802 | ac_status=$? |
| 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3804 | (exit $ac_status); }; } && |
| 3805 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3807 | (eval $ac_try) 2>&5 |
| 3808 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3810 | (exit $ac_status); }; }; then |
| 3811 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3812 | # We can link X programs with no special library path. |
| 3813 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3814 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3815 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3817 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3818 | LIBS=$ac_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3819 | 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] | 3820 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3821 | # 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] | 3822 | for ac_extension in a so sl; do |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 3823 | if test -r $ac_dir/libX11.$ac_extension; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3824 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3825 | break 2 |
| 3826 | fi |
| 3827 | done |
| 3828 | done |
| 3829 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3830 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3831 | rm -f conftest.err conftest.$ac_objext \ |
| 3832 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3833 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3834 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3835 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3836 | # Didn't find X anywhere. Cache the known absence of X. |
| 3837 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3838 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3839 | # Record where we found X for the cache. |
| 3840 | ac_cv_have_x="have_x=yes \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3841 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3842 | fi |
| 3843 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3844 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3845 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3846 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3847 | fi # $with_x != no |
| 3848 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3849 | if test "$have_x" != yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3850 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
| 3851 | echo "${ECHO_T}$have_x" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3852 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3853 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3854 | # 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] | 3855 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 3856 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3857 | # Update the cache value to reflect the command line values. |
| 3858 | ac_cv_have_x="have_x=yes \ |
| 3859 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3860 | # It might be that x_includes is empty (headers are found in the |
| 3861 | # standard search path. Then output the corresponding message |
| 3862 | ac_out_x_includes=$x_includes |
| 3863 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3864 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 |
| 3865 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3866 | fi |
| 3867 | |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3868 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3869 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3870 | # 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] | 3871 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3872 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3873 | #define X_DISPLAY_MISSING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3874 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3875 | |
| 3876 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3877 | else |
| 3878 | if test -n "$x_includes"; then |
| 3879 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 3880 | fi |
| 3881 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3882 | # It would also be nice to do this for all -L options, not just this one. |
| 3883 | if test -n "$x_libraries"; then |
| 3884 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3885 | # For Solaris; some versions of Sun CC require a space after -R and |
| 3886 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3887 | case `(uname -sr) 2>/dev/null` in |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3888 | "SunOS 5"*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3889 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 3890 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3891 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 3892 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3893 | /* confdefs.h. */ |
| 3894 | _ACEOF |
| 3895 | cat confdefs.h >>conftest.$ac_ext |
| 3896 | cat >>conftest.$ac_ext <<_ACEOF |
| 3897 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3898 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3899 | int |
| 3900 | main () |
| 3901 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3902 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3903 | ; |
| 3904 | return 0; |
| 3905 | } |
| 3906 | _ACEOF |
| 3907 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3909 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3910 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3912 | rm -f conftest.er1 |
| 3913 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3915 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3916 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3918 | (eval $ac_try) 2>&5 |
| 3919 | ac_status=$? |
| 3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3921 | (exit $ac_status); }; } && |
| 3922 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3924 | (eval $ac_try) 2>&5 |
| 3925 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3927 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3928 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3929 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3930 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3932 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3933 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3934 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3935 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3936 | rm -f conftest.err conftest.$ac_objext \ |
| 3937 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3938 | if test $ac_R_nospace = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3939 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3940 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3941 | X_LIBS="$X_LIBS -R$x_libraries" |
| 3942 | else |
| 3943 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3944 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3945 | /* confdefs.h. */ |
| 3946 | _ACEOF |
| 3947 | cat confdefs.h >>conftest.$ac_ext |
| 3948 | cat >>conftest.$ac_ext <<_ACEOF |
| 3949 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3950 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3951 | int |
| 3952 | main () |
| 3953 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3954 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3955 | ; |
| 3956 | return 0; |
| 3957 | } |
| 3958 | _ACEOF |
| 3959 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3961 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3962 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3964 | rm -f conftest.er1 |
| 3965 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3967 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3968 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3970 | (eval $ac_try) 2>&5 |
| 3971 | ac_status=$? |
| 3972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3973 | (exit $ac_status); }; } && |
| 3974 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3976 | (eval $ac_try) 2>&5 |
| 3977 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3979 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3980 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3981 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3982 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3984 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3985 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3986 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3987 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3988 | rm -f conftest.err conftest.$ac_objext \ |
| 3989 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3990 | if test $ac_R_space = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3991 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3992 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3993 | X_LIBS="$X_LIBS -R $x_libraries" |
| 3994 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3995 | { echo "$as_me:$LINENO: result: neither works" >&5 |
| 3996 | echo "${ECHO_T}neither works" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3997 | fi |
| 3998 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3999 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4000 | esac |
| 4001 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4002 | |
| 4003 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4004 | # Do this before checking for the system-independent R6 libraries |
| 4005 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4006 | |
| 4007 | if test "$ISC" = yes; then |
| 4008 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 4009 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4010 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 4011 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4012 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4013 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 4014 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4015 | /* confdefs.h. */ |
| 4016 | _ACEOF |
| 4017 | cat confdefs.h >>conftest.$ac_ext |
| 4018 | cat >>conftest.$ac_ext <<_ACEOF |
| 4019 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4020 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4021 | /* Override any GCC internal prototype to avoid an error. |
| 4022 | Use char because int might match the return type of a GCC |
| 4023 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4024 | #ifdef __cplusplus |
| 4025 | extern "C" |
| 4026 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4027 | char XOpenDisplay (); |
| 4028 | int |
| 4029 | main () |
| 4030 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4031 | return XOpenDisplay (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4032 | ; |
| 4033 | return 0; |
| 4034 | } |
| 4035 | _ACEOF |
| 4036 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4038 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4039 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4041 | rm -f conftest.er1 |
| 4042 | cat conftest.err >&5 |
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); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4047 | (eval $ac_try) 2>&5 |
| 4048 | ac_status=$? |
| 4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4050 | (exit $ac_status); }; } && |
| 4051 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4053 | (eval $ac_try) 2>&5 |
| 4054 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4056 | (exit $ac_status); }; }; then |
| 4057 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4058 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4059 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4061 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4062 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 4063 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4064 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 4065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4066 | else |
| 4067 | ac_check_lib_save_LIBS=$LIBS |
| 4068 | LIBS="-ldnet $LIBS" |
| 4069 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4070 | /* confdefs.h. */ |
| 4071 | _ACEOF |
| 4072 | cat confdefs.h >>conftest.$ac_ext |
| 4073 | cat >>conftest.$ac_ext <<_ACEOF |
| 4074 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4075 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4076 | /* Override any GCC internal prototype to avoid an error. |
| 4077 | Use char because int might match the return type of a GCC |
| 4078 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4079 | #ifdef __cplusplus |
| 4080 | extern "C" |
| 4081 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4082 | char dnet_ntoa (); |
| 4083 | int |
| 4084 | main () |
| 4085 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4086 | return dnet_ntoa (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4087 | ; |
| 4088 | return 0; |
| 4089 | } |
| 4090 | _ACEOF |
| 4091 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4093 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4094 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4096 | rm -f conftest.er1 |
| 4097 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4099 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4102 | (eval $ac_try) 2>&5 |
| 4103 | ac_status=$? |
| 4104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4105 | (exit $ac_status); }; } && |
| 4106 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4108 | (eval $ac_try) 2>&5 |
| 4109 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4111 | (exit $ac_status); }; }; then |
| 4112 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 4113 | else |
| 4114 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4116 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4117 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4118 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4119 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4120 | rm -f conftest.err conftest.$ac_objext \ |
| 4121 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4122 | LIBS=$ac_check_lib_save_LIBS |
| 4123 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4124 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 4125 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4126 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4127 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4128 | fi |
| 4129 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 4130 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4131 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 4132 | 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] | 4133 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4135 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4136 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4137 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4138 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4139 | /* confdefs.h. */ |
| 4140 | _ACEOF |
| 4141 | cat confdefs.h >>conftest.$ac_ext |
| 4142 | cat >>conftest.$ac_ext <<_ACEOF |
| 4143 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4144 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4145 | /* Override any GCC internal prototype to avoid an error. |
| 4146 | Use char because int might match the return type of a GCC |
| 4147 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4148 | #ifdef __cplusplus |
| 4149 | extern "C" |
| 4150 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4151 | char dnet_ntoa (); |
| 4152 | int |
| 4153 | main () |
| 4154 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4155 | return dnet_ntoa (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4156 | ; |
| 4157 | return 0; |
| 4158 | } |
| 4159 | _ACEOF |
| 4160 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4162 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4163 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4165 | rm -f conftest.er1 |
| 4166 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4168 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4171 | (eval $ac_try) 2>&5 |
| 4172 | ac_status=$? |
| 4173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4174 | (exit $ac_status); }; } && |
| 4175 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4177 | (eval $ac_try) 2>&5 |
| 4178 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4180 | (exit $ac_status); }; }; then |
| 4181 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4182 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4183 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4185 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4186 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4187 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4188 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4189 | rm -f conftest.err conftest.$ac_objext \ |
| 4190 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4191 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4192 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4193 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 4194 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4195 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4196 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4197 | fi |
| 4198 | |
| 4199 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4200 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4201 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4202 | rm -f conftest.err conftest.$ac_objext \ |
| 4203 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4204 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4205 | |
| 4206 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 4207 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4208 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4209 | # needs -lnsl. |
| 4210 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4211 | # on Irix 5.2, according to T.E. Dickey. |
| 4212 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 4213 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4214 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 4215 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4216 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 4217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4218 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4219 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4220 | /* confdefs.h. */ |
| 4221 | _ACEOF |
| 4222 | cat confdefs.h >>conftest.$ac_ext |
| 4223 | cat >>conftest.$ac_ext <<_ACEOF |
| 4224 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4225 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 4226 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4227 | #define gethostbyname innocuous_gethostbyname |
| 4228 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4229 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4230 | which can conflict with char gethostbyname (); below. |
| 4231 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4232 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4233 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4234 | #ifdef __STDC__ |
| 4235 | # include <limits.h> |
| 4236 | #else |
| 4237 | # include <assert.h> |
| 4238 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4239 | |
| 4240 | #undef gethostbyname |
| 4241 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4242 | /* Override any GCC internal prototype to avoid an error. |
| 4243 | Use char because int might match the return type of a GCC |
| 4244 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4245 | #ifdef __cplusplus |
| 4246 | extern "C" |
| 4247 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4248 | char gethostbyname (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4249 | /* The GNU C library defines this for functions which it implements |
| 4250 | to always fail with ENOSYS. Some functions are actually named |
| 4251 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4252 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4253 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4254 | #endif |
| 4255 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4256 | int |
| 4257 | main () |
| 4258 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4259 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4260 | ; |
| 4261 | return 0; |
| 4262 | } |
| 4263 | _ACEOF |
| 4264 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4266 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4267 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4269 | rm -f conftest.er1 |
| 4270 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4272 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4275 | (eval $ac_try) 2>&5 |
| 4276 | ac_status=$? |
| 4277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4278 | (exit $ac_status); }; } && |
| 4279 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4281 | (eval $ac_try) 2>&5 |
| 4282 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4284 | (exit $ac_status); }; }; then |
| 4285 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4286 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4287 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4289 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4290 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4291 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4292 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4293 | rm -f conftest.err conftest.$ac_objext \ |
| 4294 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4295 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4296 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 4297 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4298 | |
| 4299 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4300 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 4301 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4302 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4304 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4305 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4306 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4307 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4308 | /* confdefs.h. */ |
| 4309 | _ACEOF |
| 4310 | cat confdefs.h >>conftest.$ac_ext |
| 4311 | cat >>conftest.$ac_ext <<_ACEOF |
| 4312 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4313 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4314 | /* Override any GCC internal prototype to avoid an error. |
| 4315 | Use char because int might match the return type of a GCC |
| 4316 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4317 | #ifdef __cplusplus |
| 4318 | extern "C" |
| 4319 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4320 | char gethostbyname (); |
| 4321 | int |
| 4322 | main () |
| 4323 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4324 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4325 | ; |
| 4326 | return 0; |
| 4327 | } |
| 4328 | _ACEOF |
| 4329 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4331 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4332 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4334 | rm -f conftest.er1 |
| 4335 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4337 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4340 | (eval $ac_try) 2>&5 |
| 4341 | ac_status=$? |
| 4342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4343 | (exit $ac_status); }; } && |
| 4344 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4346 | (eval $ac_try) 2>&5 |
| 4347 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4349 | (exit $ac_status); }; }; then |
| 4350 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4351 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4352 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4354 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4355 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4356 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4357 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4358 | rm -f conftest.err conftest.$ac_objext \ |
| 4359 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4360 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4361 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4362 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 4363 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4364 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4365 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4366 | fi |
| 4367 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4368 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4369 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 4370 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4371 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 4372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4373 | else |
| 4374 | ac_check_lib_save_LIBS=$LIBS |
| 4375 | LIBS="-lbsd $LIBS" |
| 4376 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4377 | /* confdefs.h. */ |
| 4378 | _ACEOF |
| 4379 | cat confdefs.h >>conftest.$ac_ext |
| 4380 | cat >>conftest.$ac_ext <<_ACEOF |
| 4381 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4382 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4383 | /* Override any GCC internal prototype to avoid an error. |
| 4384 | Use char because int might match the return type of a GCC |
| 4385 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4386 | #ifdef __cplusplus |
| 4387 | extern "C" |
| 4388 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4389 | char gethostbyname (); |
| 4390 | int |
| 4391 | main () |
| 4392 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4393 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4394 | ; |
| 4395 | return 0; |
| 4396 | } |
| 4397 | _ACEOF |
| 4398 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4400 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4401 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4403 | rm -f conftest.er1 |
| 4404 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4406 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4409 | (eval $ac_try) 2>&5 |
| 4410 | ac_status=$? |
| 4411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4412 | (exit $ac_status); }; } && |
| 4413 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4415 | (eval $ac_try) 2>&5 |
| 4416 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4418 | (exit $ac_status); }; }; then |
| 4419 | ac_cv_lib_bsd_gethostbyname=yes |
| 4420 | else |
| 4421 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4423 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4424 | ac_cv_lib_bsd_gethostbyname=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4425 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4426 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4427 | rm -f conftest.err conftest.$ac_objext \ |
| 4428 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4429 | LIBS=$ac_check_lib_save_LIBS |
| 4430 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4431 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 4432 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4433 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 4434 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 4435 | fi |
| 4436 | |
| 4437 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4438 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4439 | |
| 4440 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4441 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 4442 | # 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] | 4443 | # on later versions), says Simon Leinen: it contains gethostby* |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 4444 | # variants that don't use the name server (or something). -lsocket |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4445 | # must be given before -lnsl if both are needed. We assume that |
| 4446 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4447 | { echo "$as_me:$LINENO: checking for connect" >&5 |
| 4448 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4449 | if test "${ac_cv_func_connect+set}" = set; then |
| 4450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4451 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4452 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4453 | /* confdefs.h. */ |
| 4454 | _ACEOF |
| 4455 | cat confdefs.h >>conftest.$ac_ext |
| 4456 | cat >>conftest.$ac_ext <<_ACEOF |
| 4457 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4458 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 4459 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4460 | #define connect innocuous_connect |
| 4461 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4462 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4463 | which can conflict with char connect (); below. |
| 4464 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4465 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4466 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4467 | #ifdef __STDC__ |
| 4468 | # include <limits.h> |
| 4469 | #else |
| 4470 | # include <assert.h> |
| 4471 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4472 | |
| 4473 | #undef connect |
| 4474 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4475 | /* Override any GCC internal prototype to avoid an error. |
| 4476 | Use char because int might match the return type of a GCC |
| 4477 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4478 | #ifdef __cplusplus |
| 4479 | extern "C" |
| 4480 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4481 | char connect (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4482 | /* The GNU C library defines this for functions which it implements |
| 4483 | to always fail with ENOSYS. Some functions are actually named |
| 4484 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4485 | #if defined __stub_connect || defined __stub___connect |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4486 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4487 | #endif |
| 4488 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4489 | int |
| 4490 | main () |
| 4491 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4492 | return connect (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4493 | ; |
| 4494 | return 0; |
| 4495 | } |
| 4496 | _ACEOF |
| 4497 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4499 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4500 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4502 | rm -f conftest.er1 |
| 4503 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4505 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4508 | (eval $ac_try) 2>&5 |
| 4509 | ac_status=$? |
| 4510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4511 | (exit $ac_status); }; } && |
| 4512 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4514 | (eval $ac_try) 2>&5 |
| 4515 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4517 | (exit $ac_status); }; }; then |
| 4518 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4519 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4520 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4522 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4523 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4524 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4525 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4526 | rm -f conftest.err conftest.$ac_objext \ |
| 4527 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4528 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4529 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 4530 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4531 | |
| 4532 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4533 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 4534 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4535 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 4536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4537 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4538 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4539 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4540 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4541 | /* confdefs.h. */ |
| 4542 | _ACEOF |
| 4543 | cat confdefs.h >>conftest.$ac_ext |
| 4544 | cat >>conftest.$ac_ext <<_ACEOF |
| 4545 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4546 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4547 | /* Override any GCC internal prototype to avoid an error. |
| 4548 | Use char because int might match the return type of a GCC |
| 4549 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4550 | #ifdef __cplusplus |
| 4551 | extern "C" |
| 4552 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4553 | char connect (); |
| 4554 | int |
| 4555 | main () |
| 4556 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4557 | return connect (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4558 | ; |
| 4559 | return 0; |
| 4560 | } |
| 4561 | _ACEOF |
| 4562 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4564 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4565 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4567 | rm -f conftest.er1 |
| 4568 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4570 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4571 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4573 | (eval $ac_try) 2>&5 |
| 4574 | ac_status=$? |
| 4575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4576 | (exit $ac_status); }; } && |
| 4577 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4579 | (eval $ac_try) 2>&5 |
| 4580 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4582 | (exit $ac_status); }; }; then |
| 4583 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4584 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4585 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4587 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4588 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4589 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4590 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4591 | rm -f conftest.err conftest.$ac_objext \ |
| 4592 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4593 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4594 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4595 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 4596 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4597 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4598 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4599 | fi |
| 4600 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4601 | fi |
| 4602 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4603 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4604 | { echo "$as_me:$LINENO: checking for remove" >&5 |
| 4605 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4606 | if test "${ac_cv_func_remove+set}" = set; then |
| 4607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4608 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4609 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4610 | /* confdefs.h. */ |
| 4611 | _ACEOF |
| 4612 | cat confdefs.h >>conftest.$ac_ext |
| 4613 | cat >>conftest.$ac_ext <<_ACEOF |
| 4614 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4615 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 4616 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4617 | #define remove innocuous_remove |
| 4618 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4619 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4620 | which can conflict with char remove (); below. |
| 4621 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4622 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4623 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4624 | #ifdef __STDC__ |
| 4625 | # include <limits.h> |
| 4626 | #else |
| 4627 | # include <assert.h> |
| 4628 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4629 | |
| 4630 | #undef remove |
| 4631 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4632 | /* Override any GCC internal prototype to avoid an error. |
| 4633 | Use char because int might match the return type of a GCC |
| 4634 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4635 | #ifdef __cplusplus |
| 4636 | extern "C" |
| 4637 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4638 | char remove (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4639 | /* The GNU C library defines this for functions which it implements |
| 4640 | to always fail with ENOSYS. Some functions are actually named |
| 4641 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4642 | #if defined __stub_remove || defined __stub___remove |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4643 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4644 | #endif |
| 4645 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4646 | int |
| 4647 | main () |
| 4648 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4649 | return remove (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4650 | ; |
| 4651 | return 0; |
| 4652 | } |
| 4653 | _ACEOF |
| 4654 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4656 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4657 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4659 | rm -f conftest.er1 |
| 4660 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4662 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4663 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4665 | (eval $ac_try) 2>&5 |
| 4666 | ac_status=$? |
| 4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4668 | (exit $ac_status); }; } && |
| 4669 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4671 | (eval $ac_try) 2>&5 |
| 4672 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4674 | (exit $ac_status); }; }; then |
| 4675 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4676 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4677 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4679 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4680 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4681 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4682 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4683 | rm -f conftest.err conftest.$ac_objext \ |
| 4684 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4685 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4686 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 4687 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4688 | |
| 4689 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4690 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 4691 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4692 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4694 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4695 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4696 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4697 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4698 | /* confdefs.h. */ |
| 4699 | _ACEOF |
| 4700 | cat confdefs.h >>conftest.$ac_ext |
| 4701 | cat >>conftest.$ac_ext <<_ACEOF |
| 4702 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4703 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4704 | /* Override any GCC internal prototype to avoid an error. |
| 4705 | Use char because int might match the return type of a GCC |
| 4706 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4707 | #ifdef __cplusplus |
| 4708 | extern "C" |
| 4709 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4710 | char remove (); |
| 4711 | int |
| 4712 | main () |
| 4713 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4714 | return remove (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4715 | ; |
| 4716 | return 0; |
| 4717 | } |
| 4718 | _ACEOF |
| 4719 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4721 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4722 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4724 | rm -f conftest.er1 |
| 4725 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4727 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4730 | (eval $ac_try) 2>&5 |
| 4731 | ac_status=$? |
| 4732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4733 | (exit $ac_status); }; } && |
| 4734 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4736 | (eval $ac_try) 2>&5 |
| 4737 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4739 | (exit $ac_status); }; }; then |
| 4740 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4741 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4742 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4744 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4745 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4746 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4747 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4748 | rm -f conftest.err conftest.$ac_objext \ |
| 4749 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4750 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4751 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4752 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 4753 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4754 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4755 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4756 | fi |
| 4757 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4758 | fi |
| 4759 | |
| 4760 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4761 | { echo "$as_me:$LINENO: checking for shmat" >&5 |
| 4762 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4763 | if test "${ac_cv_func_shmat+set}" = set; then |
| 4764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4765 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4766 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4767 | /* confdefs.h. */ |
| 4768 | _ACEOF |
| 4769 | cat confdefs.h >>conftest.$ac_ext |
| 4770 | cat >>conftest.$ac_ext <<_ACEOF |
| 4771 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4772 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 4773 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4774 | #define shmat innocuous_shmat |
| 4775 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4776 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4777 | which can conflict with char shmat (); below. |
| 4778 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4779 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4780 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4781 | #ifdef __STDC__ |
| 4782 | # include <limits.h> |
| 4783 | #else |
| 4784 | # include <assert.h> |
| 4785 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4786 | |
| 4787 | #undef shmat |
| 4788 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4789 | /* Override any GCC internal prototype to avoid an error. |
| 4790 | Use char because int might match the return type of a GCC |
| 4791 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4792 | #ifdef __cplusplus |
| 4793 | extern "C" |
| 4794 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4795 | char shmat (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4796 | /* The GNU C library defines this for functions which it implements |
| 4797 | to always fail with ENOSYS. Some functions are actually named |
| 4798 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4799 | #if defined __stub_shmat || defined __stub___shmat |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4800 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4801 | #endif |
| 4802 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4803 | int |
| 4804 | main () |
| 4805 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4806 | return shmat (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4807 | ; |
| 4808 | return 0; |
| 4809 | } |
| 4810 | _ACEOF |
| 4811 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4813 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4814 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4816 | rm -f conftest.er1 |
| 4817 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4819 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4822 | (eval $ac_try) 2>&5 |
| 4823 | ac_status=$? |
| 4824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4825 | (exit $ac_status); }; } && |
| 4826 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4828 | (eval $ac_try) 2>&5 |
| 4829 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4831 | (exit $ac_status); }; }; then |
| 4832 | ac_cv_func_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4833 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4834 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4836 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4837 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4838 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4839 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4840 | rm -f conftest.err conftest.$ac_objext \ |
| 4841 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4842 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4843 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 4844 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4845 | |
| 4846 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4847 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 4848 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4849 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 4850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4851 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4852 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4853 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4854 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4855 | /* confdefs.h. */ |
| 4856 | _ACEOF |
| 4857 | cat confdefs.h >>conftest.$ac_ext |
| 4858 | cat >>conftest.$ac_ext <<_ACEOF |
| 4859 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4860 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4861 | /* Override any GCC internal prototype to avoid an error. |
| 4862 | Use char because int might match the return type of a GCC |
| 4863 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4864 | #ifdef __cplusplus |
| 4865 | extern "C" |
| 4866 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4867 | char shmat (); |
| 4868 | int |
| 4869 | main () |
| 4870 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4871 | return shmat (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4872 | ; |
| 4873 | return 0; |
| 4874 | } |
| 4875 | _ACEOF |
| 4876 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4878 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4879 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4881 | rm -f conftest.er1 |
| 4882 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4884 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4887 | (eval $ac_try) 2>&5 |
| 4888 | ac_status=$? |
| 4889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4890 | (exit $ac_status); }; } && |
| 4891 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4893 | (eval $ac_try) 2>&5 |
| 4894 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4896 | (exit $ac_status); }; }; then |
| 4897 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4898 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4899 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4901 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4902 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4903 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4904 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4905 | rm -f conftest.err conftest.$ac_objext \ |
| 4906 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4907 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4908 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4909 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 4910 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4911 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4912 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4913 | fi |
| 4914 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4915 | fi |
| 4916 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4917 | |
| 4918 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4919 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4920 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 4921 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 4922 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 4923 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 4924 | # These have to be linked with before -lX11, unlike the other |
| 4925 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4926 | # John Interrante, Karl Berry |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4927 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 4928 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4929 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 4930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4931 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4932 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 4933 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4934 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4935 | /* confdefs.h. */ |
| 4936 | _ACEOF |
| 4937 | cat confdefs.h >>conftest.$ac_ext |
| 4938 | cat >>conftest.$ac_ext <<_ACEOF |
| 4939 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4940 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4941 | /* Override any GCC internal prototype to avoid an error. |
| 4942 | Use char because int might match the return type of a GCC |
| 4943 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4944 | #ifdef __cplusplus |
| 4945 | extern "C" |
| 4946 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4947 | char IceConnectionNumber (); |
| 4948 | int |
| 4949 | main () |
| 4950 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4951 | return IceConnectionNumber (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4952 | ; |
| 4953 | return 0; |
| 4954 | } |
| 4955 | _ACEOF |
| 4956 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4958 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4959 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4961 | rm -f conftest.er1 |
| 4962 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4964 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4967 | (eval $ac_try) 2>&5 |
| 4968 | ac_status=$? |
| 4969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4970 | (exit $ac_status); }; } && |
| 4971 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4973 | (eval $ac_try) 2>&5 |
| 4974 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4976 | (exit $ac_status); }; }; then |
| 4977 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4978 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4979 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4981 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4982 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4983 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4984 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4985 | rm -f conftest.err conftest.$ac_objext \ |
| 4986 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4987 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4988 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4989 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 4990 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4991 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4992 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4993 | fi |
| 4994 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4995 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4996 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4997 | fi |
| 4998 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4999 | for ac_prog in flex lex |
| 5000 | do |
| 5001 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5002 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5005 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 5006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5007 | else |
| 5008 | if test -n "$LEX"; then |
| 5009 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 5010 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5012 | for as_dir in $PATH |
| 5013 | do |
| 5014 | IFS=$as_save_IFS |
| 5015 | test -z "$as_dir" && as_dir=. |
| 5016 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5017 | 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] | 5018 | ac_cv_prog_LEX="$ac_prog" |
| 5019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5020 | break 2 |
| 5021 | fi |
| 5022 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5023 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5024 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5025 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5026 | fi |
| 5027 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5028 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5029 | if test -n "$LEX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5030 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 5031 | echo "${ECHO_T}$LEX" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5032 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5033 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5034 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5035 | fi |
| 5036 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5037 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5038 | test -n "$LEX" && break |
| 5039 | done |
| 5040 | test -n "$LEX" || LEX=":" |
| 5041 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5042 | if test -z "$LEXLIB" |
| 5043 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5044 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 5045 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5046 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 5047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5048 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5049 | ac_check_lib_save_LIBS=$LIBS |
| 5050 | LIBS="-lfl $LIBS" |
| 5051 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5052 | /* confdefs.h. */ |
| 5053 | _ACEOF |
| 5054 | cat confdefs.h >>conftest.$ac_ext |
| 5055 | cat >>conftest.$ac_ext <<_ACEOF |
| 5056 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5057 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5058 | /* Override any GCC internal prototype to avoid an error. |
| 5059 | Use char because int might match the return type of a GCC |
| 5060 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5061 | #ifdef __cplusplus |
| 5062 | extern "C" |
| 5063 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5064 | char yywrap (); |
| 5065 | int |
| 5066 | main () |
| 5067 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5068 | return yywrap (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5069 | ; |
| 5070 | return 0; |
| 5071 | } |
| 5072 | _ACEOF |
| 5073 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5075 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5076 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5078 | rm -f conftest.er1 |
| 5079 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5081 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5084 | (eval $ac_try) 2>&5 |
| 5085 | ac_status=$? |
| 5086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5087 | (exit $ac_status); }; } && |
| 5088 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5090 | (eval $ac_try) 2>&5 |
| 5091 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5093 | (exit $ac_status); }; }; then |
| 5094 | ac_cv_lib_fl_yywrap=yes |
| 5095 | else |
| 5096 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5098 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5099 | ac_cv_lib_fl_yywrap=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5100 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5101 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5102 | rm -f conftest.err conftest.$ac_objext \ |
| 5103 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5104 | LIBS=$ac_check_lib_save_LIBS |
| 5105 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5106 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 5107 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5108 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 5109 | LEXLIB="-lfl" |
| 5110 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5111 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 5112 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5113 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 5114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5115 | else |
| 5116 | ac_check_lib_save_LIBS=$LIBS |
| 5117 | LIBS="-ll $LIBS" |
| 5118 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5119 | /* confdefs.h. */ |
| 5120 | _ACEOF |
| 5121 | cat confdefs.h >>conftest.$ac_ext |
| 5122 | cat >>conftest.$ac_ext <<_ACEOF |
| 5123 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5124 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5125 | /* Override any GCC internal prototype to avoid an error. |
| 5126 | Use char because int might match the return type of a GCC |
| 5127 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5128 | #ifdef __cplusplus |
| 5129 | extern "C" |
| 5130 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5131 | char yywrap (); |
| 5132 | int |
| 5133 | main () |
| 5134 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5135 | return yywrap (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5136 | ; |
| 5137 | return 0; |
| 5138 | } |
| 5139 | _ACEOF |
| 5140 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5142 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5143 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5145 | rm -f conftest.er1 |
| 5146 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5148 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5149 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5151 | (eval $ac_try) 2>&5 |
| 5152 | ac_status=$? |
| 5153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5154 | (exit $ac_status); }; } && |
| 5155 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5157 | (eval $ac_try) 2>&5 |
| 5158 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5160 | (exit $ac_status); }; }; then |
| 5161 | ac_cv_lib_l_yywrap=yes |
| 5162 | else |
| 5163 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5165 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5166 | ac_cv_lib_l_yywrap=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5167 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5168 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5169 | rm -f conftest.err conftest.$ac_objext \ |
| 5170 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5171 | LIBS=$ac_check_lib_save_LIBS |
| 5172 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5173 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 5174 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5175 | if test $ac_cv_lib_l_yywrap = yes; then |
| 5176 | LEXLIB="-ll" |
| 5177 | fi |
| 5178 | |
| 5179 | fi |
| 5180 | |
| 5181 | fi |
| 5182 | |
| 5183 | if test "x$LEX" != "x:"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5184 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 5185 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5186 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 5187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5188 | else |
| 5189 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 5190 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5191 | cat >conftest.l <<_ACEOF |
| 5192 | %% |
| 5193 | %% |
| 5194 | _ACEOF |
| 5195 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 5196 | (eval $LEX conftest.l) 2>&5 |
| 5197 | ac_status=$? |
| 5198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5199 | (exit $ac_status); } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5200 | if test -f lex.yy.c; then |
| 5201 | ac_cv_prog_lex_root=lex.yy |
| 5202 | elif test -f lexyy.c; then |
| 5203 | ac_cv_prog_lex_root=lexyy |
| 5204 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5205 | { { 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] | 5206 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 5207 | { (exit 1); exit 1; }; } |
| 5208 | fi |
| 5209 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5210 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 5211 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5212 | rm -f conftest.l |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5213 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 5214 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5215 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 5216 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5217 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 5218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5219 | else |
| 5220 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 5221 | # default is implementation-dependent. Figure out which it is, since |
| 5222 | # not all implementations provide the %pointer and %array declarations. |
| 5223 | ac_cv_prog_lex_yytext_pointer=no |
| 5224 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 5225 | ac_save_LIBS=$LIBS |
| 5226 | LIBS="$LIBS $LEXLIB" |
| 5227 | cat >conftest.$ac_ext <<_ACEOF |
| 5228 | `cat $LEX_OUTPUT_ROOT.c` |
| 5229 | _ACEOF |
| 5230 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5232 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5233 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5235 | rm -f conftest.er1 |
| 5236 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5238 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5241 | (eval $ac_try) 2>&5 |
| 5242 | ac_status=$? |
| 5243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5244 | (exit $ac_status); }; } && |
| 5245 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5247 | (eval $ac_try) 2>&5 |
| 5248 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5250 | (exit $ac_status); }; }; then |
| 5251 | ac_cv_prog_lex_yytext_pointer=yes |
| 5252 | else |
| 5253 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5255 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5256 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5257 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5258 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5259 | rm -f conftest.err conftest.$ac_objext \ |
| 5260 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5261 | LIBS=$ac_save_LIBS |
| 5262 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 5263 | |
| 5264 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5265 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 5266 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5267 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 5268 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5269 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5270 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5271 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5272 | |
| 5273 | fi |
| 5274 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5275 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 5276 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5277 | for ac_prog in $LEX flex lex |
| 5278 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5279 | # 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] | 5280 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5281 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5283 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 5284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5285 | else |
| 5286 | if test -n "$XLEX"; then |
| 5287 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 5288 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5290 | for as_dir in $PATH |
| 5291 | do |
| 5292 | IFS=$as_save_IFS |
| 5293 | test -z "$as_dir" && as_dir=. |
| 5294 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5295 | 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] | 5296 | ac_cv_prog_XLEX="$ac_prog" |
| 5297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5298 | break 2 |
| 5299 | fi |
| 5300 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5301 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5302 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5303 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5304 | fi |
| 5305 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5306 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5307 | if test -n "$XLEX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5308 | { echo "$as_me:$LINENO: result: $XLEX" >&5 |
| 5309 | echo "${ECHO_T}$XLEX" >&6; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5310 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5311 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5312 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5313 | fi |
| 5314 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5315 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5316 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5317 | done |
| 5318 | test -n "$XLEX" || XLEX="none" |
| 5319 | |
| 5320 | if test "$XLEX" = "none" |
| 5321 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5322 | { { 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] | 5323 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 5324 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5325 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5326 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5327 | for ac_prog in bison |
| 5328 | do |
| 5329 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5330 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5331 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5333 | if test "${ac_cv_prog_BISON+set}" = set; then |
| 5334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5335 | else |
| 5336 | if test -n "$BISON"; then |
| 5337 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
| 5338 | else |
| 5339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5340 | for as_dir in $PATH |
| 5341 | do |
| 5342 | IFS=$as_save_IFS |
| 5343 | test -z "$as_dir" && as_dir=. |
| 5344 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5345 | 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] | 5346 | ac_cv_prog_BISON="$ac_prog" |
| 5347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5348 | break 2 |
| 5349 | fi |
| 5350 | done |
| 5351 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5352 | IFS=$as_save_IFS |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5353 | |
| 5354 | fi |
| 5355 | fi |
| 5356 | BISON=$ac_cv_prog_BISON |
| 5357 | if test -n "$BISON"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5358 | { echo "$as_me:$LINENO: result: $BISON" >&5 |
| 5359 | echo "${ECHO_T}$BISON" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5360 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5361 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5362 | echo "${ECHO_T}no" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5363 | fi |
| 5364 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5365 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5366 | test -n "$BISON" && break |
| 5367 | done |
| 5368 | test -n "$BISON" || BISON="none" |
| 5369 | |
| 5370 | if test "$BISON" = "none" |
| 5371 | then |
| 5372 | { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5 |
| 5373 | echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;} |
| 5374 | { (exit 1); exit 1; }; } |
| 5375 | fi |
| 5376 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5377 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5378 | for ac_prog in gas as |
| 5379 | do |
| 5380 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5381 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5382 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5384 | if test "${ac_cv_prog_AS+set}" = set; then |
| 5385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5386 | else |
| 5387 | if test -n "$AS"; then |
| 5388 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 5389 | else |
| 5390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5391 | for as_dir in $PATH |
| 5392 | do |
| 5393 | IFS=$as_save_IFS |
| 5394 | test -z "$as_dir" && as_dir=. |
| 5395 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5396 | 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] | 5397 | ac_cv_prog_AS="$ac_tool_prefix$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5399 | break 2 |
| 5400 | fi |
| 5401 | done |
| 5402 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5403 | IFS=$as_save_IFS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5404 | |
| 5405 | fi |
| 5406 | fi |
| 5407 | AS=$ac_cv_prog_AS |
| 5408 | if test -n "$AS"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5409 | { echo "$as_me:$LINENO: result: $AS" >&5 |
| 5410 | echo "${ECHO_T}$AS" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5411 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5412 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5413 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5414 | fi |
| 5415 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5416 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5417 | test -n "$AS" && break |
| 5418 | done |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5419 | fi |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5420 | if test -z "$AS"; then |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5421 | ac_ct_AS=$AS |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5422 | for ac_prog in gas as |
| 5423 | do |
| 5424 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5425 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5426 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5428 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| 5429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5430 | else |
| 5431 | if test -n "$ac_ct_AS"; then |
| 5432 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 5433 | else |
| 5434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5435 | for as_dir in $PATH |
| 5436 | do |
| 5437 | IFS=$as_save_IFS |
| 5438 | test -z "$as_dir" && as_dir=. |
| 5439 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5440 | 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] | 5441 | ac_cv_prog_ac_ct_AS="$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5443 | break 2 |
| 5444 | fi |
| 5445 | done |
| 5446 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5447 | IFS=$as_save_IFS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5448 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5449 | fi |
| 5450 | fi |
| 5451 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 5452 | if test -n "$ac_ct_AS"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5453 | { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
| 5454 | echo "${ECHO_T}$ac_ct_AS" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5455 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5456 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5457 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5458 | fi |
| 5459 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5460 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5461 | test -n "$ac_ct_AS" && break |
| 5462 | done |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5463 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5464 | if test "x$ac_ct_AS" = x; then |
| 5465 | AS="as" |
| 5466 | else |
| 5467 | case $cross_compiling:$ac_tool_warned in |
| 5468 | yes:) |
| 5469 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5470 | whose name does not start with the host triplet. If you think this |
| 5471 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5472 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5473 | whose name does not start with the host triplet. If you think this |
| 5474 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5475 | ac_tool_warned=yes ;; |
| 5476 | esac |
| 5477 | AS=$ac_ct_AS |
| 5478 | fi |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5479 | fi |
| 5480 | |
| 5481 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5482 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 5483 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5484 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5486 | if test "${ac_cv_prog_LD+set}" = set; then |
| 5487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5488 | else |
| 5489 | if test -n "$LD"; then |
| 5490 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 5491 | else |
| 5492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5493 | for as_dir in $PATH |
| 5494 | do |
| 5495 | IFS=$as_save_IFS |
| 5496 | test -z "$as_dir" && as_dir=. |
| 5497 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5498 | 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] | 5499 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
| 5500 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5501 | break 2 |
| 5502 | fi |
| 5503 | done |
| 5504 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5505 | IFS=$as_save_IFS |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5506 | |
| 5507 | fi |
| 5508 | fi |
| 5509 | LD=$ac_cv_prog_LD |
| 5510 | if test -n "$LD"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5511 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 5512 | echo "${ECHO_T}$LD" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5513 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5514 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5515 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5516 | fi |
| 5517 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5518 | |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5519 | fi |
| 5520 | if test -z "$ac_cv_prog_LD"; then |
| 5521 | ac_ct_LD=$LD |
| 5522 | # Extract the first word of "ld", so it can be a program name with args. |
| 5523 | set dummy ld; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5524 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5526 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
| 5527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5528 | else |
| 5529 | if test -n "$ac_ct_LD"; then |
| 5530 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 5531 | else |
| 5532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5533 | for as_dir in $PATH |
| 5534 | do |
| 5535 | IFS=$as_save_IFS |
| 5536 | test -z "$as_dir" && as_dir=. |
| 5537 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5538 | 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] | 5539 | ac_cv_prog_ac_ct_LD="ld" |
| 5540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5541 | break 2 |
| 5542 | fi |
| 5543 | done |
| 5544 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5545 | IFS=$as_save_IFS |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5546 | |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5547 | fi |
| 5548 | fi |
| 5549 | ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 5550 | if test -n "$ac_ct_LD"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5551 | { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
| 5552 | echo "${ECHO_T}$ac_ct_LD" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5553 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5554 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5555 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5556 | fi |
| 5557 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5558 | if test "x$ac_ct_LD" = x; then |
| 5559 | LD="ld" |
| 5560 | else |
| 5561 | case $cross_compiling:$ac_tool_warned in |
| 5562 | yes:) |
| 5563 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5564 | whose name does not start with the host triplet. If you think this |
| 5565 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5566 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5567 | whose name does not start with the host triplet. If you think this |
| 5568 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5569 | ac_tool_warned=yes ;; |
| 5570 | esac |
| 5571 | LD=$ac_ct_LD |
| 5572 | fi |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5573 | else |
| 5574 | LD="$ac_cv_prog_LD" |
| 5575 | fi |
| 5576 | |
| 5577 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5578 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5579 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5580 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5582 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5584 | else |
| 5585 | if test -n "$AR"; then |
| 5586 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5587 | else |
| 5588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5589 | for as_dir in $PATH |
| 5590 | do |
| 5591 | IFS=$as_save_IFS |
| 5592 | test -z "$as_dir" && as_dir=. |
| 5593 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5594 | 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] | 5595 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5596 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5597 | break 2 |
| 5598 | fi |
| 5599 | done |
| 5600 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5601 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5602 | |
| 5603 | fi |
| 5604 | fi |
| 5605 | AR=$ac_cv_prog_AR |
| 5606 | if test -n "$AR"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5607 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 5608 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5609 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5610 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5611 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5612 | fi |
| 5613 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5614 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5615 | fi |
| 5616 | if test -z "$ac_cv_prog_AR"; then |
| 5617 | ac_ct_AR=$AR |
| 5618 | # Extract the first word of "ar", so it can be a program name with args. |
| 5619 | set dummy ar; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5620 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5622 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5624 | else |
| 5625 | if test -n "$ac_ct_AR"; then |
| 5626 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5627 | else |
| 5628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5629 | for as_dir in $PATH |
| 5630 | do |
| 5631 | IFS=$as_save_IFS |
| 5632 | test -z "$as_dir" && as_dir=. |
| 5633 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5634 | 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] | 5635 | ac_cv_prog_ac_ct_AR="ar" |
| 5636 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5637 | break 2 |
| 5638 | fi |
| 5639 | done |
| 5640 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5641 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5642 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5643 | fi |
| 5644 | fi |
| 5645 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5646 | if test -n "$ac_ct_AR"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5647 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5648 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5649 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5650 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5651 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5652 | fi |
| 5653 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5654 | if test "x$ac_ct_AR" = x; then |
| 5655 | AR="ar" |
| 5656 | else |
| 5657 | case $cross_compiling:$ac_tool_warned in |
| 5658 | yes:) |
| 5659 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5660 | whose name does not start with the host triplet. If you think this |
| 5661 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5662 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5663 | whose name does not start with the host triplet. If you think this |
| 5664 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5665 | ac_tool_warned=yes ;; |
| 5666 | esac |
| 5667 | AR=$ac_ct_AR |
| 5668 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5669 | else |
| 5670 | AR="$ac_cv_prog_AR" |
| 5671 | fi |
| 5672 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5673 | if test -n "$ac_tool_prefix"; then |
| 5674 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5675 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5676 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5678 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5680 | else |
| 5681 | if test -n "$RANLIB"; then |
| 5682 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5683 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5685 | for as_dir in $PATH |
| 5686 | do |
| 5687 | IFS=$as_save_IFS |
| 5688 | test -z "$as_dir" && as_dir=. |
| 5689 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5690 | 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] | 5691 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5693 | break 2 |
| 5694 | fi |
| 5695 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5696 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5697 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5698 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5699 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5700 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5701 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5702 | if test -n "$RANLIB"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5703 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5704 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5705 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5706 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5707 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5708 | fi |
| 5709 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5710 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5711 | fi |
| 5712 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5713 | ac_ct_RANLIB=$RANLIB |
| 5714 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5715 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5716 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5718 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5720 | else |
| 5721 | if test -n "$ac_ct_RANLIB"; then |
| 5722 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5723 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5725 | for as_dir in $PATH |
| 5726 | do |
| 5727 | IFS=$as_save_IFS |
| 5728 | test -z "$as_dir" && as_dir=. |
| 5729 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5730 | 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] | 5731 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5733 | break 2 |
| 5734 | fi |
| 5735 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5736 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5737 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5738 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5739 | fi |
| 5740 | fi |
| 5741 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5742 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5743 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5744 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5745 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5746 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5747 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5748 | fi |
| 5749 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5750 | if test "x$ac_ct_RANLIB" = x; then |
| 5751 | RANLIB=":" |
| 5752 | else |
| 5753 | case $cross_compiling:$ac_tool_warned in |
| 5754 | yes:) |
| 5755 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5756 | whose name does not start with the host triplet. If you think this |
| 5757 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5758 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5759 | whose name does not start with the host triplet. If you think this |
| 5760 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5761 | ac_tool_warned=yes ;; |
| 5762 | esac |
| 5763 | RANLIB=$ac_ct_RANLIB |
| 5764 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5765 | else |
| 5766 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5767 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5768 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5769 | if test -n "$ac_tool_prefix"; then |
| 5770 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5771 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5772 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5774 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5776 | else |
| 5777 | if test -n "$STRIP"; then |
| 5778 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5779 | else |
| 5780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5781 | for as_dir in $PATH |
| 5782 | do |
| 5783 | IFS=$as_save_IFS |
| 5784 | test -z "$as_dir" && as_dir=. |
| 5785 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5786 | 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] | 5787 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5789 | break 2 |
| 5790 | fi |
| 5791 | done |
| 5792 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5793 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5794 | |
| 5795 | fi |
| 5796 | fi |
| 5797 | STRIP=$ac_cv_prog_STRIP |
| 5798 | if test -n "$STRIP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5799 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5800 | echo "${ECHO_T}$STRIP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5801 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5802 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5803 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5804 | fi |
| 5805 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5806 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5807 | fi |
| 5808 | if test -z "$ac_cv_prog_STRIP"; then |
| 5809 | ac_ct_STRIP=$STRIP |
| 5810 | # Extract the first word of "strip", so it can be a program name with args. |
| 5811 | set dummy strip; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5812 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5814 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5816 | else |
| 5817 | if test -n "$ac_ct_STRIP"; then |
| 5818 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5819 | else |
| 5820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5821 | for as_dir in $PATH |
| 5822 | do |
| 5823 | IFS=$as_save_IFS |
| 5824 | test -z "$as_dir" && as_dir=. |
| 5825 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5826 | 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] | 5827 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5829 | break 2 |
| 5830 | fi |
| 5831 | done |
| 5832 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5833 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5834 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5835 | fi |
| 5836 | fi |
| 5837 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5838 | if test -n "$ac_ct_STRIP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5839 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5840 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5841 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5842 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5843 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5844 | fi |
| 5845 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5846 | if test "x$ac_ct_STRIP" = x; then |
| 5847 | STRIP="strip" |
| 5848 | else |
| 5849 | case $cross_compiling:$ac_tool_warned in |
| 5850 | yes:) |
| 5851 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5852 | whose name does not start with the host triplet. If you think this |
| 5853 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5854 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5855 | whose name does not start with the host triplet. If you think this |
| 5856 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5857 | ac_tool_warned=yes ;; |
| 5858 | esac |
| 5859 | STRIP=$ac_ct_STRIP |
| 5860 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5861 | else |
| 5862 | STRIP="$ac_cv_prog_STRIP" |
| 5863 | fi |
| 5864 | |
| 5865 | if test -n "$ac_tool_prefix"; then |
| 5866 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 5867 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5868 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5870 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5872 | else |
| 5873 | if test -n "$WINDRES"; then |
| 5874 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 5875 | else |
| 5876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5877 | for as_dir in $PATH |
| 5878 | do |
| 5879 | IFS=$as_save_IFS |
| 5880 | test -z "$as_dir" && as_dir=. |
| 5881 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5882 | 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] | 5883 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 5884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5885 | break 2 |
| 5886 | fi |
| 5887 | done |
| 5888 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5889 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5890 | |
| 5891 | fi |
| 5892 | fi |
| 5893 | WINDRES=$ac_cv_prog_WINDRES |
| 5894 | if test -n "$WINDRES"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5895 | { echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 5896 | echo "${ECHO_T}$WINDRES" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5897 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5898 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5899 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5900 | fi |
| 5901 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5902 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5903 | fi |
| 5904 | if test -z "$ac_cv_prog_WINDRES"; then |
| 5905 | ac_ct_WINDRES=$WINDRES |
| 5906 | # Extract the first word of "windres", so it can be a program name with args. |
| 5907 | set dummy windres; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5908 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5909 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5910 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 5911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5912 | else |
| 5913 | if test -n "$ac_ct_WINDRES"; then |
| 5914 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 5915 | else |
| 5916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5917 | for as_dir in $PATH |
| 5918 | do |
| 5919 | IFS=$as_save_IFS |
| 5920 | test -z "$as_dir" && as_dir=. |
| 5921 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5922 | 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] | 5923 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 5924 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5925 | break 2 |
| 5926 | fi |
| 5927 | done |
| 5928 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5929 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5930 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5931 | fi |
| 5932 | fi |
| 5933 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 5934 | if test -n "$ac_ct_WINDRES"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5935 | { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 5936 | echo "${ECHO_T}$ac_ct_WINDRES" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5937 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5938 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5939 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5940 | fi |
| 5941 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5942 | if test "x$ac_ct_WINDRES" = x; then |
| 5943 | WINDRES="false" |
| 5944 | else |
| 5945 | case $cross_compiling:$ac_tool_warned in |
| 5946 | yes:) |
| 5947 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5948 | whose name does not start with the host triplet. If you think this |
| 5949 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5950 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5951 | whose name does not start with the host triplet. If you think this |
| 5952 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5953 | ac_tool_warned=yes ;; |
| 5954 | esac |
| 5955 | WINDRES=$ac_ct_WINDRES |
| 5956 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5957 | else |
| 5958 | WINDRES="$ac_cv_prog_WINDRES" |
| 5959 | fi |
| 5960 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5961 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 5962 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5963 | LN_S=$as_ln_s |
| 5964 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5965 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5966 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 5967 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5968 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 5969 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 5970 | fi |
| 5971 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5972 | { echo "$as_me:$LINENO: checking whether ln works" >&5 |
| 5973 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; } |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 5974 | rm -f conf$$ conf$$.file |
| 5975 | echo >conf$$.file |
| 5976 | if ln conf$$.file conf$$ 2>/dev/null; then |
| 5977 | LN=ln |
| 5978 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5979 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5980 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 5981 | else |
| 5982 | LN="cp -p" |
| 5983 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5984 | { echo "$as_me:$LINENO: result: no, using $LN" >&5 |
| 5985 | echo "${ECHO_T}no, using $LN" >&6; } |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 5986 | fi |
| 5987 | rm -f conf$$ conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5988 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 5989 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 5990 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 5991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5992 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5993 | # Extract the first word of "grep ggrep" to use in msg output |
| 5994 | if test -z "$GREP"; then |
| 5995 | set dummy grep ggrep; ac_prog_name=$2 |
| 5996 | if test "${ac_cv_path_GREP+set}" = set; then |
| 5997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5998 | else |
| 5999 | ac_path_GREP_found=false |
| 6000 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6002 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6003 | do |
| 6004 | IFS=$as_save_IFS |
| 6005 | test -z "$as_dir" && as_dir=. |
| 6006 | for ac_prog in grep ggrep; do |
| 6007 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6008 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6009 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 6010 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6011 | # Check for GNU $ac_path_GREP |
| 6012 | case `"$ac_path_GREP" --version 2>&1` in |
| 6013 | *GNU*) |
| 6014 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6015 | *) |
| 6016 | ac_count=0 |
| 6017 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 6018 | while : |
| 6019 | do |
| 6020 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6021 | mv "conftest.tmp" "conftest.in" |
| 6022 | cp "conftest.in" "conftest.nl" |
| 6023 | echo 'GREP' >> "conftest.nl" |
| 6024 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6025 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6026 | ac_count=`expr $ac_count + 1` |
| 6027 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6028 | # Best one so far, save it but keep looking for a better one |
| 6029 | ac_cv_path_GREP="$ac_path_GREP" |
| 6030 | ac_path_GREP_max=$ac_count |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6031 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6032 | # 10*(2^10) chars as input seems more than enough |
| 6033 | test $ac_count -gt 10 && break |
| 6034 | done |
| 6035 | rm -f conftest.*;; |
| 6036 | esac |
| 6037 | |
| 6038 | |
| 6039 | $ac_path_GREP_found && break 3 |
| 6040 | done |
| 6041 | done |
| 6042 | |
| 6043 | done |
| 6044 | IFS=$as_save_IFS |
| 6045 | |
| 6046 | |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6047 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6048 | |
| 6049 | GREP="$ac_cv_path_GREP" |
| 6050 | if test -z "$GREP"; then |
| 6051 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 6052 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 6053 | { (exit 1); exit 1; }; } |
| 6054 | fi |
| 6055 | |
| 6056 | else |
| 6057 | ac_cv_path_GREP=$GREP |
| 6058 | fi |
| 6059 | |
| 6060 | |
| 6061 | fi |
| 6062 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 6063 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 6064 | GREP="$ac_cv_path_GREP" |
| 6065 | |
| 6066 | |
| 6067 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 6068 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 6069 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 6070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6071 | else |
| 6072 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6073 | then ac_cv_path_EGREP="$GREP -E" |
| 6074 | else |
| 6075 | # Extract the first word of "egrep" to use in msg output |
| 6076 | if test -z "$EGREP"; then |
| 6077 | set dummy egrep; ac_prog_name=$2 |
| 6078 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 6079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6080 | else |
| 6081 | ac_path_EGREP_found=false |
| 6082 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6084 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6085 | do |
| 6086 | IFS=$as_save_IFS |
| 6087 | test -z "$as_dir" && as_dir=. |
| 6088 | for ac_prog in egrep; do |
| 6089 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6090 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6091 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 6092 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6093 | # Check for GNU $ac_path_EGREP |
| 6094 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6095 | *GNU*) |
| 6096 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6097 | *) |
| 6098 | ac_count=0 |
| 6099 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 6100 | while : |
| 6101 | do |
| 6102 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6103 | mv "conftest.tmp" "conftest.in" |
| 6104 | cp "conftest.in" "conftest.nl" |
| 6105 | echo 'EGREP' >> "conftest.nl" |
| 6106 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6107 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6108 | ac_count=`expr $ac_count + 1` |
| 6109 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6110 | # Best one so far, save it but keep looking for a better one |
| 6111 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6112 | ac_path_EGREP_max=$ac_count |
| 6113 | fi |
| 6114 | # 10*(2^10) chars as input seems more than enough |
| 6115 | test $ac_count -gt 10 && break |
| 6116 | done |
| 6117 | rm -f conftest.*;; |
| 6118 | esac |
| 6119 | |
| 6120 | |
| 6121 | $ac_path_EGREP_found && break 3 |
| 6122 | done |
| 6123 | done |
| 6124 | |
| 6125 | done |
| 6126 | IFS=$as_save_IFS |
| 6127 | |
| 6128 | |
| 6129 | fi |
| 6130 | |
| 6131 | EGREP="$ac_cv_path_EGREP" |
| 6132 | if test -z "$EGREP"; then |
| 6133 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 6134 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 6135 | { (exit 1); exit 1; }; } |
| 6136 | fi |
| 6137 | |
| 6138 | else |
| 6139 | ac_cv_path_EGREP=$EGREP |
| 6140 | fi |
| 6141 | |
| 6142 | |
| 6143 | fi |
| 6144 | fi |
| 6145 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 6146 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 6147 | EGREP="$ac_cv_path_EGREP" |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6148 | |
| 6149 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6150 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 6151 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6152 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6153 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6154 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 6155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6156 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6157 | case $LDCONFIG in |
| 6158 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6159 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 6160 | ;; |
| 6161 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 6163 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6164 | do |
| 6165 | IFS=$as_save_IFS |
| 6166 | test -z "$as_dir" && as_dir=. |
| 6167 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6168 | 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] | 6169 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 6170 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6171 | break 2 |
| 6172 | fi |
| 6173 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6174 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6175 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6176 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 6177 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6178 | ;; |
| 6179 | esac |
| 6180 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6181 | LDCONFIG=$ac_cv_path_LDCONFIG |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6182 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6183 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 6184 | echo "${ECHO_T}$LDCONFIG" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6185 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6186 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6187 | echo "${ECHO_T}no" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6188 | fi |
| 6189 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6190 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6191 | # Find a good install program. We prefer a C program (faster), |
| 6192 | # so one script is as good as another. But avoid the broken or |
| 6193 | # incompatible versions: |
| 6194 | # SysV /etc/install, /usr/sbin/install |
| 6195 | # SunOS /usr/etc/install |
| 6196 | # IRIX /sbin/install |
| 6197 | # AIX /bin/install |
| 6198 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6199 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6200 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6201 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6202 | # OS/2's system install, which has a completely different semantic |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6203 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6204 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 6205 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6206 | if test -z "$INSTALL"; then |
| 6207 | if test "${ac_cv_path_install+set}" = set; then |
| 6208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6209 | else |
| 6210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6211 | for as_dir in $PATH |
| 6212 | do |
| 6213 | IFS=$as_save_IFS |
| 6214 | test -z "$as_dir" && as_dir=. |
| 6215 | # Account for people who put trailing slashes in PATH elements. |
| 6216 | case $as_dir/ in |
| 6217 | ./ | .// | /cC/* | \ |
| 6218 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6219 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6220 | /usr/ucb/* ) ;; |
| 6221 | *) |
| 6222 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6223 | # Don't use installbsd from OSF since it installs stuff as root |
| 6224 | # by default. |
| 6225 | for ac_prog in ginstall scoinst install; do |
| 6226 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6227 | 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] | 6228 | if test $ac_prog = install && |
| 6229 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6230 | # AIX install. It has an incompatible calling convention. |
| 6231 | : |
| 6232 | elif test $ac_prog = install && |
| 6233 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6234 | # program-specific install script used by HP pwplus--don't use. |
| 6235 | : |
| 6236 | else |
| 6237 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6238 | break 3 |
| 6239 | fi |
| 6240 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6241 | done |
| 6242 | done |
| 6243 | ;; |
| 6244 | esac |
| 6245 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6246 | IFS=$as_save_IFS |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6247 | |
| 6248 | |
| 6249 | fi |
| 6250 | if test "${ac_cv_path_install+set}" = set; then |
| 6251 | INSTALL=$ac_cv_path_install |
| 6252 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6253 | # As a last resort, use the slow shell script. Don't cache a |
| 6254 | # value for INSTALL within a source directory, because that will |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6255 | # break other packages using the cache if that directory is |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6256 | # removed, or if the value is a relative name. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6257 | INSTALL=$ac_install_sh |
| 6258 | fi |
| 6259 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6260 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 6261 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6262 | |
| 6263 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6264 | # It thinks the first close brace ends the variable substitution. |
| 6265 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6266 | |
| 6267 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6268 | |
| 6269 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6270 | |
| 6271 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 6272 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6273 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 6274 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6275 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6276 | for ac_prog in lclint lint |
| 6277 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6278 | # 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] | 6279 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6280 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6282 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 6283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6284 | else |
| 6285 | if test -n "$LINT"; then |
| 6286 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 6287 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6289 | for as_dir in $PATH |
| 6290 | do |
| 6291 | IFS=$as_save_IFS |
| 6292 | test -z "$as_dir" && as_dir=. |
| 6293 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6294 | 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] | 6295 | ac_cv_prog_LINT="$ac_prog" |
| 6296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6297 | break 2 |
| 6298 | fi |
| 6299 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6300 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6301 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6302 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6303 | fi |
| 6304 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6305 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6306 | if test -n "$LINT"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6307 | { echo "$as_me:$LINENO: result: $LINT" >&5 |
| 6308 | echo "${ECHO_T}$LINT" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6309 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6310 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6311 | echo "${ECHO_T}no" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6312 | fi |
| 6313 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6314 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6315 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6316 | done |
| 6317 | |
| 6318 | if test "$LINT" = "lint" |
| 6319 | then |
| 6320 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 6321 | fi |
| 6322 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6323 | |
| 6324 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6325 | for ac_prog in fontforge |
| 6326 | do |
| 6327 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6328 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6329 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6331 | if test "${ac_cv_prog_FONTFORGE+set}" = set; then |
| 6332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6333 | else |
| 6334 | if test -n "$FONTFORGE"; then |
| 6335 | ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test. |
| 6336 | else |
| 6337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6338 | for as_dir in $PATH |
| 6339 | do |
| 6340 | IFS=$as_save_IFS |
| 6341 | test -z "$as_dir" && as_dir=. |
| 6342 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6343 | 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] | 6344 | ac_cv_prog_FONTFORGE="$ac_prog" |
| 6345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6346 | break 2 |
| 6347 | fi |
| 6348 | done |
| 6349 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6350 | IFS=$as_save_IFS |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6351 | |
| 6352 | fi |
| 6353 | fi |
| 6354 | FONTFORGE=$ac_cv_prog_FONTFORGE |
| 6355 | if test -n "$FONTFORGE"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6356 | { echo "$as_me:$LINENO: result: $FONTFORGE" >&5 |
| 6357 | echo "${ECHO_T}$FONTFORGE" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6358 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6359 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6360 | echo "${ECHO_T}no" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6361 | fi |
| 6362 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6363 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6364 | test -n "$FONTFORGE" && break |
| 6365 | done |
| 6366 | test -n "$FONTFORGE" || FONTFORGE="false" |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 6367 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6368 | for ac_prog in pkg-config |
| 6369 | do |
| 6370 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6371 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6372 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6374 | if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then |
| 6375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6376 | else |
| 6377 | if test -n "$PKG_CONFIG"; then |
| 6378 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 6379 | else |
| 6380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6381 | for as_dir in $PATH |
| 6382 | do |
| 6383 | IFS=$as_save_IFS |
| 6384 | test -z "$as_dir" && as_dir=. |
| 6385 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6386 | 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] | 6387 | ac_cv_prog_PKG_CONFIG="$ac_prog" |
| 6388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6389 | break 2 |
| 6390 | fi |
| 6391 | done |
| 6392 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6393 | IFS=$as_save_IFS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6394 | |
| 6395 | fi |
| 6396 | fi |
| 6397 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 6398 | if test -n "$PKG_CONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6399 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 6400 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6401 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6402 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6403 | echo "${ECHO_T}no" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6404 | fi |
| 6405 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6406 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6407 | test -n "$PKG_CONFIG" && break |
| 6408 | done |
| 6409 | test -n "$PKG_CONFIG" || PKG_CONFIG="false" |
| 6410 | |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 6411 | |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6412 | case $host_cpu in |
| 6413 | *i[3456789]86*) |
| 6414 | for ac_prog in prelink |
| 6415 | do |
| 6416 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6417 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6418 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6420 | if test "${ac_cv_prog_PRELINK+set}" = set; then |
| 6421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6422 | else |
| 6423 | if test -n "$PRELINK"; then |
| 6424 | ac_cv_prog_PRELINK="$PRELINK" # Let the user override the test. |
| 6425 | else |
| 6426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6427 | for as_dir in /sbin /usr/sbin $PATH |
| 6428 | do |
| 6429 | IFS=$as_save_IFS |
| 6430 | test -z "$as_dir" && as_dir=. |
| 6431 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6433 | ac_cv_prog_PRELINK="$ac_prog" |
| 6434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6435 | break 2 |
| 6436 | fi |
| 6437 | done |
| 6438 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6439 | IFS=$as_save_IFS |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6440 | |
| 6441 | fi |
| 6442 | fi |
| 6443 | PRELINK=$ac_cv_prog_PRELINK |
| 6444 | if test -n "$PRELINK"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6445 | { echo "$as_me:$LINENO: result: $PRELINK" >&5 |
| 6446 | echo "${ECHO_T}$PRELINK" >&6; } |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6447 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6448 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6449 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6450 | fi |
| 6451 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6452 | |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6453 | test -n "$PRELINK" && break |
| 6454 | done |
| 6455 | test -n "$PRELINK" || PRELINK="false" |
| 6456 | |
| 6457 | ;; |
| 6458 | esac |
| 6459 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6460 | |
| 6461 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6462 | { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
| 6463 | 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] | 6464 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 6465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6466 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6467 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6468 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6469 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6470 | /* confdefs.h. */ |
| 6471 | _ACEOF |
| 6472 | cat confdefs.h >>conftest.$ac_ext |
| 6473 | cat >>conftest.$ac_ext <<_ACEOF |
| 6474 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6475 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6476 | /* Override any GCC internal prototype to avoid an error. |
| 6477 | Use char because int might match the return type of a GCC |
| 6478 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6479 | #ifdef __cplusplus |
| 6480 | extern "C" |
| 6481 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6482 | char i386_set_ldt (); |
| 6483 | int |
| 6484 | main () |
| 6485 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6486 | return i386_set_ldt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6487 | ; |
| 6488 | return 0; |
| 6489 | } |
| 6490 | _ACEOF |
| 6491 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6493 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6494 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6496 | rm -f conftest.er1 |
| 6497 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6499 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6500 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6502 | (eval $ac_try) 2>&5 |
| 6503 | ac_status=$? |
| 6504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6505 | (exit $ac_status); }; } && |
| 6506 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6508 | (eval $ac_try) 2>&5 |
| 6509 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6511 | (exit $ac_status); }; }; then |
| 6512 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6513 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6514 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6516 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6517 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6518 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6519 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6520 | rm -f conftest.err conftest.$ac_objext \ |
| 6521 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6522 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6523 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6524 | { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5 |
| 6525 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6526 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6527 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6528 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6529 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 6530 | |
| 6531 | LIBS="-li386 $LIBS" |
| 6532 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 6533 | fi |
| 6534 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6535 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6536 | { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
| 6537 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6538 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 6539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 6540 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6541 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 6542 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6543 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6544 | /* confdefs.h. */ |
| 6545 | _ACEOF |
| 6546 | cat confdefs.h >>conftest.$ac_ext |
| 6547 | cat >>conftest.$ac_ext <<_ACEOF |
| 6548 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6549 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6550 | /* Override any GCC internal prototype to avoid an error. |
| 6551 | Use char because int might match the return type of a GCC |
| 6552 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6553 | #ifdef __cplusplus |
| 6554 | extern "C" |
| 6555 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6556 | char _oss_ioctl (); |
| 6557 | int |
| 6558 | main () |
| 6559 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6560 | return _oss_ioctl (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6561 | ; |
| 6562 | return 0; |
| 6563 | } |
| 6564 | _ACEOF |
| 6565 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6567 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6568 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6570 | rm -f conftest.er1 |
| 6571 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6573 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6576 | (eval $ac_try) 2>&5 |
| 6577 | ac_status=$? |
| 6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6579 | (exit $ac_status); }; } && |
| 6580 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6582 | (eval $ac_try) 2>&5 |
| 6583 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6585 | (exit $ac_status); }; }; then |
| 6586 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 6587 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6588 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6590 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6591 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 6592 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6593 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6594 | rm -f conftest.err conftest.$ac_objext \ |
| 6595 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6596 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 6597 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6598 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
| 6599 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6600 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6601 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6602 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6603 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 6604 | |
| 6605 | LIBS="-lossaudio $LIBS" |
| 6606 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 6607 | fi |
| 6608 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6609 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6610 | for ac_func in gethostbyname |
| 6611 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6612 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6613 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6614 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6615 | 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] | 6616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6617 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6618 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6619 | /* confdefs.h. */ |
| 6620 | _ACEOF |
| 6621 | cat confdefs.h >>conftest.$ac_ext |
| 6622 | cat >>conftest.$ac_ext <<_ACEOF |
| 6623 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6624 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6625 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6626 | #define $ac_func innocuous_$ac_func |
| 6627 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6628 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6629 | which can conflict with char $ac_func (); below. |
| 6630 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6631 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6632 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6633 | #ifdef __STDC__ |
| 6634 | # include <limits.h> |
| 6635 | #else |
| 6636 | # include <assert.h> |
| 6637 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6638 | |
| 6639 | #undef $ac_func |
| 6640 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6641 | /* Override any GCC internal prototype to avoid an error. |
| 6642 | Use char because int might match the return type of a GCC |
| 6643 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6644 | #ifdef __cplusplus |
| 6645 | extern "C" |
| 6646 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6647 | char $ac_func (); |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6648 | /* The GNU C library defines this for functions which it implements |
| 6649 | to always fail with ENOSYS. Some functions are actually named |
| 6650 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6651 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6652 | choke me |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6653 | #endif |
| 6654 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6655 | int |
| 6656 | main () |
| 6657 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6658 | return $ac_func (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6659 | ; |
| 6660 | return 0; |
| 6661 | } |
| 6662 | _ACEOF |
| 6663 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6665 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6666 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6668 | rm -f conftest.er1 |
| 6669 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6671 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6672 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6674 | (eval $ac_try) 2>&5 |
| 6675 | ac_status=$? |
| 6676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6677 | (exit $ac_status); }; } && |
| 6678 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6680 | (eval $ac_try) 2>&5 |
| 6681 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6683 | (exit $ac_status); }; }; then |
| 6684 | eval "$as_ac_var=yes" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6685 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6686 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6688 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6689 | eval "$as_ac_var=no" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6690 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6691 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6692 | rm -f conftest.err conftest.$ac_objext \ |
| 6693 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6694 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6695 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6696 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6697 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6698 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6699 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6700 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6701 | _ACEOF |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6702 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6703 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6704 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6705 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 6706 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6707 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 6708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6709 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6710 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6711 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6712 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6713 | /* confdefs.h. */ |
| 6714 | _ACEOF |
| 6715 | cat confdefs.h >>conftest.$ac_ext |
| 6716 | cat >>conftest.$ac_ext <<_ACEOF |
| 6717 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6718 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6719 | /* Override any GCC internal prototype to avoid an error. |
| 6720 | Use char because int might match the return type of a GCC |
| 6721 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6722 | #ifdef __cplusplus |
| 6723 | extern "C" |
| 6724 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6725 | char gethostbyname (); |
| 6726 | int |
| 6727 | main () |
| 6728 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6729 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6730 | ; |
| 6731 | return 0; |
| 6732 | } |
| 6733 | _ACEOF |
| 6734 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6736 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6737 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6739 | rm -f conftest.er1 |
| 6740 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6742 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6745 | (eval $ac_try) 2>&5 |
| 6746 | ac_status=$? |
| 6747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6748 | (exit $ac_status); }; } && |
| 6749 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6751 | (eval $ac_try) 2>&5 |
| 6752 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6754 | (exit $ac_status); }; }; then |
| 6755 | ac_cv_lib_nsl_gethostbyname=yes |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6756 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6757 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6759 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6760 | ac_cv_lib_nsl_gethostbyname=no |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6761 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6762 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6763 | rm -f conftest.err conftest.$ac_objext \ |
| 6764 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6765 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6766 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6767 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6768 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6769 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6770 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6771 | #define HAVE_LIBNSL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6772 | _ACEOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 6773 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6774 | LIBS="-lnsl $LIBS" |
| 6775 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 6776 | fi |
| 6777 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6778 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 6779 | done |
| 6780 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6781 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6782 | for ac_func in connect |
| 6783 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6784 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6785 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6786 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6787 | 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] | 6788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6789 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6790 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6791 | /* confdefs.h. */ |
| 6792 | _ACEOF |
| 6793 | cat confdefs.h >>conftest.$ac_ext |
| 6794 | cat >>conftest.$ac_ext <<_ACEOF |
| 6795 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6796 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6797 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6798 | #define $ac_func innocuous_$ac_func |
| 6799 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6800 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6801 | which can conflict with char $ac_func (); below. |
| 6802 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6803 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6804 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6805 | #ifdef __STDC__ |
| 6806 | # include <limits.h> |
| 6807 | #else |
| 6808 | # include <assert.h> |
| 6809 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6810 | |
| 6811 | #undef $ac_func |
| 6812 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6813 | /* Override any GCC internal prototype to avoid an error. |
| 6814 | Use char because int might match the return type of a GCC |
| 6815 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6816 | #ifdef __cplusplus |
| 6817 | extern "C" |
| 6818 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6819 | char $ac_func (); |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6820 | /* The GNU C library defines this for functions which it implements |
| 6821 | to always fail with ENOSYS. Some functions are actually named |
| 6822 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6823 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6824 | choke me |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6825 | #endif |
| 6826 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6827 | int |
| 6828 | main () |
| 6829 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6830 | return $ac_func (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6831 | ; |
| 6832 | return 0; |
| 6833 | } |
| 6834 | _ACEOF |
| 6835 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6837 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6838 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6840 | rm -f conftest.er1 |
| 6841 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6843 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6846 | (eval $ac_try) 2>&5 |
| 6847 | ac_status=$? |
| 6848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6849 | (exit $ac_status); }; } && |
| 6850 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6852 | (eval $ac_try) 2>&5 |
| 6853 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6855 | (exit $ac_status); }; }; then |
| 6856 | eval "$as_ac_var=yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6857 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6858 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6860 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6861 | eval "$as_ac_var=no" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6862 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6863 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6864 | rm -f conftest.err conftest.$ac_objext \ |
| 6865 | conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6866 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6867 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6868 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6869 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6870 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6871 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6872 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6873 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6874 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6875 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6876 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6877 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 6878 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6879 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 6880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6881 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6882 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6883 | LIBS="-lsocket $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6884 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6885 | /* confdefs.h. */ |
| 6886 | _ACEOF |
| 6887 | cat confdefs.h >>conftest.$ac_ext |
| 6888 | cat >>conftest.$ac_ext <<_ACEOF |
| 6889 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6890 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6891 | /* Override any GCC internal prototype to avoid an error. |
| 6892 | Use char because int might match the return type of a GCC |
| 6893 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6894 | #ifdef __cplusplus |
| 6895 | extern "C" |
| 6896 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6897 | char connect (); |
| 6898 | int |
| 6899 | main () |
| 6900 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6901 | return connect (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6902 | ; |
| 6903 | return 0; |
| 6904 | } |
| 6905 | _ACEOF |
| 6906 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6908 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6909 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6911 | rm -f conftest.er1 |
| 6912 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6914 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6915 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6917 | (eval $ac_try) 2>&5 |
| 6918 | ac_status=$? |
| 6919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6920 | (exit $ac_status); }; } && |
| 6921 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6923 | (eval $ac_try) 2>&5 |
| 6924 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6926 | (exit $ac_status); }; }; then |
| 6927 | ac_cv_lib_socket_connect=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6928 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6929 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6931 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6932 | ac_cv_lib_socket_connect=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6933 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6934 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6935 | rm -f conftest.err conftest.$ac_objext \ |
| 6936 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6937 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6938 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6939 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 6940 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6941 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6942 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6943 | #define HAVE_LIBSOCKET 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6944 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6945 | |
| 6946 | LIBS="-lsocket $LIBS" |
| 6947 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6948 | fi |
| 6949 | |
| 6950 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 6951 | done |
| 6952 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6953 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6954 | for ac_func in inet_aton |
| 6955 | do |
| 6956 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6957 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6958 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6959 | 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] | 6960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6961 | else |
| 6962 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6963 | /* confdefs.h. */ |
| 6964 | _ACEOF |
| 6965 | cat confdefs.h >>conftest.$ac_ext |
| 6966 | cat >>conftest.$ac_ext <<_ACEOF |
| 6967 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6968 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6970 | #define $ac_func innocuous_$ac_func |
| 6971 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6972 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6973 | which can conflict with char $ac_func (); below. |
| 6974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6975 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6976 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6977 | #ifdef __STDC__ |
| 6978 | # include <limits.h> |
| 6979 | #else |
| 6980 | # include <assert.h> |
| 6981 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6982 | |
| 6983 | #undef $ac_func |
| 6984 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6985 | /* Override any GCC internal prototype to avoid an error. |
| 6986 | Use char because int might match the return type of a GCC |
| 6987 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6988 | #ifdef __cplusplus |
| 6989 | extern "C" |
| 6990 | #endif |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6991 | char $ac_func (); |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6992 | /* The GNU C library defines this for functions which it implements |
| 6993 | to always fail with ENOSYS. Some functions are actually named |
| 6994 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6995 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6996 | choke me |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6997 | #endif |
| 6998 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6999 | int |
| 7000 | main () |
| 7001 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7002 | return $ac_func (); |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7003 | ; |
| 7004 | return 0; |
| 7005 | } |
| 7006 | _ACEOF |
| 7007 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7009 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7010 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7012 | rm -f conftest.er1 |
| 7013 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7015 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7016 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7018 | (eval $ac_try) 2>&5 |
| 7019 | ac_status=$? |
| 7020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7021 | (exit $ac_status); }; } && |
| 7022 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7024 | (eval $ac_try) 2>&5 |
| 7025 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7027 | (exit $ac_status); }; }; then |
| 7028 | eval "$as_ac_var=yes" |
| 7029 | else |
| 7030 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7032 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7033 | eval "$as_ac_var=no" |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7034 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7035 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7036 | rm -f conftest.err conftest.$ac_objext \ |
| 7037 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7038 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7039 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 7040 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7041 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7042 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7043 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7044 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7045 | _ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7046 | |
| 7047 | else |
| 7048 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7049 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 7050 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; } |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7051 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 7052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7053 | else |
| 7054 | ac_check_lib_save_LIBS=$LIBS |
| 7055 | LIBS="-lresolv $LIBS" |
| 7056 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7057 | /* confdefs.h. */ |
| 7058 | _ACEOF |
| 7059 | cat confdefs.h >>conftest.$ac_ext |
| 7060 | cat >>conftest.$ac_ext <<_ACEOF |
| 7061 | /* end confdefs.h. */ |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7062 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7063 | /* Override any GCC internal prototype to avoid an error. |
| 7064 | Use char because int might match the return type of a GCC |
| 7065 | builtin and then its argument prototype would still apply. */ |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7066 | #ifdef __cplusplus |
| 7067 | extern "C" |
| 7068 | #endif |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7069 | char inet_aton (); |
| 7070 | int |
| 7071 | main () |
| 7072 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7073 | return inet_aton (); |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7074 | ; |
| 7075 | return 0; |
| 7076 | } |
| 7077 | _ACEOF |
| 7078 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7080 | (eval $ac_link) 2>conftest.er1 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7081 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7083 | rm -f conftest.er1 |
| 7084 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7086 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7089 | (eval $ac_try) 2>&5 |
| 7090 | ac_status=$? |
| 7091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7092 | (exit $ac_status); }; } && |
| 7093 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7095 | (eval $ac_try) 2>&5 |
| 7096 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7098 | (exit $ac_status); }; }; then |
| 7099 | ac_cv_lib_resolv_inet_aton=yes |
| 7100 | else |
| 7101 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7103 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7104 | ac_cv_lib_resolv_inet_aton=no |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7105 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7106 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7107 | rm -f conftest.err conftest.$ac_objext \ |
| 7108 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7109 | LIBS=$ac_check_lib_save_LIBS |
| 7110 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7111 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 7112 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7113 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7114 | cat >>confdefs.h <<_ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7115 | #define HAVE_LIBRESOLV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7116 | _ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7117 | |
| 7118 | LIBS="-lresolv $LIBS" |
| 7119 | |
| 7120 | fi |
| 7121 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7122 | fi |
| 7123 | done |
| 7124 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7125 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7126 | { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 7127 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7128 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 7129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7130 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7131 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7132 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7133 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7134 | /* confdefs.h. */ |
| 7135 | _ACEOF |
| 7136 | cat confdefs.h >>conftest.$ac_ext |
| 7137 | cat >>conftest.$ac_ext <<_ACEOF |
| 7138 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7139 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7140 | /* Override any GCC internal prototype to avoid an error. |
| 7141 | Use char because int might match the return type of a GCC |
| 7142 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7143 | #ifdef __cplusplus |
| 7144 | extern "C" |
| 7145 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7146 | char _xpg4_setrunelocale (); |
| 7147 | int |
| 7148 | main () |
| 7149 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7150 | return _xpg4_setrunelocale (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7151 | ; |
| 7152 | return 0; |
| 7153 | } |
| 7154 | _ACEOF |
| 7155 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7157 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7158 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7160 | rm -f conftest.er1 |
| 7161 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7163 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7166 | (eval $ac_try) 2>&5 |
| 7167 | ac_status=$? |
| 7168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7169 | (exit $ac_status); }; } && |
| 7170 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7172 | (eval $ac_try) 2>&5 |
| 7173 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7175 | (exit $ac_status); }; }; then |
| 7176 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7177 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7178 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7180 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7181 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7182 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7183 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7184 | rm -f conftest.err conftest.$ac_objext \ |
| 7185 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7186 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7187 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7188 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 7189 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7190 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7191 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7192 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7193 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7194 | |
| 7195 | LIBS="-lxpg4 $LIBS" |
| 7196 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7197 | fi |
| 7198 | |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7199 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7200 | { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5 |
| 7201 | echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; } |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7202 | if test "${ac_cv_lib_poll_poll+set}" = set; then |
| 7203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7204 | else |
| 7205 | ac_check_lib_save_LIBS=$LIBS |
| 7206 | LIBS="-lpoll $LIBS" |
| 7207 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7208 | /* confdefs.h. */ |
| 7209 | _ACEOF |
| 7210 | cat confdefs.h >>conftest.$ac_ext |
| 7211 | cat >>conftest.$ac_ext <<_ACEOF |
| 7212 | /* end confdefs.h. */ |
| 7213 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7214 | /* Override any GCC internal prototype to avoid an error. |
| 7215 | Use char because int might match the return type of a GCC |
| 7216 | builtin and then its argument prototype would still apply. */ |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7217 | #ifdef __cplusplus |
| 7218 | extern "C" |
| 7219 | #endif |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7220 | char poll (); |
| 7221 | int |
| 7222 | main () |
| 7223 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7224 | return poll (); |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7225 | ; |
| 7226 | return 0; |
| 7227 | } |
| 7228 | _ACEOF |
| 7229 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7231 | (eval $ac_link) 2>conftest.er1 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7232 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7234 | rm -f conftest.er1 |
| 7235 | cat conftest.err >&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7237 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7240 | (eval $ac_try) 2>&5 |
| 7241 | ac_status=$? |
| 7242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7243 | (exit $ac_status); }; } && |
| 7244 | { ac_try='test -s conftest$ac_exeext' |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7246 | (eval $ac_try) 2>&5 |
| 7247 | ac_status=$? |
| 7248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7249 | (exit $ac_status); }; }; then |
| 7250 | ac_cv_lib_poll_poll=yes |
| 7251 | else |
| 7252 | echo "$as_me: failed program was:" >&5 |
| 7253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7254 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7255 | ac_cv_lib_poll_poll=no |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7256 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7257 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7258 | rm -f conftest.err conftest.$ac_objext \ |
| 7259 | conftest$ac_exeext conftest.$ac_ext |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7260 | LIBS=$ac_check_lib_save_LIBS |
| 7261 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7262 | { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5 |
| 7263 | echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; } |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7264 | if test $ac_cv_lib_poll_poll = yes; then |
| 7265 | cat >>confdefs.h <<_ACEOF |
| 7266 | #define HAVE_LIBPOLL 1 |
| 7267 | _ACEOF |
| 7268 | |
| 7269 | LIBS="-lpoll $LIBS" |
| 7270 | |
| 7271 | fi |
| 7272 | |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7273 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7274 | { echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5 |
| 7275 | echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6; } |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7276 | if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then |
| 7277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7278 | else |
| 7279 | ac_check_lib_save_LIBS=$LIBS |
| 7280 | LIBS="-lresolv $LIBS" |
| 7281 | cat >conftest.$ac_ext <<_ACEOF |
| 7282 | /* confdefs.h. */ |
| 7283 | _ACEOF |
| 7284 | cat confdefs.h >>conftest.$ac_ext |
| 7285 | cat >>conftest.$ac_ext <<_ACEOF |
| 7286 | /* end confdefs.h. */ |
| 7287 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7288 | /* Override any GCC internal prototype to avoid an error. |
| 7289 | Use char because int might match the return type of a GCC |
| 7290 | builtin and then its argument prototype would still apply. */ |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7291 | #ifdef __cplusplus |
| 7292 | extern "C" |
| 7293 | #endif |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7294 | char res_9_init (); |
| 7295 | int |
| 7296 | main () |
| 7297 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7298 | return res_9_init (); |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7299 | ; |
| 7300 | return 0; |
| 7301 | } |
| 7302 | _ACEOF |
| 7303 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7305 | (eval $ac_link) 2>conftest.er1 |
| 7306 | ac_status=$? |
| 7307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7308 | rm -f conftest.er1 |
| 7309 | cat conftest.err >&5 |
| 7310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7311 | (exit $ac_status); } && |
| 7312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7314 | (eval $ac_try) 2>&5 |
| 7315 | ac_status=$? |
| 7316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7317 | (exit $ac_status); }; } && |
| 7318 | { ac_try='test -s conftest$ac_exeext' |
| 7319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7320 | (eval $ac_try) 2>&5 |
| 7321 | ac_status=$? |
| 7322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7323 | (exit $ac_status); }; }; then |
| 7324 | ac_cv_lib_resolv_res_9_init=yes |
| 7325 | else |
| 7326 | echo "$as_me: failed program was:" >&5 |
| 7327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7328 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7329 | ac_cv_lib_resolv_res_9_init=no |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7330 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7331 | |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7332 | rm -f conftest.err conftest.$ac_objext \ |
| 7333 | conftest$ac_exeext conftest.$ac_ext |
| 7334 | LIBS=$ac_check_lib_save_LIBS |
| 7335 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7336 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5 |
| 7337 | echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6; } |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7338 | if test $ac_cv_lib_resolv_res_9_init = yes; then |
| 7339 | cat >>confdefs.h <<_ACEOF |
| 7340 | #define HAVE_LIBRESOLV 1 |
| 7341 | _ACEOF |
| 7342 | |
| 7343 | LIBS="-lresolv $LIBS" |
| 7344 | |
| 7345 | fi |
| 7346 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7347 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 7348 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7349 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7351 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7352 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7353 | LIBS="-lpthread $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7354 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7355 | /* confdefs.h. */ |
| 7356 | _ACEOF |
| 7357 | cat confdefs.h >>conftest.$ac_ext |
| 7358 | cat >>conftest.$ac_ext <<_ACEOF |
| 7359 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7360 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7361 | /* Override any GCC internal prototype to avoid an error. |
| 7362 | Use char because int might match the return type of a GCC |
| 7363 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7364 | #ifdef __cplusplus |
| 7365 | extern "C" |
| 7366 | #endif |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7367 | char pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7368 | int |
| 7369 | main () |
| 7370 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7371 | return pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7372 | ; |
| 7373 | return 0; |
| 7374 | } |
| 7375 | _ACEOF |
| 7376 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7378 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7379 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7381 | rm -f conftest.er1 |
| 7382 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7384 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7385 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7387 | (eval $ac_try) 2>&5 |
| 7388 | ac_status=$? |
| 7389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7390 | (exit $ac_status); }; } && |
| 7391 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7393 | (eval $ac_try) 2>&5 |
| 7394 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7396 | (exit $ac_status); }; }; then |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7397 | ac_cv_lib_pthread_pthread_create=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7398 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7399 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7401 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7402 | ac_cv_lib_pthread_pthread_create=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7403 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7404 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7405 | rm -f conftest.err conftest.$ac_objext \ |
| 7406 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7407 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7408 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7409 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 7410 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7411 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
| 7412 | LIBPTHREAD="-lpthread" |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7413 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7414 | fi |
| 7415 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7416 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 7417 | XLIB="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 7418 | |
| 7419 | XFILES="" |
| 7420 | |
| 7421 | OPENGLFILES="" |
| 7422 | |
| 7423 | GLU32FILES="" |
| 7424 | |
| 7425 | OPENGL_LIBS="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 7426 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7427 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 7428 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7429 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 7430 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7431 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 7433 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7434 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7435 | /* confdefs.h. */ |
| 7436 | _ACEOF |
| 7437 | cat confdefs.h >>conftest.$ac_ext |
| 7438 | cat >>conftest.$ac_ext <<_ACEOF |
| 7439 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7440 | #include <stdlib.h> |
| 7441 | #include <stdarg.h> |
| 7442 | #include <string.h> |
| 7443 | #include <float.h> |
| 7444 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7445 | int |
| 7446 | main () |
| 7447 | { |
| 7448 | |
| 7449 | ; |
| 7450 | return 0; |
| 7451 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7452 | _ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7453 | rm -f conftest.$ac_objext |
| 7454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7455 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7456 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7458 | rm -f conftest.er1 |
| 7459 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7461 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7462 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7464 | (eval $ac_try) 2>&5 |
| 7465 | ac_status=$? |
| 7466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7467 | (exit $ac_status); }; } && |
| 7468 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7470 | (eval $ac_try) 2>&5 |
| 7471 | ac_status=$? |
| 7472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7473 | (exit $ac_status); }; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7474 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7475 | else |
| 7476 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7478 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7479 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 7480 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7481 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7483 | |
| 7484 | if test $ac_cv_header_stdc = yes; then |
| 7485 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7486 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7487 | /* confdefs.h. */ |
| 7488 | _ACEOF |
| 7489 | cat confdefs.h >>conftest.$ac_ext |
| 7490 | cat >>conftest.$ac_ext <<_ACEOF |
| 7491 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7492 | #include <string.h> |
| 7493 | |
| 7494 | _ACEOF |
| 7495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7496 | $EGREP "memchr" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7497 | : |
| 7498 | else |
| 7499 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 7500 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7501 | rm -f conftest* |
| 7502 | |
| 7503 | fi |
| 7504 | |
| 7505 | if test $ac_cv_header_stdc = yes; then |
| 7506 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7507 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7508 | /* confdefs.h. */ |
| 7509 | _ACEOF |
| 7510 | cat confdefs.h >>conftest.$ac_ext |
| 7511 | cat >>conftest.$ac_ext <<_ACEOF |
| 7512 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7513 | #include <stdlib.h> |
| 7514 | |
| 7515 | _ACEOF |
| 7516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7517 | $EGREP "free" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7518 | : |
| 7519 | else |
| 7520 | ac_cv_header_stdc=no |
| 7521 | fi |
| 7522 | rm -f conftest* |
| 7523 | |
| 7524 | fi |
| 7525 | |
| 7526 | if test $ac_cv_header_stdc = yes; then |
| 7527 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7528 | if test "$cross_compiling" = yes; then |
| 7529 | : |
| 7530 | else |
| 7531 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7532 | /* confdefs.h. */ |
| 7533 | _ACEOF |
| 7534 | cat confdefs.h >>conftest.$ac_ext |
| 7535 | cat >>conftest.$ac_ext <<_ACEOF |
| 7536 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7537 | #include <ctype.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7538 | #include <stdlib.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7539 | #if ((' ' & 0x0FF) == 0x020) |
| 7540 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7541 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7542 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7543 | # define ISLOWER(c) \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7544 | (('a' <= (c) && (c) <= 'i') \ |
| 7545 | || ('j' <= (c) && (c) <= 'r') \ |
| 7546 | || ('s' <= (c) && (c) <= 'z')) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7547 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7548 | #endif |
| 7549 | |
| 7550 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7551 | int |
| 7552 | main () |
| 7553 | { |
| 7554 | int i; |
| 7555 | for (i = 0; i < 256; i++) |
| 7556 | if (XOR (islower (i), ISLOWER (i)) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7557 | || toupper (i) != TOUPPER (i)) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7558 | return 2; |
| 7559 | return 0; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7560 | } |
| 7561 | _ACEOF |
| 7562 | rm -f conftest$ac_exeext |
| 7563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7564 | (eval $ac_link) 2>&5 |
| 7565 | ac_status=$? |
| 7566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7567 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7569 | (eval $ac_try) 2>&5 |
| 7570 | ac_status=$? |
| 7571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7572 | (exit $ac_status); }; }; then |
| 7573 | : |
| 7574 | else |
| 7575 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7576 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7578 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7579 | ( exit $ac_status ) |
| 7580 | ac_cv_header_stdc=no |
| 7581 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7582 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7583 | fi |
| 7584 | |
| 7585 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7586 | fi |
| 7587 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7588 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7589 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7590 | if test $ac_cv_header_stdc = yes; then |
| 7591 | |
| 7592 | cat >>confdefs.h <<\_ACEOF |
| 7593 | #define STDC_HEADERS 1 |
| 7594 | _ACEOF |
| 7595 | |
| 7596 | fi |
| 7597 | |
| 7598 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7599 | |
| 7600 | |
| 7601 | |
| 7602 | |
| 7603 | |
| 7604 | |
| 7605 | |
| 7606 | |
| 7607 | |
| 7608 | 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] | 7609 | inttypes.h stdint.h unistd.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7610 | do |
| 7611 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7612 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7613 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7614 | 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] | 7615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7616 | else |
| 7617 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7618 | /* confdefs.h. */ |
| 7619 | _ACEOF |
| 7620 | cat confdefs.h >>conftest.$ac_ext |
| 7621 | cat >>conftest.$ac_ext <<_ACEOF |
| 7622 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7623 | $ac_includes_default |
| 7624 | |
| 7625 | #include <$ac_header> |
| 7626 | _ACEOF |
| 7627 | rm -f conftest.$ac_objext |
| 7628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7629 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7630 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7632 | rm -f conftest.er1 |
| 7633 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7635 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7638 | (eval $ac_try) 2>&5 |
| 7639 | ac_status=$? |
| 7640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7641 | (exit $ac_status); }; } && |
| 7642 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7644 | (eval $ac_try) 2>&5 |
| 7645 | ac_status=$? |
| 7646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7647 | (exit $ac_status); }; }; then |
| 7648 | eval "$as_ac_Header=yes" |
| 7649 | else |
| 7650 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7652 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7653 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7654 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7655 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7657 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7658 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7659 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7660 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7661 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7662 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7663 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7664 | _ACEOF |
| 7665 | |
| 7666 | fi |
| 7667 | |
| 7668 | done |
| 7669 | |
| 7670 | |
| 7671 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7672 | |
| 7673 | |
| 7674 | |
| 7675 | |
| 7676 | |
| 7677 | |
| 7678 | |
| 7679 | |
| 7680 | |
| 7681 | |
| 7682 | |
| 7683 | |
| 7684 | |
| 7685 | |
| 7686 | |
| 7687 | |
| 7688 | |
| 7689 | |
| 7690 | |
| 7691 | |
| 7692 | |
| 7693 | |
| 7694 | |
| 7695 | |
| 7696 | |
| 7697 | |
| 7698 | |
| 7699 | |
| 7700 | |
| 7701 | |
| 7702 | |
| 7703 | |
| 7704 | |
| 7705 | |
| 7706 | |
| 7707 | |
| 7708 | |
| 7709 | |
| 7710 | |
| 7711 | |
| 7712 | |
| 7713 | |
| 7714 | |
| 7715 | |
| 7716 | |
| 7717 | |
| 7718 | |
| 7719 | |
| 7720 | |
| 7721 | |
| 7722 | |
| 7723 | |
| 7724 | |
| 7725 | |
| 7726 | |
| 7727 | |
| 7728 | |
| 7729 | |
| 7730 | |
| 7731 | |
| 7732 | |
| 7733 | |
| 7734 | |
| 7735 | |
| 7736 | |
| 7737 | |
| 7738 | |
| 7739 | |
| 7740 | |
| 7741 | |
| 7742 | |
| 7743 | |
| 7744 | |
| 7745 | |
| 7746 | |
| 7747 | |
| 7748 | |
| 7749 | |
| 7750 | |
| 7751 | |
| 7752 | |
| 7753 | |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 7754 | |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 7755 | |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 7756 | |
| 7757 | |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 7758 | |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 7759 | |
| 7760 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7761 | |
| 7762 | |
| 7763 | |
| 7764 | |
| 7765 | |
| 7766 | |
| 7767 | |
| 7768 | |
| 7769 | |
| 7770 | |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 7771 | |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 7772 | |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 7773 | |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 7774 | |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 7775 | |
| 7776 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7777 | for ac_header in \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 7778 | AudioUnit/AudioUnit.h \ |
| 7779 | CoreAudio/CoreAudio.h \ |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 7780 | IOKit/IOKitLib.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7781 | alsa/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7782 | arpa/inet.h \ |
| 7783 | arpa/nameser.h \ |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 7784 | asm/types.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7785 | capi20.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7786 | cups/cups.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7787 | curses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7788 | direct.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7789 | dlfcn.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7790 | elf.h \ |
| 7791 | float.h \ |
| 7792 | fontconfig/fontconfig.h \ |
| 7793 | getopt.h \ |
| 7794 | gif_lib.h \ |
| 7795 | ieeefp.h \ |
| 7796 | io.h \ |
| 7797 | jack/jack.h \ |
| 7798 | jpeglib.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 7799 | lber.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7800 | lcms.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7801 | lcms/lcms.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 7802 | ldap.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7803 | libaudioio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7804 | link.h \ |
| 7805 | linux/cdrom.h \ |
| 7806 | linux/compiler.h \ |
| 7807 | linux/hdreg.h \ |
| 7808 | linux/input.h \ |
| 7809 | linux/ioctl.h \ |
| 7810 | linux/joystick.h \ |
| 7811 | linux/major.h \ |
| 7812 | linux/param.h \ |
| 7813 | linux/serial.h \ |
| 7814 | linux/ucdrom.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 7815 | mach/machine.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7816 | machine/cpu.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 7817 | machine/limits.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7818 | machine/soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7819 | mntent.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7820 | ncurses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7821 | netdb.h \ |
| 7822 | netinet/in.h \ |
| 7823 | netinet/in_systm.h \ |
| 7824 | netinet/tcp.h \ |
| 7825 | netinet/tcp_fsm.h \ |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 7826 | openssl/err.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7827 | openssl/ssl.h \ |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 7828 | poll.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7829 | process.h \ |
| 7830 | pthread.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7831 | pwd.h \ |
| 7832 | regex.h \ |
| 7833 | sched.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7834 | scsi/scsi.h \ |
| 7835 | scsi/scsi_ioctl.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7836 | scsi/sg.h \ |
| 7837 | soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7838 | stdint.h \ |
| 7839 | strings.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7840 | sys/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7841 | sys/cdio.h \ |
| 7842 | sys/elf32.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7843 | sys/epoll.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7844 | sys/errno.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7845 | sys/exec_elf.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7846 | sys/filio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7847 | sys/ioctl.h \ |
| 7848 | sys/ipc.h \ |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 7849 | sys/limits.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7850 | sys/link.h \ |
| 7851 | sys/lwp.h \ |
| 7852 | sys/mman.h \ |
| 7853 | sys/modem.h \ |
| 7854 | sys/msg.h \ |
Hans Leidekker | 0844b70 | 2006-01-26 13:23:08 +0100 | [diff] [blame] | 7855 | sys/mtio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7856 | sys/param.h \ |
| 7857 | sys/poll.h \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 7858 | sys/prctl.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7859 | sys/ptrace.h \ |
| 7860 | sys/reg.h \ |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 7861 | sys/resource.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7862 | sys/scsiio.h \ |
| 7863 | sys/shm.h \ |
| 7864 | sys/signal.h \ |
| 7865 | sys/socket.h \ |
| 7866 | sys/sockio.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7867 | sys/soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7868 | sys/statvfs.h \ |
| 7869 | sys/strtio.h \ |
| 7870 | sys/syscall.h \ |
| 7871 | sys/sysctl.h \ |
| 7872 | sys/time.h \ |
| 7873 | sys/times.h \ |
| 7874 | sys/uio.h \ |
| 7875 | sys/un.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7876 | sys/vm86.h \ |
| 7877 | sys/wait.h \ |
| 7878 | syscall.h \ |
| 7879 | termios.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7880 | unicode/ubidi.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7881 | unistd.h \ |
| 7882 | utime.h \ |
| 7883 | valgrind/memcheck.h |
| 7884 | |
| 7885 | do |
| 7886 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7887 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7888 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7889 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7890 | 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] | 7891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7892 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7893 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7894 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7895 | echo "${ECHO_T}$ac_res" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7896 | else |
| 7897 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7898 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7899 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7900 | cat >conftest.$ac_ext <<_ACEOF |
| 7901 | /* confdefs.h. */ |
| 7902 | _ACEOF |
| 7903 | cat confdefs.h >>conftest.$ac_ext |
| 7904 | cat >>conftest.$ac_ext <<_ACEOF |
| 7905 | /* end confdefs.h. */ |
| 7906 | $ac_includes_default |
| 7907 | #include <$ac_header> |
| 7908 | _ACEOF |
| 7909 | rm -f conftest.$ac_objext |
| 7910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7911 | (eval $ac_compile) 2>conftest.er1 |
| 7912 | ac_status=$? |
| 7913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7914 | rm -f conftest.er1 |
| 7915 | cat conftest.err >&5 |
| 7916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7917 | (exit $ac_status); } && |
| 7918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7920 | (eval $ac_try) 2>&5 |
| 7921 | ac_status=$? |
| 7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7923 | (exit $ac_status); }; } && |
| 7924 | { ac_try='test -s conftest.$ac_objext' |
| 7925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7926 | (eval $ac_try) 2>&5 |
| 7927 | ac_status=$? |
| 7928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7929 | (exit $ac_status); }; }; then |
| 7930 | ac_header_compiler=yes |
| 7931 | else |
| 7932 | echo "$as_me: failed program was:" >&5 |
| 7933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7934 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7935 | ac_header_compiler=no |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7936 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7937 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7939 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7940 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7941 | |
| 7942 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7943 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7944 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7945 | cat >conftest.$ac_ext <<_ACEOF |
| 7946 | /* confdefs.h. */ |
| 7947 | _ACEOF |
| 7948 | cat confdefs.h >>conftest.$ac_ext |
| 7949 | cat >>conftest.$ac_ext <<_ACEOF |
| 7950 | /* end confdefs.h. */ |
| 7951 | #include <$ac_header> |
| 7952 | _ACEOF |
| 7953 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7954 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7955 | ac_status=$? |
| 7956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7957 | rm -f conftest.er1 |
| 7958 | cat conftest.err >&5 |
| 7959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7960 | (exit $ac_status); } >/dev/null; then |
| 7961 | if test -s conftest.err; then |
| 7962 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7963 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7964 | else |
| 7965 | ac_cpp_err= |
| 7966 | fi |
| 7967 | else |
| 7968 | ac_cpp_err=yes |
| 7969 | fi |
| 7970 | if test -z "$ac_cpp_err"; then |
| 7971 | ac_header_preproc=yes |
| 7972 | else |
| 7973 | echo "$as_me: failed program was:" >&5 |
| 7974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7975 | |
| 7976 | ac_header_preproc=no |
| 7977 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7978 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7979 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7980 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7981 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7982 | |
| 7983 | # So? What about this header? |
| 7984 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7985 | yes:no: ) |
| 7986 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7987 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7988 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7989 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7990 | ac_header_preproc=yes |
| 7991 | ;; |
| 7992 | no:yes:* ) |
| 7993 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7994 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7995 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7996 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7997 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7998 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7999 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8000 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8001 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8002 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8003 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8004 | 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] | 8005 | ( cat <<\_ASBOX |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8006 | ## ------------------------------------ ## |
| 8007 | ## Report this to wine-devel@winehq.org ## |
| 8008 | ## ------------------------------------ ## |
| 8009 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8010 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8011 | ;; |
| 8012 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8013 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8015 | 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] | 8016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8017 | else |
| 8018 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8019 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8020 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8021 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8022 | echo "${ECHO_T}$ac_res" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8023 | |
| 8024 | fi |
| 8025 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8026 | cat >>confdefs.h <<_ACEOF |
| 8027 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8028 | _ACEOF |
| 8029 | |
| 8030 | fi |
| 8031 | |
| 8032 | done |
| 8033 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8034 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 8035 | 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] | 8036 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 8037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8038 | else |
| 8039 | cat >conftest.$ac_ext <<_ACEOF |
| 8040 | /* confdefs.h. */ |
| 8041 | _ACEOF |
| 8042 | cat confdefs.h >>conftest.$ac_ext |
| 8043 | cat >>conftest.$ac_ext <<_ACEOF |
| 8044 | /* end confdefs.h. */ |
| 8045 | #include <sys/types.h> |
| 8046 | #include <sys/stat.h> |
| 8047 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8048 | #if defined S_ISBLK && defined S_IFDIR |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8049 | # if S_ISBLK (S_IFDIR) |
| 8050 | You lose. |
| 8051 | # endif |
| 8052 | #endif |
| 8053 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8054 | #if defined S_ISBLK && defined S_IFCHR |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8055 | # if S_ISBLK (S_IFCHR) |
| 8056 | You lose. |
| 8057 | # endif |
| 8058 | #endif |
| 8059 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8060 | #if defined S_ISLNK && defined S_IFREG |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8061 | # if S_ISLNK (S_IFREG) |
| 8062 | You lose. |
| 8063 | # endif |
| 8064 | #endif |
| 8065 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8066 | #if defined S_ISSOCK && defined S_IFREG |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8067 | # if S_ISSOCK (S_IFREG) |
| 8068 | You lose. |
| 8069 | # endif |
| 8070 | #endif |
| 8071 | |
| 8072 | _ACEOF |
| 8073 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8074 | $EGREP "You lose" >/dev/null 2>&1; then |
| 8075 | ac_cv_header_stat_broken=yes |
| 8076 | else |
| 8077 | ac_cv_header_stat_broken=no |
| 8078 | fi |
| 8079 | rm -f conftest* |
| 8080 | |
| 8081 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8082 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 8083 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8084 | if test $ac_cv_header_stat_broken = yes; then |
| 8085 | |
| 8086 | cat >>confdefs.h <<\_ACEOF |
| 8087 | #define STAT_MACROS_BROKEN 1 |
| 8088 | _ACEOF |
| 8089 | |
| 8090 | fi |
| 8091 | |
| 8092 | |
| 8093 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8094 | |
| 8095 | |
| 8096 | |
| 8097 | |
| 8098 | for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h |
| 8099 | do |
| 8100 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8101 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8102 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8103 | 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] | 8104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8105 | else |
| 8106 | cat >conftest.$ac_ext <<_ACEOF |
| 8107 | /* confdefs.h. */ |
| 8108 | _ACEOF |
| 8109 | cat confdefs.h >>conftest.$ac_ext |
| 8110 | cat >>conftest.$ac_ext <<_ACEOF |
| 8111 | /* end confdefs.h. */ |
| 8112 | #include <sys/types.h> |
| 8113 | #if HAVE_SYS_PARAM_H |
| 8114 | # include <sys/param.h> |
| 8115 | #endif |
| 8116 | |
| 8117 | #include <$ac_header> |
| 8118 | _ACEOF |
| 8119 | rm -f conftest.$ac_objext |
| 8120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8121 | (eval $ac_compile) 2>conftest.er1 |
| 8122 | ac_status=$? |
| 8123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8124 | rm -f conftest.er1 |
| 8125 | cat conftest.err >&5 |
| 8126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8127 | (exit $ac_status); } && |
| 8128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8130 | (eval $ac_try) 2>&5 |
| 8131 | ac_status=$? |
| 8132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8133 | (exit $ac_status); }; } && |
| 8134 | { ac_try='test -s conftest.$ac_objext' |
| 8135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8136 | (eval $ac_try) 2>&5 |
| 8137 | ac_status=$? |
| 8138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8139 | (exit $ac_status); }; }; then |
| 8140 | eval "$as_ac_Header=yes" |
| 8141 | else |
| 8142 | echo "$as_me: failed program was:" >&5 |
| 8143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8144 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8145 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8146 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8147 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8149 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8150 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8151 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8152 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8153 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8154 | cat >>confdefs.h <<_ACEOF |
| 8155 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8156 | _ACEOF |
| 8157 | |
| 8158 | fi |
| 8159 | |
| 8160 | done |
| 8161 | |
| 8162 | |
| 8163 | |
| 8164 | |
| 8165 | |
| 8166 | |
| 8167 | |
| 8168 | |
| 8169 | 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 |
| 8170 | do |
| 8171 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8172 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8173 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8174 | 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] | 8175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8176 | else |
| 8177 | cat >conftest.$ac_ext <<_ACEOF |
| 8178 | /* confdefs.h. */ |
| 8179 | _ACEOF |
| 8180 | cat confdefs.h >>conftest.$ac_ext |
| 8181 | cat >>conftest.$ac_ext <<_ACEOF |
| 8182 | /* end confdefs.h. */ |
| 8183 | #include <sys/types.h> |
| 8184 | #if HAVE_SYS_SOCKET_H |
| 8185 | # include <sys/socket.h> |
| 8186 | #endif |
| 8187 | |
| 8188 | #include <$ac_header> |
| 8189 | _ACEOF |
| 8190 | rm -f conftest.$ac_objext |
| 8191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8192 | (eval $ac_compile) 2>conftest.er1 |
| 8193 | ac_status=$? |
| 8194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8195 | rm -f conftest.er1 |
| 8196 | cat conftest.err >&5 |
| 8197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8198 | (exit $ac_status); } && |
| 8199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8201 | (eval $ac_try) 2>&5 |
| 8202 | ac_status=$? |
| 8203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8204 | (exit $ac_status); }; } && |
| 8205 | { ac_try='test -s conftest.$ac_objext' |
| 8206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8207 | (eval $ac_try) 2>&5 |
| 8208 | ac_status=$? |
| 8209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8210 | (exit $ac_status); }; }; then |
| 8211 | eval "$as_ac_Header=yes" |
| 8212 | else |
| 8213 | echo "$as_me: failed program was:" >&5 |
| 8214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8215 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8216 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8217 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8218 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8220 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8221 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8222 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8223 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8224 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8225 | cat >>confdefs.h <<_ACEOF |
| 8226 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8227 | _ACEOF |
| 8228 | |
| 8229 | fi |
| 8230 | |
| 8231 | done |
| 8232 | |
| 8233 | |
| 8234 | |
| 8235 | for ac_header in resolv.h |
| 8236 | do |
| 8237 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8238 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8239 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8240 | 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] | 8241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8242 | else |
| 8243 | cat >conftest.$ac_ext <<_ACEOF |
| 8244 | /* confdefs.h. */ |
| 8245 | _ACEOF |
| 8246 | cat confdefs.h >>conftest.$ac_ext |
| 8247 | cat >>conftest.$ac_ext <<_ACEOF |
| 8248 | /* end confdefs.h. */ |
| 8249 | #include <sys/types.h> |
| 8250 | #if HAVE_SYS_SOCKET_H |
| 8251 | # include <sys/socket.h> |
| 8252 | #endif |
| 8253 | #if HAVE_NETINET_IN_H |
| 8254 | # include <netinet/in.h> |
| 8255 | #endif |
| 8256 | #if HAVE_ARPA_NAMESER_H |
| 8257 | # include <arpa/nameser.h> |
| 8258 | #endif |
| 8259 | |
| 8260 | #include <$ac_header> |
| 8261 | _ACEOF |
| 8262 | rm -f conftest.$ac_objext |
| 8263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8264 | (eval $ac_compile) 2>conftest.er1 |
| 8265 | ac_status=$? |
| 8266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8267 | rm -f conftest.er1 |
| 8268 | cat conftest.err >&5 |
| 8269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8270 | (exit $ac_status); } && |
| 8271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8273 | (eval $ac_try) 2>&5 |
| 8274 | ac_status=$? |
| 8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8276 | (exit $ac_status); }; } && |
| 8277 | { ac_try='test -s conftest.$ac_objext' |
| 8278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8279 | (eval $ac_try) 2>&5 |
| 8280 | ac_status=$? |
| 8281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8282 | (exit $ac_status); }; }; then |
| 8283 | eval "$as_ac_Header=yes" |
| 8284 | else |
| 8285 | echo "$as_me: failed program was:" >&5 |
| 8286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8287 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8288 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8289 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8290 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8292 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8293 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8294 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8295 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8296 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8297 | cat >>confdefs.h <<_ACEOF |
| 8298 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8299 | _ACEOF |
| 8300 | |
| 8301 | fi |
| 8302 | |
| 8303 | done |
| 8304 | |
| 8305 | |
| 8306 | |
| 8307 | for ac_header in ucontext.h |
| 8308 | do |
| 8309 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8310 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8311 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8312 | 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] | 8313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8314 | else |
| 8315 | cat >conftest.$ac_ext <<_ACEOF |
| 8316 | /* confdefs.h. */ |
| 8317 | _ACEOF |
| 8318 | cat confdefs.h >>conftest.$ac_ext |
| 8319 | cat >>conftest.$ac_ext <<_ACEOF |
| 8320 | /* end confdefs.h. */ |
| 8321 | #include <signal.h> |
| 8322 | |
| 8323 | #include <$ac_header> |
| 8324 | _ACEOF |
| 8325 | rm -f conftest.$ac_objext |
| 8326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8327 | (eval $ac_compile) 2>conftest.er1 |
| 8328 | ac_status=$? |
| 8329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8330 | rm -f conftest.er1 |
| 8331 | cat conftest.err >&5 |
| 8332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8333 | (exit $ac_status); } && |
| 8334 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8336 | (eval $ac_try) 2>&5 |
| 8337 | ac_status=$? |
| 8338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8339 | (exit $ac_status); }; } && |
| 8340 | { ac_try='test -s conftest.$ac_objext' |
| 8341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8342 | (eval $ac_try) 2>&5 |
| 8343 | ac_status=$? |
| 8344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8345 | (exit $ac_status); }; }; then |
| 8346 | eval "$as_ac_Header=yes" |
| 8347 | else |
| 8348 | echo "$as_me: failed program was:" >&5 |
| 8349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8350 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8351 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8352 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8353 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8355 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8356 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8358 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8359 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8360 | cat >>confdefs.h <<_ACEOF |
| 8361 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8362 | _ACEOF |
| 8363 | |
| 8364 | fi |
| 8365 | |
| 8366 | done |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
| 8371 | for ac_header in linux/ipx.h linux/videodev.h |
| 8372 | do |
| 8373 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8374 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8375 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8376 | 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] | 8377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8378 | else |
| 8379 | cat >conftest.$ac_ext <<_ACEOF |
| 8380 | /* confdefs.h. */ |
| 8381 | _ACEOF |
| 8382 | cat confdefs.h >>conftest.$ac_ext |
| 8383 | cat >>conftest.$ac_ext <<_ACEOF |
| 8384 | /* end confdefs.h. */ |
| 8385 | #ifdef HAVE_SYS_TIME_H |
| 8386 | #include <sys/time.h> |
| 8387 | #endif |
| 8388 | #include <sys/types.h> |
| 8389 | #ifdef HAVE_ASM_TYPES_H |
| 8390 | #include <asm/types.h> |
| 8391 | #endif |
| 8392 | |
| 8393 | #include <$ac_header> |
| 8394 | _ACEOF |
| 8395 | rm -f conftest.$ac_objext |
| 8396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8397 | (eval $ac_compile) 2>conftest.er1 |
| 8398 | ac_status=$? |
| 8399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8400 | rm -f conftest.er1 |
| 8401 | cat conftest.err >&5 |
| 8402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8403 | (exit $ac_status); } && |
| 8404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8406 | (eval $ac_try) 2>&5 |
| 8407 | ac_status=$? |
| 8408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8409 | (exit $ac_status); }; } && |
| 8410 | { ac_try='test -s conftest.$ac_objext' |
| 8411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8412 | (eval $ac_try) 2>&5 |
| 8413 | ac_status=$? |
| 8414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8415 | (exit $ac_status); }; }; then |
| 8416 | eval "$as_ac_Header=yes" |
| 8417 | else |
| 8418 | echo "$as_me: failed program was:" >&5 |
| 8419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8420 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8421 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8422 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8423 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8425 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8426 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8427 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8428 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8429 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8430 | cat >>confdefs.h <<_ACEOF |
| 8431 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8432 | _ACEOF |
| 8433 | |
| 8434 | fi |
| 8435 | |
| 8436 | done |
| 8437 | |
| 8438 | |
| 8439 | |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 8440 | for ac_header in linux/capi.h |
| 8441 | do |
| 8442 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8443 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8444 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8445 | 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] | 8446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8447 | else |
| 8448 | cat >conftest.$ac_ext <<_ACEOF |
| 8449 | /* confdefs.h. */ |
| 8450 | _ACEOF |
| 8451 | cat confdefs.h >>conftest.$ac_ext |
| 8452 | cat >>conftest.$ac_ext <<_ACEOF |
| 8453 | /* end confdefs.h. */ |
| 8454 | #define __user |
| 8455 | |
| 8456 | #include <$ac_header> |
| 8457 | _ACEOF |
| 8458 | rm -f conftest.$ac_objext |
| 8459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8460 | (eval $ac_compile) 2>conftest.er1 |
| 8461 | ac_status=$? |
| 8462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8463 | rm -f conftest.er1 |
| 8464 | cat conftest.err >&5 |
| 8465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8466 | (exit $ac_status); } && |
| 8467 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8469 | (eval $ac_try) 2>&5 |
| 8470 | ac_status=$? |
| 8471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8472 | (exit $ac_status); }; } && |
| 8473 | { ac_try='test -s conftest.$ac_objext' |
| 8474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8475 | (eval $ac_try) 2>&5 |
| 8476 | ac_status=$? |
| 8477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8478 | (exit $ac_status); }; }; then |
| 8479 | eval "$as_ac_Header=yes" |
| 8480 | else |
| 8481 | echo "$as_me: failed program was:" >&5 |
| 8482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8483 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8484 | eval "$as_ac_Header=no" |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 8485 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8486 | |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 8487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8488 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8489 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8490 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8491 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 8492 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8493 | cat >>confdefs.h <<_ACEOF |
| 8494 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8495 | _ACEOF |
| 8496 | |
| 8497 | fi |
| 8498 | |
| 8499 | done |
| 8500 | |
| 8501 | |
| 8502 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8503 | if test "$have_x" = "yes" |
| 8504 | then |
| 8505 | XLIB="-lXext -lX11" |
| 8506 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 8507 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 8508 | |
| 8509 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8510 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8511 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8512 | |
| 8513 | |
| 8514 | |
| 8515 | |
| 8516 | |
| 8517 | |
| 8518 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8519 | for ac_header in X11/Xlib.h \ |
| 8520 | X11/XKBlib.h \ |
| 8521 | X11/Xutil.h \ |
| 8522 | X11/extensions/shape.h \ |
| 8523 | X11/extensions/XInput.h \ |
| 8524 | X11/extensions/XShm.h \ |
| 8525 | X11/extensions/Xrandr.h \ |
| 8526 | X11/extensions/Xrender.h \ |
| 8527 | X11/extensions/xf86dga.h \ |
| 8528 | X11/extensions/xf86vmode.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8529 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8530 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8531 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8532 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8533 | 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] | 8534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8535 | else |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 8536 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8537 | /* confdefs.h. */ |
| 8538 | _ACEOF |
| 8539 | cat confdefs.h >>conftest.$ac_ext |
| 8540 | cat >>conftest.$ac_ext <<_ACEOF |
| 8541 | /* end confdefs.h. */ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8542 | #ifdef HAVE_X11_XLIB_H |
| 8543 | # include <X11/Xlib.h> |
| 8544 | #endif |
| 8545 | #ifdef HAVE_X11_XUTIL_H |
| 8546 | # include <X11/Xutil.h> |
| 8547 | #endif |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 8548 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8549 | #include <$ac_header> |
| 8550 | _ACEOF |
| 8551 | rm -f conftest.$ac_objext |
| 8552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8553 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8554 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8556 | rm -f conftest.er1 |
| 8557 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8559 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8562 | (eval $ac_try) 2>&5 |
| 8563 | ac_status=$? |
| 8564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8565 | (exit $ac_status); }; } && |
| 8566 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8568 | (eval $ac_try) 2>&5 |
| 8569 | ac_status=$? |
| 8570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8571 | (exit $ac_status); }; }; then |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 8572 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8573 | else |
| 8574 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8576 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8577 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8578 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8579 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8581 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8582 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8583 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8584 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8585 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8586 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8587 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8588 | _ACEOF |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8589 | |
| 8590 | fi |
| 8591 | |
| 8592 | done |
| 8593 | |
| 8594 | |
| 8595 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" |
| 8596 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8597 | { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
| 8598 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8599 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 8600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8601 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8602 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8603 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8604 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8605 | /* confdefs.h. */ |
| 8606 | _ACEOF |
| 8607 | cat confdefs.h >>conftest.$ac_ext |
| 8608 | cat >>conftest.$ac_ext <<_ACEOF |
| 8609 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8610 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8611 | /* Override any GCC internal prototype to avoid an error. |
| 8612 | Use char because int might match the return type of a GCC |
| 8613 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8614 | #ifdef __cplusplus |
| 8615 | extern "C" |
| 8616 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8617 | char XkbQueryExtension (); |
| 8618 | int |
| 8619 | main () |
| 8620 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8621 | return XkbQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8622 | ; |
| 8623 | return 0; |
| 8624 | } |
| 8625 | _ACEOF |
| 8626 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8628 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8629 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8631 | rm -f conftest.er1 |
| 8632 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8634 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8637 | (eval $ac_try) 2>&5 |
| 8638 | ac_status=$? |
| 8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8640 | (exit $ac_status); }; } && |
| 8641 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8643 | (eval $ac_try) 2>&5 |
| 8644 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8646 | (exit $ac_status); }; }; then |
| 8647 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8648 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8649 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8651 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8652 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8653 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8654 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8655 | rm -f conftest.err conftest.$ac_objext \ |
| 8656 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8657 | LIBS=$ac_check_lib_save_LIBS |
| 8658 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8659 | { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
| 8660 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8661 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8662 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8663 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8664 | #define HAVE_XKB 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8665 | _ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8666 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8667 | fi |
| 8668 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8669 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8670 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8671 | if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 8672 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8673 | { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
| 8674 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8675 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 8676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8677 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8678 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8679 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8680 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8681 | /* confdefs.h. */ |
| 8682 | _ACEOF |
| 8683 | cat confdefs.h >>conftest.$ac_ext |
| 8684 | cat >>conftest.$ac_ext <<_ACEOF |
| 8685 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8686 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8687 | /* Override any GCC internal prototype to avoid an error. |
| 8688 | Use char because int might match the return type of a GCC |
| 8689 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8690 | #ifdef __cplusplus |
| 8691 | extern "C" |
| 8692 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8693 | char XShmQueryExtension (); |
| 8694 | int |
| 8695 | main () |
| 8696 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8697 | return XShmQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8698 | ; |
| 8699 | return 0; |
| 8700 | } |
| 8701 | _ACEOF |
| 8702 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8704 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8705 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8707 | rm -f conftest.er1 |
| 8708 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8710 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8711 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8713 | (eval $ac_try) 2>&5 |
| 8714 | ac_status=$? |
| 8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8716 | (exit $ac_status); }; } && |
| 8717 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8719 | (eval $ac_try) 2>&5 |
| 8720 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8722 | (exit $ac_status); }; }; then |
| 8723 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8724 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8725 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8727 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8728 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8729 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8730 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8731 | rm -f conftest.err conftest.$ac_objext \ |
| 8732 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8733 | LIBS=$ac_check_lib_save_LIBS |
| 8734 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8735 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
| 8736 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8737 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8738 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8739 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8740 | #define HAVE_LIBXXSHM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8741 | _ACEOF |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8742 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8743 | fi |
| 8744 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8745 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8746 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8747 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
| 8748 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8749 | { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 8750 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8751 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 8752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8753 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8754 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8755 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8756 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8757 | /* confdefs.h. */ |
| 8758 | _ACEOF |
| 8759 | cat confdefs.h >>conftest.$ac_ext |
| 8760 | cat >>conftest.$ac_ext <<_ACEOF |
| 8761 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8762 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8763 | /* Override any GCC internal prototype to avoid an error. |
| 8764 | Use char because int might match the return type of a GCC |
| 8765 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8766 | #ifdef __cplusplus |
| 8767 | extern "C" |
| 8768 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8769 | char XShapeQueryExtension (); |
| 8770 | int |
| 8771 | main () |
| 8772 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8773 | return XShapeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8774 | ; |
| 8775 | return 0; |
| 8776 | } |
| 8777 | _ACEOF |
| 8778 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8780 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8781 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8783 | rm -f conftest.er1 |
| 8784 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8786 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8787 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8789 | (eval $ac_try) 2>&5 |
| 8790 | ac_status=$? |
| 8791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8792 | (exit $ac_status); }; } && |
| 8793 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8795 | (eval $ac_try) 2>&5 |
| 8796 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8798 | (exit $ac_status); }; }; then |
| 8799 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8800 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8801 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8803 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8804 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8805 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8806 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8807 | rm -f conftest.err conftest.$ac_objext \ |
| 8808 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8809 | LIBS=$ac_check_lib_save_LIBS |
| 8810 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8811 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 8812 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8813 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8814 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8815 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8816 | #define HAVE_LIBXSHAPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8817 | _ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8818 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8819 | fi |
| 8820 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8821 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8822 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8823 | if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes" |
| 8824 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8825 | { echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5 |
| 8826 | echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8827 | if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then |
| 8828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8829 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8830 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8831 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8832 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8833 | /* confdefs.h. */ |
| 8834 | _ACEOF |
| 8835 | cat confdefs.h >>conftest.$ac_ext |
| 8836 | cat >>conftest.$ac_ext <<_ACEOF |
| 8837 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8838 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8839 | /* Override any GCC internal prototype to avoid an error. |
| 8840 | Use char because int might match the return type of a GCC |
| 8841 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8842 | #ifdef __cplusplus |
| 8843 | extern "C" |
| 8844 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8845 | char XDGAQueryExtension (); |
| 8846 | int |
| 8847 | main () |
| 8848 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8849 | return XDGAQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8850 | ; |
| 8851 | return 0; |
| 8852 | } |
| 8853 | _ACEOF |
| 8854 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8856 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8857 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8859 | rm -f conftest.er1 |
| 8860 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8862 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8863 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8865 | (eval $ac_try) 2>&5 |
| 8866 | ac_status=$? |
| 8867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8868 | (exit $ac_status); }; } && |
| 8869 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8871 | (eval $ac_try) 2>&5 |
| 8872 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8874 | (exit $ac_status); }; }; then |
| 8875 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8876 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8877 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8879 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8880 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=no |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8881 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8882 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8883 | rm -f conftest.err conftest.$ac_objext \ |
| 8884 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8885 | LIBS=$ac_check_lib_save_LIBS |
| 8886 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8887 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5 |
| 8888 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8889 | if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8890 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8891 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8892 | #define HAVE_LIBXXF86DGA2 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8893 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 8894 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8895 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8896 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8897 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8898 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8899 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8900 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8901 | if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" |
| 8902 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8903 | { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
| 8904 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8905 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 8906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8907 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8908 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8909 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8910 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8911 | /* confdefs.h. */ |
| 8912 | _ACEOF |
| 8913 | cat confdefs.h >>conftest.$ac_ext |
| 8914 | cat >>conftest.$ac_ext <<_ACEOF |
| 8915 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8916 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8917 | /* Override any GCC internal prototype to avoid an error. |
| 8918 | Use char because int might match the return type of a GCC |
| 8919 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8920 | #ifdef __cplusplus |
| 8921 | extern "C" |
| 8922 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8923 | char XF86VidModeQueryExtension (); |
| 8924 | int |
| 8925 | main () |
| 8926 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8927 | return XF86VidModeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8928 | ; |
| 8929 | return 0; |
| 8930 | } |
| 8931 | _ACEOF |
| 8932 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8934 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8935 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8937 | rm -f conftest.er1 |
| 8938 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8940 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8941 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8943 | (eval $ac_try) 2>&5 |
| 8944 | ac_status=$? |
| 8945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8946 | (exit $ac_status); }; } && |
| 8947 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8949 | (eval $ac_try) 2>&5 |
| 8950 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8952 | (exit $ac_status); }; }; then |
| 8953 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8954 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8955 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8957 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8958 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8959 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8960 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8961 | rm -f conftest.err conftest.$ac_objext \ |
| 8962 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8963 | LIBS=$ac_check_lib_save_LIBS |
| 8964 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8965 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
| 8966 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8967 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8968 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8969 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8970 | #define HAVE_LIBXXF86VM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8971 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8972 | |
| 8973 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8974 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8975 | fi |
| 8976 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8977 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8978 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8979 | if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" |
| 8980 | then |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8981 | cat >conftest.$ac_ext <<_ACEOF |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8982 | /* confdefs.h. */ |
| 8983 | _ACEOF |
| 8984 | cat confdefs.h >>conftest.$ac_ext |
| 8985 | cat >>conftest.$ac_ext <<_ACEOF |
| 8986 | /* end confdefs.h. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8987 | #include <X11/Xlib.h> |
| 8988 | #include <X11/extensions/Xrandr.h> |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8989 | int |
| 8990 | main () |
| 8991 | { |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8992 | static typeof(XRRSetScreenConfigAndRate) * func; |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8993 | ; |
| 8994 | return 0; |
| 8995 | } |
| 8996 | _ACEOF |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8997 | rm -f conftest.$ac_objext |
| 8998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8999 | (eval $ac_compile) 2>conftest.er1 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9000 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9002 | rm -f conftest.er1 |
| 9003 | cat conftest.err >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9005 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9008 | (eval $ac_try) 2>&5 |
| 9009 | ac_status=$? |
| 9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9011 | (exit $ac_status); }; } && |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9012 | { ac_try='test -s conftest.$ac_objext' |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9014 | (eval $ac_try) 2>&5 |
| 9015 | ac_status=$? |
| 9016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9017 | (exit $ac_status); }; }; then |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9018 | |
| 9019 | cat >>confdefs.h <<\_ACEOF |
| 9020 | #define HAVE_LIBXRANDR 1 |
| 9021 | _ACEOF |
| 9022 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9023 | else |
| 9024 | echo "$as_me: failed program was:" >&5 |
| 9025 | sed 's/^/| /' conftest.$ac_ext >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9026 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9027 | |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9028 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9029 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9031 | fi |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9032 | |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9033 | if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" |
| 9034 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9035 | { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5 |
| 9036 | echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; } |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9037 | if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then |
| 9038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9039 | else |
| 9040 | ac_check_lib_save_LIBS=$LIBS |
| 9041 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 9042 | cat >conftest.$ac_ext <<_ACEOF |
| 9043 | /* confdefs.h. */ |
| 9044 | _ACEOF |
| 9045 | cat confdefs.h >>conftest.$ac_ext |
| 9046 | cat >>conftest.$ac_ext <<_ACEOF |
| 9047 | /* end confdefs.h. */ |
| 9048 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9049 | /* Override any GCC internal prototype to avoid an error. |
| 9050 | Use char because int might match the return type of a GCC |
| 9051 | builtin and then its argument prototype would still apply. */ |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9052 | #ifdef __cplusplus |
| 9053 | extern "C" |
| 9054 | #endif |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9055 | char XRenderSetPictureTransform (); |
| 9056 | int |
| 9057 | main () |
| 9058 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9059 | return XRenderSetPictureTransform (); |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9060 | ; |
| 9061 | return 0; |
| 9062 | } |
| 9063 | _ACEOF |
| 9064 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9066 | (eval $ac_link) 2>conftest.er1 |
| 9067 | ac_status=$? |
| 9068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9069 | rm -f conftest.er1 |
| 9070 | cat conftest.err >&5 |
| 9071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9072 | (exit $ac_status); } && |
| 9073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9075 | (eval $ac_try) 2>&5 |
| 9076 | ac_status=$? |
| 9077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9078 | (exit $ac_status); }; } && |
| 9079 | { ac_try='test -s conftest$ac_exeext' |
| 9080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9081 | (eval $ac_try) 2>&5 |
| 9082 | ac_status=$? |
| 9083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9084 | (exit $ac_status); }; }; then |
| 9085 | ac_cv_lib_Xrender_XRenderSetPictureTransform=yes |
| 9086 | else |
| 9087 | echo "$as_me: failed program was:" >&5 |
| 9088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9089 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9090 | ac_cv_lib_Xrender_XRenderSetPictureTransform=no |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9091 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9092 | |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9093 | rm -f conftest.err conftest.$ac_objext \ |
| 9094 | conftest$ac_exeext conftest.$ac_ext |
| 9095 | LIBS=$ac_check_lib_save_LIBS |
| 9096 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9097 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5 |
| 9098 | echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; } |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9099 | if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then |
| 9100 | |
| 9101 | cat >>confdefs.h <<\_ACEOF |
| 9102 | #define HAVE_XRENDERSETPICTURETRANSFORM 1 |
| 9103 | _ACEOF |
| 9104 | |
| 9105 | fi |
| 9106 | |
| 9107 | fi |
| 9108 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 9109 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9110 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9111 | |
| 9112 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9113 | |
Huw Davies | 4eb4546 | 2006-03-07 13:55:35 +0000 | [diff] [blame] | 9114 | |
| 9115 | 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] | 9116 | do |
| 9117 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9118 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9119 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9120 | 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] | 9121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9122 | else |
| 9123 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9124 | /* confdefs.h. */ |
| 9125 | _ACEOF |
| 9126 | cat confdefs.h >>conftest.$ac_ext |
| 9127 | cat >>conftest.$ac_ext <<_ACEOF |
| 9128 | /* end confdefs.h. */ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9129 | #ifdef HAVE_GL_GLX_H |
| 9130 | # include <GL/glx.h> |
| 9131 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9132 | |
| 9133 | #include <$ac_header> |
| 9134 | _ACEOF |
| 9135 | rm -f conftest.$ac_objext |
| 9136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9137 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9138 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9140 | rm -f conftest.er1 |
| 9141 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9143 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9144 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9146 | (eval $ac_try) 2>&5 |
| 9147 | ac_status=$? |
| 9148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9149 | (exit $ac_status); }; } && |
| 9150 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9152 | (eval $ac_try) 2>&5 |
| 9153 | ac_status=$? |
| 9154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9155 | (exit $ac_status); }; }; then |
| 9156 | eval "$as_ac_Header=yes" |
| 9157 | else |
| 9158 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9160 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9161 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9162 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9163 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9165 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9166 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9167 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9168 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9169 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9170 | cat >>confdefs.h <<_ACEOF |
| 9171 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9172 | _ACEOF |
| 9173 | |
| 9174 | fi |
| 9175 | |
| 9176 | done |
| 9177 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9178 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
| 9179 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9180 | { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
| 9181 | 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] | 9182 | if test "${wine_cv_opengl_version_OK+set}" = set; then |
| 9183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9184 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9185 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9186 | /* confdefs.h. */ |
| 9187 | _ACEOF |
| 9188 | cat confdefs.h >>conftest.$ac_ext |
| 9189 | cat >>conftest.$ac_ext <<_ACEOF |
| 9190 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9191 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9192 | int |
| 9193 | main () |
| 9194 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9195 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9196 | ; |
| 9197 | return 0; |
| 9198 | } |
| 9199 | _ACEOF |
| 9200 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9202 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9203 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9205 | rm -f conftest.er1 |
| 9206 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9208 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9211 | (eval $ac_try) 2>&5 |
| 9212 | ac_status=$? |
| 9213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9214 | (exit $ac_status); }; } && |
| 9215 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9217 | (eval $ac_try) 2>&5 |
| 9218 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9220 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 9221 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9222 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9223 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9225 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9226 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9227 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9228 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9229 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9231 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9232 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9233 | { echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5 |
| 9234 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9235 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 9236 | if test "$wine_cv_opengl_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9237 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9238 | { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
| 9239 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9240 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 9241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9242 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9243 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 9244 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9245 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9246 | /* confdefs.h. */ |
| 9247 | _ACEOF |
| 9248 | cat confdefs.h >>conftest.$ac_ext |
| 9249 | cat >>conftest.$ac_ext <<_ACEOF |
| 9250 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9251 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9252 | /* Override any GCC internal prototype to avoid an error. |
| 9253 | Use char because int might match the return type of a GCC |
| 9254 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9255 | #ifdef __cplusplus |
| 9256 | extern "C" |
| 9257 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9258 | char glXCreateContext (); |
| 9259 | int |
| 9260 | main () |
| 9261 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9262 | return glXCreateContext (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9263 | ; |
| 9264 | return 0; |
| 9265 | } |
| 9266 | _ACEOF |
| 9267 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9269 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9270 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9272 | rm -f conftest.er1 |
| 9273 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9275 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9278 | (eval $ac_try) 2>&5 |
| 9279 | ac_status=$? |
| 9280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9281 | (exit $ac_status); }; } && |
| 9282 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9284 | (eval $ac_try) 2>&5 |
| 9285 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9287 | (exit $ac_status); }; }; then |
| 9288 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9289 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9290 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9292 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9293 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9294 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9295 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9296 | rm -f conftest.err conftest.$ac_objext \ |
| 9297 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9298 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9299 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9300 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
| 9301 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9302 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 9303 | OPENGL_LIBS="-lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9304 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9305 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9306 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9307 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 9308 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 9309 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 9310 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9311 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9312 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 9313 | #define HAVE_OPENGL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9314 | _ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 9315 | |
Anderson Lizardo | 5a2da4e | 2005-07-25 11:12:11 +0000 | [diff] [blame] | 9316 | else |
| 9317 | if test -f /usr/X11R6/lib/libGL.a |
| 9318 | then |
| 9319 | { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 9320 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 9321 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 9322 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 9323 | { (exit 1); exit 1; }; } |
| 9324 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9325 | fi |
Anderson Lizardo | 5a2da4e | 2005-07-25 11:12:11 +0000 | [diff] [blame] | 9326 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9327 | { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
| 9328 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9329 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 9330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9331 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9332 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 9333 | 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] | 9334 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9335 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9336 | /* confdefs.h. */ |
| 9337 | _ACEOF |
| 9338 | cat confdefs.h >>conftest.$ac_ext |
| 9339 | cat >>conftest.$ac_ext <<_ACEOF |
| 9340 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9341 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9342 | /* Override any GCC internal prototype to avoid an error. |
| 9343 | Use char because int might match the return type of a GCC |
| 9344 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9345 | #ifdef __cplusplus |
| 9346 | extern "C" |
| 9347 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9348 | char gluLookAt (); |
| 9349 | int |
| 9350 | main () |
| 9351 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9352 | return gluLookAt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9353 | ; |
| 9354 | return 0; |
| 9355 | } |
| 9356 | _ACEOF |
| 9357 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9359 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9360 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9362 | rm -f conftest.er1 |
| 9363 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9365 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9366 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9368 | (eval $ac_try) 2>&5 |
| 9369 | ac_status=$? |
| 9370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9371 | (exit $ac_status); }; } && |
| 9372 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9374 | (eval $ac_try) 2>&5 |
| 9375 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9377 | (exit $ac_status); }; }; then |
| 9378 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9379 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9380 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9382 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9383 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9384 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9385 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9386 | rm -f conftest.err conftest.$ac_objext \ |
| 9387 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9388 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9389 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9390 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
| 9391 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9392 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 9393 | OPENGL_LIBS="$OPENGL_LIBS -lGLU" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9394 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9395 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9396 | fi |
| 9397 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9398 | fi |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9399 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9400 | { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5 |
| 9401 | echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; } |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9402 | if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then |
| 9403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9404 | else |
| 9405 | ac_check_lib_save_LIBS=$LIBS |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 9406 | 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] | 9407 | cat >conftest.$ac_ext <<_ACEOF |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9408 | /* confdefs.h. */ |
| 9409 | _ACEOF |
| 9410 | cat confdefs.h >>conftest.$ac_ext |
| 9411 | cat >>conftest.$ac_ext <<_ACEOF |
| 9412 | /* end confdefs.h. */ |
| 9413 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9414 | /* Override any GCC internal prototype to avoid an error. |
| 9415 | Use char because int might match the return type of a GCC |
| 9416 | builtin and then its argument prototype would still apply. */ |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9417 | #ifdef __cplusplus |
| 9418 | extern "C" |
| 9419 | #endif |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9420 | char glutMainLoop (); |
| 9421 | int |
| 9422 | main () |
| 9423 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9424 | return glutMainLoop (); |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9425 | ; |
| 9426 | return 0; |
| 9427 | } |
| 9428 | _ACEOF |
| 9429 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9431 | (eval $ac_link) 2>conftest.er1 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9432 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9434 | rm -f conftest.er1 |
| 9435 | cat conftest.err >&5 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9437 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9440 | (eval $ac_try) 2>&5 |
| 9441 | ac_status=$? |
| 9442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9443 | (exit $ac_status); }; } && |
| 9444 | { ac_try='test -s conftest$ac_exeext' |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9446 | (eval $ac_try) 2>&5 |
| 9447 | ac_status=$? |
| 9448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9449 | (exit $ac_status); }; }; then |
| 9450 | ac_cv_lib_glut_glutMainLoop=yes |
| 9451 | else |
| 9452 | echo "$as_me: failed program was:" >&5 |
| 9453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9454 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9455 | ac_cv_lib_glut_glutMainLoop=no |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9456 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9457 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9458 | rm -f conftest.err conftest.$ac_objext \ |
| 9459 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9460 | LIBS=$ac_check_lib_save_LIBS |
| 9461 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9462 | { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5 |
| 9463 | echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; } |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9464 | if test $ac_cv_lib_glut_glutMainLoop = yes; then |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 9465 | GLUT_LIBS="-lglut -lXmu -lXi" |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9466 | |
| 9467 | GLUT32FILES='$(GLUT32FILES)' |
| 9468 | |
| 9469 | fi |
| 9470 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9471 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9472 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 9473 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9474 | NASLIBS="" |
| 9475 | |
| 9476 | |
| 9477 | for ac_header in audio/audiolib.h |
| 9478 | do |
| 9479 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9480 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9481 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9482 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9483 | 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] | 9484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9485 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9486 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9487 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9488 | echo "${ECHO_T}$ac_res" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9489 | else |
| 9490 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9491 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9492 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9493 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9494 | /* confdefs.h. */ |
| 9495 | _ACEOF |
| 9496 | cat confdefs.h >>conftest.$ac_ext |
| 9497 | cat >>conftest.$ac_ext <<_ACEOF |
| 9498 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9499 | $ac_includes_default |
| 9500 | #include <$ac_header> |
| 9501 | _ACEOF |
| 9502 | rm -f conftest.$ac_objext |
| 9503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9504 | (eval $ac_compile) 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9505 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9507 | rm -f conftest.er1 |
| 9508 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9510 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9513 | (eval $ac_try) 2>&5 |
| 9514 | ac_status=$? |
| 9515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9516 | (exit $ac_status); }; } && |
| 9517 | { ac_try='test -s conftest.$ac_objext' |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9519 | (eval $ac_try) 2>&5 |
| 9520 | ac_status=$? |
| 9521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9522 | (exit $ac_status); }; }; then |
| 9523 | ac_header_compiler=yes |
| 9524 | else |
| 9525 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9527 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9528 | ac_header_compiler=no |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9529 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9530 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9532 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9533 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9534 | |
| 9535 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9536 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9537 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9538 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9539 | /* confdefs.h. */ |
| 9540 | _ACEOF |
| 9541 | cat confdefs.h >>conftest.$ac_ext |
| 9542 | cat >>conftest.$ac_ext <<_ACEOF |
| 9543 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9544 | #include <$ac_header> |
| 9545 | _ACEOF |
| 9546 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9547 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9548 | ac_status=$? |
| 9549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9550 | rm -f conftest.er1 |
| 9551 | cat conftest.err >&5 |
| 9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9553 | (exit $ac_status); } >/dev/null; then |
| 9554 | if test -s conftest.err; then |
| 9555 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9556 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9557 | else |
| 9558 | ac_cpp_err= |
| 9559 | fi |
| 9560 | else |
| 9561 | ac_cpp_err=yes |
| 9562 | fi |
| 9563 | if test -z "$ac_cpp_err"; then |
| 9564 | ac_header_preproc=yes |
| 9565 | else |
| 9566 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9568 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9569 | ac_header_preproc=no |
| 9570 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9571 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9572 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9573 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9574 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9575 | |
| 9576 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9577 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9578 | yes:no: ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9579 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9580 | 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] | 9581 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9582 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9583 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9584 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9585 | no:yes:* ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9586 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9587 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9588 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9589 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9590 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9591 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9592 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9593 | 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] | 9594 | { 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] | 9595 | 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] | 9596 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9597 | 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] | 9598 | ( cat <<\_ASBOX |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9599 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9600 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9601 | ## ------------------------------------ ## |
| 9602 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9603 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9604 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9605 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9606 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9607 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9608 | 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] | 9609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9610 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9611 | eval "$as_ac_Header=\$ac_header_preproc" |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9612 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9613 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9614 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9615 | echo "${ECHO_T}$ac_res" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9616 | |
| 9617 | fi |
| 9618 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9619 | cat >>confdefs.h <<_ACEOF |
| 9620 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9621 | _ACEOF |
| 9622 | |
| 9623 | for ac_header in audio/soundlib.h |
| 9624 | do |
| 9625 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9626 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9627 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9628 | 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] | 9629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9630 | else |
| 9631 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9632 | /* confdefs.h. */ |
| 9633 | _ACEOF |
| 9634 | cat confdefs.h >>conftest.$ac_ext |
| 9635 | cat >>conftest.$ac_ext <<_ACEOF |
| 9636 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9637 | #include <audio/audiolib.h> |
| 9638 | |
| 9639 | #include <$ac_header> |
| 9640 | _ACEOF |
| 9641 | rm -f conftest.$ac_objext |
| 9642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9643 | (eval $ac_compile) 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9644 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9646 | rm -f conftest.er1 |
| 9647 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9649 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9652 | (eval $ac_try) 2>&5 |
| 9653 | ac_status=$? |
| 9654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9655 | (exit $ac_status); }; } && |
| 9656 | { ac_try='test -s conftest.$ac_objext' |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9658 | (eval $ac_try) 2>&5 |
| 9659 | ac_status=$? |
| 9660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9661 | (exit $ac_status); }; }; then |
| 9662 | eval "$as_ac_Header=yes" |
| 9663 | else |
| 9664 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9666 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9667 | eval "$as_ac_Header=no" |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9668 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9669 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9671 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9672 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9673 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9674 | echo "${ECHO_T}$ac_res" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9675 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9676 | cat >>confdefs.h <<_ACEOF |
| 9677 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9678 | _ACEOF |
| 9679 | |
| 9680 | fi |
| 9681 | |
| 9682 | done |
| 9683 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9684 | { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
| 9685 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9686 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
| 9687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9688 | else |
| 9689 | ac_check_lib_save_LIBS=$LIBS |
| 9690 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 9691 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9692 | /* confdefs.h. */ |
| 9693 | _ACEOF |
| 9694 | cat confdefs.h >>conftest.$ac_ext |
| 9695 | cat >>conftest.$ac_ext <<_ACEOF |
| 9696 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9697 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9698 | /* Override any GCC internal prototype to avoid an error. |
| 9699 | Use char because int might match the return type of a GCC |
| 9700 | builtin and then its argument prototype would still apply. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9701 | #ifdef __cplusplus |
| 9702 | extern "C" |
| 9703 | #endif |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9704 | char AuCreateFlow (); |
| 9705 | int |
| 9706 | main () |
| 9707 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9708 | return AuCreateFlow (); |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9709 | ; |
| 9710 | return 0; |
| 9711 | } |
| 9712 | _ACEOF |
| 9713 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9715 | (eval $ac_link) 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9716 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9718 | rm -f conftest.er1 |
| 9719 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9721 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9724 | (eval $ac_try) 2>&5 |
| 9725 | ac_status=$? |
| 9726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9727 | (exit $ac_status); }; } && |
| 9728 | { ac_try='test -s conftest$ac_exeext' |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9730 | (eval $ac_try) 2>&5 |
| 9731 | ac_status=$? |
| 9732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9733 | (exit $ac_status); }; }; then |
| 9734 | ac_cv_lib_audio_AuCreateFlow=yes |
| 9735 | else |
| 9736 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9738 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9739 | ac_cv_lib_audio_AuCreateFlow=no |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9740 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9741 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9742 | rm -f conftest.err conftest.$ac_objext \ |
| 9743 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9744 | LIBS=$ac_check_lib_save_LIBS |
| 9745 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9746 | { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
| 9747 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9748 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
| 9749 | |
| 9750 | cat >>confdefs.h <<\_ACEOF |
| 9751 | #define HAVE_NAS 1 |
| 9752 | _ACEOF |
| 9753 | |
| 9754 | NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS" |
| 9755 | fi |
| 9756 | |
| 9757 | fi |
| 9758 | |
| 9759 | done |
| 9760 | |
| 9761 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 9762 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 9763 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 9764 | else |
| 9765 | XLIB="" |
| 9766 | X_CFLAGS="" |
| 9767 | X_LIBS="" |
| 9768 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 9769 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9770 | |
| 9771 | XML2LIBS="" |
| 9772 | |
| 9773 | XML2INCL="" |
| 9774 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9775 | XSLTLIBS="" |
| 9776 | |
| 9777 | XSLTINCL="" |
| 9778 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9779 | if test "$PKG_CONFIG" != "false" |
| 9780 | then |
| 9781 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9782 | ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0`" |
| 9783 | ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0`" |
| 9784 | CPPFLAGS="$CPPFLAGS $ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9785 | |
| 9786 | for ac_header in libxml/parser.h |
| 9787 | do |
| 9788 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9789 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9790 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9791 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9792 | 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] | 9793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9794 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9795 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9796 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9797 | echo "${ECHO_T}$ac_res" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9798 | else |
| 9799 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9800 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9801 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9802 | cat >conftest.$ac_ext <<_ACEOF |
| 9803 | /* confdefs.h. */ |
| 9804 | _ACEOF |
| 9805 | cat confdefs.h >>conftest.$ac_ext |
| 9806 | cat >>conftest.$ac_ext <<_ACEOF |
| 9807 | /* end confdefs.h. */ |
| 9808 | $ac_includes_default |
| 9809 | #include <$ac_header> |
| 9810 | _ACEOF |
| 9811 | rm -f conftest.$ac_objext |
| 9812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9813 | (eval $ac_compile) 2>conftest.er1 |
| 9814 | ac_status=$? |
| 9815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9816 | rm -f conftest.er1 |
| 9817 | cat conftest.err >&5 |
| 9818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9819 | (exit $ac_status); } && |
| 9820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9822 | (eval $ac_try) 2>&5 |
| 9823 | ac_status=$? |
| 9824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9825 | (exit $ac_status); }; } && |
| 9826 | { ac_try='test -s conftest.$ac_objext' |
| 9827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9828 | (eval $ac_try) 2>&5 |
| 9829 | ac_status=$? |
| 9830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9831 | (exit $ac_status); }; }; then |
| 9832 | ac_header_compiler=yes |
| 9833 | else |
| 9834 | echo "$as_me: failed program was:" >&5 |
| 9835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9836 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9837 | ac_header_compiler=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9838 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9839 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9841 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9842 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9843 | |
| 9844 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9845 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9846 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9847 | cat >conftest.$ac_ext <<_ACEOF |
| 9848 | /* confdefs.h. */ |
| 9849 | _ACEOF |
| 9850 | cat confdefs.h >>conftest.$ac_ext |
| 9851 | cat >>conftest.$ac_ext <<_ACEOF |
| 9852 | /* end confdefs.h. */ |
| 9853 | #include <$ac_header> |
| 9854 | _ACEOF |
| 9855 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9856 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9857 | ac_status=$? |
| 9858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9859 | rm -f conftest.er1 |
| 9860 | cat conftest.err >&5 |
| 9861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9862 | (exit $ac_status); } >/dev/null; then |
| 9863 | if test -s conftest.err; then |
| 9864 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9865 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9866 | else |
| 9867 | ac_cpp_err= |
| 9868 | fi |
| 9869 | else |
| 9870 | ac_cpp_err=yes |
| 9871 | fi |
| 9872 | if test -z "$ac_cpp_err"; then |
| 9873 | ac_header_preproc=yes |
| 9874 | else |
| 9875 | echo "$as_me: failed program was:" >&5 |
| 9876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9877 | |
| 9878 | ac_header_preproc=no |
| 9879 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9880 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9881 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9882 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9883 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9884 | |
| 9885 | # So? What about this header? |
| 9886 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9887 | yes:no: ) |
| 9888 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9889 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9891 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9892 | ac_header_preproc=yes |
| 9893 | ;; |
| 9894 | no:yes:* ) |
| 9895 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9896 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9897 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9898 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9899 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9900 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9901 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9902 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9904 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9905 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9906 | 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] | 9907 | ( cat <<\_ASBOX |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9908 | ## ------------------------------------ ## |
| 9909 | ## Report this to wine-devel@winehq.org ## |
| 9910 | ## ------------------------------------ ## |
| 9911 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9912 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9913 | ;; |
| 9914 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9915 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9916 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9917 | 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] | 9918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9919 | else |
| 9920 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9921 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9922 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9923 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9924 | echo "${ECHO_T}$ac_res" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9925 | |
| 9926 | fi |
| 9927 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9928 | cat >>confdefs.h <<_ACEOF |
| 9929 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9930 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9931 | { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5 |
| 9932 | echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9933 | if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9935 | else |
| 9936 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9937 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9938 | cat >conftest.$ac_ext <<_ACEOF |
| 9939 | /* confdefs.h. */ |
| 9940 | _ACEOF |
| 9941 | cat confdefs.h >>conftest.$ac_ext |
| 9942 | cat >>conftest.$ac_ext <<_ACEOF |
| 9943 | /* end confdefs.h. */ |
| 9944 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9945 | /* Override any GCC internal prototype to avoid an error. |
| 9946 | Use char because int might match the return type of a GCC |
| 9947 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9948 | #ifdef __cplusplus |
| 9949 | extern "C" |
| 9950 | #endif |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9951 | char xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9952 | int |
| 9953 | main () |
| 9954 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9955 | return xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9956 | ; |
| 9957 | return 0; |
| 9958 | } |
| 9959 | _ACEOF |
| 9960 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9962 | (eval $ac_link) 2>conftest.er1 |
| 9963 | ac_status=$? |
| 9964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9965 | rm -f conftest.er1 |
| 9966 | cat conftest.err >&5 |
| 9967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9968 | (exit $ac_status); } && |
| 9969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9971 | (eval $ac_try) 2>&5 |
| 9972 | ac_status=$? |
| 9973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9974 | (exit $ac_status); }; } && |
| 9975 | { ac_try='test -s conftest$ac_exeext' |
| 9976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9977 | (eval $ac_try) 2>&5 |
| 9978 | ac_status=$? |
| 9979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9980 | (exit $ac_status); }; }; then |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9981 | ac_cv_lib_xml2_xmlParseMemory=yes |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9982 | else |
| 9983 | echo "$as_me: failed program was:" >&5 |
| 9984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9985 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9986 | ac_cv_lib_xml2_xmlParseMemory=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9987 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9988 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9989 | rm -f conftest.err conftest.$ac_objext \ |
| 9990 | conftest$ac_exeext conftest.$ac_ext |
| 9991 | LIBS=$ac_check_lib_save_LIBS |
| 9992 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9993 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5 |
| 9994 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9995 | if test $ac_cv_lib_xml2_xmlParseMemory = yes; then |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9996 | |
| 9997 | cat >>confdefs.h <<\_ACEOF |
| 9998 | #define HAVE_LIBXML2 1 |
| 9999 | _ACEOF |
| 10000 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10001 | XML2LIBS="$ac_xml_libs" |
| 10002 | XML2INCL="$ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10003 | fi |
| 10004 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10005 | { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5 |
| 10006 | echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; } |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10007 | if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then |
| 10008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10009 | else |
| 10010 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10011 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10012 | cat >conftest.$ac_ext <<_ACEOF |
| 10013 | /* confdefs.h. */ |
| 10014 | _ACEOF |
| 10015 | cat confdefs.h >>conftest.$ac_ext |
| 10016 | cat >>conftest.$ac_ext <<_ACEOF |
| 10017 | /* end confdefs.h. */ |
| 10018 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10019 | /* Override any GCC internal prototype to avoid an error. |
| 10020 | Use char because int might match the return type of a GCC |
| 10021 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10022 | #ifdef __cplusplus |
| 10023 | extern "C" |
| 10024 | #endif |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10025 | char xmlReadMemory (); |
| 10026 | int |
| 10027 | main () |
| 10028 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10029 | return xmlReadMemory (); |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10030 | ; |
| 10031 | return 0; |
| 10032 | } |
| 10033 | _ACEOF |
| 10034 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10036 | (eval $ac_link) 2>conftest.er1 |
| 10037 | ac_status=$? |
| 10038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10039 | rm -f conftest.er1 |
| 10040 | cat conftest.err >&5 |
| 10041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10042 | (exit $ac_status); } && |
| 10043 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10045 | (eval $ac_try) 2>&5 |
| 10046 | ac_status=$? |
| 10047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10048 | (exit $ac_status); }; } && |
| 10049 | { ac_try='test -s conftest$ac_exeext' |
| 10050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10051 | (eval $ac_try) 2>&5 |
| 10052 | ac_status=$? |
| 10053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10054 | (exit $ac_status); }; }; then |
| 10055 | ac_cv_lib_xml2_xmlReadMemory=yes |
| 10056 | else |
| 10057 | echo "$as_me: failed program was:" >&5 |
| 10058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10059 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10060 | ac_cv_lib_xml2_xmlReadMemory=no |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10061 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10062 | |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10063 | rm -f conftest.err conftest.$ac_objext \ |
| 10064 | conftest$ac_exeext conftest.$ac_ext |
| 10065 | LIBS=$ac_check_lib_save_LIBS |
| 10066 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10067 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5 |
| 10068 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; } |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10069 | if test $ac_cv_lib_xml2_xmlReadMemory = yes; then |
| 10070 | |
| 10071 | cat >>confdefs.h <<\_ACEOF |
| 10072 | #define HAVE_XMLREADMEMORY 1 |
| 10073 | _ACEOF |
| 10074 | |
| 10075 | fi |
| 10076 | |
| 10077 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10078 | fi |
| 10079 | |
| 10080 | done |
| 10081 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10082 | CPPFLAGS="$ac_save_CPPFLAGS" |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10083 | ac_xslt_libs="`$PKG_CONFIG --libs libxslt`" |
| 10084 | ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt`" |
| 10085 | CPPFLAGS="$CPPFLAGS $ac_xslt_cflags" |
| 10086 | |
| 10087 | |
Vincent BĂ©ron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 10088 | for ac_header in libxslt/pattern.h libxslt/transform.h |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10089 | do |
| 10090 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10091 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10092 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10093 | 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] | 10094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10095 | else |
Vincent BĂ©ron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 10096 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10097 | /* confdefs.h. */ |
| 10098 | _ACEOF |
| 10099 | cat confdefs.h >>conftest.$ac_ext |
| 10100 | cat >>conftest.$ac_ext <<_ACEOF |
| 10101 | /* end confdefs.h. */ |
Vincent BĂ©ron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 10102 | #ifdef HAVE_LIBXSLT_PATTERN_H |
| 10103 | # include <libxslt/pattern.h> |
| 10104 | #endif |
| 10105 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10106 | #include <$ac_header> |
| 10107 | _ACEOF |
| 10108 | rm -f conftest.$ac_objext |
| 10109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10110 | (eval $ac_compile) 2>conftest.er1 |
| 10111 | ac_status=$? |
| 10112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10113 | rm -f conftest.er1 |
| 10114 | cat conftest.err >&5 |
| 10115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10116 | (exit $ac_status); } && |
| 10117 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10119 | (eval $ac_try) 2>&5 |
| 10120 | ac_status=$? |
| 10121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10122 | (exit $ac_status); }; } && |
| 10123 | { ac_try='test -s conftest.$ac_objext' |
| 10124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10125 | (eval $ac_try) 2>&5 |
| 10126 | ac_status=$? |
| 10127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10128 | (exit $ac_status); }; }; then |
Vincent BĂ©ron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 10129 | eval "$as_ac_Header=yes" |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10130 | else |
| 10131 | echo "$as_me: failed program was:" >&5 |
| 10132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10133 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10134 | eval "$as_ac_Header=no" |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10135 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10136 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10138 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10139 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10140 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10141 | echo "${ECHO_T}$ac_res" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10142 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10143 | cat >>confdefs.h <<_ACEOF |
| 10144 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10145 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10146 | { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5 |
| 10147 | echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10148 | if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then |
| 10149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10150 | else |
| 10151 | ac_check_lib_save_LIBS=$LIBS |
| 10152 | LIBS="-lxslt $ac_xslt_libs $LIBS" |
| 10153 | cat >conftest.$ac_ext <<_ACEOF |
| 10154 | /* confdefs.h. */ |
| 10155 | _ACEOF |
| 10156 | cat confdefs.h >>conftest.$ac_ext |
| 10157 | cat >>conftest.$ac_ext <<_ACEOF |
| 10158 | /* end confdefs.h. */ |
| 10159 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10160 | /* Override any GCC internal prototype to avoid an error. |
| 10161 | Use char because int might match the return type of a GCC |
| 10162 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10163 | #ifdef __cplusplus |
| 10164 | extern "C" |
| 10165 | #endif |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10166 | char xsltCompilePattern (); |
| 10167 | int |
| 10168 | main () |
| 10169 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10170 | return xsltCompilePattern (); |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10171 | ; |
| 10172 | return 0; |
| 10173 | } |
| 10174 | _ACEOF |
| 10175 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10177 | (eval $ac_link) 2>conftest.er1 |
| 10178 | ac_status=$? |
| 10179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10180 | rm -f conftest.er1 |
| 10181 | cat conftest.err >&5 |
| 10182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10183 | (exit $ac_status); } && |
| 10184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10186 | (eval $ac_try) 2>&5 |
| 10187 | ac_status=$? |
| 10188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10189 | (exit $ac_status); }; } && |
| 10190 | { ac_try='test -s conftest$ac_exeext' |
| 10191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10192 | (eval $ac_try) 2>&5 |
| 10193 | ac_status=$? |
| 10194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10195 | (exit $ac_status); }; }; then |
| 10196 | ac_cv_lib_xslt_xsltCompilePattern=yes |
| 10197 | else |
| 10198 | echo "$as_me: failed program was:" >&5 |
| 10199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10200 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10201 | ac_cv_lib_xslt_xsltCompilePattern=no |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10202 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10203 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10204 | rm -f conftest.err conftest.$ac_objext \ |
| 10205 | conftest$ac_exeext conftest.$ac_ext |
| 10206 | LIBS=$ac_check_lib_save_LIBS |
| 10207 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10208 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5 |
| 10209 | echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10210 | if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then |
| 10211 | |
| 10212 | cat >>confdefs.h <<\_ACEOF |
| 10213 | #define HAVE_LIBXSLT 1 |
| 10214 | _ACEOF |
| 10215 | |
| 10216 | XSLTLIBS="$ac_xslt_libs" |
| 10217 | XSLTINCL="$ac_xslt_cflags" |
| 10218 | fi |
| 10219 | |
| 10220 | |
| 10221 | fi |
| 10222 | |
| 10223 | done |
| 10224 | |
| 10225 | CPPFLAGS="$ac_save_CPPFLAGS" |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10226 | fi |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10227 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10228 | HALINCL="" |
| 10229 | |
| 10230 | if test "$PKG_CONFIG" != "false" |
| 10231 | then |
| 10232 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10233 | ac_hal_libs="`$PKG_CONFIG --libs hal`" |
| 10234 | ac_hal_cflags="`$PKG_CONFIG --cflags hal`" |
| 10235 | CPPFLAGS="$CPPFLAGS $ac_hal_cflags" |
| 10236 | |
| 10237 | |
| 10238 | for ac_header in dbus/dbus.h hal/libhal.h |
| 10239 | do |
| 10240 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10241 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10242 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10243 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10244 | 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] | 10245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10246 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10247 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10248 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10249 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10250 | else |
| 10251 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10252 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10253 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10254 | cat >conftest.$ac_ext <<_ACEOF |
| 10255 | /* confdefs.h. */ |
| 10256 | _ACEOF |
| 10257 | cat confdefs.h >>conftest.$ac_ext |
| 10258 | cat >>conftest.$ac_ext <<_ACEOF |
| 10259 | /* end confdefs.h. */ |
| 10260 | $ac_includes_default |
| 10261 | #include <$ac_header> |
| 10262 | _ACEOF |
| 10263 | rm -f conftest.$ac_objext |
| 10264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10265 | (eval $ac_compile) 2>conftest.er1 |
| 10266 | ac_status=$? |
| 10267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10268 | rm -f conftest.er1 |
| 10269 | cat conftest.err >&5 |
| 10270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10271 | (exit $ac_status); } && |
| 10272 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10274 | (eval $ac_try) 2>&5 |
| 10275 | ac_status=$? |
| 10276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10277 | (exit $ac_status); }; } && |
| 10278 | { ac_try='test -s conftest.$ac_objext' |
| 10279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10280 | (eval $ac_try) 2>&5 |
| 10281 | ac_status=$? |
| 10282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10283 | (exit $ac_status); }; }; then |
| 10284 | ac_header_compiler=yes |
| 10285 | else |
| 10286 | echo "$as_me: failed program was:" >&5 |
| 10287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10288 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10289 | ac_header_compiler=no |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10290 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10291 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10293 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10294 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10295 | |
| 10296 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10297 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10298 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10299 | cat >conftest.$ac_ext <<_ACEOF |
| 10300 | /* confdefs.h. */ |
| 10301 | _ACEOF |
| 10302 | cat confdefs.h >>conftest.$ac_ext |
| 10303 | cat >>conftest.$ac_ext <<_ACEOF |
| 10304 | /* end confdefs.h. */ |
| 10305 | #include <$ac_header> |
| 10306 | _ACEOF |
| 10307 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10308 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10309 | ac_status=$? |
| 10310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10311 | rm -f conftest.er1 |
| 10312 | cat conftest.err >&5 |
| 10313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10314 | (exit $ac_status); } >/dev/null; then |
| 10315 | if test -s conftest.err; then |
| 10316 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10317 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10318 | else |
| 10319 | ac_cpp_err= |
| 10320 | fi |
| 10321 | else |
| 10322 | ac_cpp_err=yes |
| 10323 | fi |
| 10324 | if test -z "$ac_cpp_err"; then |
| 10325 | ac_header_preproc=yes |
| 10326 | else |
| 10327 | echo "$as_me: failed program was:" >&5 |
| 10328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10329 | |
| 10330 | ac_header_preproc=no |
| 10331 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10332 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10333 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10334 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10335 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10336 | |
| 10337 | # So? What about this header? |
| 10338 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10339 | yes:no: ) |
| 10340 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10341 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10342 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10343 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10344 | ac_header_preproc=yes |
| 10345 | ;; |
| 10346 | no:yes:* ) |
| 10347 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10348 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10349 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10350 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10351 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10352 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10353 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10354 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10355 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10356 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10357 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10358 | 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] | 10359 | ( cat <<\_ASBOX |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10360 | ## ------------------------------------ ## |
| 10361 | ## Report this to wine-devel@winehq.org ## |
| 10362 | ## ------------------------------------ ## |
| 10363 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10364 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10365 | ;; |
| 10366 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10367 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10368 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10369 | 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] | 10370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10371 | else |
| 10372 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10373 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10374 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10375 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10376 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10377 | |
| 10378 | fi |
| 10379 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10380 | cat >>confdefs.h <<_ACEOF |
| 10381 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10382 | _ACEOF |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10383 | |
| 10384 | fi |
| 10385 | |
| 10386 | done |
| 10387 | |
| 10388 | if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes" |
| 10389 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10390 | { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5 |
| 10391 | 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] | 10392 | if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then |
| 10393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10394 | else |
| 10395 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10396 | LIBS="-lhal $LIBS" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10397 | cat >conftest.$ac_ext <<_ACEOF |
| 10398 | /* confdefs.h. */ |
| 10399 | _ACEOF |
| 10400 | cat confdefs.h >>conftest.$ac_ext |
| 10401 | cat >>conftest.$ac_ext <<_ACEOF |
| 10402 | /* end confdefs.h. */ |
| 10403 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10404 | /* Override any GCC internal prototype to avoid an error. |
| 10405 | Use char because int might match the return type of a GCC |
| 10406 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10407 | #ifdef __cplusplus |
| 10408 | extern "C" |
| 10409 | #endif |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10410 | char libhal_ctx_new (); |
| 10411 | int |
| 10412 | main () |
| 10413 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10414 | return libhal_ctx_new (); |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10415 | ; |
| 10416 | return 0; |
| 10417 | } |
| 10418 | _ACEOF |
| 10419 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10421 | (eval $ac_link) 2>conftest.er1 |
| 10422 | ac_status=$? |
| 10423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10424 | rm -f conftest.er1 |
| 10425 | cat conftest.err >&5 |
| 10426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10427 | (exit $ac_status); } && |
| 10428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10430 | (eval $ac_try) 2>&5 |
| 10431 | ac_status=$? |
| 10432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10433 | (exit $ac_status); }; } && |
| 10434 | { ac_try='test -s conftest$ac_exeext' |
| 10435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10436 | (eval $ac_try) 2>&5 |
| 10437 | ac_status=$? |
| 10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10439 | (exit $ac_status); }; }; then |
| 10440 | ac_cv_lib_hal_libhal_ctx_new=yes |
| 10441 | else |
| 10442 | echo "$as_me: failed program was:" >&5 |
| 10443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10444 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10445 | ac_cv_lib_hal_libhal_ctx_new=no |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10446 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10447 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10448 | rm -f conftest.err conftest.$ac_objext \ |
| 10449 | conftest$ac_exeext conftest.$ac_ext |
| 10450 | LIBS=$ac_check_lib_save_LIBS |
| 10451 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10452 | { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5 |
| 10453 | echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10454 | if test $ac_cv_lib_hal_libhal_ctx_new = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10455 | { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5 |
| 10456 | 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] | 10457 | if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then |
| 10458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10459 | else |
| 10460 | ac_check_lib_save_LIBS=$LIBS |
| 10461 | LIBS="-ldbus-1 $ac_hal_libs $LIBS" |
| 10462 | cat >conftest.$ac_ext <<_ACEOF |
| 10463 | /* confdefs.h. */ |
| 10464 | _ACEOF |
| 10465 | cat confdefs.h >>conftest.$ac_ext |
| 10466 | cat >>conftest.$ac_ext <<_ACEOF |
| 10467 | /* end confdefs.h. */ |
| 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. */ |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10472 | #ifdef __cplusplus |
| 10473 | extern "C" |
| 10474 | #endif |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10475 | char dbus_connection_close (); |
| 10476 | int |
| 10477 | main () |
| 10478 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10479 | return dbus_connection_close (); |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10480 | ; |
| 10481 | return 0; |
| 10482 | } |
| 10483 | _ACEOF |
| 10484 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10486 | (eval $ac_link) 2>conftest.er1 |
| 10487 | ac_status=$? |
| 10488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10489 | rm -f conftest.er1 |
| 10490 | cat conftest.err >&5 |
| 10491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10492 | (exit $ac_status); } && |
| 10493 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10495 | (eval $ac_try) 2>&5 |
| 10496 | ac_status=$? |
| 10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10498 | (exit $ac_status); }; } && |
| 10499 | { ac_try='test -s conftest$ac_exeext' |
| 10500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10501 | (eval $ac_try) 2>&5 |
| 10502 | ac_status=$? |
| 10503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10504 | (exit $ac_status); }; }; then |
| 10505 | ac_cv_lib_dbus_1_dbus_connection_close=yes |
| 10506 | else |
| 10507 | echo "$as_me: failed program was:" >&5 |
| 10508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10509 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10510 | ac_cv_lib_dbus_1_dbus_connection_close=no |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10511 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10512 | |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10513 | rm -f conftest.err conftest.$ac_objext \ |
| 10514 | conftest$ac_exeext conftest.$ac_ext |
| 10515 | LIBS=$ac_check_lib_save_LIBS |
| 10516 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10517 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5 |
| 10518 | echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; } |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10519 | if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10520 | |
| 10521 | cat >>confdefs.h <<\_ACEOF |
| 10522 | #define HAVE_LIBHAL 1 |
| 10523 | _ACEOF |
| 10524 | |
| 10525 | HALINCL="$ac_hal_cflags" |
| 10526 | fi |
| 10527 | |
| 10528 | fi |
| 10529 | |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10530 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10531 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10532 | fi |
| 10533 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 10534 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10535 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 10536 | then |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 10537 | if test "$ac_cv_header_ncurses_h" = "yes" |
| 10538 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10539 | { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
| 10540 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10541 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 10542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10543 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10544 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10545 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10546 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10547 | /* confdefs.h. */ |
| 10548 | _ACEOF |
| 10549 | cat confdefs.h >>conftest.$ac_ext |
| 10550 | cat >>conftest.$ac_ext <<_ACEOF |
| 10551 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10552 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10553 | /* Override any GCC internal prototype to avoid an error. |
| 10554 | Use char because int might match the return type of a GCC |
| 10555 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10556 | #ifdef __cplusplus |
| 10557 | extern "C" |
| 10558 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10559 | char waddch (); |
| 10560 | int |
| 10561 | main () |
| 10562 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10563 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10564 | ; |
| 10565 | return 0; |
| 10566 | } |
| 10567 | _ACEOF |
| 10568 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10570 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10571 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10573 | rm -f conftest.er1 |
| 10574 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10576 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10579 | (eval $ac_try) 2>&5 |
| 10580 | ac_status=$? |
| 10581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10582 | (exit $ac_status); }; } && |
| 10583 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10585 | (eval $ac_try) 2>&5 |
| 10586 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10588 | (exit $ac_status); }; }; then |
| 10589 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10590 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10591 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10593 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10594 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10595 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10596 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10597 | rm -f conftest.err conftest.$ac_objext \ |
| 10598 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10599 | LIBS=$ac_check_lib_save_LIBS |
| 10600 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10601 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
| 10602 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10603 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10604 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10605 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 10606 | #define HAVE_LIBNCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10607 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10608 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 10609 | CURSESLIBS="-lncurses" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10610 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10611 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 10612 | elif test "$ac_cv_header_curses_h" = "yes" |
| 10613 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10614 | { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
| 10615 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10616 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 10617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10618 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10619 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10620 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10621 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10622 | /* confdefs.h. */ |
| 10623 | _ACEOF |
| 10624 | cat confdefs.h >>conftest.$ac_ext |
| 10625 | cat >>conftest.$ac_ext <<_ACEOF |
| 10626 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10627 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10628 | /* Override any GCC internal prototype to avoid an error. |
| 10629 | Use char because int might match the return type of a GCC |
| 10630 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10631 | #ifdef __cplusplus |
| 10632 | extern "C" |
| 10633 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10634 | char waddch (); |
| 10635 | int |
| 10636 | main () |
| 10637 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10638 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10639 | ; |
| 10640 | return 0; |
| 10641 | } |
| 10642 | _ACEOF |
| 10643 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10645 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10646 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10648 | rm -f conftest.er1 |
| 10649 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10651 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10654 | (eval $ac_try) 2>&5 |
| 10655 | ac_status=$? |
| 10656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10657 | (exit $ac_status); }; } && |
| 10658 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10660 | (eval $ac_try) 2>&5 |
| 10661 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10663 | (exit $ac_status); }; }; then |
| 10664 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10665 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10666 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10668 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10669 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10670 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10671 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10672 | rm -f conftest.err conftest.$ac_objext \ |
| 10673 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10674 | LIBS=$ac_check_lib_save_LIBS |
| 10675 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10676 | { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
| 10677 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10678 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10679 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10680 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 10681 | #define HAVE_LIBCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10682 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10683 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 10684 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10685 | fi |
| 10686 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 10687 | fi |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10688 | fi |
| 10689 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10690 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10691 | # Extract the first word of "sane-config", so it can be a program name with args. |
| 10692 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10693 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10695 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
| 10696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10697 | else |
| 10698 | if test -n "$sane_devel"; then |
| 10699 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 10700 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10702 | for as_dir in $PATH |
| 10703 | do |
| 10704 | IFS=$as_save_IFS |
| 10705 | test -z "$as_dir" && as_dir=. |
| 10706 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10707 | 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] | 10708 | ac_cv_prog_sane_devel="sane-config" |
| 10709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10710 | break 2 |
| 10711 | fi |
| 10712 | done |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10713 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10714 | IFS=$as_save_IFS |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10715 | |
| 10716 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 10717 | fi |
| 10718 | fi |
| 10719 | sane_devel=$ac_cv_prog_sane_devel |
| 10720 | if test -n "$sane_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10721 | { echo "$as_me:$LINENO: result: $sane_devel" >&5 |
| 10722 | echo "${ECHO_T}$sane_devel" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10723 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10724 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10725 | echo "${ECHO_T}no" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10726 | fi |
| 10727 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10728 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 10729 | SANELIBS="" |
| 10730 | |
| 10731 | SANEINCL="" |
| 10732 | |
| 10733 | if test "$sane_devel" != "no" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10734 | then |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10735 | SANELIBS="`$sane_devel --libs`" |
| 10736 | SANEINCL="`$sane_devel --cflags`" |
| 10737 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10738 | ac_save_LIBS="$LIBS" |
| 10739 | CPPFLAGS="$CPPFLAGS $SANEINCL" |
| 10740 | LIBS="$LIBS $SANELIBS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10741 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10742 | { echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 10743 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10744 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 10745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10746 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10747 | { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 10748 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10749 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10750 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10751 | { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
| 10752 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10753 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10754 | /* confdefs.h. */ |
| 10755 | _ACEOF |
| 10756 | cat confdefs.h >>conftest.$ac_ext |
| 10757 | cat >>conftest.$ac_ext <<_ACEOF |
| 10758 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10759 | $ac_includes_default |
| 10760 | #include <sane/sane.h> |
| 10761 | _ACEOF |
| 10762 | rm -f conftest.$ac_objext |
| 10763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10764 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10765 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10767 | rm -f conftest.er1 |
| 10768 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10770 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10771 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10773 | (eval $ac_try) 2>&5 |
| 10774 | ac_status=$? |
| 10775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10776 | (exit $ac_status); }; } && |
| 10777 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10779 | (eval $ac_try) 2>&5 |
| 10780 | ac_status=$? |
| 10781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10782 | (exit $ac_status); }; }; then |
| 10783 | ac_header_compiler=yes |
| 10784 | else |
| 10785 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10787 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10788 | ac_header_compiler=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10789 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10790 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10792 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10793 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10794 | |
| 10795 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10796 | { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
| 10797 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10798 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10799 | /* confdefs.h. */ |
| 10800 | _ACEOF |
| 10801 | cat confdefs.h >>conftest.$ac_ext |
| 10802 | cat >>conftest.$ac_ext <<_ACEOF |
| 10803 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10804 | #include <sane/sane.h> |
| 10805 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10806 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10807 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10808 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10809 | grep -v '^ *+' conftest.er1 >conftest.err |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10810 | rm -f conftest.er1 |
| 10811 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10813 | (exit $ac_status); } >/dev/null; then |
| 10814 | if test -s conftest.err; then |
| 10815 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10816 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10817 | else |
| 10818 | ac_cpp_err= |
| 10819 | fi |
| 10820 | else |
| 10821 | ac_cpp_err=yes |
| 10822 | fi |
| 10823 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10824 | ac_header_preproc=yes |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10825 | else |
| 10826 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10828 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10829 | ac_header_preproc=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10830 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10831 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10832 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10833 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10834 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10835 | |
| 10836 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10837 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10838 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10839 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10840 | 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] | 10841 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5 |
| 10842 | echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;} |
| 10843 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10844 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10845 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10846 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
| 10847 | 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] | 10848 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 |
| 10849 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} |
| 10850 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5 |
| 10851 | echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;} |
| 10852 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10853 | 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] | 10854 | { 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] | 10855 | 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] | 10856 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5 |
| 10857 | 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] | 10858 | ( cat <<\_ASBOX |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10859 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10860 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10861 | ## ------------------------------------ ## |
| 10862 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10863 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10864 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10865 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10866 | { echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 10867 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10868 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 10869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10870 | else |
| 10871 | ac_cv_header_sane_sane_h=$ac_header_preproc |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10872 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10873 | { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 10874 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10875 | |
| 10876 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10877 | if test $ac_cv_header_sane_sane_h = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10878 | { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
| 10879 | 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] | 10880 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
| 10881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10882 | else |
| 10883 | ac_check_lib_save_LIBS=$LIBS |
| 10884 | LIBS="-lsane $LIBS" |
| 10885 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10886 | /* confdefs.h. */ |
| 10887 | _ACEOF |
| 10888 | cat confdefs.h >>conftest.$ac_ext |
| 10889 | cat >>conftest.$ac_ext <<_ACEOF |
| 10890 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10891 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10892 | /* Override any GCC internal prototype to avoid an error. |
| 10893 | Use char because int might match the return type of a GCC |
| 10894 | builtin and then its argument prototype would still apply. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10895 | #ifdef __cplusplus |
| 10896 | extern "C" |
| 10897 | #endif |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10898 | char sane_open (); |
| 10899 | int |
| 10900 | main () |
| 10901 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10902 | return sane_open (); |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10903 | ; |
| 10904 | return 0; |
| 10905 | } |
| 10906 | _ACEOF |
| 10907 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10909 | (eval $ac_link) 2>conftest.er1 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10910 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10912 | rm -f conftest.er1 |
| 10913 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10915 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10916 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10918 | (eval $ac_try) 2>&5 |
| 10919 | ac_status=$? |
| 10920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10921 | (exit $ac_status); }; } && |
| 10922 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10924 | (eval $ac_try) 2>&5 |
| 10925 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10927 | (exit $ac_status); }; }; then |
| 10928 | ac_cv_lib_sane_sane_open=yes |
| 10929 | else |
| 10930 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10932 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10933 | ac_cv_lib_sane_sane_open=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10934 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10935 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10936 | rm -f conftest.err conftest.$ac_objext \ |
| 10937 | conftest$ac_exeext conftest.$ac_ext |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10938 | LIBS=$ac_check_lib_save_LIBS |
| 10939 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10940 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5 |
| 10941 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10942 | if test $ac_cv_lib_sane_sane_open = yes; then |
| 10943 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10944 | cat >>confdefs.h <<\_ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10945 | #define HAVE_SANE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10946 | _ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10947 | |
| 10948 | else |
| 10949 | SANELIBS="" |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 10950 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10951 | fi |
| 10952 | |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 10953 | else |
| 10954 | SANELIBS="" |
| 10955 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10956 | fi |
| 10957 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10958 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10959 | LIBS="$ac_save_LIBS" |
| 10960 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10961 | fi |
| 10962 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10963 | # Extract the first word of "gphoto2-config", so it can be a program name with args. |
| 10964 | set dummy gphoto2-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10965 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10967 | if test "${ac_cv_prog_gphoto2_devel+set}" = set; then |
| 10968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10969 | else |
| 10970 | if test -n "$gphoto2_devel"; then |
| 10971 | ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test. |
| 10972 | else |
| 10973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10974 | for as_dir in $PATH |
| 10975 | do |
| 10976 | IFS=$as_save_IFS |
| 10977 | test -z "$as_dir" && as_dir=. |
| 10978 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10979 | 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] | 10980 | ac_cv_prog_gphoto2_devel="gphoto2-config" |
| 10981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10982 | break 2 |
| 10983 | fi |
| 10984 | done |
| 10985 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10986 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10987 | |
| 10988 | test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no" |
| 10989 | fi |
| 10990 | fi |
| 10991 | gphoto2_devel=$ac_cv_prog_gphoto2_devel |
| 10992 | if test -n "$gphoto2_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10993 | { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5 |
| 10994 | echo "${ECHO_T}$gphoto2_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10995 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10996 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10997 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10998 | fi |
| 10999 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11000 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11001 | # Extract the first word of "gphoto2-port-config", so it can be a program name with args. |
| 11002 | set dummy gphoto2-port-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11005 | if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then |
| 11006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11007 | else |
| 11008 | if test -n "$gphoto2port_devel"; then |
| 11009 | ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test. |
| 11010 | else |
| 11011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11012 | for as_dir in $PATH |
| 11013 | do |
| 11014 | IFS=$as_save_IFS |
| 11015 | test -z "$as_dir" && as_dir=. |
| 11016 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11017 | 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] | 11018 | ac_cv_prog_gphoto2port_devel="gphoto2-port-config" |
| 11019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11020 | break 2 |
| 11021 | fi |
| 11022 | done |
| 11023 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11024 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11025 | |
| 11026 | test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no" |
| 11027 | fi |
| 11028 | fi |
| 11029 | gphoto2port_devel=$ac_cv_prog_gphoto2port_devel |
| 11030 | if test -n "$gphoto2port_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11031 | { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5 |
| 11032 | echo "${ECHO_T}$gphoto2port_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11033 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11034 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11035 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11036 | fi |
| 11037 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11038 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11039 | GPHOTO2LIBS="" |
| 11040 | |
| 11041 | GPHOTO2INCL="" |
| 11042 | |
| 11043 | if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no" |
| 11044 | then |
| 11045 | GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`" |
| 11046 | GPHOTO2LIBS="" |
| 11047 | for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs` |
| 11048 | do |
| 11049 | case "$i" in |
| 11050 | -L/usr/lib|-L/usr/lib64) ;; |
| 11051 | -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";; |
| 11052 | esac |
| 11053 | done |
| 11054 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11055 | ac_save_LIBS="$LIBS" |
| 11056 | CPPFLAGS="$CPPFLAGS $GPHOTO2INCL" |
| 11057 | LIBS="$LIBS $GPHOTO2LIBS" |
| 11058 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11059 | { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5 |
| 11060 | echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11061 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
| 11062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11063 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11064 | { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5 |
| 11065 | echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11066 | else |
| 11067 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11068 | { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5 |
| 11069 | echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11070 | cat >conftest.$ac_ext <<_ACEOF |
| 11071 | /* confdefs.h. */ |
| 11072 | _ACEOF |
| 11073 | cat confdefs.h >>conftest.$ac_ext |
| 11074 | cat >>conftest.$ac_ext <<_ACEOF |
| 11075 | /* end confdefs.h. */ |
| 11076 | $ac_includes_default |
| 11077 | #include <gphoto2-camera.h> |
| 11078 | _ACEOF |
| 11079 | rm -f conftest.$ac_objext |
| 11080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11081 | (eval $ac_compile) 2>conftest.er1 |
| 11082 | ac_status=$? |
| 11083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11084 | rm -f conftest.er1 |
| 11085 | cat conftest.err >&5 |
| 11086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11087 | (exit $ac_status); } && |
| 11088 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11090 | (eval $ac_try) 2>&5 |
| 11091 | ac_status=$? |
| 11092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11093 | (exit $ac_status); }; } && |
| 11094 | { ac_try='test -s conftest.$ac_objext' |
| 11095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11096 | (eval $ac_try) 2>&5 |
| 11097 | ac_status=$? |
| 11098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11099 | (exit $ac_status); }; }; then |
| 11100 | ac_header_compiler=yes |
| 11101 | else |
| 11102 | echo "$as_me: failed program was:" >&5 |
| 11103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11104 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11105 | ac_header_compiler=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11106 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11107 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11109 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11110 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11111 | |
| 11112 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11113 | { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5 |
| 11114 | echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11115 | cat >conftest.$ac_ext <<_ACEOF |
| 11116 | /* confdefs.h. */ |
| 11117 | _ACEOF |
| 11118 | cat confdefs.h >>conftest.$ac_ext |
| 11119 | cat >>conftest.$ac_ext <<_ACEOF |
| 11120 | /* end confdefs.h. */ |
| 11121 | #include <gphoto2-camera.h> |
| 11122 | _ACEOF |
| 11123 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11124 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 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); } >/dev/null; then |
| 11131 | if test -s conftest.err; then |
| 11132 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11133 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11134 | else |
| 11135 | ac_cpp_err= |
| 11136 | fi |
| 11137 | else |
| 11138 | ac_cpp_err=yes |
| 11139 | fi |
| 11140 | if test -z "$ac_cpp_err"; then |
| 11141 | ac_header_preproc=yes |
| 11142 | else |
| 11143 | echo "$as_me: failed program was:" >&5 |
| 11144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11145 | |
| 11146 | ac_header_preproc=no |
| 11147 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11148 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11149 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11150 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11151 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11152 | |
| 11153 | # So? What about this header? |
| 11154 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11155 | yes:no: ) |
| 11156 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11157 | echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11158 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5 |
| 11159 | echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;} |
| 11160 | ac_header_preproc=yes |
| 11161 | ;; |
| 11162 | no:yes:* ) |
| 11163 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5 |
| 11164 | echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;} |
| 11165 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5 |
| 11166 | echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;} |
| 11167 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5 |
| 11168 | echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;} |
| 11169 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11170 | echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11171 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5 |
| 11172 | echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;} |
| 11173 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5 |
| 11174 | 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] | 11175 | ( cat <<\_ASBOX |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11176 | ## ------------------------------------ ## |
| 11177 | ## Report this to wine-devel@winehq.org ## |
| 11178 | ## ------------------------------------ ## |
| 11179 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11180 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11181 | ;; |
| 11182 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11183 | { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5 |
| 11184 | echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11185 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
| 11186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11187 | else |
| 11188 | ac_cv_header_gphoto2_camera_h=$ac_header_preproc |
| 11189 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11190 | { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5 |
| 11191 | echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11192 | |
| 11193 | fi |
| 11194 | if test $ac_cv_header_gphoto2_camera_h = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11195 | { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5 |
| 11196 | 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] | 11197 | if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then |
| 11198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11199 | else |
| 11200 | ac_check_lib_save_LIBS=$LIBS |
| 11201 | LIBS="-lgphoto2 $LIBS" |
| 11202 | cat >conftest.$ac_ext <<_ACEOF |
| 11203 | /* confdefs.h. */ |
| 11204 | _ACEOF |
| 11205 | cat confdefs.h >>conftest.$ac_ext |
| 11206 | cat >>conftest.$ac_ext <<_ACEOF |
| 11207 | /* end confdefs.h. */ |
| 11208 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11209 | /* Override any GCC internal prototype to avoid an error. |
| 11210 | Use char because int might match the return type of a GCC |
| 11211 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11212 | #ifdef __cplusplus |
| 11213 | extern "C" |
| 11214 | #endif |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11215 | char gp_camera_new (); |
| 11216 | int |
| 11217 | main () |
| 11218 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11219 | return gp_camera_new (); |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11220 | ; |
| 11221 | return 0; |
| 11222 | } |
| 11223 | _ACEOF |
| 11224 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11226 | (eval $ac_link) 2>conftest.er1 |
| 11227 | ac_status=$? |
| 11228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11229 | rm -f conftest.er1 |
| 11230 | cat conftest.err >&5 |
| 11231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11232 | (exit $ac_status); } && |
| 11233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11235 | (eval $ac_try) 2>&5 |
| 11236 | ac_status=$? |
| 11237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11238 | (exit $ac_status); }; } && |
| 11239 | { ac_try='test -s conftest$ac_exeext' |
| 11240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11241 | (eval $ac_try) 2>&5 |
| 11242 | ac_status=$? |
| 11243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11244 | (exit $ac_status); }; }; then |
| 11245 | ac_cv_lib_gphoto2_gp_camera_new=yes |
| 11246 | else |
| 11247 | echo "$as_me: failed program was:" >&5 |
| 11248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11249 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11250 | ac_cv_lib_gphoto2_gp_camera_new=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11251 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11252 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11253 | rm -f conftest.err conftest.$ac_objext \ |
| 11254 | conftest$ac_exeext conftest.$ac_ext |
| 11255 | LIBS=$ac_check_lib_save_LIBS |
| 11256 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11257 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5 |
| 11258 | echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11259 | if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then |
| 11260 | |
| 11261 | cat >>confdefs.h <<\_ACEOF |
| 11262 | #define HAVE_GPHOTO2 1 |
| 11263 | _ACEOF |
| 11264 | |
| 11265 | else |
| 11266 | GPHOTO2LIBS="" |
| 11267 | GPHOTO2INCL="" |
| 11268 | fi |
| 11269 | |
| 11270 | else |
| 11271 | GPHOTO2LIBS="" |
| 11272 | GPHOTO2INCL="" |
| 11273 | fi |
| 11274 | |
| 11275 | |
| 11276 | LIBS="$ac_save_LIBS" |
| 11277 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11278 | fi |
| 11279 | |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11280 | if test "$ac_cv_header_unicode_ubidi_h" = "yes" |
| 11281 | then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11282 | saved_libs="$LIBS" |
| 11283 | ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}" |
Shachar Shemesh | 9f2627e | 2004-04-06 20:13:21 +0000 | [diff] [blame] | 11284 | ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}" |
| 11285 | ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11286 | { echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5 |
| 11287 | echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6; } |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11288 | LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s" |
| 11289 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11290 | /* confdefs.h. */ |
| 11291 | _ACEOF |
| 11292 | cat confdefs.h >>conftest.$ac_ext |
| 11293 | cat >>conftest.$ac_ext <<_ACEOF |
| 11294 | /* end confdefs.h. */ |
| 11295 | #include <unicode/ubidi.h> |
| 11296 | int |
| 11297 | main () |
| 11298 | { |
| 11299 | ubidi_open() |
| 11300 | ; |
| 11301 | return 0; |
| 11302 | } |
| 11303 | _ACEOF |
| 11304 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11306 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11307 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11309 | rm -f conftest.er1 |
| 11310 | cat conftest.err >&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11312 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11313 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11315 | (eval $ac_try) 2>&5 |
| 11316 | ac_status=$? |
| 11317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11318 | (exit $ac_status); }; } && |
| 11319 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11321 | (eval $ac_try) 2>&5 |
| 11322 | ac_status=$? |
| 11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11324 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11325 | |
| 11326 | cat >>confdefs.h <<\_ACEOF |
| 11327 | #define HAVE_ICU 1 |
| 11328 | _ACEOF |
| 11329 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11330 | ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11331 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11332 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11333 | echo "${ECHO_T}yes" >&6; } |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11334 | else |
| 11335 | echo "$as_me: failed program was:" >&5 |
| 11336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11337 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11338 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11339 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11340 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11341 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11342 | rm -f conftest.err conftest.$ac_objext \ |
| 11343 | conftest$ac_exeext conftest.$ac_ext |
| 11344 | LIBS="$saved_libs" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11345 | fi |
| 11346 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11347 | RESOLVLIBS="" |
| 11348 | |
| 11349 | if test "$ac_cv_header_resolv_h" = "yes" |
| 11350 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11351 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 |
| 11352 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11353 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then |
| 11354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11355 | else |
| 11356 | ac_check_lib_save_LIBS=$LIBS |
| 11357 | LIBS="-lresolv $LIBS" |
| 11358 | cat >conftest.$ac_ext <<_ACEOF |
| 11359 | /* confdefs.h. */ |
| 11360 | _ACEOF |
| 11361 | cat confdefs.h >>conftest.$ac_ext |
| 11362 | cat >>conftest.$ac_ext <<_ACEOF |
| 11363 | /* end confdefs.h. */ |
| 11364 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11365 | /* Override any GCC internal prototype to avoid an error. |
| 11366 | Use char because int might match the return type of a GCC |
| 11367 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11368 | #ifdef __cplusplus |
| 11369 | extern "C" |
| 11370 | #endif |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11371 | char res_query (); |
| 11372 | int |
| 11373 | main () |
| 11374 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11375 | return res_query (); |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11376 | ; |
| 11377 | return 0; |
| 11378 | } |
| 11379 | _ACEOF |
| 11380 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11382 | (eval $ac_link) 2>conftest.er1 |
| 11383 | ac_status=$? |
| 11384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11385 | rm -f conftest.er1 |
| 11386 | cat conftest.err >&5 |
| 11387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11388 | (exit $ac_status); } && |
| 11389 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11391 | (eval $ac_try) 2>&5 |
| 11392 | ac_status=$? |
| 11393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11394 | (exit $ac_status); }; } && |
| 11395 | { ac_try='test -s conftest$ac_exeext' |
| 11396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11397 | (eval $ac_try) 2>&5 |
| 11398 | ac_status=$? |
| 11399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11400 | (exit $ac_status); }; }; then |
| 11401 | ac_cv_lib_resolv_res_query=yes |
| 11402 | else |
| 11403 | echo "$as_me: failed program was:" >&5 |
| 11404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11405 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11406 | ac_cv_lib_resolv_res_query=no |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11407 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11408 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11409 | rm -f conftest.err conftest.$ac_objext \ |
| 11410 | conftest$ac_exeext conftest.$ac_ext |
| 11411 | LIBS=$ac_check_lib_save_LIBS |
| 11412 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11413 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 |
| 11414 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11415 | if test $ac_cv_lib_resolv_res_query = yes; then |
| 11416 | |
| 11417 | cat >>confdefs.h <<\_ACEOF |
| 11418 | #define HAVE_RESOLV 1 |
| 11419 | _ACEOF |
| 11420 | |
| 11421 | RESOLVLIBS="-lresolv" |
| 11422 | fi |
| 11423 | |
| 11424 | fi |
| 11425 | |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 11426 | LCMSLIBS="" |
| 11427 | |
| 11428 | if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes" |
| 11429 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11430 | { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5 |
| 11431 | echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; } |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 11432 | if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then |
| 11433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11434 | else |
| 11435 | ac_check_lib_save_LIBS=$LIBS |
| 11436 | LIBS="-llcms $LIBS" |
| 11437 | cat >conftest.$ac_ext <<_ACEOF |
| 11438 | /* confdefs.h. */ |
| 11439 | _ACEOF |
| 11440 | cat confdefs.h >>conftest.$ac_ext |
| 11441 | cat >>conftest.$ac_ext <<_ACEOF |
| 11442 | /* end confdefs.h. */ |
| 11443 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11444 | /* Override any GCC internal prototype to avoid an error. |
| 11445 | Use char because int might match the return type of a GCC |
| 11446 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 11447 | #ifdef __cplusplus |
| 11448 | extern "C" |
| 11449 | #endif |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 11450 | char cmsOpenProfileFromFile (); |
| 11451 | int |
| 11452 | main () |
| 11453 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11454 | return cmsOpenProfileFromFile (); |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 11455 | ; |
| 11456 | return 0; |
| 11457 | } |
| 11458 | _ACEOF |
| 11459 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11461 | (eval $ac_link) 2>conftest.er1 |
| 11462 | ac_status=$? |
| 11463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11464 | rm -f conftest.er1 |
| 11465 | cat conftest.err >&5 |
| 11466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11467 | (exit $ac_status); } && |
| 11468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11470 | (eval $ac_try) 2>&5 |
| 11471 | ac_status=$? |
| 11472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11473 | (exit $ac_status); }; } && |
| 11474 | { ac_try='test -s conftest$ac_exeext' |
| 11475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11476 | (eval $ac_try) 2>&5 |
| 11477 | ac_status=$? |
| 11478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11479 | (exit $ac_status); }; }; then |
| 11480 | ac_cv_lib_lcms_cmsOpenProfileFromFile=yes |
| 11481 | else |
| 11482 | echo "$as_me: failed program was:" >&5 |
| 11483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11484 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11485 | ac_cv_lib_lcms_cmsOpenProfileFromFile=no |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 11486 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11487 | |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 11488 | rm -f conftest.err conftest.$ac_objext \ |
| 11489 | conftest$ac_exeext conftest.$ac_ext |
| 11490 | LIBS=$ac_check_lib_save_LIBS |
| 11491 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11492 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5 |
| 11493 | echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; } |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 11494 | if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then |
| 11495 | |
| 11496 | cat >>confdefs.h <<\_ACEOF |
| 11497 | #define HAVE_LCMS 1 |
| 11498 | _ACEOF |
| 11499 | |
| 11500 | LCMSLIBS="-llcms" |
| 11501 | fi |
| 11502 | |
| 11503 | fi |
| 11504 | |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11505 | LDAPLIBS="" |
| 11506 | |
| 11507 | if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes" |
| 11508 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11509 | { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5 |
| 11510 | 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] | 11511 | if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11513 | else |
| 11514 | ac_check_lib_save_LIBS=$LIBS |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 11515 | LIBS="-lldap_r $LIBPTHREAD $LIBS" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11516 | cat >conftest.$ac_ext <<_ACEOF |
| 11517 | /* confdefs.h. */ |
| 11518 | _ACEOF |
| 11519 | cat confdefs.h >>conftest.$ac_ext |
| 11520 | cat >>conftest.$ac_ext <<_ACEOF |
| 11521 | /* end confdefs.h. */ |
| 11522 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11523 | /* Override any GCC internal prototype to avoid an error. |
| 11524 | Use char because int might match the return type of a GCC |
| 11525 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11526 | #ifdef __cplusplus |
| 11527 | extern "C" |
| 11528 | #endif |
Hans Leidekker | 20d0e80 | 2005-11-18 16:56:44 +0000 | [diff] [blame] | 11529 | char ldap_initialize (); |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11530 | int |
| 11531 | main () |
| 11532 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11533 | return ldap_initialize (); |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11534 | ; |
| 11535 | return 0; |
| 11536 | } |
| 11537 | _ACEOF |
| 11538 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11540 | (eval $ac_link) 2>conftest.er1 |
| 11541 | ac_status=$? |
| 11542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11543 | rm -f conftest.er1 |
| 11544 | cat conftest.err >&5 |
| 11545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11546 | (exit $ac_status); } && |
| 11547 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11549 | (eval $ac_try) 2>&5 |
| 11550 | ac_status=$? |
| 11551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11552 | (exit $ac_status); }; } && |
| 11553 | { ac_try='test -s conftest$ac_exeext' |
| 11554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11555 | (eval $ac_try) 2>&5 |
| 11556 | ac_status=$? |
| 11557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11558 | (exit $ac_status); }; }; then |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 11559 | ac_cv_lib_ldap_r_ldap_initialize=yes |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11560 | else |
| 11561 | echo "$as_me: failed program was:" >&5 |
| 11562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11563 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11564 | ac_cv_lib_ldap_r_ldap_initialize=no |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11565 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11566 | |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11567 | rm -f conftest.err conftest.$ac_objext \ |
| 11568 | conftest$ac_exeext conftest.$ac_ext |
| 11569 | LIBS=$ac_check_lib_save_LIBS |
| 11570 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11571 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5 |
| 11572 | echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; } |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 11573 | if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11574 | { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5 |
| 11575 | echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; } |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11576 | if test "${ac_cv_lib_lber_ber_init+set}" = set; then |
| 11577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11578 | else |
| 11579 | ac_check_lib_save_LIBS=$LIBS |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 11580 | LIBS="-llber $LIBPTHREAD $LIBS" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11581 | cat >conftest.$ac_ext <<_ACEOF |
| 11582 | /* confdefs.h. */ |
| 11583 | _ACEOF |
| 11584 | cat confdefs.h >>conftest.$ac_ext |
| 11585 | cat >>conftest.$ac_ext <<_ACEOF |
| 11586 | /* end confdefs.h. */ |
| 11587 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11588 | /* Override any GCC internal prototype to avoid an error. |
| 11589 | Use char because int might match the return type of a GCC |
| 11590 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11591 | #ifdef __cplusplus |
| 11592 | extern "C" |
| 11593 | #endif |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11594 | char ber_init (); |
| 11595 | int |
| 11596 | main () |
| 11597 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11598 | return ber_init (); |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11599 | ; |
| 11600 | return 0; |
| 11601 | } |
| 11602 | _ACEOF |
| 11603 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11605 | (eval $ac_link) 2>conftest.er1 |
| 11606 | ac_status=$? |
| 11607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11608 | rm -f conftest.er1 |
| 11609 | cat conftest.err >&5 |
| 11610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11611 | (exit $ac_status); } && |
| 11612 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11614 | (eval $ac_try) 2>&5 |
| 11615 | ac_status=$? |
| 11616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11617 | (exit $ac_status); }; } && |
| 11618 | { ac_try='test -s conftest$ac_exeext' |
| 11619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11620 | (eval $ac_try) 2>&5 |
| 11621 | ac_status=$? |
| 11622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11623 | (exit $ac_status); }; }; then |
| 11624 | ac_cv_lib_lber_ber_init=yes |
| 11625 | else |
| 11626 | echo "$as_me: failed program was:" >&5 |
| 11627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11628 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11629 | ac_cv_lib_lber_ber_init=no |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11630 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11631 | |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11632 | rm -f conftest.err conftest.$ac_objext \ |
| 11633 | conftest$ac_exeext conftest.$ac_ext |
| 11634 | LIBS=$ac_check_lib_save_LIBS |
| 11635 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11636 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5 |
| 11637 | echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; } |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11638 | if test $ac_cv_lib_lber_ber_init = yes; then |
| 11639 | |
| 11640 | cat >>confdefs.h <<\_ACEOF |
| 11641 | #define HAVE_LDAP 1 |
| 11642 | _ACEOF |
| 11643 | |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 11644 | LDAPLIBS="-lldap_r -llber" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11645 | fi |
| 11646 | |
| 11647 | fi |
| 11648 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 11649 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 11650 | LIBS="$LIBS $LDAPLIBS $LIBPTHREAD" |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 11651 | |
| 11652 | |
| 11653 | |
| 11654 | |
| 11655 | for ac_func in \ |
| 11656 | ldap_count_references \ |
| 11657 | ldap_first_reference \ |
| 11658 | ldap_next_reference \ |
| 11659 | ldap_parse_reference |
| 11660 | do |
| 11661 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11662 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11663 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11664 | 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] | 11665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11666 | else |
| 11667 | cat >conftest.$ac_ext <<_ACEOF |
| 11668 | /* confdefs.h. */ |
| 11669 | _ACEOF |
| 11670 | cat confdefs.h >>conftest.$ac_ext |
| 11671 | cat >>conftest.$ac_ext <<_ACEOF |
| 11672 | /* end confdefs.h. */ |
| 11673 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11675 | #define $ac_func innocuous_$ac_func |
| 11676 | |
| 11677 | /* System header to define __stub macros and hopefully few prototypes, |
| 11678 | which can conflict with char $ac_func (); below. |
| 11679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11680 | <limits.h> exists even on freestanding compilers. */ |
| 11681 | |
| 11682 | #ifdef __STDC__ |
| 11683 | # include <limits.h> |
| 11684 | #else |
| 11685 | # include <assert.h> |
| 11686 | #endif |
| 11687 | |
| 11688 | #undef $ac_func |
| 11689 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11690 | /* Override any GCC internal prototype to avoid an error. |
| 11691 | Use char because int might match the return type of a GCC |
| 11692 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 11693 | #ifdef __cplusplus |
| 11694 | extern "C" |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 11695 | #endif |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 11696 | char $ac_func (); |
| 11697 | /* The GNU C library defines this for functions which it implements |
| 11698 | to always fail with ENOSYS. Some functions are actually named |
| 11699 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11700 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 11701 | choke me |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 11702 | #endif |
| 11703 | |
| 11704 | int |
| 11705 | main () |
| 11706 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11707 | return $ac_func (); |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 11708 | ; |
| 11709 | return 0; |
| 11710 | } |
| 11711 | _ACEOF |
| 11712 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11714 | (eval $ac_link) 2>conftest.er1 |
| 11715 | ac_status=$? |
| 11716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11717 | rm -f conftest.er1 |
| 11718 | cat conftest.err >&5 |
| 11719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11720 | (exit $ac_status); } && |
| 11721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11723 | (eval $ac_try) 2>&5 |
| 11724 | ac_status=$? |
| 11725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11726 | (exit $ac_status); }; } && |
| 11727 | { ac_try='test -s conftest$ac_exeext' |
| 11728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11729 | (eval $ac_try) 2>&5 |
| 11730 | ac_status=$? |
| 11731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11732 | (exit $ac_status); }; }; then |
| 11733 | eval "$as_ac_var=yes" |
| 11734 | else |
| 11735 | echo "$as_me: failed program was:" >&5 |
| 11736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11737 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11738 | eval "$as_ac_var=no" |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 11739 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11740 | |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 11741 | rm -f conftest.err conftest.$ac_objext \ |
| 11742 | conftest$ac_exeext conftest.$ac_ext |
| 11743 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11744 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11745 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11746 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 11747 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11748 | cat >>confdefs.h <<_ACEOF |
| 11749 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11750 | _ACEOF |
| 11751 | |
| 11752 | fi |
| 11753 | done |
| 11754 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 11755 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 11756 | fi |
| 11757 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 11758 | FREETYPELIBS="" |
| 11759 | |
| 11760 | FREETYPEINCL="" |
| 11761 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11762 | { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
| 11763 | 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] | 11764 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 11765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11766 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11767 | ac_check_lib_save_LIBS=$LIBS |
Dmitry Timoshkov | 8871a11 | 2001-11-06 22:26:53 +0000 | [diff] [blame] | 11768 | LIBS="-lfreetype $X_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11769 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11770 | /* confdefs.h. */ |
| 11771 | _ACEOF |
| 11772 | cat confdefs.h >>conftest.$ac_ext |
| 11773 | cat >>conftest.$ac_ext <<_ACEOF |
| 11774 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11775 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11776 | /* Override any GCC internal prototype to avoid an error. |
| 11777 | Use char because int might match the return type of a GCC |
| 11778 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11779 | #ifdef __cplusplus |
| 11780 | extern "C" |
| 11781 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11782 | char FT_Init_FreeType (); |
| 11783 | int |
| 11784 | main () |
| 11785 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11786 | return FT_Init_FreeType (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11787 | ; |
| 11788 | return 0; |
| 11789 | } |
| 11790 | _ACEOF |
| 11791 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11793 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11794 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11796 | rm -f conftest.er1 |
| 11797 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11799 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11800 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11802 | (eval $ac_try) 2>&5 |
| 11803 | ac_status=$? |
| 11804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11805 | (exit $ac_status); }; } && |
| 11806 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11808 | (eval $ac_try) 2>&5 |
| 11809 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11811 | (exit $ac_status); }; }; then |
| 11812 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11813 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11814 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11816 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11817 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11818 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11819 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11820 | rm -f conftest.err conftest.$ac_objext \ |
| 11821 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11822 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11823 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11824 | { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
| 11825 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11826 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11827 | ft_lib=yes |
| 11828 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11829 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11830 | fi |
| 11831 | |
| 11832 | if test "$ft_lib" = "no" |
| 11833 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11834 | wine_cv_msg_freetype=no |
| 11835 | else |
| 11836 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 11837 | set dummy freetype-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11838 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11840 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 11841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11842 | else |
| 11843 | if test -n "$ft_devel"; then |
| 11844 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 11845 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11847 | for as_dir in $PATH |
| 11848 | do |
| 11849 | IFS=$as_save_IFS |
| 11850 | test -z "$as_dir" && as_dir=. |
| 11851 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11852 | 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] | 11853 | ac_cv_prog_ft_devel="freetype-config" |
| 11854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11855 | break 2 |
| 11856 | fi |
| 11857 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11858 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11859 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11860 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11861 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 11862 | fi |
| 11863 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11864 | ft_devel=$ac_cv_prog_ft_devel |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11865 | if test -n "$ft_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11866 | { echo "$as_me:$LINENO: result: $ft_devel" >&5 |
| 11867 | echo "${ECHO_T}$ft_devel" >&6; } |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11868 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11869 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11870 | echo "${ECHO_T}no" >&6; } |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11871 | fi |
| 11872 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11873 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11874 | if test "$ft_devel" = "no" |
| 11875 | then |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 11876 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 11877 | set dummy freetype2-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11878 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11880 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 11881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 11882 | else |
| 11883 | if test -n "$ft_devel2"; then |
| 11884 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 11885 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11887 | for as_dir in $PATH |
| 11888 | do |
| 11889 | IFS=$as_save_IFS |
| 11890 | test -z "$as_dir" && as_dir=. |
| 11891 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11892 | 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] | 11893 | ac_cv_prog_ft_devel2="freetype2-config" |
| 11894 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11895 | break 2 |
| 11896 | fi |
| 11897 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11898 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11899 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11900 | |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 11901 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 11902 | fi |
| 11903 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11904 | ft_devel2=$ac_cv_prog_ft_devel2 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 11905 | if test -n "$ft_devel2"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11906 | { echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
| 11907 | echo "${ECHO_T}$ft_devel2" >&6; } |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 11908 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11909 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11910 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 11911 | fi |
| 11912 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11913 | |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 11914 | if test "$ft_devel2" = "freetype2-config" |
| 11915 | then |
| 11916 | ft_devel=$ft_devel2 |
| 11917 | fi |
| 11918 | fi |
| 11919 | if test "$ft_devel" = "no" |
| 11920 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11921 | wine_cv_msg_freetype=yes |
| 11922 | else |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 11923 | FREETYPELIBS=`$ft_devel --libs` |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 11924 | FREETYPEINCL=`$ft_devel --cflags` |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 11925 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11926 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11927 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11928 | |
| 11929 | |
| 11930 | |
| 11931 | |
| 11932 | |
| 11933 | |
| 11934 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 11935 | |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 11936 | |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 11937 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 11938 | for ac_header in ft2build.h \ |
| 11939 | freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 11940 | freetype/ftglyph.h \ |
| 11941 | freetype/tttables.h \ |
| 11942 | freetype/ftnames.h \ |
| 11943 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 11944 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 11945 | freetype/ftoutln.h \ |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 11946 | freetype/ftwinfnt.h \ |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 11947 | freetype/ftmodapi.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 11948 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 11949 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11950 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11951 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11952 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11953 | 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] | 11954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11955 | else |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 11956 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11957 | /* confdefs.h. */ |
| 11958 | _ACEOF |
| 11959 | cat confdefs.h >>conftest.$ac_ext |
| 11960 | cat >>conftest.$ac_ext <<_ACEOF |
| 11961 | /* end confdefs.h. */ |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 11962 | #if HAVE_FT2BUILD_H |
| 11963 | #include <ft2build.h> |
| 11964 | #endif |
| 11965 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11966 | #include <$ac_header> |
| 11967 | _ACEOF |
| 11968 | rm -f conftest.$ac_objext |
| 11969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11970 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11971 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11973 | rm -f conftest.er1 |
| 11974 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11976 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11977 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11979 | (eval $ac_try) 2>&5 |
| 11980 | ac_status=$? |
| 11981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11982 | (exit $ac_status); }; } && |
| 11983 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11985 | (eval $ac_try) 2>&5 |
| 11986 | ac_status=$? |
| 11987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11988 | (exit $ac_status); }; }; then |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 11989 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11990 | else |
| 11991 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11993 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11994 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11995 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11996 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11998 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11999 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12000 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12001 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12002 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12003 | cat >>confdefs.h <<_ACEOF |
| 12004 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12005 | _ACEOF |
| 12006 | |
| 12007 | fi |
| 12008 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 12009 | done |
| 12010 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12011 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12012 | /* confdefs.h. */ |
| 12013 | _ACEOF |
| 12014 | cat confdefs.h >>conftest.$ac_ext |
| 12015 | cat >>conftest.$ac_ext <<_ACEOF |
| 12016 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 12017 | #include <ft2build.h> |
| 12018 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12019 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12020 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12021 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12022 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12023 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12024 | rm -f conftest.er1 |
| 12025 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12027 | (exit $ac_status); } >/dev/null; then |
| 12028 | if test -s conftest.err; then |
| 12029 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12030 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12031 | else |
| 12032 | ac_cpp_err= |
| 12033 | fi |
| 12034 | else |
| 12035 | ac_cpp_err=yes |
| 12036 | fi |
| 12037 | if test -z "$ac_cpp_err"; then |
| 12038 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12039 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 12040 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12041 | _ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 12042 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 12043 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 12044 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12045 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12047 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 12048 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 12049 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12050 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12051 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12052 | { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5 |
| 12053 | echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; } |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12054 | if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then |
| 12055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12056 | else |
| 12057 | cat >conftest.$ac_ext <<_ACEOF |
| 12058 | /* confdefs.h. */ |
| 12059 | _ACEOF |
| 12060 | cat confdefs.h >>conftest.$ac_ext |
| 12061 | cat >>conftest.$ac_ext <<_ACEOF |
| 12062 | /* end confdefs.h. */ |
| 12063 | #include <freetype/ftmodapi.h> |
| 12064 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12065 | typedef FT_TrueTypeEngineType ac__type_new_; |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12066 | int |
| 12067 | main () |
| 12068 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12069 | if ((ac__type_new_ *) 0) |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12070 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12071 | if (sizeof (ac__type_new_)) |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12072 | return 0; |
| 12073 | ; |
| 12074 | return 0; |
| 12075 | } |
| 12076 | _ACEOF |
| 12077 | rm -f conftest.$ac_objext |
| 12078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12079 | (eval $ac_compile) 2>conftest.er1 |
| 12080 | ac_status=$? |
| 12081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12082 | rm -f conftest.er1 |
| 12083 | cat conftest.err >&5 |
| 12084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12085 | (exit $ac_status); } && |
| 12086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12088 | (eval $ac_try) 2>&5 |
| 12089 | ac_status=$? |
| 12090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12091 | (exit $ac_status); }; } && |
| 12092 | { ac_try='test -s conftest.$ac_objext' |
| 12093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12094 | (eval $ac_try) 2>&5 |
| 12095 | ac_status=$? |
| 12096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12097 | (exit $ac_status); }; }; then |
| 12098 | ac_cv_type_FT_TrueTypeEngineType=yes |
| 12099 | else |
| 12100 | echo "$as_me: failed program was:" >&5 |
| 12101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12102 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12103 | ac_cv_type_FT_TrueTypeEngineType=no |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12104 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12105 | |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12107 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12108 | { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5 |
| 12109 | echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; } |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12110 | if test $ac_cv_type_FT_TrueTypeEngineType = yes; then |
| 12111 | |
| 12112 | cat >>confdefs.h <<_ACEOF |
| 12113 | #define HAVE_FT_TRUETYPEENGINETYPE 1 |
| 12114 | _ACEOF |
| 12115 | |
| 12116 | |
| 12117 | fi |
| 12118 | |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12119 | ac_save_CFLAGS="$CFLAGS" |
| 12120 | CFLAGS="$CFLAGS $FREETYPELIBS" |
| 12121 | |
| 12122 | for ac_func in FT_Load_Sfnt_Table |
| 12123 | do |
| 12124 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12125 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12126 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12127 | 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] | 12128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12129 | else |
| 12130 | cat >conftest.$ac_ext <<_ACEOF |
| 12131 | /* confdefs.h. */ |
| 12132 | _ACEOF |
| 12133 | cat confdefs.h >>conftest.$ac_ext |
| 12134 | cat >>conftest.$ac_ext <<_ACEOF |
| 12135 | /* end confdefs.h. */ |
| 12136 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12137 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12138 | #define $ac_func innocuous_$ac_func |
| 12139 | |
| 12140 | /* System header to define __stub macros and hopefully few prototypes, |
| 12141 | which can conflict with char $ac_func (); below. |
| 12142 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12143 | <limits.h> exists even on freestanding compilers. */ |
| 12144 | |
| 12145 | #ifdef __STDC__ |
| 12146 | # include <limits.h> |
| 12147 | #else |
| 12148 | # include <assert.h> |
| 12149 | #endif |
| 12150 | |
| 12151 | #undef $ac_func |
| 12152 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12153 | /* Override any GCC internal prototype to avoid an error. |
| 12154 | Use char because int might match the return type of a GCC |
| 12155 | builtin and then its argument prototype would still apply. */ |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12156 | #ifdef __cplusplus |
| 12157 | extern "C" |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12158 | #endif |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12159 | char $ac_func (); |
| 12160 | /* The GNU C library defines this for functions which it implements |
| 12161 | to always fail with ENOSYS. Some functions are actually named |
| 12162 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12163 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12164 | choke me |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12165 | #endif |
| 12166 | |
| 12167 | int |
| 12168 | main () |
| 12169 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12170 | return $ac_func (); |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12171 | ; |
| 12172 | return 0; |
| 12173 | } |
| 12174 | _ACEOF |
| 12175 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12177 | (eval $ac_link) 2>conftest.er1 |
| 12178 | ac_status=$? |
| 12179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12180 | rm -f conftest.er1 |
| 12181 | cat conftest.err >&5 |
| 12182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12183 | (exit $ac_status); } && |
| 12184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12186 | (eval $ac_try) 2>&5 |
| 12187 | ac_status=$? |
| 12188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12189 | (exit $ac_status); }; } && |
| 12190 | { ac_try='test -s conftest$ac_exeext' |
| 12191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12192 | (eval $ac_try) 2>&5 |
| 12193 | ac_status=$? |
| 12194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12195 | (exit $ac_status); }; }; then |
| 12196 | eval "$as_ac_var=yes" |
| 12197 | else |
| 12198 | echo "$as_me: failed program was:" >&5 |
| 12199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12200 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12201 | eval "$as_ac_var=no" |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12202 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12203 | |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12204 | rm -f conftest.err conftest.$ac_objext \ |
| 12205 | conftest$ac_exeext conftest.$ac_ext |
| 12206 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12207 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12208 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12209 | echo "${ECHO_T}$ac_res" >&6; } |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12210 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12211 | cat >>confdefs.h <<_ACEOF |
| 12212 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12213 | _ACEOF |
| 12214 | |
| 12215 | fi |
| 12216 | done |
| 12217 | |
| 12218 | CFLAGS="$ac_save_CFLAGS" |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 12219 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 12220 | 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] | 12221 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12222 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12223 | cat >>confdefs.h <<\_ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 12224 | #define HAVE_FREETYPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12225 | _ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 12226 | |
| 12227 | wine_cv_msg_freetype=no |
| 12228 | else |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 12229 | FREETYPELIBS="" |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 12230 | FREETYPEINCL="" |
| 12231 | wine_cv_msg_freetype=yes |
| 12232 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 12233 | fi |
| 12234 | fi |
| 12235 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 12236 | if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS" |
| 12237 | then |
| 12238 | FONTSSUBDIRS="fonts" |
| 12239 | |
| 12240 | fi |
| 12241 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12242 | { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
| 12243 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12244 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 12245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 12246 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12247 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12248 | /* confdefs.h. */ |
| 12249 | _ACEOF |
| 12250 | cat confdefs.h >>conftest.$ac_ext |
| 12251 | cat >>conftest.$ac_ext <<_ACEOF |
| 12252 | /* end confdefs.h. */ |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 12253 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12254 | int |
| 12255 | main () |
| 12256 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 12257 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12258 | ; |
| 12259 | return 0; |
| 12260 | } |
| 12261 | _ACEOF |
| 12262 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12264 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12265 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12267 | rm -f conftest.er1 |
| 12268 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12270 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12273 | (eval $ac_try) 2>&5 |
| 12274 | ac_status=$? |
| 12275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12276 | (exit $ac_status); }; } && |
| 12277 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12279 | (eval $ac_try) 2>&5 |
| 12280 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12282 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 12283 | ac_cv_c_ppdev="yes" |
| 12284 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12285 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12287 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12288 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 12289 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12290 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 12292 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12293 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12294 | { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
| 12295 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6; } |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 12296 | if test "$ac_cv_c_ppdev" = "yes" |
| 12297 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12298 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12299 | cat >>confdefs.h <<\_ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 12300 | #define HAVE_PPDEV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12301 | _ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 12302 | |
| 12303 | fi |
| 12304 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12305 | { echo "$as_me:$LINENO: checking for va_copy" >&5 |
| 12306 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12307 | if test "${ac_cv_c_va_copy+set}" = set; then |
| 12308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12309 | else |
| 12310 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12311 | /* confdefs.h. */ |
| 12312 | _ACEOF |
| 12313 | cat confdefs.h >>conftest.$ac_ext |
| 12314 | cat >>conftest.$ac_ext <<_ACEOF |
| 12315 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12316 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12317 | int |
| 12318 | main () |
| 12319 | { |
| 12320 | va_list ap1, ap2; |
| 12321 | va_copy(ap1,ap2); |
| 12322 | |
| 12323 | ; |
| 12324 | return 0; |
| 12325 | } |
| 12326 | _ACEOF |
| 12327 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12329 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12330 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12332 | rm -f conftest.er1 |
| 12333 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12335 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12338 | (eval $ac_try) 2>&5 |
| 12339 | ac_status=$? |
| 12340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12341 | (exit $ac_status); }; } && |
| 12342 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12344 | (eval $ac_try) 2>&5 |
| 12345 | ac_status=$? |
| 12346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12347 | (exit $ac_status); }; }; then |
| 12348 | ac_cv_c_va_copy="yes" |
| 12349 | else |
| 12350 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12352 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12353 | ac_cv_c_va_copy="no" |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12354 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12355 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12356 | rm -f conftest.err conftest.$ac_objext \ |
| 12357 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12358 | |
| 12359 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12360 | { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
| 12361 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12362 | if test "$ac_cv_c_va_copy" = "yes" |
| 12363 | then |
| 12364 | |
| 12365 | cat >>confdefs.h <<\_ACEOF |
| 12366 | #define HAVE_VA_COPY 1 |
| 12367 | _ACEOF |
| 12368 | |
| 12369 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12370 | { echo "$as_me:$LINENO: checking for __va_copy" >&5 |
| 12371 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12372 | if test "${ac_cv_c___va_copy+set}" = set; then |
| 12373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12374 | else |
| 12375 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12376 | /* confdefs.h. */ |
| 12377 | _ACEOF |
| 12378 | cat confdefs.h >>conftest.$ac_ext |
| 12379 | cat >>conftest.$ac_ext <<_ACEOF |
| 12380 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12381 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12382 | int |
| 12383 | main () |
| 12384 | { |
| 12385 | va_list ap1, ap2; |
| 12386 | __va_copy(ap1,ap2); |
| 12387 | |
| 12388 | ; |
| 12389 | return 0; |
| 12390 | } |
| 12391 | _ACEOF |
| 12392 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12394 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12395 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12397 | rm -f conftest.er1 |
| 12398 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12400 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12401 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12403 | (eval $ac_try) 2>&5 |
| 12404 | ac_status=$? |
| 12405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12406 | (exit $ac_status); }; } && |
| 12407 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12409 | (eval $ac_try) 2>&5 |
| 12410 | ac_status=$? |
| 12411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12412 | (exit $ac_status); }; }; then |
| 12413 | ac_cv_c___va_copy="yes" |
| 12414 | else |
| 12415 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12417 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12418 | ac_cv_c___va_copy="no" |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12419 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12420 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12421 | rm -f conftest.err conftest.$ac_objext \ |
| 12422 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12423 | |
| 12424 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12425 | { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
| 12426 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 12427 | if test "$ac_cv_c___va_copy" = "yes" |
| 12428 | then |
| 12429 | |
| 12430 | cat >>confdefs.h <<\_ACEOF |
| 12431 | #define HAVE___VA_COPY 1 |
| 12432 | _ACEOF |
| 12433 | |
| 12434 | fi |
| 12435 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12436 | { echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
| 12437 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; } |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 12438 | if test "${ac_cv_c_sigsetjmp+set}" = set; then |
| 12439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12440 | else |
| 12441 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 12442 | /* confdefs.h. */ |
| 12443 | _ACEOF |
| 12444 | cat confdefs.h >>conftest.$ac_ext |
| 12445 | cat >>conftest.$ac_ext <<_ACEOF |
| 12446 | /* end confdefs.h. */ |
| 12447 | #include <setjmp.h> |
| 12448 | int |
| 12449 | main () |
| 12450 | { |
| 12451 | sigjmp_buf buf; |
| 12452 | sigsetjmp( buf, 1 ); |
| 12453 | siglongjmp( buf, 1 ); |
| 12454 | ; |
| 12455 | return 0; |
| 12456 | } |
| 12457 | _ACEOF |
| 12458 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12460 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 12461 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12463 | rm -f conftest.er1 |
| 12464 | cat conftest.err >&5 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 12465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12466 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12467 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12469 | (eval $ac_try) 2>&5 |
| 12470 | ac_status=$? |
| 12471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12472 | (exit $ac_status); }; } && |
| 12473 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 12474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12475 | (eval $ac_try) 2>&5 |
| 12476 | ac_status=$? |
| 12477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12478 | (exit $ac_status); }; }; then |
| 12479 | ac_cv_c_sigsetjmp="yes" |
| 12480 | else |
| 12481 | echo "$as_me: failed program was:" >&5 |
| 12482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12483 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12484 | ac_cv_c_sigsetjmp="no" |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 12485 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12486 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12487 | rm -f conftest.err conftest.$ac_objext \ |
| 12488 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 12489 | |
| 12490 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12491 | { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5 |
| 12492 | echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; } |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 12493 | if test "$ac_cv_c_sigsetjmp" = "yes" |
| 12494 | then |
| 12495 | |
| 12496 | cat >>confdefs.h <<\_ACEOF |
| 12497 | #define HAVE_SIGSETJMP 1 |
| 12498 | _ACEOF |
| 12499 | |
| 12500 | fi |
| 12501 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12502 | { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 |
| 12503 | echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12504 | if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then |
| 12505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12506 | else |
| 12507 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12508 | /* confdefs.h. */ |
| 12509 | _ACEOF |
| 12510 | cat confdefs.h >>conftest.$ac_ext |
| 12511 | cat >>conftest.$ac_ext <<_ACEOF |
| 12512 | /* end confdefs.h. */ |
| 12513 | #define _GNU_SOURCE |
| 12514 | #include <pthread.h> |
| 12515 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12516 | typedef pthread_rwlock_t ac__type_new_; |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12517 | int |
| 12518 | main () |
| 12519 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12520 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12521 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12522 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12523 | return 0; |
| 12524 | ; |
| 12525 | return 0; |
| 12526 | } |
| 12527 | _ACEOF |
| 12528 | rm -f conftest.$ac_objext |
| 12529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12530 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12531 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12533 | rm -f conftest.er1 |
| 12534 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12536 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12539 | (eval $ac_try) 2>&5 |
| 12540 | ac_status=$? |
| 12541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12542 | (exit $ac_status); }; } && |
| 12543 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12545 | (eval $ac_try) 2>&5 |
| 12546 | ac_status=$? |
| 12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12548 | (exit $ac_status); }; }; then |
| 12549 | ac_cv_type_pthread_rwlock_t=yes |
| 12550 | else |
| 12551 | echo "$as_me: failed program was:" >&5 |
| 12552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12553 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12554 | ac_cv_type_pthread_rwlock_t=no |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12555 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12556 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12558 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12559 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5 |
| 12560 | echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12561 | if test $ac_cv_type_pthread_rwlock_t = yes; then |
| 12562 | |
| 12563 | cat >>confdefs.h <<_ACEOF |
| 12564 | #define HAVE_PTHREAD_RWLOCK_T 1 |
| 12565 | _ACEOF |
| 12566 | |
| 12567 | |
| 12568 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12569 | { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5 |
| 12570 | echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12571 | if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then |
| 12572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12573 | else |
| 12574 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12575 | /* confdefs.h. */ |
| 12576 | _ACEOF |
| 12577 | cat confdefs.h >>conftest.$ac_ext |
| 12578 | cat >>conftest.$ac_ext <<_ACEOF |
| 12579 | /* end confdefs.h. */ |
| 12580 | #define _GNU_SOURCE |
| 12581 | #include <pthread.h> |
| 12582 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12583 | typedef pthread_rwlockattr_t ac__type_new_; |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12584 | int |
| 12585 | main () |
| 12586 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12587 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12588 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12589 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12590 | return 0; |
| 12591 | ; |
| 12592 | return 0; |
| 12593 | } |
| 12594 | _ACEOF |
| 12595 | rm -f conftest.$ac_objext |
| 12596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12597 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12598 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12600 | rm -f conftest.er1 |
| 12601 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12603 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12606 | (eval $ac_try) 2>&5 |
| 12607 | ac_status=$? |
| 12608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12609 | (exit $ac_status); }; } && |
| 12610 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12612 | (eval $ac_try) 2>&5 |
| 12613 | ac_status=$? |
| 12614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12615 | (exit $ac_status); }; }; then |
| 12616 | ac_cv_type_pthread_rwlockattr_t=yes |
| 12617 | else |
| 12618 | echo "$as_me: failed program was:" >&5 |
| 12619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12620 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12621 | ac_cv_type_pthread_rwlockattr_t=no |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12622 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12623 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12625 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12626 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5 |
| 12627 | echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12628 | if test $ac_cv_type_pthread_rwlockattr_t = yes; then |
| 12629 | |
| 12630 | cat >>confdefs.h <<_ACEOF |
| 12631 | #define HAVE_PTHREAD_RWLOCKATTR_T 1 |
| 12632 | _ACEOF |
| 12633 | |
| 12634 | |
| 12635 | fi |
| 12636 | |
| 12637 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 12638 | ac_wine_check_funcs_save_LIBS="$LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12639 | LIBS="$LIBS $LIBPTHREAD" |
| 12640 | |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 12641 | |
| 12642 | |
| 12643 | for ac_func in \ |
| 12644 | pthread_getattr_np \ |
| 12645 | pthread_get_stackaddr_np \ |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 12646 | pthread_get_stacksize_np |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12647 | do |
| 12648 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12649 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12650 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12651 | 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] | 12652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12653 | else |
| 12654 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12655 | /* confdefs.h. */ |
| 12656 | _ACEOF |
| 12657 | cat confdefs.h >>conftest.$ac_ext |
| 12658 | cat >>conftest.$ac_ext <<_ACEOF |
| 12659 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12660 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12661 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12662 | #define $ac_func innocuous_$ac_func |
| 12663 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12664 | /* System header to define __stub macros and hopefully few prototypes, |
| 12665 | which can conflict with char $ac_func (); below. |
| 12666 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12667 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12668 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12669 | #ifdef __STDC__ |
| 12670 | # include <limits.h> |
| 12671 | #else |
| 12672 | # include <assert.h> |
| 12673 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12674 | |
| 12675 | #undef $ac_func |
| 12676 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12677 | /* Override any GCC internal prototype to avoid an error. |
| 12678 | Use char because int might match the return type of a GCC |
| 12679 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12680 | #ifdef __cplusplus |
| 12681 | extern "C" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12682 | #endif |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12683 | char $ac_func (); |
| 12684 | /* The GNU C library defines this for functions which it implements |
| 12685 | to always fail with ENOSYS. Some functions are actually named |
| 12686 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12687 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12688 | choke me |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12689 | #endif |
| 12690 | |
| 12691 | int |
| 12692 | main () |
| 12693 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12694 | return $ac_func (); |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12695 | ; |
| 12696 | return 0; |
| 12697 | } |
| 12698 | _ACEOF |
| 12699 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12701 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12702 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12704 | rm -f conftest.er1 |
| 12705 | cat conftest.err >&5 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12707 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12708 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12710 | (eval $ac_try) 2>&5 |
| 12711 | ac_status=$? |
| 12712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12713 | (exit $ac_status); }; } && |
| 12714 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12716 | (eval $ac_try) 2>&5 |
| 12717 | ac_status=$? |
| 12718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12719 | (exit $ac_status); }; }; then |
| 12720 | eval "$as_ac_var=yes" |
| 12721 | else |
| 12722 | echo "$as_me: failed program was:" >&5 |
| 12723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12724 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12725 | eval "$as_ac_var=no" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12726 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12727 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12728 | rm -f conftest.err conftest.$ac_objext \ |
| 12729 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12730 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12731 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12732 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12733 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12734 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12735 | cat >>confdefs.h <<_ACEOF |
| 12736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12737 | _ACEOF |
| 12738 | |
| 12739 | fi |
| 12740 | done |
| 12741 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 12742 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 12743 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12744 | # Extract the first word of "artsc-config", so it can be a program name with args. |
| 12745 | set dummy artsc-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12746 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12748 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
| 12749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12750 | else |
| 12751 | case $ARTSCCONFIG in |
| 12752 | [\\/]* | ?:[\\/]*) |
| 12753 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. |
| 12754 | ;; |
| 12755 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12757 | for as_dir in $PATH |
| 12758 | do |
| 12759 | IFS=$as_save_IFS |
| 12760 | test -z "$as_dir" && as_dir=. |
| 12761 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12762 | 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] | 12763 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 12764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12765 | break 2 |
| 12766 | fi |
| 12767 | done |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12768 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12769 | IFS=$as_save_IFS |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12770 | |
| 12771 | ;; |
| 12772 | esac |
| 12773 | fi |
| 12774 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12775 | if test -n "$ARTSCCONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12776 | { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
| 12777 | echo "${ECHO_T}$ARTSCCONFIG" >&6; } |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12778 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12779 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12780 | echo "${ECHO_T}no" >&6; } |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12781 | fi |
| 12782 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12783 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12784 | if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"'; |
| 12785 | then |
Alexandre Julliard | b3b12cf | 2004-02-24 01:24:20 +0000 | [diff] [blame] | 12786 | ARTSC_CFLAGS="" |
| 12787 | for i in `$ARTSCCONFIG --cflags` |
| 12788 | do |
| 12789 | case "$i" in |
| 12790 | -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";; |
| 12791 | esac |
| 12792 | done |
Alexandre Julliard | 197a7d0 | 2006-04-04 12:08:30 +0200 | [diff] [blame] | 12793 | ARTSC_LIBS="" |
| 12794 | for i in `$ARTSCCONFIG --libs` |
| 12795 | do |
| 12796 | case "$i" in |
| 12797 | -L/usr/lib|-L/usr/lib64) ;; |
| 12798 | -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";; |
| 12799 | esac |
| 12800 | done |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12801 | save_CFLAGS="$CFLAGS" |
| 12802 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12803 | { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5 |
| 12804 | echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; } |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 12805 | if test "${ac_cv_lib_artsc_arts_init+set}" = set; then |
| 12806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12807 | else |
| 12808 | ac_check_lib_save_LIBS=$LIBS |
Vitaliy Margolen | 80816e9 | 2005-06-30 20:46:59 +0000 | [diff] [blame] | 12809 | LIBS="-lartsc $ARTSC_LIBS $LIBS" |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 12810 | cat >conftest.$ac_ext <<_ACEOF |
| 12811 | /* confdefs.h. */ |
| 12812 | _ACEOF |
| 12813 | cat confdefs.h >>conftest.$ac_ext |
| 12814 | cat >>conftest.$ac_ext <<_ACEOF |
| 12815 | /* end confdefs.h. */ |
| 12816 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12817 | /* Override any GCC internal prototype to avoid an error. |
| 12818 | Use char because int might match the return type of a GCC |
| 12819 | builtin and then its argument prototype would still apply. */ |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 12820 | #ifdef __cplusplus |
| 12821 | extern "C" |
| 12822 | #endif |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 12823 | char arts_init (); |
| 12824 | int |
| 12825 | main () |
| 12826 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12827 | return arts_init (); |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 12828 | ; |
| 12829 | return 0; |
| 12830 | } |
| 12831 | _ACEOF |
| 12832 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12834 | (eval $ac_link) 2>conftest.er1 |
| 12835 | ac_status=$? |
| 12836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12837 | rm -f conftest.er1 |
| 12838 | cat conftest.err >&5 |
| 12839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12840 | (exit $ac_status); } && |
| 12841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12843 | (eval $ac_try) 2>&5 |
| 12844 | ac_status=$? |
| 12845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12846 | (exit $ac_status); }; } && |
| 12847 | { ac_try='test -s conftest$ac_exeext' |
| 12848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12849 | (eval $ac_try) 2>&5 |
| 12850 | ac_status=$? |
| 12851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12852 | (exit $ac_status); }; }; then |
| 12853 | ac_cv_lib_artsc_arts_init=yes |
| 12854 | else |
| 12855 | echo "$as_me: failed program was:" >&5 |
| 12856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12857 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12858 | ac_cv_lib_artsc_arts_init=no |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 12859 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12860 | |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 12861 | rm -f conftest.err conftest.$ac_objext \ |
| 12862 | conftest$ac_exeext conftest.$ac_ext |
| 12863 | LIBS=$ac_check_lib_save_LIBS |
| 12864 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12865 | { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5 |
| 12866 | echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; } |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 12867 | if test $ac_cv_lib_artsc_arts_init = yes; then |
| 12868 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12869 | /* confdefs.h. */ |
| 12870 | _ACEOF |
| 12871 | cat confdefs.h >>conftest.$ac_ext |
| 12872 | cat >>conftest.$ac_ext <<_ACEOF |
| 12873 | /* end confdefs.h. */ |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12874 | #include <artsc.h> |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12875 | int |
| 12876 | main () |
| 12877 | { |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12878 | arts_stream_t stream; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12879 | ; |
| 12880 | return 0; |
| 12881 | } |
| 12882 | _ACEOF |
| 12883 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12885 | (eval $ac_compile) 2>conftest.er1 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12886 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12888 | rm -f conftest.er1 |
| 12889 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12891 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12894 | (eval $ac_try) 2>&5 |
| 12895 | ac_status=$? |
| 12896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12897 | (exit $ac_status); }; } && |
| 12898 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12900 | (eval $ac_try) 2>&5 |
| 12901 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12903 | (exit $ac_status); }; }; then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12904 | ARTSLIBS=$ARTSC_LIBS |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12905 | |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 12906 | ARTSINCL=$ARTSC_CFLAGS |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12907 | |
| 12908 | |
| 12909 | cat >>confdefs.h <<\_ACEOF |
| 12910 | #define HAVE_ARTS 1 |
| 12911 | _ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12912 | |
| 12913 | else |
| 12914 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12916 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12917 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12918 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12919 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 12921 | fi |
| 12922 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12923 | CFLAGS="$save_CFLAGS" |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 12924 | fi |
| 12925 | |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 12926 | # Extract the first word of "esd-config", so it can be a program name with args. |
| 12927 | set dummy esd-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12928 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 12930 | if test "${ac_cv_path_ESDCONFIG+set}" = set; then |
| 12931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12932 | else |
| 12933 | case $ESDCONFIG in |
| 12934 | [\\/]* | ?:[\\/]*) |
| 12935 | ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path. |
| 12936 | ;; |
| 12937 | *) |
| 12938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12939 | for as_dir in $PATH |
| 12940 | do |
| 12941 | IFS=$as_save_IFS |
| 12942 | test -z "$as_dir" && as_dir=. |
| 12943 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12944 | 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] | 12945 | ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 12946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12947 | break 2 |
| 12948 | fi |
| 12949 | done |
| 12950 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12951 | IFS=$as_save_IFS |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 12952 | |
| 12953 | ;; |
| 12954 | esac |
| 12955 | fi |
| 12956 | ESDCONFIG=$ac_cv_path_ESDCONFIG |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 12957 | if test -n "$ESDCONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12958 | { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5 |
| 12959 | echo "${ECHO_T}$ESDCONFIG" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 12960 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12961 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12962 | echo "${ECHO_T}no" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 12963 | fi |
| 12964 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12965 | |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 12966 | if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"'; |
| 12967 | then |
| 12968 | ESD_CFLAGS="" |
| 12969 | for i in `$ESDCONFIG --cflags` |
| 12970 | do |
| 12971 | case "$i" in |
| 12972 | -I*) ESD_CFLAGS="$ESD_CFLAGS $i";; |
| 12973 | esac |
| 12974 | done |
| 12975 | ESD_LIBS=`$ESDCONFIG --libs` |
| 12976 | save_CFLAGS="$CFLAGS" |
| 12977 | CFLAGS="$CFLAGS $ESD_CFLAGS" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12978 | { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5 |
| 12979 | 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] | 12980 | if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then |
| 12981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12982 | else |
| 12983 | ac_check_lib_save_LIBS=$LIBS |
| 12984 | LIBS="-lesd $LIBS" |
| 12985 | cat >conftest.$ac_ext <<_ACEOF |
| 12986 | /* confdefs.h. */ |
| 12987 | _ACEOF |
| 12988 | cat confdefs.h >>conftest.$ac_ext |
| 12989 | cat >>conftest.$ac_ext <<_ACEOF |
| 12990 | /* end confdefs.h. */ |
| 12991 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12992 | /* Override any GCC internal prototype to avoid an error. |
| 12993 | Use char because int might match the return type of a GCC |
| 12994 | builtin and then its argument prototype would still apply. */ |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 12995 | #ifdef __cplusplus |
| 12996 | extern "C" |
| 12997 | #endif |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 12998 | char esd_open_sound (); |
| 12999 | int |
| 13000 | main () |
| 13001 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13002 | return esd_open_sound (); |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13003 | ; |
| 13004 | return 0; |
| 13005 | } |
| 13006 | _ACEOF |
| 13007 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13009 | (eval $ac_link) 2>conftest.er1 |
| 13010 | ac_status=$? |
| 13011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13012 | rm -f conftest.er1 |
| 13013 | cat conftest.err >&5 |
| 13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13015 | (exit $ac_status); } && |
| 13016 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13018 | (eval $ac_try) 2>&5 |
| 13019 | ac_status=$? |
| 13020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13021 | (exit $ac_status); }; } && |
| 13022 | { ac_try='test -s conftest$ac_exeext' |
| 13023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13024 | (eval $ac_try) 2>&5 |
| 13025 | ac_status=$? |
| 13026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13027 | (exit $ac_status); }; }; then |
| 13028 | ac_cv_lib_esd_esd_open_sound=yes |
| 13029 | else |
| 13030 | echo "$as_me: failed program was:" >&5 |
| 13031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13032 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13033 | ac_cv_lib_esd_esd_open_sound=no |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13034 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13035 | |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13036 | rm -f conftest.err conftest.$ac_objext \ |
| 13037 | conftest$ac_exeext conftest.$ac_ext |
| 13038 | LIBS=$ac_check_lib_save_LIBS |
| 13039 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13040 | { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5 |
| 13041 | echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13042 | if test $ac_cv_lib_esd_esd_open_sound = yes; then |
| 13043 | ESDLIBS=$ESD_LIBS |
| 13044 | |
| 13045 | ESDINCL=$ESD_CFLAGS |
| 13046 | |
| 13047 | |
| 13048 | cat >>confdefs.h <<\_ACEOF |
| 13049 | #define HAVE_ESD 1 |
| 13050 | _ACEOF |
| 13051 | |
| 13052 | fi |
| 13053 | |
| 13054 | CFLAGS="$save_CFLAGS" |
| 13055 | fi |
| 13056 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13057 | ALSALIBS="" |
| 13058 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 13059 | 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] | 13060 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13061 | { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5 |
| 13062 | 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] | 13063 | 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] | 13064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13065 | else |
| 13066 | ac_check_lib_save_LIBS=$LIBS |
| 13067 | LIBS="-lasound $LIBS" |
| 13068 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13069 | /* confdefs.h. */ |
| 13070 | _ACEOF |
| 13071 | cat confdefs.h >>conftest.$ac_ext |
| 13072 | cat >>conftest.$ac_ext <<_ACEOF |
| 13073 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13074 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13075 | /* Override any GCC internal prototype to avoid an error. |
| 13076 | Use char because int might match the return type of a GCC |
| 13077 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13078 | #ifdef __cplusplus |
| 13079 | extern "C" |
| 13080 | #endif |
Vincent BĂ©ron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 13081 | char snd_pcm_hw_params_get_access (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13082 | int |
| 13083 | main () |
| 13084 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13085 | return snd_pcm_hw_params_get_access (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13086 | ; |
| 13087 | return 0; |
| 13088 | } |
| 13089 | _ACEOF |
| 13090 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13092 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13093 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13095 | rm -f conftest.er1 |
| 13096 | cat conftest.err >&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13098 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13101 | (eval $ac_try) 2>&5 |
| 13102 | ac_status=$? |
| 13103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13104 | (exit $ac_status); }; } && |
| 13105 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13107 | (eval $ac_try) 2>&5 |
| 13108 | ac_status=$? |
| 13109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13110 | (exit $ac_status); }; }; then |
Vincent BĂ©ron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 13111 | ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13112 | else |
| 13113 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13115 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13116 | ac_cv_lib_asound_snd_pcm_hw_params_get_access=no |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13117 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13118 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13119 | rm -f conftest.err conftest.$ac_objext \ |
| 13120 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13121 | LIBS=$ac_check_lib_save_LIBS |
| 13122 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13123 | { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5 |
| 13124 | 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] | 13125 | if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then |
| 13126 | cat >conftest.$ac_ext <<_ACEOF |
| 13127 | /* confdefs.h. */ |
| 13128 | _ACEOF |
| 13129 | cat confdefs.h >>conftest.$ac_ext |
| 13130 | cat >>conftest.$ac_ext <<_ACEOF |
| 13131 | /* end confdefs.h. */ |
| 13132 | #ifdef HAVE_ALSA_ASOUNDLIB_H |
| 13133 | #include <alsa/asoundlib.h> |
| 13134 | #elif defined(HAVE_SYS_ASOUNDLIB_H) |
| 13135 | #include <sys/asoundlib.h> |
| 13136 | #endif |
| 13137 | int |
| 13138 | main () |
| 13139 | { |
| 13140 | int ret = snd_pcm_hw_params_get_access(NULL, NULL) |
| 13141 | ; |
| 13142 | return 0; |
| 13143 | } |
| 13144 | _ACEOF |
| 13145 | rm -f conftest.$ac_objext |
| 13146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13147 | (eval $ac_compile) 2>conftest.er1 |
| 13148 | ac_status=$? |
| 13149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13150 | rm -f conftest.er1 |
| 13151 | cat conftest.err >&5 |
| 13152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13153 | (exit $ac_status); } && |
| 13154 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13156 | (eval $ac_try) 2>&5 |
| 13157 | ac_status=$? |
| 13158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13159 | (exit $ac_status); }; } && |
| 13160 | { ac_try='test -s conftest.$ac_objext' |
| 13161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13162 | (eval $ac_try) 2>&5 |
| 13163 | ac_status=$? |
| 13164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13165 | (exit $ac_status); }; }; then |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13166 | |
| 13167 | cat >>confdefs.h <<\_ACEOF |
| 13168 | #define HAVE_ALSA 1 |
| 13169 | _ACEOF |
| 13170 | |
Vincent BĂ©ron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 13171 | ALSALIBS="-lasound" |
| 13172 | else |
| 13173 | echo "$as_me: failed program was:" >&5 |
| 13174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13175 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13176 | |
Vincent BĂ©ron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 13177 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13178 | |
Vincent BĂ©ron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 13179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13180 | fi |
| 13181 | |
| 13182 | fi |
| 13183 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13184 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13185 | AUDIOIOLIBS="" |
| 13186 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 13187 | if test "$ac_cv_header_libaudioio_h" = "yes" |
| 13188 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13189 | { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
| 13190 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; } |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13191 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
| 13192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13193 | else |
| 13194 | ac_check_lib_save_LIBS=$LIBS |
| 13195 | LIBS="-laudioio $LIBS" |
| 13196 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13197 | /* confdefs.h. */ |
| 13198 | _ACEOF |
| 13199 | cat confdefs.h >>conftest.$ac_ext |
| 13200 | cat >>conftest.$ac_ext <<_ACEOF |
| 13201 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13202 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13203 | /* Override any GCC internal prototype to avoid an error. |
| 13204 | Use char because int might match the return type of a GCC |
| 13205 | builtin and then its argument prototype would still apply. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13206 | #ifdef __cplusplus |
| 13207 | extern "C" |
| 13208 | #endif |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13209 | char AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13210 | int |
| 13211 | main () |
| 13212 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13213 | return AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13214 | ; |
| 13215 | return 0; |
| 13216 | } |
| 13217 | _ACEOF |
| 13218 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13220 | (eval $ac_link) 2>conftest.er1 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13221 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13223 | rm -f conftest.er1 |
| 13224 | cat conftest.err >&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13226 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13227 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13229 | (eval $ac_try) 2>&5 |
| 13230 | ac_status=$? |
| 13231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13232 | (exit $ac_status); }; } && |
| 13233 | { ac_try='test -s conftest$ac_exeext' |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13235 | (eval $ac_try) 2>&5 |
| 13236 | ac_status=$? |
| 13237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13238 | (exit $ac_status); }; }; then |
| 13239 | ac_cv_lib_audioio_AudioIOGetVersion=yes |
| 13240 | else |
| 13241 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13243 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13244 | ac_cv_lib_audioio_AudioIOGetVersion=no |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13245 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13246 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13247 | rm -f conftest.err conftest.$ac_objext \ |
| 13248 | conftest$ac_exeext conftest.$ac_ext |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13249 | LIBS=$ac_check_lib_save_LIBS |
| 13250 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13251 | { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
| 13252 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; } |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13253 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
| 13254 | AUDIOIOLIBS="-laudioio" |
| 13255 | |
| 13256 | cat >>confdefs.h <<\_ACEOF |
| 13257 | #define HAVE_LIBAUDIOIO 1 |
| 13258 | _ACEOF |
| 13259 | |
| 13260 | fi |
| 13261 | |
| 13262 | fi |
| 13263 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13264 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 13265 | if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes" |
| 13266 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13267 | { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5 |
| 13268 | echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13269 | if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then |
| 13270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13271 | else |
| 13272 | ac_check_lib_save_LIBS=$LIBS |
| 13273 | LIBS="-lcapi20 $LIBS" |
| 13274 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13275 | /* confdefs.h. */ |
| 13276 | _ACEOF |
| 13277 | cat confdefs.h >>conftest.$ac_ext |
| 13278 | cat >>conftest.$ac_ext <<_ACEOF |
| 13279 | /* end confdefs.h. */ |
| 13280 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13281 | /* Override any GCC internal prototype to avoid an error. |
| 13282 | Use char because int might match the return type of a GCC |
| 13283 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13284 | #ifdef __cplusplus |
| 13285 | extern "C" |
| 13286 | #endif |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13287 | char capi20_register (); |
| 13288 | int |
| 13289 | main () |
| 13290 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13291 | return capi20_register (); |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13292 | ; |
| 13293 | return 0; |
| 13294 | } |
| 13295 | _ACEOF |
| 13296 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13298 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13299 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13301 | rm -f conftest.er1 |
| 13302 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13304 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13307 | (eval $ac_try) 2>&5 |
| 13308 | ac_status=$? |
| 13309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13310 | (exit $ac_status); }; } && |
| 13311 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13313 | (eval $ac_try) 2>&5 |
| 13314 | ac_status=$? |
| 13315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13316 | (exit $ac_status); }; }; then |
| 13317 | ac_cv_lib_capi20_capi20_register=yes |
| 13318 | else |
| 13319 | echo "$as_me: failed program was:" >&5 |
| 13320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13321 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13322 | ac_cv_lib_capi20_capi20_register=no |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13323 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13324 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13325 | rm -f conftest.err conftest.$ac_objext \ |
| 13326 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13327 | LIBS=$ac_check_lib_save_LIBS |
| 13328 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13329 | { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5 |
| 13330 | echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13331 | if test $ac_cv_lib_capi20_capi20_register = yes; then |
| 13332 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13333 | cat >>confdefs.h <<\_ACEOF |
| 13334 | #define HAVE_CAPI4LINUX 1 |
| 13335 | _ACEOF |
| 13336 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13337 | fi |
| 13338 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13339 | fi |
| 13340 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 13341 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 13342 | EXTRACFLAGS="" |
| 13343 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 13344 | if test "x${GCC}" = "xyes" |
| 13345 | then |
Hans Leidekker | d17b232 | 2004-01-06 21:37:44 +0000 | [diff] [blame] | 13346 | EXTRACFLAGS="-Wall -pipe" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 13347 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13348 | { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
| 13349 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13350 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 13351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 13352 | else |
| 13353 | if test "$cross_compiling" = yes; then |
| 13354 | ac_cv_c_gcc_strength_bug="yes" |
| 13355 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13356 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13357 | /* confdefs.h. */ |
| 13358 | _ACEOF |
| 13359 | cat confdefs.h >>conftest.$ac_ext |
| 13360 | cat >>conftest.$ac_ext <<_ACEOF |
| 13361 | /* end confdefs.h. */ |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 13362 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 13363 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 13364 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 13365 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 13366 | unsigned int B = 3; |
| 13367 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 13368 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 13369 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 13370 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13371 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 13372 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 13373 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13374 | _ACEOF |
| 13375 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13377 | (eval $ac_link) 2>&5 |
| 13378 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13380 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13382 | (eval $ac_try) 2>&5 |
| 13383 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13385 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 13386 | ac_cv_c_gcc_strength_bug="no" |
| 13387 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13388 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13389 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13391 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13392 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13393 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 13394 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13395 | 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] | 13396 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13397 | |
| 13398 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 13399 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13400 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
| 13401 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; } |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 13402 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 13403 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 13404 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 13405 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 13406 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13407 | { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5 |
| 13408 | 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] | 13409 | if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then |
| 13410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13411 | else |
| 13412 | ac_wine_try_cflags_saved=$CFLAGS |
| 13413 | CFLAGS="$CFLAGS -fshort-wchar" |
| 13414 | cat >conftest.$ac_ext <<_ACEOF |
| 13415 | /* confdefs.h. */ |
| 13416 | _ACEOF |
| 13417 | cat confdefs.h >>conftest.$ac_ext |
| 13418 | cat >>conftest.$ac_ext <<_ACEOF |
| 13419 | /* end confdefs.h. */ |
| 13420 | |
| 13421 | int |
| 13422 | main () |
| 13423 | { |
| 13424 | |
| 13425 | ; |
| 13426 | return 0; |
| 13427 | } |
| 13428 | _ACEOF |
| 13429 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13431 | (eval $ac_link) 2>conftest.er1 |
| 13432 | ac_status=$? |
| 13433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13434 | rm -f conftest.er1 |
| 13435 | cat conftest.err >&5 |
| 13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13437 | (exit $ac_status); } && |
| 13438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13440 | (eval $ac_try) 2>&5 |
| 13441 | ac_status=$? |
| 13442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13443 | (exit $ac_status); }; } && |
| 13444 | { ac_try='test -s conftest$ac_exeext' |
| 13445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13446 | (eval $ac_try) 2>&5 |
| 13447 | ac_status=$? |
| 13448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13449 | (exit $ac_status); }; }; then |
| 13450 | ac_cv_c_gcc_fshort_wchar="yes" |
| 13451 | else |
| 13452 | echo "$as_me: failed program was:" >&5 |
| 13453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13454 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13455 | ac_cv_c_gcc_fshort_wchar="no" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13456 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13457 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13458 | rm -f conftest.err conftest.$ac_objext \ |
| 13459 | conftest$ac_exeext conftest.$ac_ext |
| 13460 | CFLAGS=$ac_wine_try_cflags_saved |
| 13461 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13462 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5 |
| 13463 | echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13464 | if test "$ac_cv_c_gcc_fshort_wchar" = "yes" |
| 13465 | then |
| 13466 | |
| 13467 | cat >>confdefs.h <<\_ACEOF |
| 13468 | #define CC_FLAG_SHORT_WCHAR "-fshort-wchar" |
| 13469 | _ACEOF |
| 13470 | |
| 13471 | fi |
| 13472 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13473 | { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5 |
| 13474 | 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] | 13475 | if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then |
| 13476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13477 | else |
| 13478 | ac_wine_try_cflags_saved=$CFLAGS |
| 13479 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
| 13480 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 13481 | /* confdefs.h. */ |
| 13482 | _ACEOF |
| 13483 | cat confdefs.h >>conftest.$ac_ext |
| 13484 | cat >>conftest.$ac_ext <<_ACEOF |
| 13485 | /* end confdefs.h. */ |
| 13486 | |
| 13487 | int |
| 13488 | main () |
| 13489 | { |
| 13490 | |
| 13491 | ; |
| 13492 | return 0; |
| 13493 | } |
| 13494 | _ACEOF |
| 13495 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13497 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 13498 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13500 | rm -f conftest.er1 |
| 13501 | cat conftest.err >&5 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 13502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13503 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13506 | (eval $ac_try) 2>&5 |
| 13507 | ac_status=$? |
| 13508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13509 | (exit $ac_status); }; } && |
| 13510 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 13511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13512 | (eval $ac_try) 2>&5 |
| 13513 | ac_status=$? |
| 13514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13515 | (exit $ac_status); }; }; then |
| 13516 | ac_cv_c_gcc_no_strict_aliasing="yes" |
| 13517 | else |
| 13518 | echo "$as_me: failed program was:" >&5 |
| 13519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13520 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13521 | ac_cv_c_gcc_no_strict_aliasing="no" |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 13522 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13523 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13524 | rm -f conftest.err conftest.$ac_objext \ |
| 13525 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 13526 | CFLAGS=$ac_wine_try_cflags_saved |
| 13527 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13528 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5 |
| 13529 | echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; } |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 13530 | if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes" |
| 13531 | then |
| 13532 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 13533 | fi |
| 13534 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13535 | { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5 |
| 13536 | echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; } |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 13537 | if test "${ac_cv_c_gcc_gstabs+set}" = set; then |
| 13538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13539 | else |
| 13540 | ac_wine_try_cflags_saved=$CFLAGS |
| 13541 | CFLAGS="$CFLAGS -gstabs+" |
| 13542 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 13543 | /* confdefs.h. */ |
| 13544 | _ACEOF |
| 13545 | cat confdefs.h >>conftest.$ac_ext |
| 13546 | cat >>conftest.$ac_ext <<_ACEOF |
| 13547 | /* end confdefs.h. */ |
| 13548 | |
| 13549 | int |
| 13550 | main () |
| 13551 | { |
| 13552 | |
| 13553 | ; |
| 13554 | return 0; |
| 13555 | } |
| 13556 | _ACEOF |
| 13557 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13559 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 13560 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13562 | rm -f conftest.er1 |
| 13563 | cat conftest.err >&5 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 13564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13565 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13568 | (eval $ac_try) 2>&5 |
| 13569 | ac_status=$? |
| 13570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13571 | (exit $ac_status); }; } && |
| 13572 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 13573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13574 | (eval $ac_try) 2>&5 |
| 13575 | ac_status=$? |
| 13576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13577 | (exit $ac_status); }; }; then |
| 13578 | ac_cv_c_gcc_gstabs="yes" |
| 13579 | else |
| 13580 | echo "$as_me: failed program was:" >&5 |
| 13581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13582 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13583 | ac_cv_c_gcc_gstabs="no" |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 13584 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13585 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13586 | rm -f conftest.err conftest.$ac_objext \ |
| 13587 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 13588 | CFLAGS=$ac_wine_try_cflags_saved |
| 13589 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13590 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5 |
| 13591 | echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; } |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 13592 | if test "$ac_cv_c_gcc_gstabs" = "yes" |
| 13593 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 13594 | EXTRACFLAGS="$EXTRACFLAGS -gstabs+" |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 13595 | fi |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 13596 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13597 | { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5 |
| 13598 | 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] | 13599 | if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then |
| 13600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13601 | else |
| 13602 | ac_wine_try_cflags_saved=$CFLAGS |
| 13603 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
| 13604 | cat >conftest.$ac_ext <<_ACEOF |
| 13605 | /* confdefs.h. */ |
| 13606 | _ACEOF |
| 13607 | cat confdefs.h >>conftest.$ac_ext |
| 13608 | cat >>conftest.$ac_ext <<_ACEOF |
| 13609 | /* end confdefs.h. */ |
| 13610 | |
| 13611 | int |
| 13612 | main () |
| 13613 | { |
| 13614 | |
| 13615 | ; |
| 13616 | return 0; |
| 13617 | } |
| 13618 | _ACEOF |
| 13619 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13621 | (eval $ac_link) 2>conftest.er1 |
| 13622 | ac_status=$? |
| 13623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13624 | rm -f conftest.er1 |
| 13625 | cat conftest.err >&5 |
| 13626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13627 | (exit $ac_status); } && |
| 13628 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13630 | (eval $ac_try) 2>&5 |
| 13631 | ac_status=$? |
| 13632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13633 | (exit $ac_status); }; } && |
| 13634 | { ac_try='test -s conftest$ac_exeext' |
| 13635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13636 | (eval $ac_try) 2>&5 |
| 13637 | ac_status=$? |
| 13638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13639 | (exit $ac_status); }; }; then |
| 13640 | ac_cv_c_gcc_decl_after_statement="yes" |
| 13641 | else |
| 13642 | echo "$as_me: failed program was:" >&5 |
| 13643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13644 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13645 | ac_cv_c_gcc_decl_after_statement="no" |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 13646 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13647 | |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 13648 | rm -f conftest.err conftest.$ac_objext \ |
| 13649 | conftest$ac_exeext conftest.$ac_ext |
| 13650 | CFLAGS=$ac_wine_try_cflags_saved |
| 13651 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13652 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5 |
| 13653 | echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; } |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 13654 | if test "$ac_cv_c_gcc_decl_after_statement" = "yes" |
| 13655 | then |
| 13656 | EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement" |
| 13657 | fi |
| 13658 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 13659 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 13660 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13661 | { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5 |
| 13662 | 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] | 13663 | if test "${ac_cv_c_string_h_warnings+set}" = set; then |
| 13664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13665 | else |
| 13666 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 13667 | /* confdefs.h. */ |
| 13668 | _ACEOF |
| 13669 | cat confdefs.h >>conftest.$ac_ext |
| 13670 | cat >>conftest.$ac_ext <<_ACEOF |
| 13671 | /* end confdefs.h. */ |
| 13672 | #include <string.h> |
| 13673 | int |
| 13674 | main () |
| 13675 | { |
| 13676 | |
| 13677 | ; |
| 13678 | return 0; |
| 13679 | } |
| 13680 | _ACEOF |
| 13681 | rm -f conftest.$ac_objext |
| 13682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13683 | (eval $ac_compile) 2>conftest.er1 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 13684 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13686 | rm -f conftest.er1 |
| 13687 | cat conftest.err >&5 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 13688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13689 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13692 | (eval $ac_try) 2>&5 |
| 13693 | ac_status=$? |
| 13694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13695 | (exit $ac_status); }; } && |
| 13696 | { ac_try='test -s conftest.$ac_objext' |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 13697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13698 | (eval $ac_try) 2>&5 |
| 13699 | ac_status=$? |
| 13700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13701 | (exit $ac_status); }; }; then |
| 13702 | ac_cv_c_string_h_warnings=no |
| 13703 | else |
| 13704 | echo "$as_me: failed program was:" >&5 |
| 13705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13706 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13707 | ac_cv_c_string_h_warnings=yes |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 13708 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13709 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 13711 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13712 | { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5 |
| 13713 | echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; } |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 13714 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 13715 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 13716 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 13717 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 13718 | fi |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 13719 | |
| 13720 | BUILTINFLAG="" |
| 13721 | |
| 13722 | saved_CFLAGS="$CFLAGS" |
| 13723 | CFLAGS="$CFLAGS -Werror" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13724 | { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5 |
| 13725 | echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; } |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 13726 | if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then |
| 13727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13728 | else |
| 13729 | cat >conftest.$ac_ext <<_ACEOF |
| 13730 | /* confdefs.h. */ |
| 13731 | _ACEOF |
| 13732 | cat confdefs.h >>conftest.$ac_ext |
| 13733 | cat >>conftest.$ac_ext <<_ACEOF |
| 13734 | /* end confdefs.h. */ |
| 13735 | |
| 13736 | int |
| 13737 | main () |
| 13738 | { |
| 13739 | int iswlower(unsigned short); |
| 13740 | ; |
| 13741 | return 0; |
| 13742 | } |
| 13743 | _ACEOF |
| 13744 | rm -f conftest.$ac_objext |
| 13745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13746 | (eval $ac_compile) 2>conftest.er1 |
| 13747 | ac_status=$? |
| 13748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13749 | rm -f conftest.er1 |
| 13750 | cat conftest.err >&5 |
| 13751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13752 | (exit $ac_status); } && |
| 13753 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13755 | (eval $ac_try) 2>&5 |
| 13756 | ac_status=$? |
| 13757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13758 | (exit $ac_status); }; } && |
| 13759 | { ac_try='test -s conftest.$ac_objext' |
| 13760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13761 | (eval $ac_try) 2>&5 |
| 13762 | ac_status=$? |
| 13763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13764 | (exit $ac_status); }; }; then |
| 13765 | ac_cv_c_builtin_wchar_ctype=no |
| 13766 | else |
| 13767 | echo "$as_me: failed program was:" >&5 |
| 13768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13769 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13770 | ac_cv_c_builtin_wchar_ctype=yes |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 13771 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13772 | |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 13773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13774 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13775 | { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5 |
| 13776 | echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; } |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 13777 | CFLAGS="$saved_CFLAGS" |
| 13778 | if test "$ac_cv_c_builtin_wchar_ctype" = "yes" |
| 13779 | then |
| 13780 | BUILTINFLAG="" |
| 13781 | for builtin in \ |
| 13782 | iswalnum iswalpha iswcntrl iswdigit iswgraph iswlower \ |
| 13783 | iswprint iswpunct iswspace iswupper iswxdigit towlower towupper |
| 13784 | do |
| 13785 | BUILTINFLAG="$BUILTINFLAG -fno-builtin-$builtin" |
| 13786 | done |
| 13787 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 13788 | fi |
| 13789 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13790 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13791 | { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
| 13792 | 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] | 13793 | if test "${ac_cv_asm_func_def+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 13795 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13796 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13797 | /* confdefs.h. */ |
| 13798 | _ACEOF |
| 13799 | cat confdefs.h >>conftest.$ac_ext |
| 13800 | cat >>conftest.$ac_ext <<_ACEOF |
| 13801 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 13802 | 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] | 13803 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13804 | int |
| 13805 | main () |
| 13806 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 13807 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13808 | ; |
| 13809 | return 0; |
| 13810 | } |
| 13811 | _ACEOF |
| 13812 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13814 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13815 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13817 | rm -f conftest.er1 |
| 13818 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13820 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13823 | (eval $ac_try) 2>&5 |
| 13824 | ac_status=$? |
| 13825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13826 | (exit $ac_status); }; } && |
| 13827 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13829 | (eval $ac_try) 2>&5 |
| 13830 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13832 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13833 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 13834 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13835 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13837 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13838 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13839 | /* confdefs.h. */ |
| 13840 | _ACEOF |
| 13841 | cat confdefs.h >>conftest.$ac_ext |
| 13842 | cat >>conftest.$ac_ext <<_ACEOF |
| 13843 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 13844 | 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] | 13845 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13846 | int |
| 13847 | main () |
| 13848 | { |
| 13849 | |
| 13850 | ; |
| 13851 | return 0; |
| 13852 | } |
| 13853 | _ACEOF |
| 13854 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13856 | (eval $ac_link) 2>conftest.er1 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13857 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13859 | rm -f conftest.er1 |
| 13860 | cat conftest.err >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13862 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13863 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13865 | (eval $ac_try) 2>&5 |
| 13866 | ac_status=$? |
| 13867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13868 | (exit $ac_status); }; } && |
| 13869 | { ac_try='test -s conftest$ac_exeext' |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13871 | (eval $ac_try) 2>&5 |
| 13872 | ac_status=$? |
| 13873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13874 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13875 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13876 | else |
| 13877 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13879 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13880 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13881 | /* confdefs.h. */ |
| 13882 | _ACEOF |
| 13883 | cat confdefs.h >>conftest.$ac_ext |
| 13884 | cat >>conftest.$ac_ext <<_ACEOF |
| 13885 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 13886 | 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] | 13887 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13888 | int |
| 13889 | main () |
| 13890 | { |
| 13891 | |
| 13892 | ; |
| 13893 | return 0; |
| 13894 | } |
| 13895 | _ACEOF |
| 13896 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13898 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13899 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13901 | rm -f conftest.er1 |
| 13902 | cat conftest.err >&5 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13904 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13907 | (eval $ac_try) 2>&5 |
| 13908 | ac_status=$? |
| 13909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13910 | (exit $ac_status); }; } && |
| 13911 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13913 | (eval $ac_try) 2>&5 |
| 13914 | ac_status=$? |
| 13915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13916 | (exit $ac_status); }; }; then |
| 13917 | ac_cv_asm_func_def=".type 2" |
| 13918 | else |
| 13919 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13921 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13922 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13923 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13924 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13925 | rm -f conftest.err conftest.$ac_objext \ |
| 13926 | conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13927 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13928 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13929 | rm -f conftest.err conftest.$ac_objext \ |
| 13930 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13931 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13932 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13933 | rm -f conftest.err conftest.$ac_objext \ |
| 13934 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13935 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13936 | { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
| 13937 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6; } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13938 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13939 | |
| 13940 | |
| 13941 | case "$ac_cv_asm_func_def" in |
| 13942 | ".def") |
| 13943 | cat >>confdefs.h <<\_ACEOF |
| 13944 | #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] | 13945 | _ACEOF |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13946 | ;; |
| 13947 | ".type @function") |
| 13948 | cat >>confdefs.h <<\_ACEOF |
| 13949 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" |
| 13950 | _ACEOF |
| 13951 | ;; |
| 13952 | ".type 2") |
| 13953 | cat >>confdefs.h <<\_ACEOF |
| 13954 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" |
| 13955 | _ACEOF |
| 13956 | ;; |
| 13957 | *) |
| 13958 | cat >>confdefs.h <<\_ACEOF |
| 13959 | #define __ASM_FUNC(name) "" |
| 13960 | _ACEOF |
| 13961 | ;; |
| 13962 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13963 | |
| 13964 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13965 | { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5 |
| 13966 | 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] | 13967 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 13968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 13969 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13970 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13971 | /* confdefs.h. */ |
| 13972 | _ACEOF |
| 13973 | cat confdefs.h >>conftest.$ac_ext |
| 13974 | cat >>conftest.$ac_ext <<_ACEOF |
| 13975 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 13976 | 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] | 13977 | extern int ac_test; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13978 | int |
| 13979 | main () |
| 13980 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 13981 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13982 | ; |
| 13983 | return 0; |
| 13984 | } |
| 13985 | _ACEOF |
| 13986 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13988 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13989 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13991 | rm -f conftest.er1 |
| 13992 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13994 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13997 | (eval $ac_try) 2>&5 |
| 13998 | ac_status=$? |
| 13999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14000 | (exit $ac_status); }; } && |
| 14001 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14003 | (eval $ac_try) 2>&5 |
| 14004 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14006 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 14007 | ac_cv_c_extern_prefix="yes" |
| 14008 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14009 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14011 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14012 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 14013 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14014 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14015 | rm -f conftest.err conftest.$ac_objext \ |
| 14016 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 14017 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14018 | { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
| 14019 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 14020 | |
| 14021 | |
| 14022 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 14023 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 14024 | then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 14025 | cat >>confdefs.h <<\_ACEOF |
| 14026 | #define __ASM_NAME(name) "_" name |
| 14027 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14028 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 14029 | else |
| 14030 | cat >>confdefs.h <<\_ACEOF |
| 14031 | #define __ASM_NAME(name) name |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14032 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 14033 | |
| 14034 | fi |
| 14035 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14036 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14037 | DLLEXT="" |
| 14038 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 14039 | DLLFLAGS="-D_REENTRANT" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14040 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14041 | DLLIBS="" |
| 14042 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14043 | LDSHARED="" |
| 14044 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14045 | LDDLLFLAGS="" |
Alexandre Julliard | 6ac34ac | 2003-10-11 01:05:18 +0000 | [diff] [blame] | 14046 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14047 | LIBEXT="so" |
| 14048 | |
| 14049 | IMPLIBEXT="def" |
| 14050 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14051 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14052 | case $host_os in |
| 14053 | cygwin*|mingw32*) |
| 14054 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14055 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 14056 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14057 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14059 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 14060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14061 | else |
| 14062 | if test -n "$DLLTOOL"; then |
| 14063 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 14064 | else |
| 14065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14066 | for as_dir in $PATH |
| 14067 | do |
| 14068 | IFS=$as_save_IFS |
| 14069 | test -z "$as_dir" && as_dir=. |
| 14070 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14071 | 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] | 14072 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 14073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14074 | break 2 |
| 14075 | fi |
| 14076 | done |
| 14077 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14078 | IFS=$as_save_IFS |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14079 | |
| 14080 | fi |
| 14081 | fi |
| 14082 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 14083 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14084 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 14085 | echo "${ECHO_T}$DLLTOOL" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14086 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14087 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14088 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14089 | fi |
| 14090 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14091 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14092 | fi |
| 14093 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 14094 | ac_ct_DLLTOOL=$DLLTOOL |
| 14095 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 14096 | set dummy dlltool; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14097 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14099 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 14100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14101 | else |
| 14102 | if test -n "$ac_ct_DLLTOOL"; then |
| 14103 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 14104 | else |
| 14105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14106 | for as_dir in $PATH |
| 14107 | do |
| 14108 | IFS=$as_save_IFS |
| 14109 | test -z "$as_dir" && as_dir=. |
| 14110 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14111 | 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] | 14112 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 14113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14114 | break 2 |
| 14115 | fi |
| 14116 | done |
| 14117 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14118 | IFS=$as_save_IFS |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14119 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14120 | fi |
| 14121 | fi |
| 14122 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 14123 | if test -n "$ac_ct_DLLTOOL"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14124 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 14125 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14126 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14127 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14128 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14129 | fi |
| 14130 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14131 | if test "x$ac_ct_DLLTOOL" = x; then |
| 14132 | DLLTOOL="false" |
| 14133 | else |
| 14134 | case $cross_compiling:$ac_tool_warned in |
| 14135 | yes:) |
| 14136 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14137 | whose name does not start with the host triplet. If you think this |
| 14138 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14139 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14140 | whose name does not start with the host triplet. If you think this |
| 14141 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14142 | ac_tool_warned=yes ;; |
| 14143 | esac |
| 14144 | DLLTOOL=$ac_ct_DLLTOOL |
| 14145 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14146 | else |
| 14147 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 14148 | fi |
| 14149 | |
| 14150 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14151 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 14152 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14153 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14154 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14155 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 14156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14157 | else |
| 14158 | if test -n "$DLLWRAP"; then |
| 14159 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 14160 | else |
| 14161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14162 | for as_dir in $PATH |
| 14163 | do |
| 14164 | IFS=$as_save_IFS |
| 14165 | test -z "$as_dir" && as_dir=. |
| 14166 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14167 | 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] | 14168 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14169 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14170 | break 2 |
| 14171 | fi |
| 14172 | done |
| 14173 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14174 | IFS=$as_save_IFS |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14175 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14176 | fi |
| 14177 | fi |
| 14178 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 14179 | if test -n "$DLLWRAP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14180 | { echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
| 14181 | echo "${ECHO_T}$DLLWRAP" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14182 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14183 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14184 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14185 | fi |
| 14186 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14187 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14188 | fi |
| 14189 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 14190 | ac_ct_DLLWRAP=$DLLWRAP |
| 14191 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 14192 | set dummy dllwrap; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14193 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14195 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
| 14196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14197 | else |
| 14198 | if test -n "$ac_ct_DLLWRAP"; then |
| 14199 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 14200 | else |
| 14201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14202 | for as_dir in $PATH |
| 14203 | do |
| 14204 | IFS=$as_save_IFS |
| 14205 | test -z "$as_dir" && as_dir=. |
| 14206 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14207 | 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] | 14208 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 14209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14210 | break 2 |
| 14211 | fi |
| 14212 | done |
| 14213 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14214 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14215 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14216 | fi |
| 14217 | fi |
| 14218 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 14219 | if test -n "$ac_ct_DLLWRAP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14220 | { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
| 14221 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14222 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14223 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14224 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14225 | fi |
| 14226 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14227 | if test "x$ac_ct_DLLWRAP" = x; then |
| 14228 | DLLWRAP="false" |
| 14229 | else |
| 14230 | case $cross_compiling:$ac_tool_warned in |
| 14231 | yes:) |
| 14232 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14233 | whose name does not start with the host triplet. If you think this |
| 14234 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14235 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14236 | whose name does not start with the host triplet. If you think this |
| 14237 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14238 | ac_tool_warned=yes ;; |
| 14239 | esac |
| 14240 | DLLWRAP=$ac_ct_DLLWRAP |
| 14241 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14242 | else |
| 14243 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 14244 | fi |
| 14245 | |
| 14246 | if test "$DLLWRAP" = "false"; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14247 | LIBEXT="a" |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14248 | else |
| 14249 | LIBEXT="dll" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14250 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 14251 | IMPLIBEXT="a" |
Alexandre Julliard | 56a4a76 | 2004-08-12 03:27:50 +0000 | [diff] [blame] | 14252 | WIN16_FILES="" |
| 14253 | WIN16_INSTALL="" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14254 | ;; |
| 14255 | *) |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 14256 | if test "$ac_cv_header_dlfcn_h" = "yes" |
| 14257 | then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14258 | |
| 14259 | for ac_func in dlopen |
| 14260 | do |
| 14261 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14262 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14263 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14264 | 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] | 14265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14266 | else |
| 14267 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14268 | /* confdefs.h. */ |
| 14269 | _ACEOF |
| 14270 | cat confdefs.h >>conftest.$ac_ext |
| 14271 | cat >>conftest.$ac_ext <<_ACEOF |
| 14272 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14273 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14274 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14275 | #define $ac_func innocuous_$ac_func |
| 14276 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14277 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14278 | which can conflict with char $ac_func (); below. |
| 14279 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14280 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14281 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14282 | #ifdef __STDC__ |
| 14283 | # include <limits.h> |
| 14284 | #else |
| 14285 | # include <assert.h> |
| 14286 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14287 | |
| 14288 | #undef $ac_func |
| 14289 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14290 | /* Override any GCC internal prototype to avoid an error. |
| 14291 | Use char because int might match the return type of a GCC |
| 14292 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14293 | #ifdef __cplusplus |
| 14294 | extern "C" |
| 14295 | #endif |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14296 | char $ac_func (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14297 | /* The GNU C library defines this for functions which it implements |
| 14298 | to always fail with ENOSYS. Some functions are actually named |
| 14299 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14300 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14301 | choke me |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14302 | #endif |
| 14303 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14304 | int |
| 14305 | main () |
| 14306 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14307 | return $ac_func (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14308 | ; |
| 14309 | return 0; |
| 14310 | } |
| 14311 | _ACEOF |
| 14312 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14314 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14315 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14317 | rm -f conftest.er1 |
| 14318 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14320 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14323 | (eval $ac_try) 2>&5 |
| 14324 | ac_status=$? |
| 14325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14326 | (exit $ac_status); }; } && |
| 14327 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14329 | (eval $ac_try) 2>&5 |
| 14330 | ac_status=$? |
| 14331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14332 | (exit $ac_status); }; }; then |
| 14333 | eval "$as_ac_var=yes" |
| 14334 | else |
| 14335 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14337 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14338 | eval "$as_ac_var=no" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14339 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14340 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14341 | rm -f conftest.err conftest.$ac_objext \ |
| 14342 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14343 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14344 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14345 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14346 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14347 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14348 | cat >>confdefs.h <<_ACEOF |
| 14349 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14350 | _ACEOF |
| 14351 | |
| 14352 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14353 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14354 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14355 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14357 | else |
| 14358 | ac_check_lib_save_LIBS=$LIBS |
| 14359 | LIBS="-ldl $LIBS" |
| 14360 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14361 | /* confdefs.h. */ |
| 14362 | _ACEOF |
| 14363 | cat confdefs.h >>conftest.$ac_ext |
| 14364 | cat >>conftest.$ac_ext <<_ACEOF |
| 14365 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14366 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14367 | /* Override any GCC internal prototype to avoid an error. |
| 14368 | Use char because int might match the return type of a GCC |
| 14369 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14370 | #ifdef __cplusplus |
| 14371 | extern "C" |
| 14372 | #endif |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14373 | char dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14374 | int |
| 14375 | main () |
| 14376 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14377 | return dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14378 | ; |
| 14379 | return 0; |
| 14380 | } |
| 14381 | _ACEOF |
| 14382 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14384 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14385 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14387 | rm -f conftest.er1 |
| 14388 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14390 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14391 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14393 | (eval $ac_try) 2>&5 |
| 14394 | ac_status=$? |
| 14395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14396 | (exit $ac_status); }; } && |
| 14397 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14399 | (eval $ac_try) 2>&5 |
| 14400 | ac_status=$? |
| 14401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14402 | (exit $ac_status); }; }; then |
| 14403 | ac_cv_lib_dl_dlopen=yes |
| 14404 | else |
| 14405 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14407 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14408 | ac_cv_lib_dl_dlopen=no |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14409 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14410 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14411 | rm -f conftest.err conftest.$ac_objext \ |
| 14412 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14413 | LIBS=$ac_check_lib_save_LIBS |
| 14414 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14415 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14416 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14417 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 14418 | |
| 14419 | cat >>confdefs.h <<\_ACEOF |
| 14420 | #define HAVE_DLOPEN 1 |
| 14421 | _ACEOF |
| 14422 | |
| 14423 | DLLIBS="-ldl" |
| 14424 | else |
| 14425 | LIBEXT="a" |
| 14426 | fi |
| 14427 | |
| 14428 | fi |
| 14429 | done |
| 14430 | |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 14431 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 14432 | LIBS="$LIBS $DLLIBS" |
| 14433 | |
| 14434 | for ac_func in dladdr |
| 14435 | do |
| 14436 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14437 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14438 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14439 | 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] | 14440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14441 | else |
| 14442 | cat >conftest.$ac_ext <<_ACEOF |
| 14443 | /* confdefs.h. */ |
| 14444 | _ACEOF |
| 14445 | cat confdefs.h >>conftest.$ac_ext |
| 14446 | cat >>conftest.$ac_ext <<_ACEOF |
| 14447 | /* end confdefs.h. */ |
| 14448 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14449 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14450 | #define $ac_func innocuous_$ac_func |
| 14451 | |
| 14452 | /* System header to define __stub macros and hopefully few prototypes, |
| 14453 | which can conflict with char $ac_func (); below. |
| 14454 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14455 | <limits.h> exists even on freestanding compilers. */ |
| 14456 | |
| 14457 | #ifdef __STDC__ |
| 14458 | # include <limits.h> |
| 14459 | #else |
| 14460 | # include <assert.h> |
| 14461 | #endif |
| 14462 | |
| 14463 | #undef $ac_func |
| 14464 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14465 | /* Override any GCC internal prototype to avoid an error. |
| 14466 | Use char because int might match the return type of a GCC |
| 14467 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 14468 | #ifdef __cplusplus |
| 14469 | extern "C" |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 14470 | #endif |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 14471 | char $ac_func (); |
| 14472 | /* The GNU C library defines this for functions which it implements |
| 14473 | to always fail with ENOSYS. Some functions are actually named |
| 14474 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14475 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 14476 | choke me |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 14477 | #endif |
| 14478 | |
| 14479 | int |
| 14480 | main () |
| 14481 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14482 | return $ac_func (); |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 14483 | ; |
| 14484 | return 0; |
| 14485 | } |
| 14486 | _ACEOF |
| 14487 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14489 | (eval $ac_link) 2>conftest.er1 |
| 14490 | ac_status=$? |
| 14491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14492 | rm -f conftest.er1 |
| 14493 | cat conftest.err >&5 |
| 14494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14495 | (exit $ac_status); } && |
| 14496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14498 | (eval $ac_try) 2>&5 |
| 14499 | ac_status=$? |
| 14500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14501 | (exit $ac_status); }; } && |
| 14502 | { ac_try='test -s conftest$ac_exeext' |
| 14503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14504 | (eval $ac_try) 2>&5 |
| 14505 | ac_status=$? |
| 14506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14507 | (exit $ac_status); }; }; then |
| 14508 | eval "$as_ac_var=yes" |
| 14509 | else |
| 14510 | echo "$as_me: failed program was:" >&5 |
| 14511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14512 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14513 | eval "$as_ac_var=no" |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 14514 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14515 | |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 14516 | rm -f conftest.err conftest.$ac_objext \ |
| 14517 | conftest$ac_exeext conftest.$ac_ext |
| 14518 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14519 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14520 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14521 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 14522 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14523 | cat >>confdefs.h <<_ACEOF |
| 14524 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14525 | _ACEOF |
| 14526 | |
| 14527 | fi |
| 14528 | done |
| 14529 | |
| 14530 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 14531 | else |
| 14532 | LIBEXT="a" |
| 14533 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14534 | |
| 14535 | if test "$LIBEXT" = "so" |
| 14536 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 14537 | DLLFLAGS="$DLLFLAGS -fPIC" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14538 | DLLEXT=".so" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14539 | { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5 |
| 14540 | 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] | 14541 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 14542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14543 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14544 | ac_wine_try_cflags_saved=$CFLAGS |
| 14545 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" |
| 14546 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 14547 | void myfunc() {} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14548 | _ACEOF |
| 14549 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14551 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14552 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14554 | rm -f conftest.er1 |
| 14555 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14557 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14558 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14560 | (eval $ac_try) 2>&5 |
| 14561 | ac_status=$? |
| 14562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14563 | (exit $ac_status); }; } && |
| 14564 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14566 | (eval $ac_try) 2>&5 |
| 14567 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14569 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 14570 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14571 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14572 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14574 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14575 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14576 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14577 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14578 | rm -f conftest.err conftest.$ac_objext \ |
| 14579 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14580 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14581 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14582 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
| 14583 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14584 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 14585 | then |
| 14586 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14587 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14588 | { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5 |
| 14589 | 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] | 14590 | if test "${ac_cv_c_dll_zdefs+set}" = set; then |
| 14591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14592 | else |
| 14593 | ac_wine_try_cflags_saved=$CFLAGS |
| 14594 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
| 14595 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14596 | /* confdefs.h. */ |
| 14597 | _ACEOF |
| 14598 | cat confdefs.h >>conftest.$ac_ext |
| 14599 | cat >>conftest.$ac_ext <<_ACEOF |
| 14600 | /* end confdefs.h. */ |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14601 | |
| 14602 | int |
| 14603 | main () |
| 14604 | { |
| 14605 | |
| 14606 | ; |
| 14607 | return 0; |
| 14608 | } |
| 14609 | _ACEOF |
| 14610 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14612 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14613 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14615 | rm -f conftest.er1 |
| 14616 | cat conftest.err >&5 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14618 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14619 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14621 | (eval $ac_try) 2>&5 |
| 14622 | ac_status=$? |
| 14623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14624 | (exit $ac_status); }; } && |
| 14625 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14627 | (eval $ac_try) 2>&5 |
| 14628 | ac_status=$? |
| 14629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14630 | (exit $ac_status); }; }; then |
| 14631 | ac_cv_c_dll_zdefs="yes" |
| 14632 | else |
| 14633 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14635 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14636 | ac_cv_c_dll_zdefs="no" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14637 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14638 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14639 | rm -f conftest.err conftest.$ac_objext \ |
| 14640 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14641 | CFLAGS=$ac_wine_try_cflags_saved |
| 14642 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14643 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5 |
| 14644 | echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; } |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14645 | if test "$ac_cv_c_dll_zdefs" = "yes" |
| 14646 | then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14647 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14648 | fi |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 14649 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14650 | { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5 |
| 14651 | 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] | 14652 | if test "${ac_cv_c_dll_init_fini+set}" = set; then |
| 14653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14654 | else |
| 14655 | ac_wine_try_cflags_saved=$CFLAGS |
| 14656 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 14657 | cat >conftest.$ac_ext <<_ACEOF |
| 14658 | /* confdefs.h. */ |
| 14659 | _ACEOF |
| 14660 | cat confdefs.h >>conftest.$ac_ext |
| 14661 | cat >>conftest.$ac_ext <<_ACEOF |
| 14662 | /* end confdefs.h. */ |
| 14663 | |
| 14664 | int |
| 14665 | main () |
| 14666 | { |
| 14667 | |
| 14668 | ; |
| 14669 | return 0; |
| 14670 | } |
| 14671 | _ACEOF |
| 14672 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14674 | (eval $ac_link) 2>conftest.er1 |
| 14675 | ac_status=$? |
| 14676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14677 | rm -f conftest.er1 |
| 14678 | cat conftest.err >&5 |
| 14679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14680 | (exit $ac_status); } && |
| 14681 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14683 | (eval $ac_try) 2>&5 |
| 14684 | ac_status=$? |
| 14685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14686 | (exit $ac_status); }; } && |
| 14687 | { ac_try='test -s conftest$ac_exeext' |
| 14688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14689 | (eval $ac_try) 2>&5 |
| 14690 | ac_status=$? |
| 14691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14692 | (exit $ac_status); }; }; then |
| 14693 | ac_cv_c_dll_init_fini="yes" |
| 14694 | else |
| 14695 | echo "$as_me: failed program was:" >&5 |
| 14696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14697 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14698 | ac_cv_c_dll_init_fini="no" |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 14699 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14700 | |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 14701 | rm -f conftest.err conftest.$ac_objext \ |
| 14702 | conftest$ac_exeext conftest.$ac_ext |
| 14703 | CFLAGS=$ac_wine_try_cflags_saved |
| 14704 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14705 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5 |
| 14706 | echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; } |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 14707 | if test "$ac_cv_c_dll_init_fini" = "yes" |
| 14708 | then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14709 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 14710 | fi |
| 14711 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14712 | { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5 |
| 14713 | 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] | 14714 | if test "${ac_cv_c_ld_version_scripts+set}" = set; then |
| 14715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14716 | else |
| 14717 | echo '{ global: *; };' >conftest.map |
| 14718 | ac_wine_try_cflags_saved=$CFLAGS |
| 14719 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
| 14720 | cat >conftest.$ac_ext <<_ACEOF |
| 14721 | /* confdefs.h. */ |
| 14722 | _ACEOF |
| 14723 | cat confdefs.h >>conftest.$ac_ext |
| 14724 | cat >>conftest.$ac_ext <<_ACEOF |
| 14725 | /* end confdefs.h. */ |
| 14726 | |
| 14727 | int |
| 14728 | main () |
| 14729 | { |
| 14730 | |
| 14731 | ; |
| 14732 | return 0; |
| 14733 | } |
| 14734 | _ACEOF |
| 14735 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14737 | (eval $ac_link) 2>conftest.er1 |
| 14738 | ac_status=$? |
| 14739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14740 | rm -f conftest.er1 |
| 14741 | cat conftest.err >&5 |
| 14742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14743 | (exit $ac_status); } && |
| 14744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14746 | (eval $ac_try) 2>&5 |
| 14747 | ac_status=$? |
| 14748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14749 | (exit $ac_status); }; } && |
| 14750 | { ac_try='test -s conftest$ac_exeext' |
| 14751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14752 | (eval $ac_try) 2>&5 |
| 14753 | ac_status=$? |
| 14754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14755 | (exit $ac_status); }; }; then |
| 14756 | ac_cv_c_ld_version_scripts="yes" |
| 14757 | else |
| 14758 | echo "$as_me: failed program was:" >&5 |
| 14759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14760 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14761 | ac_cv_c_ld_version_scripts="no" |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 14762 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14763 | |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 14764 | rm -f conftest.err conftest.$ac_objext \ |
| 14765 | conftest$ac_exeext conftest.$ac_ext |
| 14766 | CFLAGS=$ac_wine_try_cflags_saved |
| 14767 | rm -f conftest.map |
| 14768 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14769 | { echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5 |
| 14770 | echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; } |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 14771 | if test "$ac_cv_c_ld_version_scripts" = "yes" |
| 14772 | then |
| 14773 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" |
| 14774 | fi |
| 14775 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14776 | { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5 |
| 14777 | 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] | 14778 | if test "${ac_cv_c_export_dynamic+set}" = set; then |
| 14779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14780 | else |
| 14781 | ac_wine_try_cflags_saved=$CFLAGS |
| 14782 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
| 14783 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14784 | /* confdefs.h. */ |
| 14785 | _ACEOF |
| 14786 | cat confdefs.h >>conftest.$ac_ext |
| 14787 | cat >>conftest.$ac_ext <<_ACEOF |
| 14788 | /* end confdefs.h. */ |
| 14789 | |
| 14790 | int |
| 14791 | main () |
| 14792 | { |
| 14793 | |
| 14794 | ; |
| 14795 | return 0; |
| 14796 | } |
| 14797 | _ACEOF |
| 14798 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14800 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14801 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14803 | rm -f conftest.er1 |
| 14804 | cat conftest.err >&5 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14806 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14807 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14809 | (eval $ac_try) 2>&5 |
| 14810 | ac_status=$? |
| 14811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14812 | (exit $ac_status); }; } && |
| 14813 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14815 | (eval $ac_try) 2>&5 |
| 14816 | ac_status=$? |
| 14817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14818 | (exit $ac_status); }; }; then |
| 14819 | ac_cv_c_export_dynamic="yes" |
| 14820 | else |
| 14821 | echo "$as_me: failed program was:" >&5 |
| 14822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14823 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14824 | ac_cv_c_export_dynamic="no" |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14825 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14826 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14827 | rm -f conftest.err conftest.$ac_objext \ |
| 14828 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14829 | CFLAGS=$ac_wine_try_cflags_saved |
| 14830 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14831 | { echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5 |
| 14832 | echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; } |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14833 | if test "$ac_cv_c_export_dynamic" = "yes" |
| 14834 | then |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14835 | LDEXECFLAGS="-Wl,--export-dynamic" |
| 14836 | |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14837 | fi |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14838 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14839 | { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5 |
| 14840 | echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; } |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 14841 | if test "${ac_cv_ld_rpath+set}" = set; then |
| 14842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14843 | else |
| 14844 | ac_wine_try_cflags_saved=$CFLAGS |
| 14845 | CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib" |
| 14846 | cat >conftest.$ac_ext <<_ACEOF |
| 14847 | /* confdefs.h. */ |
| 14848 | _ACEOF |
| 14849 | cat confdefs.h >>conftest.$ac_ext |
| 14850 | cat >>conftest.$ac_ext <<_ACEOF |
| 14851 | /* end confdefs.h. */ |
| 14852 | |
| 14853 | int |
| 14854 | main () |
| 14855 | { |
| 14856 | |
| 14857 | ; |
| 14858 | return 0; |
| 14859 | } |
| 14860 | _ACEOF |
| 14861 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14863 | (eval $ac_link) 2>conftest.er1 |
| 14864 | ac_status=$? |
| 14865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14866 | rm -f conftest.er1 |
| 14867 | cat conftest.err >&5 |
| 14868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14869 | (exit $ac_status); } && |
| 14870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14872 | (eval $ac_try) 2>&5 |
| 14873 | ac_status=$? |
| 14874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14875 | (exit $ac_status); }; } && |
| 14876 | { ac_try='test -s conftest$ac_exeext' |
| 14877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14878 | (eval $ac_try) 2>&5 |
| 14879 | ac_status=$? |
| 14880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14881 | (exit $ac_status); }; }; then |
| 14882 | ac_cv_ld_rpath="yes" |
| 14883 | else |
| 14884 | echo "$as_me: failed program was:" >&5 |
| 14885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14886 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14887 | ac_cv_ld_rpath="no" |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 14888 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14889 | |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 14890 | rm -f conftest.err conftest.$ac_objext \ |
| 14891 | conftest$ac_exeext conftest.$ac_ext |
| 14892 | CFLAGS=$ac_wine_try_cflags_saved |
| 14893 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14894 | { echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5 |
| 14895 | echo "${ECHO_T}$ac_cv_ld_rpath" >&6; } |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 14896 | if test "$ac_cv_ld_rpath" = "yes" |
| 14897 | then |
| 14898 | LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
| 14899 | |
Alexandre Julliard | 1fd32cf | 2006-03-20 22:08:26 +0100 | [diff] [blame] | 14900 | LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`" |
| 14901 | |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 14902 | fi |
| 14903 | |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14904 | case $host_cpu in |
| 14905 | *i[3456789]86*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14906 | { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5 |
| 14907 | 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] | 14908 | if test "${ac_cv_ld_reloc_exec+set}" = set; then |
| 14909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14910 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14911 | ac_wine_try_cflags_saved=$CFLAGS |
Alexandre Julliard | 5729f58 | 2005-06-17 10:22:46 +0000 | [diff] [blame] | 14912 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400" |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14913 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14914 | /* confdefs.h. */ |
| 14915 | _ACEOF |
| 14916 | cat confdefs.h >>conftest.$ac_ext |
| 14917 | cat >>conftest.$ac_ext <<_ACEOF |
| 14918 | /* end confdefs.h. */ |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14919 | |
| 14920 | int |
| 14921 | main () |
| 14922 | { |
| 14923 | |
| 14924 | ; |
| 14925 | return 0; |
| 14926 | } |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14927 | _ACEOF |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14928 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14930 | (eval $ac_link) 2>conftest.er1 |
| 14931 | ac_status=$? |
| 14932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14933 | rm -f conftest.er1 |
| 14934 | cat conftest.err >&5 |
| 14935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14936 | (exit $ac_status); } && |
| 14937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14939 | (eval $ac_try) 2>&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14940 | ac_status=$? |
| 14941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14942 | (exit $ac_status); }; } && |
| 14943 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14945 | (eval $ac_try) 2>&5 |
| 14946 | ac_status=$? |
| 14947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14948 | (exit $ac_status); }; }; then |
| 14949 | ac_cv_ld_reloc_exec="yes" |
| 14950 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14951 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14953 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14954 | ac_cv_ld_reloc_exec="no" |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14955 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14956 | |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14957 | rm -f conftest.err conftest.$ac_objext \ |
| 14958 | conftest$ac_exeext conftest.$ac_ext |
| 14959 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14960 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14961 | { echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5 |
| 14962 | echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; } |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14963 | if test "$ac_cv_ld_reloc_exec" = "yes" |
| 14964 | then |
Alexandre Julliard | 5729f58 | 2005-06-17 10:22:46 +0000 | [diff] [blame] | 14965 | LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14966 | fi |
| 14967 | ;; |
| 14968 | esac |
| 14969 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14970 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14971 | { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5 |
| 14972 | 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] | 14973 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 14974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 14975 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14976 | ac_wine_try_cflags_saved=$CFLAGS |
| 14977 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
| 14978 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 14979 | void myfunc() {} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14980 | _ACEOF |
| 14981 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14983 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14984 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14986 | rm -f conftest.er1 |
| 14987 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14989 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14990 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14992 | (eval $ac_try) 2>&5 |
| 14993 | ac_status=$? |
| 14994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14995 | (exit $ac_status); }; } && |
| 14996 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14998 | (eval $ac_try) 2>&5 |
| 14999 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15001 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 15002 | ac_cv_c_dll_unixware="yes" |
| 15003 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15004 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15006 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15007 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 15008 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15009 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15010 | rm -f conftest.err conftest.$ac_objext \ |
| 15011 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15012 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15013 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15014 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
| 15015 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15016 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 15017 | then |
| 15018 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 15019 | LDDLLFLAGS="-Wl,-G,-B,symbolic" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 15020 | |
| 15021 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15022 | { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5 |
| 15023 | 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] | 15024 | if test "${ac_cv_c_dll_macho+set}" = set; then |
| 15025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15026 | else |
| 15027 | ac_wine_try_cflags_saved=$CFLAGS |
| 15028 | CFLAGS="$CFLAGS -bundle" |
| 15029 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 15030 | void myfunc() {} |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 15031 | _ACEOF |
| 15032 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15034 | (eval $ac_link) 2>conftest.er1 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 15035 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15037 | rm -f conftest.er1 |
| 15038 | cat conftest.err >&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 15039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15040 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15043 | (eval $ac_try) 2>&5 |
| 15044 | ac_status=$? |
| 15045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15046 | (exit $ac_status); }; } && |
| 15047 | { ac_try='test -s conftest$ac_exeext' |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 15048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15049 | (eval $ac_try) 2>&5 |
| 15050 | ac_status=$? |
| 15051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15052 | (exit $ac_status); }; }; then |
| 15053 | ac_cv_c_dll_macho="yes" |
| 15054 | else |
| 15055 | echo "$as_me: failed program was:" >&5 |
| 15056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15057 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15058 | ac_cv_c_dll_macho="no" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 15059 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15060 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15061 | rm -f conftest.err conftest.$ac_objext \ |
| 15062 | conftest$ac_exeext conftest.$ac_ext |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 15063 | CFLAGS=$ac_wine_try_cflags_saved |
| 15064 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15065 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5 |
| 15066 | echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; } |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 15067 | if test "$ac_cv_c_dll_macho" = "yes" |
| 15068 | then |
| 15069 | LIBEXT="dylib" |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 15070 | LDDLLFLAGS="-bundle" |
Alexandre Julliard | 7ed7e8f | 2006-05-15 15:14:45 +0200 | [diff] [blame] | 15071 | 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] | 15072 | STRIP="$STRIP -u -r" |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 15073 | COREFOUNDATIONLIB="-framework CoreFoundation" |
Emmanuel Maillard | 46718f8 | 2004-07-22 19:48:41 +0000 | [diff] [blame] | 15074 | |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 15075 | IOKITLIB="-framework IOKit -framework CoreFoundation" |
Emmanuel Maillard | 46718f8 | 2004-07-22 19:48:41 +0000 | [diff] [blame] | 15076 | |
Emmanuel Maillard | aaae660 | 2006-02-15 13:52:02 +0100 | [diff] [blame] | 15077 | LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7ffe0000" |
Emmanuel Maillard | 2300ce6 | 2004-08-19 01:20:45 +0000 | [diff] [blame] | 15078 | |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 15079 | if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes" |
| 15080 | then |
| 15081 | COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices" |
| 15082 | |
| 15083 | fi |
Emmanuel Maillard | aaae660 | 2006-02-15 13:52:02 +0100 | [diff] [blame] | 15084 | case $host_cpu in |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 15085 | *powerpc*) |
| 15086 | CFLAGS="$CFLAGS -ffixed-r13" |
| 15087 | LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 15088 | ;; |
| 15089 | esac |
| 15090 | |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 15091 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15092 | { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5 |
| 15093 | 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] | 15094 | if test "${ac_cv_c_dll_hpux+set}" = set; then |
| 15095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15096 | else |
| 15097 | ac_wine_try_cflags_saved=$CFLAGS |
| 15098 | CFLAGS="$CFLAGS -shared" |
| 15099 | cat >conftest.$ac_ext <<_ACEOF |
| 15100 | void myfunc() {} |
| 15101 | _ACEOF |
| 15102 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15104 | (eval $ac_link) 2>conftest.er1 |
| 15105 | ac_status=$? |
| 15106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15107 | rm -f conftest.er1 |
| 15108 | cat conftest.err >&5 |
| 15109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15110 | (exit $ac_status); } && |
| 15111 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15113 | (eval $ac_try) 2>&5 |
| 15114 | ac_status=$? |
| 15115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15116 | (exit $ac_status); }; } && |
| 15117 | { ac_try='test -s conftest$ac_exeext' |
| 15118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15119 | (eval $ac_try) 2>&5 |
| 15120 | ac_status=$? |
| 15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15122 | (exit $ac_status); }; }; then |
| 15123 | ac_cv_c_dll_hpux="yes" |
| 15124 | else |
| 15125 | echo "$as_me: failed program was:" >&5 |
| 15126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15127 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15128 | ac_cv_c_dll_hpux="no" |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 15129 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15130 | |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 15131 | rm -f conftest.err conftest.$ac_objext \ |
| 15132 | conftest$ac_exeext conftest.$ac_ext |
| 15133 | CFLAGS=$ac_wine_try_cflags_saved |
| 15134 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15135 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5 |
| 15136 | echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; } |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 15137 | if test "$ac_cv_c_dll_hpux" = "yes" |
| 15138 | then |
| 15139 | LIBEXT="sl" |
Warren Baird | 1023fe3 | 2004-10-19 21:37:09 +0000 | [diff] [blame] | 15140 | DLLEXT=".sl" |
| 15141 | LDDLLFLAGS="-shared -fPIC" |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 15142 | LDSHARED="\$(CC) -shared" |
| 15143 | fi |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 15144 | fi |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15145 | fi |
| 15146 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15147 | fi |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 15148 | |
| 15149 | CROSSTEST="" |
| 15150 | |
| 15151 | if test "$cross_compiling" = "no" |
| 15152 | then |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 15153 | 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] | 15154 | do |
| 15155 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 15156 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15157 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 15159 | if test "${ac_cv_prog_CROSSCC+set}" = set; then |
| 15160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15161 | else |
| 15162 | if test -n "$CROSSCC"; then |
| 15163 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 15164 | else |
| 15165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15166 | for as_dir in $PATH |
| 15167 | do |
| 15168 | IFS=$as_save_IFS |
| 15169 | test -z "$as_dir" && as_dir=. |
| 15170 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15171 | 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] | 15172 | ac_cv_prog_CROSSCC="$ac_prog" |
| 15173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15174 | break 2 |
| 15175 | fi |
| 15176 | done |
| 15177 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15178 | IFS=$as_save_IFS |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 15179 | |
| 15180 | fi |
| 15181 | fi |
| 15182 | CROSSCC=$ac_cv_prog_CROSSCC |
| 15183 | if test -n "$CROSSCC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15184 | { echo "$as_me:$LINENO: result: $CROSSCC" >&5 |
| 15185 | echo "${ECHO_T}$CROSSCC" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 15186 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15187 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15188 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 15189 | fi |
| 15190 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15191 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 15192 | test -n "$CROSSCC" && break |
| 15193 | done |
| 15194 | test -n "$CROSSCC" || CROSSCC="false" |
| 15195 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 15196 | 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] | 15197 | do |
| 15198 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 15199 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15200 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 15202 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 15203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15204 | else |
| 15205 | if test -n "$DLLTOOL"; then |
| 15206 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 15207 | else |
| 15208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15209 | for as_dir in $PATH |
| 15210 | do |
| 15211 | IFS=$as_save_IFS |
| 15212 | test -z "$as_dir" && as_dir=. |
| 15213 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15214 | 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] | 15215 | ac_cv_prog_DLLTOOL="$ac_prog" |
| 15216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15217 | break 2 |
| 15218 | fi |
| 15219 | done |
| 15220 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15221 | IFS=$as_save_IFS |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 15222 | |
| 15223 | fi |
| 15224 | fi |
| 15225 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 15226 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15227 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 15228 | echo "${ECHO_T}$DLLTOOL" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 15229 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15230 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15231 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 15232 | fi |
| 15233 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15234 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 15235 | test -n "$DLLTOOL" && break |
| 15236 | done |
| 15237 | test -n "$DLLTOOL" || DLLTOOL="false" |
| 15238 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 15239 | 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] | 15240 | do |
| 15241 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 15242 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15243 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15244 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 15245 | if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then |
| 15246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15247 | else |
| 15248 | if test -n "$CROSSWINDRES"; then |
| 15249 | ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test. |
| 15250 | else |
| 15251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15252 | for as_dir in $PATH |
| 15253 | do |
| 15254 | IFS=$as_save_IFS |
| 15255 | test -z "$as_dir" && as_dir=. |
| 15256 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15257 | 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] | 15258 | ac_cv_prog_CROSSWINDRES="$ac_prog" |
| 15259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15260 | break 2 |
| 15261 | fi |
| 15262 | done |
| 15263 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15264 | IFS=$as_save_IFS |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 15265 | |
| 15266 | fi |
| 15267 | fi |
| 15268 | CROSSWINDRES=$ac_cv_prog_CROSSWINDRES |
| 15269 | if test -n "$CROSSWINDRES"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15270 | { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5 |
| 15271 | echo "${ECHO_T}$CROSSWINDRES" >&6; } |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 15272 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15273 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15274 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 15275 | fi |
| 15276 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15277 | |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 15278 | test -n "$CROSSWINDRES" && break |
| 15279 | done |
| 15280 | test -n "$CROSSWINDRES" || CROSSWINDRES="false" |
| 15281 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 15282 | if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi |
| 15283 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15284 | ;; |
| 15285 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 15286 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 15287 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15288 | { { 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] | 15289 | It is currently not possible to build Wine without shared library |
| 15290 | (.so) support to allow transparent switch between .so and .dll files. |
| 15291 | If you are using Linux, you will need a newer binutils. |
| 15292 | " >&5 |
| 15293 | echo "$as_me: error: could not find a way to build shared libraries. |
| 15294 | It is currently not possible to build Wine without shared library |
| 15295 | (.so) support to allow transparent switch between .so and .dll files. |
| 15296 | If you are using Linux, you will need a newer binutils. |
| 15297 | " >&2;} |
| 15298 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 15299 | fi |
| 15300 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15301 | case $build_os in |
| 15302 | cygwin*|mingw32*) |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 15303 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15304 | ;; |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 15305 | darwin*|macosx*) |
| 15306 | LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\"" |
| 15307 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15308 | *) |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 15309 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15310 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15311 | esac |
| 15312 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15313 | case $host_os in |
| 15314 | mingw32*) |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 15315 | CRTLIBS="-lmsvcrt" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 15316 | |
| 15317 | SOCKETLIBS="-lws2_32" |
| 15318 | |
| 15319 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 15320 | esac |
| 15321 | |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 15322 | case $host_cpu in |
| 15323 | *i[3456789]86*) |
| 15324 | case $host_os in |
| 15325 | linux* | k*bsd*-gnu) |
| 15326 | MAIN_BINARY="wine-glibc" |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 15327 | |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 15328 | EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader" |
| 15329 | ;; |
Gerald Pfeifer | a82e245 | 2006-04-16 17:21:49 +0200 | [diff] [blame] | 15330 | darwin*|freebsd*) |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 15331 | MAIN_BINARY="wine-pthread" |
| 15332 | ;; |
| 15333 | *) |
| 15334 | MAIN_BINARY="wine-kthread" |
| 15335 | ;; |
| 15336 | esac |
Emmanuel Maillard | 3bc8d2e | 2004-07-19 20:11:10 +0000 | [diff] [blame] | 15337 | ;; |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 15338 | *) MAIN_BINARY="wine-pthread" |
Alexandre Julliard | 2663917 | 2006-02-17 14:12:29 +0100 | [diff] [blame] | 15339 | ;; |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15340 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15341 | |
| 15342 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15343 | if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15344 | then |
| 15345 | # Extract the first word of "ldd", so it can be a program name with args. |
| 15346 | set dummy ldd; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15347 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15349 | if test "${ac_cv_path_LDD+set}" = set; then |
| 15350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15351 | else |
| 15352 | case $LDD in |
| 15353 | [\\/]* | ?:[\\/]*) |
| 15354 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 15355 | ;; |
| 15356 | *) |
| 15357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15358 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 15359 | for as_dir in $as_dummy |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15360 | do |
| 15361 | IFS=$as_save_IFS |
| 15362 | test -z "$as_dir" && as_dir=. |
| 15363 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15364 | 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] | 15365 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
| 15366 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15367 | break 2 |
| 15368 | fi |
| 15369 | done |
| 15370 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15371 | IFS=$as_save_IFS |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15372 | |
| 15373 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 15374 | ;; |
| 15375 | esac |
| 15376 | fi |
| 15377 | LDD=$ac_cv_path_LDD |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15378 | if test -n "$LDD"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15379 | { echo "$as_me:$LINENO: result: $LDD" >&5 |
| 15380 | echo "${ECHO_T}$LDD" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15381 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15382 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15383 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15384 | fi |
| 15385 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15386 | |
| 15387 | { echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
| 15388 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15389 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 15390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15391 | else |
| 15392 | ac_get_soname_save_LIBS=$LIBS |
| 15393 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 15394 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15395 | /* confdefs.h. */ |
| 15396 | _ACEOF |
| 15397 | cat confdefs.h >>conftest.$ac_ext |
| 15398 | cat >>conftest.$ac_ext <<_ACEOF |
| 15399 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15400 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15401 | /* Override any GCC internal prototype to avoid an error. |
| 15402 | Use char because int might match the return type of a GCC |
| 15403 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15404 | #ifdef __cplusplus |
| 15405 | extern "C" |
| 15406 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15407 | char XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15408 | int |
| 15409 | main () |
| 15410 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15411 | return XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15412 | ; |
| 15413 | return 0; |
| 15414 | } |
| 15415 | _ACEOF |
| 15416 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15418 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15419 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15421 | rm -f conftest.er1 |
| 15422 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15424 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15425 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15427 | (eval $ac_try) 2>&5 |
| 15428 | ac_status=$? |
| 15429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15430 | (exit $ac_status); }; } && |
| 15431 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15433 | (eval $ac_try) 2>&5 |
| 15434 | ac_status=$? |
| 15435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15436 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 15437 | 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] | 15438 | if test "x$ac_cv_lib_soname_X11" = "x" |
| 15439 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15440 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15441 | fi |
| 15442 | else |
| 15443 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15445 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15446 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15447 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15448 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15449 | rm -f conftest.err conftest.$ac_objext \ |
| 15450 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15451 | LIBS=$ac_get_soname_save_LIBS |
| 15452 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15453 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
| 15454 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15455 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 15456 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15457 | cat >>confdefs.h <<_ACEOF |
| 15458 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 15459 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15460 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15461 | fi |
| 15462 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15463 | { echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
| 15464 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15465 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 15466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15467 | else |
| 15468 | ac_get_soname_save_LIBS=$LIBS |
| 15469 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 15470 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15471 | /* confdefs.h. */ |
| 15472 | _ACEOF |
| 15473 | cat confdefs.h >>conftest.$ac_ext |
| 15474 | cat >>conftest.$ac_ext <<_ACEOF |
| 15475 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15476 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15477 | /* Override any GCC internal prototype to avoid an error. |
| 15478 | Use char because int might match the return type of a GCC |
| 15479 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15480 | #ifdef __cplusplus |
| 15481 | extern "C" |
| 15482 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15483 | char XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15484 | int |
| 15485 | main () |
| 15486 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15487 | return XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15488 | ; |
| 15489 | return 0; |
| 15490 | } |
| 15491 | _ACEOF |
| 15492 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15494 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15495 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15497 | rm -f conftest.er1 |
| 15498 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15500 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15503 | (eval $ac_try) 2>&5 |
| 15504 | ac_status=$? |
| 15505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15506 | (exit $ac_status); }; } && |
| 15507 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15509 | (eval $ac_try) 2>&5 |
| 15510 | ac_status=$? |
| 15511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15512 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 15513 | 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] | 15514 | if test "x$ac_cv_lib_soname_Xext" = "x" |
| 15515 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15516 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15517 | fi |
| 15518 | else |
| 15519 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15521 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15522 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15523 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15524 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15525 | rm -f conftest.err conftest.$ac_objext \ |
| 15526 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15527 | LIBS=$ac_get_soname_save_LIBS |
| 15528 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15529 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 |
| 15530 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15531 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 15532 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15533 | cat >>confdefs.h <<_ACEOF |
| 15534 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 15535 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15536 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15537 | fi |
| 15538 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15539 | { echo "$as_me:$LINENO: checking for -lXi soname" >&5 |
| 15540 | echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; } |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 15541 | if test "${ac_cv_lib_soname_Xi+set}" = set; then |
| 15542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15543 | else |
| 15544 | ac_get_soname_save_LIBS=$LIBS |
| 15545 | LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 15546 | cat >conftest.$ac_ext <<_ACEOF |
| 15547 | /* confdefs.h. */ |
| 15548 | _ACEOF |
| 15549 | cat confdefs.h >>conftest.$ac_ext |
| 15550 | cat >>conftest.$ac_ext <<_ACEOF |
| 15551 | /* end confdefs.h. */ |
| 15552 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15553 | /* Override any GCC internal prototype to avoid an error. |
| 15554 | Use char because int might match the return type of a GCC |
| 15555 | builtin and then its argument prototype would still apply. */ |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 15556 | #ifdef __cplusplus |
| 15557 | extern "C" |
| 15558 | #endif |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 15559 | char XOpenDevice (); |
| 15560 | int |
| 15561 | main () |
| 15562 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15563 | return XOpenDevice (); |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 15564 | ; |
| 15565 | return 0; |
| 15566 | } |
| 15567 | _ACEOF |
| 15568 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15570 | (eval $ac_link) 2>conftest.er1 |
| 15571 | ac_status=$? |
| 15572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15573 | rm -f conftest.er1 |
| 15574 | cat conftest.err >&5 |
| 15575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15576 | (exit $ac_status); } && |
| 15577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15579 | (eval $ac_try) 2>&5 |
| 15580 | ac_status=$? |
| 15581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15582 | (exit $ac_status); }; } && |
| 15583 | { ac_try='test -s conftest$ac_exeext' |
| 15584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15585 | (eval $ac_try) 2>&5 |
| 15586 | ac_status=$? |
| 15587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15588 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 15589 | 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] | 15590 | if test "x$ac_cv_lib_soname_Xi" = "x" |
| 15591 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15592 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 15593 | fi |
| 15594 | else |
| 15595 | echo "$as_me: failed program was:" >&5 |
| 15596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15597 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15598 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 15599 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15600 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 15601 | rm -f conftest.err conftest.$ac_objext \ |
| 15602 | conftest$ac_exeext conftest.$ac_ext |
| 15603 | LIBS=$ac_get_soname_save_LIBS |
| 15604 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15605 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5 |
| 15606 | echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15607 | if test "${ac_cv_lib_soname_Xi+set}" = set; then |
| 15608 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 15609 | cat >>confdefs.h <<_ACEOF |
| 15610 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" |
| 15611 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15612 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 15613 | fi |
| 15614 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15615 | { echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
| 15616 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15617 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 15618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15619 | else |
| 15620 | ac_get_soname_save_LIBS=$LIBS |
| 15621 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 15622 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15623 | /* confdefs.h. */ |
| 15624 | _ACEOF |
| 15625 | cat confdefs.h >>conftest.$ac_ext |
| 15626 | cat >>conftest.$ac_ext <<_ACEOF |
| 15627 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15628 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15629 | /* Override any GCC internal prototype to avoid an error. |
| 15630 | Use char because int might match the return type of a GCC |
| 15631 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15632 | #ifdef __cplusplus |
| 15633 | extern "C" |
| 15634 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15635 | char XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15636 | int |
| 15637 | main () |
| 15638 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15639 | return XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15640 | ; |
| 15641 | return 0; |
| 15642 | } |
| 15643 | _ACEOF |
| 15644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15646 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15647 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15649 | rm -f conftest.er1 |
| 15650 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15652 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15653 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15655 | (eval $ac_try) 2>&5 |
| 15656 | ac_status=$? |
| 15657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15658 | (exit $ac_status); }; } && |
| 15659 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15661 | (eval $ac_try) 2>&5 |
| 15662 | ac_status=$? |
| 15663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15664 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 15665 | 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] | 15666 | if test "x$ac_cv_lib_soname_Xrender" = "x" |
| 15667 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15668 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15669 | fi |
| 15670 | else |
| 15671 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15673 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15674 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15675 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15676 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15677 | rm -f conftest.err conftest.$ac_objext \ |
| 15678 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15679 | LIBS=$ac_get_soname_save_LIBS |
| 15680 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15681 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 |
| 15682 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15683 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 15684 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15685 | cat >>confdefs.h <<_ACEOF |
| 15686 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 15687 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15688 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15689 | fi |
| 15690 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15691 | { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5 |
| 15692 | echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; } |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15693 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then |
| 15694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15695 | else |
| 15696 | ac_get_soname_save_LIBS=$LIBS |
| 15697 | LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 15698 | cat >conftest.$ac_ext <<_ACEOF |
| 15699 | /* confdefs.h. */ |
| 15700 | _ACEOF |
| 15701 | cat confdefs.h >>conftest.$ac_ext |
| 15702 | cat >>conftest.$ac_ext <<_ACEOF |
| 15703 | /* end confdefs.h. */ |
| 15704 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15705 | /* Override any GCC internal prototype to avoid an error. |
| 15706 | Use char because int might match the return type of a GCC |
| 15707 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15708 | #ifdef __cplusplus |
| 15709 | extern "C" |
| 15710 | #endif |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15711 | char XRRQueryExtension (); |
| 15712 | int |
| 15713 | main () |
| 15714 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15715 | return XRRQueryExtension (); |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15716 | ; |
| 15717 | return 0; |
| 15718 | } |
| 15719 | _ACEOF |
| 15720 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15722 | (eval $ac_link) 2>conftest.er1 |
| 15723 | ac_status=$? |
| 15724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15725 | rm -f conftest.er1 |
| 15726 | cat conftest.err >&5 |
| 15727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15728 | (exit $ac_status); } && |
| 15729 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15731 | (eval $ac_try) 2>&5 |
| 15732 | ac_status=$? |
| 15733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15734 | (exit $ac_status); }; } && |
| 15735 | { ac_try='test -s conftest$ac_exeext' |
| 15736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15737 | (eval $ac_try) 2>&5 |
| 15738 | ac_status=$? |
| 15739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15740 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 15741 | 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] | 15742 | if test "x$ac_cv_lib_soname_Xrandr" = "x" |
| 15743 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15744 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15745 | fi |
| 15746 | else |
| 15747 | echo "$as_me: failed program was:" >&5 |
| 15748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15749 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15750 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15751 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15752 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15753 | rm -f conftest.err conftest.$ac_objext \ |
| 15754 | conftest$ac_exeext conftest.$ac_ext |
| 15755 | LIBS=$ac_get_soname_save_LIBS |
| 15756 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15757 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5 |
| 15758 | echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15759 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then |
| 15760 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15761 | cat >>confdefs.h <<_ACEOF |
| 15762 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" |
| 15763 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15764 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15765 | fi |
| 15766 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15767 | { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
| 15768 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15769 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 15770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15771 | else |
| 15772 | ac_get_soname_save_LIBS=$LIBS |
| 15773 | LIBS="-lfreetype $X_LIBS $LIBS" |
| 15774 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15775 | /* confdefs.h. */ |
| 15776 | _ACEOF |
| 15777 | cat confdefs.h >>conftest.$ac_ext |
| 15778 | cat >>conftest.$ac_ext <<_ACEOF |
| 15779 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15780 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15781 | /* Override any GCC internal prototype to avoid an error. |
| 15782 | Use char because int might match the return type of a GCC |
| 15783 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15784 | #ifdef __cplusplus |
| 15785 | extern "C" |
| 15786 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15787 | char FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15788 | int |
| 15789 | main () |
| 15790 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15791 | return FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15792 | ; |
| 15793 | return 0; |
| 15794 | } |
| 15795 | _ACEOF |
| 15796 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15798 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15799 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15801 | rm -f conftest.er1 |
| 15802 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15804 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15805 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15807 | (eval $ac_try) 2>&5 |
| 15808 | ac_status=$? |
| 15809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15810 | (exit $ac_status); }; } && |
| 15811 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15813 | (eval $ac_try) 2>&5 |
| 15814 | ac_status=$? |
| 15815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15816 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 15817 | 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] | 15818 | if test "x$ac_cv_lib_soname_freetype" = "x" |
| 15819 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15820 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15821 | fi |
| 15822 | else |
| 15823 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15825 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15826 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15827 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15828 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15829 | rm -f conftest.err conftest.$ac_objext \ |
| 15830 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15831 | LIBS=$ac_get_soname_save_LIBS |
| 15832 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15833 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
| 15834 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15835 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 15836 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15837 | cat >>confdefs.h <<_ACEOF |
| 15838 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 15839 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15840 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15841 | fi |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15842 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15843 | { echo "$as_me:$LINENO: checking for -lGL soname" >&5 |
| 15844 | echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; } |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15845 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 15846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15847 | else |
| 15848 | ac_get_soname_save_LIBS=$LIBS |
| 15849 | LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 15850 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15851 | /* confdefs.h. */ |
| 15852 | _ACEOF |
| 15853 | cat confdefs.h >>conftest.$ac_ext |
| 15854 | cat >>conftest.$ac_ext <<_ACEOF |
| 15855 | /* end confdefs.h. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15856 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15857 | /* Override any GCC internal prototype to avoid an error. |
| 15858 | Use char because int might match the return type of a GCC |
| 15859 | builtin and then its argument prototype would still apply. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15860 | #ifdef __cplusplus |
| 15861 | extern "C" |
| 15862 | #endif |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15863 | char glXQueryExtension (); |
| 15864 | int |
| 15865 | main () |
| 15866 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15867 | return glXQueryExtension (); |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15868 | ; |
| 15869 | return 0; |
| 15870 | } |
| 15871 | _ACEOF |
| 15872 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15874 | (eval $ac_link) 2>conftest.er1 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15875 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15877 | rm -f conftest.er1 |
| 15878 | cat conftest.err >&5 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15880 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15883 | (eval $ac_try) 2>&5 |
| 15884 | ac_status=$? |
| 15885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15886 | (exit $ac_status); }; } && |
| 15887 | { ac_try='test -s conftest$ac_exeext' |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15889 | (eval $ac_try) 2>&5 |
| 15890 | ac_status=$? |
| 15891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15892 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 15893 | 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] | 15894 | if test "x$ac_cv_lib_soname_GL" = "x" |
| 15895 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15896 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15897 | fi |
| 15898 | else |
| 15899 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15901 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15902 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15903 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15904 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15905 | rm -f conftest.err conftest.$ac_objext \ |
| 15906 | conftest$ac_exeext conftest.$ac_ext |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15907 | LIBS=$ac_get_soname_save_LIBS |
| 15908 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15909 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5 |
| 15910 | echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15911 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 15912 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15913 | cat >>confdefs.h <<_ACEOF |
| 15914 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 15915 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 15916 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15917 | fi |
| 15918 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15919 | { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5 |
| 15920 | echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 15921 | if test "${ac_cv_lib_soname_dbus_1+set}" = set; then |
| 15922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15923 | else |
| 15924 | ac_get_soname_save_LIBS=$LIBS |
| 15925 | LIBS="-ldbus-1 $LIBS" |
| 15926 | cat >conftest.$ac_ext <<_ACEOF |
| 15927 | /* confdefs.h. */ |
| 15928 | _ACEOF |
| 15929 | cat confdefs.h >>conftest.$ac_ext |
| 15930 | cat >>conftest.$ac_ext <<_ACEOF |
| 15931 | /* end confdefs.h. */ |
| 15932 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15933 | /* Override any GCC internal prototype to avoid an error. |
| 15934 | Use char because int might match the return type of a GCC |
| 15935 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 15936 | #ifdef __cplusplus |
| 15937 | extern "C" |
| 15938 | #endif |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 15939 | char dbus_error_init (); |
| 15940 | int |
| 15941 | main () |
| 15942 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15943 | return dbus_error_init (); |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 15944 | ; |
| 15945 | return 0; |
| 15946 | } |
| 15947 | _ACEOF |
| 15948 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15950 | (eval $ac_link) 2>conftest.er1 |
| 15951 | ac_status=$? |
| 15952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15953 | rm -f conftest.er1 |
| 15954 | cat conftest.err >&5 |
| 15955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15956 | (exit $ac_status); } && |
| 15957 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15959 | (eval $ac_try) 2>&5 |
| 15960 | ac_status=$? |
| 15961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15962 | (exit $ac_status); }; } && |
| 15963 | { ac_try='test -s conftest$ac_exeext' |
| 15964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15965 | (eval $ac_try) 2>&5 |
| 15966 | ac_status=$? |
| 15967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15968 | (exit $ac_status); }; }; then |
| 15969 | 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'` |
| 15970 | if test "x$ac_cv_lib_soname_dbus_1" = "x" |
| 15971 | then |
| 15972 | ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT" |
| 15973 | fi |
| 15974 | else |
| 15975 | echo "$as_me: failed program was:" >&5 |
| 15976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15977 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15978 | ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 15979 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15980 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 15981 | rm -f conftest.err conftest.$ac_objext \ |
| 15982 | conftest$ac_exeext conftest.$ac_ext |
| 15983 | LIBS=$ac_get_soname_save_LIBS |
| 15984 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15985 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5 |
| 15986 | echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 15987 | if test "${ac_cv_lib_soname_dbus_1+set}" = set; then |
| 15988 | |
| 15989 | cat >>confdefs.h <<_ACEOF |
| 15990 | #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1" |
| 15991 | _ACEOF |
| 15992 | |
| 15993 | fi |
| 15994 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15995 | { echo "$as_me:$LINENO: checking for -lhal soname" >&5 |
| 15996 | echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 15997 | if test "${ac_cv_lib_soname_hal+set}" = set; then |
| 15998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15999 | else |
| 16000 | ac_get_soname_save_LIBS=$LIBS |
| 16001 | LIBS="-lhal $LIBS" |
| 16002 | cat >conftest.$ac_ext <<_ACEOF |
| 16003 | /* confdefs.h. */ |
| 16004 | _ACEOF |
| 16005 | cat confdefs.h >>conftest.$ac_ext |
| 16006 | cat >>conftest.$ac_ext <<_ACEOF |
| 16007 | /* end confdefs.h. */ |
| 16008 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16009 | /* Override any GCC internal prototype to avoid an error. |
| 16010 | Use char because int might match the return type of a GCC |
| 16011 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 16012 | #ifdef __cplusplus |
| 16013 | extern "C" |
| 16014 | #endif |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 16015 | char libhal_ctx_new (); |
| 16016 | int |
| 16017 | main () |
| 16018 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16019 | return libhal_ctx_new (); |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 16020 | ; |
| 16021 | return 0; |
| 16022 | } |
| 16023 | _ACEOF |
| 16024 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16026 | (eval $ac_link) 2>conftest.er1 |
| 16027 | ac_status=$? |
| 16028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16029 | rm -f conftest.er1 |
| 16030 | cat conftest.err >&5 |
| 16031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16032 | (exit $ac_status); } && |
| 16033 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16035 | (eval $ac_try) 2>&5 |
| 16036 | ac_status=$? |
| 16037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16038 | (exit $ac_status); }; } && |
| 16039 | { ac_try='test -s conftest$ac_exeext' |
| 16040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16041 | (eval $ac_try) 2>&5 |
| 16042 | ac_status=$? |
| 16043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16044 | (exit $ac_status); }; }; then |
| 16045 | ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
| 16046 | if test "x$ac_cv_lib_soname_hal" = "x" |
| 16047 | then |
| 16048 | ac_cv_lib_soname_hal="libhal.$LIBEXT" |
| 16049 | fi |
| 16050 | else |
| 16051 | echo "$as_me: failed program was:" >&5 |
| 16052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16053 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16054 | ac_cv_lib_soname_hal="libhal.$LIBEXT" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 16055 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16056 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 16057 | rm -f conftest.err conftest.$ac_objext \ |
| 16058 | conftest$ac_exeext conftest.$ac_ext |
| 16059 | LIBS=$ac_get_soname_save_LIBS |
| 16060 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16061 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5 |
| 16062 | echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 16063 | if test "${ac_cv_lib_soname_hal+set}" = set; then |
| 16064 | |
| 16065 | cat >>confdefs.h <<_ACEOF |
| 16066 | #define SONAME_LIBHAL "$ac_cv_lib_soname_hal" |
| 16067 | _ACEOF |
| 16068 | |
| 16069 | fi |
| 16070 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16071 | { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5 |
| 16072 | echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; } |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 16073 | if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then |
| 16074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16075 | else |
| 16076 | ac_get_soname_save_LIBS=$LIBS |
| 16077 | LIBS="-ltxc_dxtn $LIBS" |
| 16078 | cat >conftest.$ac_ext <<_ACEOF |
| 16079 | /* confdefs.h. */ |
| 16080 | _ACEOF |
| 16081 | cat confdefs.h >>conftest.$ac_ext |
| 16082 | cat >>conftest.$ac_ext <<_ACEOF |
| 16083 | /* end confdefs.h. */ |
| 16084 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16085 | /* Override any GCC internal prototype to avoid an error. |
| 16086 | Use char because int might match the return type of a GCC |
| 16087 | builtin and then its argument prototype would still apply. */ |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 16088 | #ifdef __cplusplus |
| 16089 | extern "C" |
| 16090 | #endif |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 16091 | char fetch_2d_texel_rgba_dxt1 (); |
| 16092 | int |
| 16093 | main () |
| 16094 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16095 | return fetch_2d_texel_rgba_dxt1 (); |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 16096 | ; |
| 16097 | return 0; |
| 16098 | } |
| 16099 | _ACEOF |
| 16100 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16102 | (eval $ac_link) 2>conftest.er1 |
| 16103 | ac_status=$? |
| 16104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16105 | rm -f conftest.er1 |
| 16106 | cat conftest.err >&5 |
| 16107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16108 | (exit $ac_status); } && |
| 16109 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16111 | (eval $ac_try) 2>&5 |
| 16112 | ac_status=$? |
| 16113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16114 | (exit $ac_status); }; } && |
| 16115 | { ac_try='test -s conftest$ac_exeext' |
| 16116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16117 | (eval $ac_try) 2>&5 |
| 16118 | ac_status=$? |
| 16119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16120 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 16121 | 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] | 16122 | if test "x$ac_cv_lib_soname_txc_dxtn" = "x" |
| 16123 | then |
| 16124 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
| 16125 | fi |
| 16126 | else |
| 16127 | echo "$as_me: failed program was:" >&5 |
| 16128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16129 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16130 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 16131 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16132 | |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 16133 | rm -f conftest.err conftest.$ac_objext \ |
| 16134 | conftest$ac_exeext conftest.$ac_ext |
| 16135 | LIBS=$ac_get_soname_save_LIBS |
| 16136 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16137 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5 |
| 16138 | echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16139 | if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then |
| 16140 | |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 16141 | cat >>confdefs.h <<_ACEOF |
| 16142 | #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn" |
| 16143 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16144 | |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 16145 | fi |
| 16146 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16147 | { echo "$as_me:$LINENO: checking for -lcups soname" >&5 |
| 16148 | echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; } |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16149 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 16150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16151 | else |
| 16152 | ac_get_soname_save_LIBS=$LIBS |
| 16153 | LIBS="-lcups $LIBS" |
| 16154 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16155 | /* confdefs.h. */ |
| 16156 | _ACEOF |
| 16157 | cat confdefs.h >>conftest.$ac_ext |
| 16158 | cat >>conftest.$ac_ext <<_ACEOF |
| 16159 | /* end confdefs.h. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16160 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16161 | /* Override any GCC internal prototype to avoid an error. |
| 16162 | Use char because int might match the return type of a GCC |
| 16163 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16164 | #ifdef __cplusplus |
| 16165 | extern "C" |
| 16166 | #endif |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16167 | char cupsGetDefault (); |
| 16168 | int |
| 16169 | main () |
| 16170 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16171 | return cupsGetDefault (); |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16172 | ; |
| 16173 | return 0; |
| 16174 | } |
| 16175 | _ACEOF |
| 16176 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16177 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16178 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16179 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16181 | rm -f conftest.er1 |
| 16182 | cat conftest.err >&5 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16184 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16185 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16187 | (eval $ac_try) 2>&5 |
| 16188 | ac_status=$? |
| 16189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16190 | (exit $ac_status); }; } && |
| 16191 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16193 | (eval $ac_try) 2>&5 |
| 16194 | ac_status=$? |
| 16195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16196 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 16197 | 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] | 16198 | if test "x$ac_cv_lib_soname_cups" = "x" |
| 16199 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16200 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16201 | fi |
| 16202 | else |
| 16203 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16205 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16206 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16207 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16208 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16209 | rm -f conftest.err conftest.$ac_objext \ |
| 16210 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16211 | LIBS=$ac_get_soname_save_LIBS |
| 16212 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16213 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5 |
| 16214 | echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16215 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 16216 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16217 | cat >>confdefs.h <<_ACEOF |
| 16218 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 16219 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16220 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16221 | fi |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16222 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16223 | { echo "$as_me:$LINENO: checking for -ljack soname" >&5 |
| 16224 | echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; } |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16225 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 16226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16227 | else |
| 16228 | ac_get_soname_save_LIBS=$LIBS |
| 16229 | LIBS="-ljack $LIBS" |
| 16230 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16231 | /* confdefs.h. */ |
| 16232 | _ACEOF |
| 16233 | cat confdefs.h >>conftest.$ac_ext |
| 16234 | cat >>conftest.$ac_ext <<_ACEOF |
| 16235 | /* end confdefs.h. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16236 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16237 | /* Override any GCC internal prototype to avoid an error. |
| 16238 | Use char because int might match the return type of a GCC |
| 16239 | builtin and then its argument prototype would still apply. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16240 | #ifdef __cplusplus |
| 16241 | extern "C" |
| 16242 | #endif |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16243 | char jack_client_new (); |
| 16244 | int |
| 16245 | main () |
| 16246 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16247 | return jack_client_new (); |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16248 | ; |
| 16249 | return 0; |
| 16250 | } |
| 16251 | _ACEOF |
| 16252 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16254 | (eval $ac_link) 2>conftest.er1 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16255 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16257 | rm -f conftest.er1 |
| 16258 | cat conftest.err >&5 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16260 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16263 | (eval $ac_try) 2>&5 |
| 16264 | ac_status=$? |
| 16265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16266 | (exit $ac_status); }; } && |
| 16267 | { ac_try='test -s conftest$ac_exeext' |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16269 | (eval $ac_try) 2>&5 |
| 16270 | ac_status=$? |
| 16271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16272 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 16273 | 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] | 16274 | if test "x$ac_cv_lib_soname_jack" = "x" |
| 16275 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16276 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16277 | fi |
| 16278 | else |
| 16279 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16281 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16282 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16283 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16284 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16285 | rm -f conftest.err conftest.$ac_objext \ |
| 16286 | conftest$ac_exeext conftest.$ac_ext |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16287 | LIBS=$ac_get_soname_save_LIBS |
| 16288 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16289 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5 |
| 16290 | echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16291 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 16292 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16293 | cat >>confdefs.h <<_ACEOF |
| 16294 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 16295 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16296 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16297 | fi |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16298 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16299 | { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5 |
| 16300 | echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; } |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16301 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then |
| 16302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16303 | else |
| 16304 | ac_get_soname_save_LIBS=$LIBS |
| 16305 | LIBS="-lfontconfig $LIBS" |
| 16306 | cat >conftest.$ac_ext <<_ACEOF |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16307 | /* confdefs.h. */ |
| 16308 | _ACEOF |
| 16309 | cat confdefs.h >>conftest.$ac_ext |
| 16310 | cat >>conftest.$ac_ext <<_ACEOF |
| 16311 | /* end confdefs.h. */ |
| 16312 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16313 | /* Override any GCC internal prototype to avoid an error. |
| 16314 | Use char because int might match the return type of a GCC |
| 16315 | builtin and then its argument prototype would still apply. */ |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16316 | #ifdef __cplusplus |
| 16317 | extern "C" |
| 16318 | #endif |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16319 | char FcInit (); |
| 16320 | int |
| 16321 | main () |
| 16322 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16323 | return FcInit (); |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16324 | ; |
| 16325 | return 0; |
| 16326 | } |
| 16327 | _ACEOF |
| 16328 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16330 | (eval $ac_link) 2>conftest.er1 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16331 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16333 | rm -f conftest.er1 |
| 16334 | cat conftest.err >&5 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16336 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16339 | (eval $ac_try) 2>&5 |
| 16340 | ac_status=$? |
| 16341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16342 | (exit $ac_status); }; } && |
| 16343 | { ac_try='test -s conftest$ac_exeext' |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16345 | (eval $ac_try) 2>&5 |
| 16346 | ac_status=$? |
| 16347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16348 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 16349 | 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] | 16350 | if test "x$ac_cv_lib_soname_fontconfig" = "x" |
| 16351 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16352 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16353 | fi |
| 16354 | else |
| 16355 | echo "$as_me: failed program was:" >&5 |
| 16356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16357 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16358 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16359 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16360 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16361 | rm -f conftest.err conftest.$ac_objext \ |
| 16362 | conftest$ac_exeext conftest.$ac_ext |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16363 | LIBS=$ac_get_soname_save_LIBS |
| 16364 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16365 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5 |
| 16366 | echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16367 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then |
| 16368 | |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16369 | cat >>confdefs.h <<_ACEOF |
| 16370 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 16371 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16372 | |
Alexandre Julliard | 7999469 | 2003-11-13 20:58:55 +0000 | [diff] [blame] | 16373 | fi |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16374 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16375 | { echo "$as_me:$LINENO: checking for -lssl soname" >&5 |
| 16376 | echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; } |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16377 | if test "${ac_cv_lib_soname_ssl+set}" = set; then |
| 16378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16379 | else |
| 16380 | ac_get_soname_save_LIBS=$LIBS |
| 16381 | LIBS="-lssl $LIBS" |
| 16382 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16383 | /* confdefs.h. */ |
| 16384 | _ACEOF |
| 16385 | cat confdefs.h >>conftest.$ac_ext |
| 16386 | cat >>conftest.$ac_ext <<_ACEOF |
| 16387 | /* end confdefs.h. */ |
| 16388 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16389 | /* Override any GCC internal prototype to avoid an error. |
| 16390 | Use char because int might match the return type of a GCC |
| 16391 | builtin and then its argument prototype would still apply. */ |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16392 | #ifdef __cplusplus |
| 16393 | extern "C" |
| 16394 | #endif |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16395 | char SSL_library_init (); |
| 16396 | int |
| 16397 | main () |
| 16398 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16399 | return SSL_library_init (); |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16400 | ; |
| 16401 | return 0; |
| 16402 | } |
| 16403 | _ACEOF |
| 16404 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16406 | (eval $ac_link) 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16407 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16409 | rm -f conftest.er1 |
| 16410 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16412 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16413 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16415 | (eval $ac_try) 2>&5 |
| 16416 | ac_status=$? |
| 16417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16418 | (exit $ac_status); }; } && |
| 16419 | { ac_try='test -s conftest$ac_exeext' |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16421 | (eval $ac_try) 2>&5 |
| 16422 | ac_status=$? |
| 16423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16424 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 16425 | 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] | 16426 | if test "x$ac_cv_lib_soname_ssl" = "x" |
| 16427 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16428 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16429 | fi |
| 16430 | else |
| 16431 | echo "$as_me: failed program was:" >&5 |
| 16432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16433 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16434 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16435 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16436 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16437 | rm -f conftest.err conftest.$ac_objext \ |
| 16438 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16439 | LIBS=$ac_get_soname_save_LIBS |
| 16440 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16441 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5 |
| 16442 | echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16443 | if test "${ac_cv_lib_soname_ssl+set}" = set; then |
| 16444 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16445 | cat >>confdefs.h <<_ACEOF |
| 16446 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 16447 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16448 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16449 | fi |
| 16450 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16451 | { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5 |
| 16452 | echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; } |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16453 | if test "${ac_cv_lib_soname_crypto+set}" = set; then |
| 16454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16455 | else |
| 16456 | ac_get_soname_save_LIBS=$LIBS |
| 16457 | LIBS="-lcrypto $LIBS" |
| 16458 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16459 | /* confdefs.h. */ |
| 16460 | _ACEOF |
| 16461 | cat confdefs.h >>conftest.$ac_ext |
| 16462 | cat >>conftest.$ac_ext <<_ACEOF |
| 16463 | /* end confdefs.h. */ |
| 16464 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16465 | /* Override any GCC internal prototype to avoid an error. |
| 16466 | Use char because int might match the return type of a GCC |
| 16467 | builtin and then its argument prototype would still apply. */ |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16468 | #ifdef __cplusplus |
| 16469 | extern "C" |
| 16470 | #endif |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16471 | char BIO_new_socket (); |
| 16472 | int |
| 16473 | main () |
| 16474 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16475 | return BIO_new_socket (); |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16476 | ; |
| 16477 | return 0; |
| 16478 | } |
| 16479 | _ACEOF |
| 16480 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16482 | (eval $ac_link) 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16483 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16485 | rm -f conftest.er1 |
| 16486 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16488 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16491 | (eval $ac_try) 2>&5 |
| 16492 | ac_status=$? |
| 16493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16494 | (exit $ac_status); }; } && |
| 16495 | { ac_try='test -s conftest$ac_exeext' |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16497 | (eval $ac_try) 2>&5 |
| 16498 | ac_status=$? |
| 16499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16500 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 16501 | 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] | 16502 | if test "x$ac_cv_lib_soname_crypto" = "x" |
| 16503 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16504 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16505 | fi |
| 16506 | else |
| 16507 | echo "$as_me: failed program was:" >&5 |
| 16508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16509 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16510 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16511 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16512 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16513 | rm -f conftest.err conftest.$ac_objext \ |
| 16514 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16515 | LIBS=$ac_get_soname_save_LIBS |
| 16516 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16517 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5 |
| 16518 | echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16519 | if test "${ac_cv_lib_soname_crypto+set}" = set; then |
| 16520 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16521 | cat >>confdefs.h <<_ACEOF |
| 16522 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 16523 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16524 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16525 | fi |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16526 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16527 | { echo "$as_me:$LINENO: checking for -lncurses soname" >&5 |
| 16528 | echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; } |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16529 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then |
| 16530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16531 | else |
| 16532 | ac_get_soname_save_LIBS=$LIBS |
| 16533 | LIBS="-lncurses $LIBS" |
| 16534 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16535 | /* confdefs.h. */ |
| 16536 | _ACEOF |
| 16537 | cat confdefs.h >>conftest.$ac_ext |
| 16538 | cat >>conftest.$ac_ext <<_ACEOF |
| 16539 | /* end confdefs.h. */ |
| 16540 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16541 | /* Override any GCC internal prototype to avoid an error. |
| 16542 | Use char because int might match the return type of a GCC |
| 16543 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16544 | #ifdef __cplusplus |
| 16545 | extern "C" |
| 16546 | #endif |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16547 | char waddch (); |
| 16548 | int |
| 16549 | main () |
| 16550 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16551 | return waddch (); |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16552 | ; |
| 16553 | return 0; |
| 16554 | } |
| 16555 | _ACEOF |
| 16556 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16558 | (eval $ac_link) 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16559 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16561 | rm -f conftest.er1 |
| 16562 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16564 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16565 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16567 | (eval $ac_try) 2>&5 |
| 16568 | ac_status=$? |
| 16569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16570 | (exit $ac_status); }; } && |
| 16571 | { ac_try='test -s conftest$ac_exeext' |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16573 | (eval $ac_try) 2>&5 |
| 16574 | ac_status=$? |
| 16575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16576 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 16577 | 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] | 16578 | if test "x$ac_cv_lib_soname_ncurses" = "x" |
| 16579 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16580 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16581 | fi |
| 16582 | else |
| 16583 | echo "$as_me: failed program was:" >&5 |
| 16584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16585 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16586 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16587 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16588 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16589 | rm -f conftest.err conftest.$ac_objext \ |
| 16590 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16591 | LIBS=$ac_get_soname_save_LIBS |
| 16592 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16593 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5 |
| 16594 | echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16595 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then |
| 16596 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16597 | cat >>confdefs.h <<_ACEOF |
| 16598 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
| 16599 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16600 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16601 | fi |
| 16602 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16603 | { echo "$as_me:$LINENO: checking for -lcurses soname" >&5 |
| 16604 | echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; } |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16605 | if test "${ac_cv_lib_soname_curses+set}" = set; then |
| 16606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16607 | else |
| 16608 | ac_get_soname_save_LIBS=$LIBS |
| 16609 | LIBS="-lcurses $LIBS" |
| 16610 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16611 | /* confdefs.h. */ |
| 16612 | _ACEOF |
| 16613 | cat confdefs.h >>conftest.$ac_ext |
| 16614 | cat >>conftest.$ac_ext <<_ACEOF |
| 16615 | /* end confdefs.h. */ |
| 16616 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16617 | /* Override any GCC internal prototype to avoid an error. |
| 16618 | Use char because int might match the return type of a GCC |
| 16619 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16620 | #ifdef __cplusplus |
| 16621 | extern "C" |
| 16622 | #endif |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16623 | char waddch (); |
| 16624 | int |
| 16625 | main () |
| 16626 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16627 | return waddch (); |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16628 | ; |
| 16629 | return 0; |
| 16630 | } |
| 16631 | _ACEOF |
| 16632 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16634 | (eval $ac_link) 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16635 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16637 | rm -f conftest.er1 |
| 16638 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16640 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16641 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16643 | (eval $ac_try) 2>&5 |
| 16644 | ac_status=$? |
| 16645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16646 | (exit $ac_status); }; } && |
| 16647 | { ac_try='test -s conftest$ac_exeext' |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16649 | (eval $ac_try) 2>&5 |
| 16650 | ac_status=$? |
| 16651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16652 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 16653 | 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] | 16654 | if test "x$ac_cv_lib_soname_curses" = "x" |
| 16655 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16656 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16657 | fi |
| 16658 | else |
| 16659 | echo "$as_me: failed program was:" >&5 |
| 16660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16661 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16662 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16663 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16664 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16665 | rm -f conftest.err conftest.$ac_objext \ |
| 16666 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16667 | LIBS=$ac_get_soname_save_LIBS |
| 16668 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16669 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5 |
| 16670 | echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16671 | if test "${ac_cv_lib_soname_curses+set}" = set; then |
| 16672 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16673 | cat >>confdefs.h <<_ACEOF |
| 16674 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
| 16675 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16676 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 16677 | fi |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16678 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16679 | { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5 |
| 16680 | echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; } |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16681 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then |
| 16682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16683 | else |
| 16684 | ac_get_soname_save_LIBS=$LIBS |
| 16685 | LIBS="-ljpeg $LIBS" |
| 16686 | cat >conftest.$ac_ext <<_ACEOF |
| 16687 | /* confdefs.h. */ |
| 16688 | _ACEOF |
| 16689 | cat confdefs.h >>conftest.$ac_ext |
| 16690 | cat >>conftest.$ac_ext <<_ACEOF |
| 16691 | /* end confdefs.h. */ |
| 16692 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16693 | /* Override any GCC internal prototype to avoid an error. |
| 16694 | Use char because int might match the return type of a GCC |
| 16695 | builtin and then its argument prototype would still apply. */ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16696 | #ifdef __cplusplus |
| 16697 | extern "C" |
| 16698 | #endif |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16699 | char jpeg_start_decompress (); |
| 16700 | int |
| 16701 | main () |
| 16702 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16703 | return jpeg_start_decompress (); |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16704 | ; |
| 16705 | return 0; |
| 16706 | } |
| 16707 | _ACEOF |
| 16708 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16710 | (eval $ac_link) 2>conftest.er1 |
| 16711 | ac_status=$? |
| 16712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16713 | rm -f conftest.er1 |
| 16714 | cat conftest.err >&5 |
| 16715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16716 | (exit $ac_status); } && |
| 16717 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16719 | (eval $ac_try) 2>&5 |
| 16720 | ac_status=$? |
| 16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16722 | (exit $ac_status); }; } && |
| 16723 | { ac_try='test -s conftest$ac_exeext' |
| 16724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16725 | (eval $ac_try) 2>&5 |
| 16726 | ac_status=$? |
| 16727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16728 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 16729 | 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] | 16730 | if test "x$ac_cv_lib_soname_jpeg" = "x" |
| 16731 | then |
| 16732 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
| 16733 | fi |
| 16734 | else |
| 16735 | echo "$as_me: failed program was:" >&5 |
| 16736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16737 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16738 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16739 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16740 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16741 | rm -f conftest.err conftest.$ac_objext \ |
| 16742 | conftest$ac_exeext conftest.$ac_ext |
| 16743 | LIBS=$ac_get_soname_save_LIBS |
| 16744 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16745 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5 |
| 16746 | echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16747 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then |
| 16748 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16749 | cat >>confdefs.h <<_ACEOF |
| 16750 | #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg" |
| 16751 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16752 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16753 | fi |
| 16754 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16755 | { echo "$as_me:$LINENO: checking for -lungif soname" >&5 |
| 16756 | echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; } |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16757 | if test "${ac_cv_lib_soname_ungif+set}" = set; then |
| 16758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16759 | else |
| 16760 | ac_get_soname_save_LIBS=$LIBS |
| 16761 | LIBS="-lungif $LIBS" |
| 16762 | cat >conftest.$ac_ext <<_ACEOF |
| 16763 | /* confdefs.h. */ |
| 16764 | _ACEOF |
| 16765 | cat confdefs.h >>conftest.$ac_ext |
| 16766 | cat >>conftest.$ac_ext <<_ACEOF |
| 16767 | /* end confdefs.h. */ |
| 16768 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16769 | /* Override any GCC internal prototype to avoid an error. |
| 16770 | Use char because int might match the return type of a GCC |
| 16771 | builtin and then its argument prototype would still apply. */ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16772 | #ifdef __cplusplus |
| 16773 | extern "C" |
| 16774 | #endif |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16775 | char DGifOpen (); |
| 16776 | int |
| 16777 | main () |
| 16778 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16779 | return DGifOpen (); |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16780 | ; |
| 16781 | return 0; |
| 16782 | } |
| 16783 | _ACEOF |
| 16784 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16786 | (eval $ac_link) 2>conftest.er1 |
| 16787 | ac_status=$? |
| 16788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16789 | rm -f conftest.er1 |
| 16790 | cat conftest.err >&5 |
| 16791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16792 | (exit $ac_status); } && |
| 16793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16795 | (eval $ac_try) 2>&5 |
| 16796 | ac_status=$? |
| 16797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16798 | (exit $ac_status); }; } && |
| 16799 | { ac_try='test -s conftest$ac_exeext' |
| 16800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16801 | (eval $ac_try) 2>&5 |
| 16802 | ac_status=$? |
| 16803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16804 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 16805 | 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] | 16806 | if test "x$ac_cv_lib_soname_ungif" = "x" |
| 16807 | then |
| 16808 | ac_cv_lib_soname_ungif="libungif.$LIBEXT" |
| 16809 | fi |
| 16810 | else |
| 16811 | echo "$as_me: failed program was:" >&5 |
| 16812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16813 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16814 | ac_cv_lib_soname_ungif="libungif.$LIBEXT" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16815 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16816 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16817 | rm -f conftest.err conftest.$ac_objext \ |
| 16818 | conftest$ac_exeext conftest.$ac_ext |
| 16819 | LIBS=$ac_get_soname_save_LIBS |
| 16820 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16821 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5 |
| 16822 | echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16823 | if test "${ac_cv_lib_soname_ungif+set}" = set; then |
| 16824 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16825 | cat >>confdefs.h <<_ACEOF |
| 16826 | #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif" |
| 16827 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16828 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16829 | fi |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 16830 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16831 | { echo "$as_me:$LINENO: checking for -lgif soname" >&5 |
| 16832 | echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; } |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 16833 | if test "${ac_cv_lib_soname_gif+set}" = set; then |
| 16834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16835 | else |
| 16836 | ac_get_soname_save_LIBS=$LIBS |
| 16837 | LIBS="-lgif $LIBS" |
| 16838 | cat >conftest.$ac_ext <<_ACEOF |
| 16839 | /* confdefs.h. */ |
| 16840 | _ACEOF |
| 16841 | cat confdefs.h >>conftest.$ac_ext |
| 16842 | cat >>conftest.$ac_ext <<_ACEOF |
| 16843 | /* end confdefs.h. */ |
| 16844 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16845 | /* Override any GCC internal prototype to avoid an error. |
| 16846 | Use char because int might match the return type of a GCC |
| 16847 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 16848 | #ifdef __cplusplus |
| 16849 | extern "C" |
| 16850 | #endif |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 16851 | char DGifOpen (); |
| 16852 | int |
| 16853 | main () |
| 16854 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16855 | return DGifOpen (); |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 16856 | ; |
| 16857 | return 0; |
| 16858 | } |
| 16859 | _ACEOF |
| 16860 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16862 | (eval $ac_link) 2>conftest.er1 |
| 16863 | ac_status=$? |
| 16864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16865 | rm -f conftest.er1 |
| 16866 | cat conftest.err >&5 |
| 16867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16868 | (exit $ac_status); } && |
| 16869 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16871 | (eval $ac_try) 2>&5 |
| 16872 | ac_status=$? |
| 16873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16874 | (exit $ac_status); }; } && |
| 16875 | { ac_try='test -s conftest$ac_exeext' |
| 16876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16877 | (eval $ac_try) 2>&5 |
| 16878 | ac_status=$? |
| 16879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16880 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 16881 | 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] | 16882 | if test "x$ac_cv_lib_soname_gif" = "x" |
| 16883 | then |
| 16884 | ac_cv_lib_soname_gif="libgif.$LIBEXT" |
| 16885 | fi |
| 16886 | else |
| 16887 | echo "$as_me: failed program was:" >&5 |
| 16888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16889 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16890 | ac_cv_lib_soname_gif="libgif.$LIBEXT" |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 16891 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16892 | |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 16893 | rm -f conftest.err conftest.$ac_objext \ |
| 16894 | conftest$ac_exeext conftest.$ac_ext |
| 16895 | LIBS=$ac_get_soname_save_LIBS |
| 16896 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16897 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5 |
| 16898 | echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16899 | if test "${ac_cv_lib_soname_gif+set}" = set; then |
| 16900 | |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 16901 | cat >>confdefs.h <<_ACEOF |
| 16902 | #define SONAME_LIBGIF "$ac_cv_lib_soname_gif" |
| 16903 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16904 | |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 16905 | fi |
Hans Leidekker | 081b250 | 2004-10-07 19:12:41 +0000 | [diff] [blame] | 16906 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16907 | { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5 |
| 16908 | echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; } |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 16909 | if test "${ac_cv_lib_soname_capi20+set}" = set; then |
| 16910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16911 | else |
| 16912 | ac_get_soname_save_LIBS=$LIBS |
| 16913 | LIBS="-lcapi20 $LIBS" |
| 16914 | cat >conftest.$ac_ext <<_ACEOF |
| 16915 | /* confdefs.h. */ |
| 16916 | _ACEOF |
| 16917 | cat confdefs.h >>conftest.$ac_ext |
| 16918 | cat >>conftest.$ac_ext <<_ACEOF |
| 16919 | /* end confdefs.h. */ |
| 16920 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16921 | /* Override any GCC internal prototype to avoid an error. |
| 16922 | Use char because int might match the return type of a GCC |
| 16923 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 16924 | #ifdef __cplusplus |
| 16925 | extern "C" |
| 16926 | #endif |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 16927 | char capi20_isinstalled (); |
| 16928 | int |
| 16929 | main () |
| 16930 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16931 | return capi20_isinstalled (); |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 16932 | ; |
| 16933 | return 0; |
| 16934 | } |
| 16935 | _ACEOF |
| 16936 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16938 | (eval $ac_link) 2>conftest.er1 |
| 16939 | ac_status=$? |
| 16940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16941 | rm -f conftest.er1 |
| 16942 | cat conftest.err >&5 |
| 16943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16944 | (exit $ac_status); } && |
| 16945 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16947 | (eval $ac_try) 2>&5 |
| 16948 | ac_status=$? |
| 16949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16950 | (exit $ac_status); }; } && |
| 16951 | { ac_try='test -s conftest$ac_exeext' |
| 16952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16953 | (eval $ac_try) 2>&5 |
| 16954 | ac_status=$? |
| 16955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16956 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 16957 | 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] | 16958 | if test "x$ac_cv_lib_soname_capi20" = "x" |
| 16959 | then |
| 16960 | ac_cv_lib_soname_capi20="libcapi20.$LIBEXT" |
| 16961 | fi |
| 16962 | else |
| 16963 | echo "$as_me: failed program was:" >&5 |
| 16964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16965 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16966 | ac_cv_lib_soname_capi20="libcapi20.$LIBEXT" |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 16967 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16968 | |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 16969 | rm -f conftest.err conftest.$ac_objext \ |
| 16970 | conftest$ac_exeext conftest.$ac_ext |
| 16971 | LIBS=$ac_get_soname_save_LIBS |
| 16972 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16973 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5 |
| 16974 | echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16975 | if test "${ac_cv_lib_soname_capi20+set}" = set; then |
| 16976 | |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 16977 | cat >>confdefs.h <<_ACEOF |
| 16978 | #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20" |
| 16979 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16980 | |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 16981 | fi |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16982 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16983 | fi |
| 16984 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16985 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16986 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16987 | |
| 16988 | |
| 16989 | |
| 16990 | |
| 16991 | |
| 16992 | |
| 16993 | |
| 16994 | |
| 16995 | |
| 16996 | |
| 16997 | |
| 16998 | |
| 16999 | |
| 17000 | |
| 17001 | |
| 17002 | |
| 17003 | |
| 17004 | |
| 17005 | |
| 17006 | |
| 17007 | |
| 17008 | |
| 17009 | |
| 17010 | |
| 17011 | |
| 17012 | |
| 17013 | |
| 17014 | |
| 17015 | |
| 17016 | |
| 17017 | |
| 17018 | |
| 17019 | |
| 17020 | |
| 17021 | |
| 17022 | |
| 17023 | |
| 17024 | |
| 17025 | |
| 17026 | |
| 17027 | |
| 17028 | |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 17029 | |
| 17030 | |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 17031 | |
| 17032 | |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 17033 | |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 17034 | |
| 17035 | |
| 17036 | |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 17037 | |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 17038 | |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 17039 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17040 | |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 17041 | |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 17042 | |
| 17043 | |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 17044 | |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 17045 | |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 17046 | |
Marcus Meissner | 7a6fdea | 2005-11-17 12:58:35 +0000 | [diff] [blame] | 17047 | |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 17048 | |
Hans Leidekker | c0e6bb2 | 2006-02-20 14:16:38 +0100 | [diff] [blame] | 17049 | |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 17050 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17051 | for ac_func in \ |
| 17052 | _lwp_create \ |
Alexandre Julliard | 6f7a204 | 2003-04-01 04:39:35 +0000 | [diff] [blame] | 17053 | _lwp_self \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 17054 | _pclose \ |
| 17055 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 17056 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 17057 | _spawnvp \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 17058 | _stricmp \ |
| 17059 | _strnicmp \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 17060 | _vsnprintf \ |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 17061 | asctime_r \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 17062 | chsize \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17063 | clone \ |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 17064 | epoll_create \ |
Hans Leidekker | c3de6ef | 2004-10-19 23:53:26 +0000 | [diff] [blame] | 17065 | ffs \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 17066 | finite \ |
Hans Leidekker | bed3842 | 2004-10-14 03:08:57 +0000 | [diff] [blame] | 17067 | fork \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 17068 | fpclass \ |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 17069 | fstatfs \ |
| 17070 | fstatvfs \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 17071 | ftruncate \ |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 17072 | futimes \ |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 17073 | futimesat \ |
Marcus Meissner | 7a6fdea | 2005-11-17 12:58:35 +0000 | [diff] [blame] | 17074 | getaddrinfo \ |
Hans Leidekker | c0e6bb2 | 2006-02-20 14:16:38 +0100 | [diff] [blame] | 17075 | getnameinfo \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 17076 | getnetbyname \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 17077 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17078 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 17079 | getprotobyname \ |
| 17080 | getprotobynumber \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 17081 | getpwuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 17082 | getservbyport \ |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 17083 | gettid \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 17084 | gettimeofday \ |
Steven Edwards | e7c3ab1 | 2004-10-04 20:45:49 +0000 | [diff] [blame] | 17085 | getuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 17086 | inet_network \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 17087 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17088 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 17089 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 17090 | pclose \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 17091 | popen \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 17092 | prctl \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 17093 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 17094 | pwrite \ |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 17095 | readlink \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17096 | rfork \ |
Jeremy White | 08c0f69 | 2004-10-09 02:26:29 +0000 | [diff] [blame] | 17097 | sched_yield \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 17098 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17099 | sendmsg \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 17100 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17101 | sigaltstack \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 17102 | sigprocmask \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 17103 | snprintf \ |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 17104 | spawnvp \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 17105 | statfs \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17106 | statvfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 17107 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17108 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 17109 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17110 | tcgetattr \ |
| 17111 | timegm \ |
| 17112 | usleep \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 17113 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17114 | wait4 \ |
| 17115 | waitpid \ |
| 17116 | |
| 17117 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17118 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17119 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17120 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17121 | 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] | 17122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17123 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17124 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17125 | /* confdefs.h. */ |
| 17126 | _ACEOF |
| 17127 | cat confdefs.h >>conftest.$ac_ext |
| 17128 | cat >>conftest.$ac_ext <<_ACEOF |
| 17129 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17130 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17131 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17132 | #define $ac_func innocuous_$ac_func |
| 17133 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17134 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17135 | which can conflict with char $ac_func (); below. |
| 17136 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17137 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17138 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17139 | #ifdef __STDC__ |
| 17140 | # include <limits.h> |
| 17141 | #else |
| 17142 | # include <assert.h> |
| 17143 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17144 | |
| 17145 | #undef $ac_func |
| 17146 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17147 | /* Override any GCC internal prototype to avoid an error. |
| 17148 | Use char because int might match the return type of a GCC |
| 17149 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17150 | #ifdef __cplusplus |
| 17151 | extern "C" |
| 17152 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17153 | char $ac_func (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17154 | /* The GNU C library defines this for functions which it implements |
| 17155 | to always fail with ENOSYS. Some functions are actually named |
| 17156 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17157 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17158 | choke me |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 17159 | #endif |
| 17160 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17161 | int |
| 17162 | main () |
| 17163 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17164 | return $ac_func (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17165 | ; |
| 17166 | return 0; |
| 17167 | } |
| 17168 | _ACEOF |
| 17169 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17171 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17172 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17174 | rm -f conftest.er1 |
| 17175 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17177 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17178 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17180 | (eval $ac_try) 2>&5 |
| 17181 | ac_status=$? |
| 17182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17183 | (exit $ac_status); }; } && |
| 17184 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17186 | (eval $ac_try) 2>&5 |
| 17187 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17189 | (exit $ac_status); }; }; then |
| 17190 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17191 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17192 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17194 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17195 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17196 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17197 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17198 | rm -f conftest.err conftest.$ac_objext \ |
| 17199 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17200 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17201 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17202 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17203 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17204 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17205 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17206 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17207 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 17208 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17209 | fi |
| 17210 | done |
| 17211 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17212 | |
| 17213 | |
| 17214 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17215 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 17216 | 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] | 17217 | if test "${ac_cv_c_const+set}" = set; then |
| 17218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17219 | else |
| 17220 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17221 | /* confdefs.h. */ |
| 17222 | _ACEOF |
| 17223 | cat confdefs.h >>conftest.$ac_ext |
| 17224 | cat >>conftest.$ac_ext <<_ACEOF |
| 17225 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17226 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17227 | int |
| 17228 | main () |
| 17229 | { |
| 17230 | /* FIXME: Include the comments suggested by Paul. */ |
| 17231 | #ifndef __cplusplus |
| 17232 | /* Ultrix mips cc rejects this. */ |
| 17233 | typedef int charset[2]; |
| 17234 | const charset x; |
| 17235 | /* SunOS 4.1.1 cc rejects this. */ |
| 17236 | char const *const *ccp; |
| 17237 | char **p; |
| 17238 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 17239 | struct point {int x, y;}; |
| 17240 | static struct point const zero = {0,0}; |
| 17241 | /* AIX XL C 1.02.0.0 rejects this. |
| 17242 | It does not let you subtract one const X* pointer from another in |
| 17243 | an arm of an if-expression whose if-part is not a constant |
| 17244 | expression */ |
| 17245 | const char *g = "string"; |
| 17246 | ccp = &g + (g ? g-g : 0); |
| 17247 | /* HPUX 7.0 cc rejects these. */ |
| 17248 | ++ccp; |
| 17249 | p = (char**) ccp; |
| 17250 | ccp = (char const *const *) p; |
| 17251 | { /* SCO 3.2v4 cc rejects this. */ |
| 17252 | char *t; |
| 17253 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17254 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17255 | *t++ = 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17256 | if (s) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17257 | } |
| 17258 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 17259 | int x[] = {25, 17}; |
| 17260 | const int *foo = &x[0]; |
| 17261 | ++foo; |
| 17262 | } |
| 17263 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 17264 | typedef const int *iptr; |
| 17265 | iptr p = 0; |
| 17266 | ++p; |
| 17267 | } |
| 17268 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 17269 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 17270 | struct s { int j; const int *ap[3]; }; |
| 17271 | struct s *b; b->j = 5; |
| 17272 | } |
| 17273 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 17274 | const int foo = 10; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17275 | if (!foo) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17276 | } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17277 | return !x[0] && !zero.x; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17278 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17279 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17280 | ; |
| 17281 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17282 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17283 | _ACEOF |
| 17284 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17286 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17287 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17289 | rm -f conftest.er1 |
| 17290 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17292 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17295 | (eval $ac_try) 2>&5 |
| 17296 | ac_status=$? |
| 17297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17298 | (exit $ac_status); }; } && |
| 17299 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17301 | (eval $ac_try) 2>&5 |
| 17302 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17304 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17305 | ac_cv_c_const=yes |
| 17306 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17307 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17309 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17310 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17311 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17312 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17314 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17315 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 17316 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17317 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17318 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17319 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17320 | #define const |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17321 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17322 | |
| 17323 | fi |
| 17324 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17325 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 17326 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17327 | if test "${ac_cv_c_inline+set}" = set; then |
| 17328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17329 | else |
| 17330 | ac_cv_c_inline=no |
| 17331 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17332 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17333 | /* confdefs.h. */ |
| 17334 | _ACEOF |
| 17335 | cat confdefs.h >>conftest.$ac_ext |
| 17336 | cat >>conftest.$ac_ext <<_ACEOF |
| 17337 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17338 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17339 | typedef int foo_t; |
| 17340 | static $ac_kw foo_t static_foo () {return 0; } |
| 17341 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17342 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17343 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17344 | _ACEOF |
| 17345 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17347 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17348 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17350 | rm -f conftest.er1 |
| 17351 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17353 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17356 | (eval $ac_try) 2>&5 |
| 17357 | ac_status=$? |
| 17358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17359 | (exit $ac_status); }; } && |
| 17360 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17362 | (eval $ac_try) 2>&5 |
| 17363 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17365 | (exit $ac_status); }; }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17366 | ac_cv_c_inline=$ac_kw |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17367 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17368 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17370 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17371 | |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17372 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17373 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17375 | test "$ac_cv_c_inline" != no && break |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17376 | done |
| 17377 | |
| 17378 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17379 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 17380 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17381 | |
| 17382 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17383 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17384 | inline | yes) ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17385 | *) |
| 17386 | case $ac_cv_c_inline in |
| 17387 | no) ac_val=;; |
| 17388 | *) ac_val=$ac_cv_c_inline;; |
| 17389 | esac |
| 17390 | cat >>confdefs.h <<_ACEOF |
| 17391 | #ifndef __cplusplus |
| 17392 | #define inline $ac_val |
| 17393 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17394 | _ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17395 | ;; |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17396 | esac |
| 17397 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17398 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 17399 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17400 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 17401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17402 | else |
| 17403 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17404 | /* confdefs.h. */ |
| 17405 | _ACEOF |
| 17406 | cat confdefs.h >>conftest.$ac_ext |
| 17407 | cat >>conftest.$ac_ext <<_ACEOF |
| 17408 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17409 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17410 | typedef mode_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17411 | int |
| 17412 | main () |
| 17413 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17414 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17415 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17416 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17417 | return 0; |
| 17418 | ; |
| 17419 | return 0; |
| 17420 | } |
| 17421 | _ACEOF |
| 17422 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17424 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17425 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17427 | rm -f conftest.er1 |
| 17428 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17430 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17433 | (eval $ac_try) 2>&5 |
| 17434 | ac_status=$? |
| 17435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17436 | (exit $ac_status); }; } && |
| 17437 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17439 | (eval $ac_try) 2>&5 |
| 17440 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17442 | (exit $ac_status); }; }; then |
| 17443 | ac_cv_type_mode_t=yes |
| 17444 | else |
| 17445 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17447 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17448 | ac_cv_type_mode_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17449 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17450 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17452 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17453 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 17454 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17455 | if test $ac_cv_type_mode_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17456 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17457 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17458 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17459 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17460 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17461 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17462 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17463 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 17464 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17465 | if test "${ac_cv_type_off_t+set}" = set; then |
| 17466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17467 | else |
| 17468 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17469 | /* confdefs.h. */ |
| 17470 | _ACEOF |
| 17471 | cat confdefs.h >>conftest.$ac_ext |
| 17472 | cat >>conftest.$ac_ext <<_ACEOF |
| 17473 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17474 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17475 | typedef off_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17476 | int |
| 17477 | main () |
| 17478 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17479 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17480 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17481 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17482 | return 0; |
| 17483 | ; |
| 17484 | return 0; |
| 17485 | } |
| 17486 | _ACEOF |
| 17487 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17489 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17490 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17492 | rm -f conftest.er1 |
| 17493 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17495 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17498 | (eval $ac_try) 2>&5 |
| 17499 | ac_status=$? |
| 17500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17501 | (exit $ac_status); }; } && |
| 17502 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17504 | (eval $ac_try) 2>&5 |
| 17505 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17507 | (exit $ac_status); }; }; then |
| 17508 | ac_cv_type_off_t=yes |
| 17509 | else |
| 17510 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17512 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17513 | ac_cv_type_off_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17514 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17515 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17517 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17518 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 17519 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17520 | if test $ac_cv_type_off_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17521 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17522 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17523 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17524 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17525 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17526 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17527 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17528 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 17529 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17530 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17532 | else |
| 17533 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17534 | /* confdefs.h. */ |
| 17535 | _ACEOF |
| 17536 | cat confdefs.h >>conftest.$ac_ext |
| 17537 | cat >>conftest.$ac_ext <<_ACEOF |
| 17538 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17539 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17540 | typedef pid_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17541 | int |
| 17542 | main () |
| 17543 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17544 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17545 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17546 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17547 | return 0; |
| 17548 | ; |
| 17549 | return 0; |
| 17550 | } |
| 17551 | _ACEOF |
| 17552 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17554 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17555 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17557 | rm -f conftest.er1 |
| 17558 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17560 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17563 | (eval $ac_try) 2>&5 |
| 17564 | ac_status=$? |
| 17565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17566 | (exit $ac_status); }; } && |
| 17567 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17569 | (eval $ac_try) 2>&5 |
| 17570 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17572 | (exit $ac_status); }; }; then |
| 17573 | ac_cv_type_pid_t=yes |
| 17574 | else |
| 17575 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17577 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17578 | ac_cv_type_pid_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17579 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17580 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17582 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17583 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 17584 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17585 | if test $ac_cv_type_pid_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17586 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17587 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17588 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17589 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17590 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17591 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17592 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17593 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 17594 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17595 | if test "${ac_cv_type_size_t+set}" = set; then |
| 17596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17597 | else |
| 17598 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17599 | /* confdefs.h. */ |
| 17600 | _ACEOF |
| 17601 | cat confdefs.h >>conftest.$ac_ext |
| 17602 | cat >>conftest.$ac_ext <<_ACEOF |
| 17603 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17604 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17605 | typedef size_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17606 | int |
| 17607 | main () |
| 17608 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17609 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17610 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17611 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17612 | return 0; |
| 17613 | ; |
| 17614 | return 0; |
| 17615 | } |
| 17616 | _ACEOF |
| 17617 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17619 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17620 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17622 | rm -f conftest.er1 |
| 17623 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17625 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17628 | (eval $ac_try) 2>&5 |
| 17629 | ac_status=$? |
| 17630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17631 | (exit $ac_status); }; } && |
| 17632 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17634 | (eval $ac_try) 2>&5 |
| 17635 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17637 | (exit $ac_status); }; }; then |
| 17638 | ac_cv_type_size_t=yes |
| 17639 | else |
| 17640 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17642 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17643 | ac_cv_type_size_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17644 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17645 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17647 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17648 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 17649 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17650 | if test $ac_cv_type_size_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17651 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17652 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17653 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17654 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17655 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17656 | |
| 17657 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17658 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 17659 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17660 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 17661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17662 | else |
| 17663 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17664 | /* confdefs.h. */ |
| 17665 | _ACEOF |
| 17666 | cat confdefs.h >>conftest.$ac_ext |
| 17667 | cat >>conftest.$ac_ext <<_ACEOF |
| 17668 | /* end confdefs.h. */ |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17669 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17670 | typedef ssize_t ac__type_new_; |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17671 | int |
| 17672 | main () |
| 17673 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17674 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17675 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17676 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17677 | return 0; |
| 17678 | ; |
| 17679 | return 0; |
| 17680 | } |
| 17681 | _ACEOF |
| 17682 | rm -f conftest.$ac_objext |
| 17683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17684 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17685 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17687 | rm -f conftest.er1 |
| 17688 | cat conftest.err >&5 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17690 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17693 | (eval $ac_try) 2>&5 |
| 17694 | ac_status=$? |
| 17695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17696 | (exit $ac_status); }; } && |
| 17697 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17699 | (eval $ac_try) 2>&5 |
| 17700 | ac_status=$? |
| 17701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17702 | (exit $ac_status); }; }; then |
| 17703 | ac_cv_type_ssize_t=yes |
| 17704 | else |
| 17705 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17707 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17708 | ac_cv_type_ssize_t=no |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17709 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17710 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17712 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17713 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 17714 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17715 | if test $ac_cv_type_ssize_t = yes; then |
| 17716 | |
| 17717 | cat >>confdefs.h <<_ACEOF |
| 17718 | #define HAVE_SSIZE_T 1 |
| 17719 | _ACEOF |
| 17720 | |
| 17721 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17722 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17723 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 17724 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17725 | if test "${ac_cv_type_long_long+set}" = set; then |
| 17726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17727 | else |
| 17728 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17729 | /* confdefs.h. */ |
| 17730 | _ACEOF |
| 17731 | cat confdefs.h >>conftest.$ac_ext |
| 17732 | cat >>conftest.$ac_ext <<_ACEOF |
| 17733 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17734 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17735 | typedef long long ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17736 | int |
| 17737 | main () |
| 17738 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17739 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17740 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17741 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17742 | return 0; |
| 17743 | ; |
| 17744 | return 0; |
| 17745 | } |
| 17746 | _ACEOF |
| 17747 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17749 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17750 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17752 | rm -f conftest.er1 |
| 17753 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17755 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17758 | (eval $ac_try) 2>&5 |
| 17759 | ac_status=$? |
| 17760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17761 | (exit $ac_status); }; } && |
| 17762 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17764 | (eval $ac_try) 2>&5 |
| 17765 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17767 | (exit $ac_status); }; }; then |
| 17768 | ac_cv_type_long_long=yes |
| 17769 | else |
| 17770 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17772 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17773 | ac_cv_type_long_long=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17774 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17775 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17777 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17778 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 17779 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17780 | if test $ac_cv_type_long_long = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17781 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17782 | cat >>confdefs.h <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17783 | #define HAVE_LONG_LONG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17784 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 17785 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17786 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17787 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17788 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 |
| 17789 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17790 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then |
| 17791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17792 | else |
| 17793 | cat >conftest.$ac_ext <<_ACEOF |
| 17794 | /* confdefs.h. */ |
| 17795 | _ACEOF |
| 17796 | cat confdefs.h >>conftest.$ac_ext |
| 17797 | cat >>conftest.$ac_ext <<_ACEOF |
| 17798 | /* end confdefs.h. */ |
| 17799 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17800 | typedef fsblkcnt_t ac__type_new_; |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17801 | int |
| 17802 | main () |
| 17803 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17804 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17805 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17806 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17807 | return 0; |
| 17808 | ; |
| 17809 | return 0; |
| 17810 | } |
| 17811 | _ACEOF |
| 17812 | rm -f conftest.$ac_objext |
| 17813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17814 | (eval $ac_compile) 2>conftest.er1 |
| 17815 | ac_status=$? |
| 17816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17817 | rm -f conftest.er1 |
| 17818 | cat conftest.err >&5 |
| 17819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17820 | (exit $ac_status); } && |
| 17821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17823 | (eval $ac_try) 2>&5 |
| 17824 | ac_status=$? |
| 17825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17826 | (exit $ac_status); }; } && |
| 17827 | { ac_try='test -s conftest.$ac_objext' |
| 17828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17829 | (eval $ac_try) 2>&5 |
| 17830 | ac_status=$? |
| 17831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17832 | (exit $ac_status); }; }; then |
| 17833 | ac_cv_type_fsblkcnt_t=yes |
| 17834 | else |
| 17835 | echo "$as_me: failed program was:" >&5 |
| 17836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17837 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17838 | ac_cv_type_fsblkcnt_t=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17839 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17840 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17842 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17843 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 |
| 17844 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17845 | if test $ac_cv_type_fsblkcnt_t = yes; then |
| 17846 | |
| 17847 | cat >>confdefs.h <<_ACEOF |
| 17848 | #define HAVE_FSBLKCNT_T 1 |
| 17849 | _ACEOF |
| 17850 | |
| 17851 | |
| 17852 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17853 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 |
| 17854 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17855 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then |
| 17856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17857 | else |
| 17858 | cat >conftest.$ac_ext <<_ACEOF |
| 17859 | /* confdefs.h. */ |
| 17860 | _ACEOF |
| 17861 | cat confdefs.h >>conftest.$ac_ext |
| 17862 | cat >>conftest.$ac_ext <<_ACEOF |
| 17863 | /* end confdefs.h. */ |
| 17864 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17865 | typedef fsfilcnt_t ac__type_new_; |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17866 | int |
| 17867 | main () |
| 17868 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17869 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17870 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17871 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17872 | return 0; |
| 17873 | ; |
| 17874 | return 0; |
| 17875 | } |
| 17876 | _ACEOF |
| 17877 | rm -f conftest.$ac_objext |
| 17878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17879 | (eval $ac_compile) 2>conftest.er1 |
| 17880 | ac_status=$? |
| 17881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17882 | rm -f conftest.er1 |
| 17883 | cat conftest.err >&5 |
| 17884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17885 | (exit $ac_status); } && |
| 17886 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17888 | (eval $ac_try) 2>&5 |
| 17889 | ac_status=$? |
| 17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17891 | (exit $ac_status); }; } && |
| 17892 | { ac_try='test -s conftest.$ac_objext' |
| 17893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17894 | (eval $ac_try) 2>&5 |
| 17895 | ac_status=$? |
| 17896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17897 | (exit $ac_status); }; }; then |
| 17898 | ac_cv_type_fsfilcnt_t=yes |
| 17899 | else |
| 17900 | echo "$as_me: failed program was:" >&5 |
| 17901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17902 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17903 | ac_cv_type_fsfilcnt_t=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17904 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17905 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17907 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17908 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 |
| 17909 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17910 | if test $ac_cv_type_fsfilcnt_t = yes; then |
| 17911 | |
| 17912 | cat >>confdefs.h <<_ACEOF |
| 17913 | #define HAVE_FSFILCNT_T 1 |
| 17914 | _ACEOF |
| 17915 | |
| 17916 | |
| 17917 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17918 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17919 | { echo "$as_me:$LINENO: checking for sigset_t" >&5 |
| 17920 | echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 17921 | if test "${ac_cv_type_sigset_t+set}" = set; then |
| 17922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17923 | else |
| 17924 | cat >conftest.$ac_ext <<_ACEOF |
| 17925 | /* confdefs.h. */ |
| 17926 | _ACEOF |
| 17927 | cat confdefs.h >>conftest.$ac_ext |
| 17928 | cat >>conftest.$ac_ext <<_ACEOF |
| 17929 | /* end confdefs.h. */ |
| 17930 | #include <signal.h> |
| 17931 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17932 | typedef sigset_t ac__type_new_; |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 17933 | int |
| 17934 | main () |
| 17935 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17936 | if ((ac__type_new_ *) 0) |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 17937 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17938 | if (sizeof (ac__type_new_)) |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 17939 | return 0; |
| 17940 | ; |
| 17941 | return 0; |
| 17942 | } |
| 17943 | _ACEOF |
| 17944 | rm -f conftest.$ac_objext |
| 17945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17946 | (eval $ac_compile) 2>conftest.er1 |
| 17947 | ac_status=$? |
| 17948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17949 | rm -f conftest.er1 |
| 17950 | cat conftest.err >&5 |
| 17951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17952 | (exit $ac_status); } && |
| 17953 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17955 | (eval $ac_try) 2>&5 |
| 17956 | ac_status=$? |
| 17957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17958 | (exit $ac_status); }; } && |
| 17959 | { ac_try='test -s conftest.$ac_objext' |
| 17960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17961 | (eval $ac_try) 2>&5 |
| 17962 | ac_status=$? |
| 17963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17964 | (exit $ac_status); }; }; then |
| 17965 | ac_cv_type_sigset_t=yes |
| 17966 | else |
| 17967 | echo "$as_me: failed program was:" >&5 |
| 17968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17969 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17970 | ac_cv_type_sigset_t=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 17971 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17972 | |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 17973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17974 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17975 | { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5 |
| 17976 | echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 17977 | if test $ac_cv_type_sigset_t = yes; then |
| 17978 | |
| 17979 | cat >>confdefs.h <<_ACEOF |
| 17980 | #define HAVE_SIGSET_T 1 |
| 17981 | _ACEOF |
| 17982 | |
| 17983 | |
| 17984 | fi |
| 17985 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17986 | { echo "$as_me:$LINENO: checking for request_sense" >&5 |
| 17987 | echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; } |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 17988 | if test "${ac_cv_type_request_sense+set}" = set; then |
| 17989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17990 | else |
| 17991 | cat >conftest.$ac_ext <<_ACEOF |
| 17992 | /* confdefs.h. */ |
| 17993 | _ACEOF |
| 17994 | cat confdefs.h >>conftest.$ac_ext |
| 17995 | cat >>conftest.$ac_ext <<_ACEOF |
| 17996 | /* end confdefs.h. */ |
| 17997 | #include <linux/cdrom.h> |
| 17998 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17999 | typedef request_sense ac__type_new_; |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 18000 | int |
| 18001 | main () |
| 18002 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18003 | if ((ac__type_new_ *) 0) |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 18004 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18005 | if (sizeof (ac__type_new_)) |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 18006 | return 0; |
| 18007 | ; |
| 18008 | return 0; |
| 18009 | } |
| 18010 | _ACEOF |
| 18011 | rm -f conftest.$ac_objext |
| 18012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18013 | (eval $ac_compile) 2>conftest.er1 |
| 18014 | ac_status=$? |
| 18015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18016 | rm -f conftest.er1 |
| 18017 | cat conftest.err >&5 |
| 18018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18019 | (exit $ac_status); } && |
| 18020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18022 | (eval $ac_try) 2>&5 |
| 18023 | ac_status=$? |
| 18024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18025 | (exit $ac_status); }; } && |
| 18026 | { ac_try='test -s conftest.$ac_objext' |
| 18027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18028 | (eval $ac_try) 2>&5 |
| 18029 | ac_status=$? |
| 18030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18031 | (exit $ac_status); }; }; then |
| 18032 | ac_cv_type_request_sense=yes |
| 18033 | else |
| 18034 | echo "$as_me: failed program was:" >&5 |
| 18035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18036 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18037 | ac_cv_type_request_sense=no |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 18038 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18039 | |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 18040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18041 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18042 | { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5 |
| 18043 | echo "${ECHO_T}$ac_cv_type_request_sense" >&6; } |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 18044 | if test $ac_cv_type_request_sense = yes; then |
| 18045 | |
| 18046 | cat >>confdefs.h <<_ACEOF |
| 18047 | #define HAVE_REQUEST_SENSE 1 |
| 18048 | _ACEOF |
| 18049 | |
| 18050 | |
| 18051 | fi |
| 18052 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18053 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18054 | { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5 |
| 18055 | echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; } |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 18056 | if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then |
| 18057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18058 | else |
| 18059 | cat >conftest.$ac_ext <<_ACEOF |
| 18060 | /* confdefs.h. */ |
| 18061 | _ACEOF |
| 18062 | cat confdefs.h >>conftest.$ac_ext |
| 18063 | cat >>conftest.$ac_ext <<_ACEOF |
| 18064 | /* end confdefs.h. */ |
| 18065 | #ifdef HAVE_LINUX_INPUT_H |
| 18066 | #include <linux/input.h> |
| 18067 | #endif |
| 18068 | |
| 18069 | int |
| 18070 | main () |
| 18071 | { |
| 18072 | static struct ff_effect ac_aggr; |
| 18073 | if (ac_aggr.direction) |
| 18074 | return 0; |
| 18075 | ; |
| 18076 | return 0; |
| 18077 | } |
| 18078 | _ACEOF |
| 18079 | rm -f conftest.$ac_objext |
| 18080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18081 | (eval $ac_compile) 2>conftest.er1 |
| 18082 | ac_status=$? |
| 18083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18084 | rm -f conftest.er1 |
| 18085 | cat conftest.err >&5 |
| 18086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18087 | (exit $ac_status); } && |
| 18088 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18090 | (eval $ac_try) 2>&5 |
| 18091 | ac_status=$? |
| 18092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18093 | (exit $ac_status); }; } && |
| 18094 | { ac_try='test -s conftest.$ac_objext' |
| 18095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18096 | (eval $ac_try) 2>&5 |
| 18097 | ac_status=$? |
| 18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18099 | (exit $ac_status); }; }; then |
| 18100 | ac_cv_member_struct_ff_effect_direction=yes |
| 18101 | else |
| 18102 | echo "$as_me: failed program was:" >&5 |
| 18103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18104 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18105 | cat >conftest.$ac_ext <<_ACEOF |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 18106 | /* confdefs.h. */ |
| 18107 | _ACEOF |
| 18108 | cat confdefs.h >>conftest.$ac_ext |
| 18109 | cat >>conftest.$ac_ext <<_ACEOF |
| 18110 | /* end confdefs.h. */ |
| 18111 | #ifdef HAVE_LINUX_INPUT_H |
| 18112 | #include <linux/input.h> |
| 18113 | #endif |
| 18114 | |
| 18115 | int |
| 18116 | main () |
| 18117 | { |
| 18118 | static struct ff_effect ac_aggr; |
| 18119 | if (sizeof ac_aggr.direction) |
| 18120 | return 0; |
| 18121 | ; |
| 18122 | return 0; |
| 18123 | } |
| 18124 | _ACEOF |
| 18125 | rm -f conftest.$ac_objext |
| 18126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18127 | (eval $ac_compile) 2>conftest.er1 |
| 18128 | ac_status=$? |
| 18129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18130 | rm -f conftest.er1 |
| 18131 | cat conftest.err >&5 |
| 18132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18133 | (exit $ac_status); } && |
| 18134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18136 | (eval $ac_try) 2>&5 |
| 18137 | ac_status=$? |
| 18138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18139 | (exit $ac_status); }; } && |
| 18140 | { ac_try='test -s conftest.$ac_objext' |
| 18141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18142 | (eval $ac_try) 2>&5 |
| 18143 | ac_status=$? |
| 18144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18145 | (exit $ac_status); }; }; then |
| 18146 | ac_cv_member_struct_ff_effect_direction=yes |
| 18147 | else |
| 18148 | echo "$as_me: failed program was:" >&5 |
| 18149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18150 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18151 | ac_cv_member_struct_ff_effect_direction=no |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 18152 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18153 | |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 18154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18155 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18156 | |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 18157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18158 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18159 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5 |
| 18160 | echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; } |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 18161 | if test $ac_cv_member_struct_ff_effect_direction = yes; then |
| 18162 | |
| 18163 | cat >>confdefs.h <<_ACEOF |
| 18164 | #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1 |
| 18165 | _ACEOF |
| 18166 | |
| 18167 | |
| 18168 | fi |
| 18169 | |
| 18170 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18171 | { echo "$as_me:$LINENO: checking for sigaddset" >&5 |
| 18172 | echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 18173 | if test "${wine_cv_have_sigaddset+set}" = set; then |
| 18174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18175 | else |
| 18176 | cat >conftest.$ac_ext <<_ACEOF |
| 18177 | /* confdefs.h. */ |
| 18178 | _ACEOF |
| 18179 | cat confdefs.h >>conftest.$ac_ext |
| 18180 | cat >>conftest.$ac_ext <<_ACEOF |
| 18181 | /* end confdefs.h. */ |
| 18182 | #include <signal.h> |
| 18183 | int |
| 18184 | main () |
| 18185 | { |
| 18186 | sigset_t set; sigaddset(&set,SIGTERM); |
| 18187 | ; |
| 18188 | return 0; |
| 18189 | } |
| 18190 | _ACEOF |
| 18191 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18193 | (eval $ac_link) 2>conftest.er1 |
| 18194 | ac_status=$? |
| 18195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18196 | rm -f conftest.er1 |
| 18197 | cat conftest.err >&5 |
| 18198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18199 | (exit $ac_status); } && |
| 18200 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18202 | (eval $ac_try) 2>&5 |
| 18203 | ac_status=$? |
| 18204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18205 | (exit $ac_status); }; } && |
| 18206 | { ac_try='test -s conftest$ac_exeext' |
| 18207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18208 | (eval $ac_try) 2>&5 |
| 18209 | ac_status=$? |
| 18210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18211 | (exit $ac_status); }; }; then |
| 18212 | wine_cv_have_sigaddset=yes |
| 18213 | else |
| 18214 | echo "$as_me: failed program was:" >&5 |
| 18215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18216 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18217 | wine_cv_have_sigaddset=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 18218 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18219 | |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 18220 | rm -f conftest.err conftest.$ac_objext \ |
| 18221 | conftest$ac_exeext conftest.$ac_ext |
| 18222 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18223 | { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5 |
| 18224 | echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 18225 | if test "$wine_cv_have_sigaddset" = "yes" |
| 18226 | then |
| 18227 | |
| 18228 | cat >>confdefs.h <<\_ACEOF |
| 18229 | #define HAVE_SIGADDSET 1 |
| 18230 | _ACEOF |
| 18231 | |
| 18232 | fi |
| 18233 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18234 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18235 | { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5 |
| 18236 | 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] | 18237 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 18238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18239 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18240 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18241 | /* confdefs.h. */ |
| 18242 | _ACEOF |
| 18243 | cat confdefs.h >>conftest.$ac_ext |
| 18244 | cat >>conftest.$ac_ext <<_ACEOF |
| 18245 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18246 | |
| 18247 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18248 | |
| 18249 | int |
| 18250 | main () |
| 18251 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18252 | |
| 18253 | char *name=NULL; |
| 18254 | struct hostent he; |
| 18255 | struct hostent *result; |
| 18256 | char *buf=NULL; |
| 18257 | int bufsize=0; |
| 18258 | int res,errnr; |
| 18259 | char *addr=NULL; |
| 18260 | int addrlen=0; |
| 18261 | int addrtype=0; |
| 18262 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 18263 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18264 | |
| 18265 | ; |
| 18266 | return 0; |
| 18267 | } |
| 18268 | _ACEOF |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 18269 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18271 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18272 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18274 | rm -f conftest.er1 |
| 18275 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18277 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18280 | (eval $ac_try) 2>&5 |
| 18281 | ac_status=$? |
| 18282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18283 | (exit $ac_status); }; } && |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 18284 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18286 | (eval $ac_try) 2>&5 |
| 18287 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18289 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18290 | wine_cv_linux_gethostbyname_r_6=yes |
| 18291 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18292 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18294 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18295 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18296 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18297 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18298 | |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 18299 | rm -f conftest.err conftest.$ac_objext \ |
| 18300 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18301 | |
| 18302 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18303 | { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
| 18304 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; } |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18305 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 18306 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18307 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18308 | cat >>confdefs.h <<\_ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18309 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18310 | _ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18311 | |
| 18312 | fi |
| 18313 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18314 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18315 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18316 | { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5 |
| 18317 | 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] | 18318 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 18319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18320 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18321 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18322 | /* confdefs.h. */ |
| 18323 | _ACEOF |
| 18324 | cat confdefs.h >>conftest.$ac_ext |
| 18325 | cat >>conftest.$ac_ext <<_ACEOF |
| 18326 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18327 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18328 | #include <sys/ioctl.h> |
| 18329 | #include <linux/joystick.h> |
| 18330 | |
| 18331 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 18332 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 18333 | #error "no 2.2 header" |
| 18334 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18335 | |
| 18336 | int |
| 18337 | main () |
| 18338 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18339 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18340 | ; |
| 18341 | return 0; |
| 18342 | } |
| 18343 | _ACEOF |
| 18344 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18346 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18347 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18349 | rm -f conftest.er1 |
| 18350 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18352 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18353 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18355 | (eval $ac_try) 2>&5 |
| 18356 | ac_status=$? |
| 18357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18358 | (exit $ac_status); }; } && |
| 18359 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18361 | (eval $ac_try) 2>&5 |
| 18362 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18364 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18365 | wine_cv_linux_joystick_22_api=yes |
| 18366 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18367 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18369 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18370 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18371 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18372 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18374 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18375 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18376 | { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
| 18377 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; } |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 18378 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18379 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18380 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18381 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18382 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18383 | _ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18384 | |
| 18385 | fi |
| 18386 | fi |
| 18387 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18388 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18389 | { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5 |
| 18390 | echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18391 | if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18393 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18394 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18395 | /* confdefs.h. */ |
| 18396 | _ACEOF |
| 18397 | cat confdefs.h >>conftest.$ac_ext |
| 18398 | cat >>conftest.$ac_ext <<_ACEOF |
| 18399 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18400 | #include <sys/types.h> |
| 18401 | #ifdef HAVE_SYS_PARAM_H |
| 18402 | # include <sys/param.h> |
| 18403 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18404 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18405 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18406 | #endif |
| 18407 | #ifdef HAVE_SYS_VFS_H |
| 18408 | # include <sys/vfs.h> |
| 18409 | #endif |
| 18410 | #ifdef HAVE_SYS_STATFS_H |
| 18411 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18412 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18413 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18414 | int |
| 18415 | main () |
| 18416 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18417 | static struct statfs ac_aggr; |
| 18418 | if (ac_aggr.f_bfree) |
| 18419 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18420 | ; |
| 18421 | return 0; |
| 18422 | } |
| 18423 | _ACEOF |
| 18424 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18426 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +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 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18432 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18433 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18435 | (eval $ac_try) 2>&5 |
| 18436 | ac_status=$? |
| 18437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18438 | (exit $ac_status); }; } && |
| 18439 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18441 | (eval $ac_try) 2>&5 |
| 18442 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18444 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18445 | ac_cv_member_struct_statfs_f_bfree=yes |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18446 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18447 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18449 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18450 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18451 | /* confdefs.h. */ |
| 18452 | _ACEOF |
| 18453 | cat confdefs.h >>conftest.$ac_ext |
| 18454 | cat >>conftest.$ac_ext <<_ACEOF |
| 18455 | /* end confdefs.h. */ |
| 18456 | #include <sys/types.h> |
| 18457 | #ifdef HAVE_SYS_PARAM_H |
| 18458 | # include <sys/param.h> |
| 18459 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18460 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18461 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18462 | #endif |
| 18463 | #ifdef HAVE_SYS_VFS_H |
| 18464 | # include <sys/vfs.h> |
| 18465 | #endif |
| 18466 | #ifdef HAVE_SYS_STATFS_H |
| 18467 | # include <sys/statfs.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18468 | #endif |
| 18469 | |
| 18470 | int |
| 18471 | main () |
| 18472 | { |
| 18473 | static struct statfs ac_aggr; |
| 18474 | if (sizeof ac_aggr.f_bfree) |
| 18475 | return 0; |
| 18476 | ; |
| 18477 | return 0; |
| 18478 | } |
| 18479 | _ACEOF |
| 18480 | rm -f conftest.$ac_objext |
| 18481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18482 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18483 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18485 | rm -f conftest.er1 |
| 18486 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18488 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18491 | (eval $ac_try) 2>&5 |
| 18492 | ac_status=$? |
| 18493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18494 | (exit $ac_status); }; } && |
| 18495 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18497 | (eval $ac_try) 2>&5 |
| 18498 | ac_status=$? |
| 18499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18500 | (exit $ac_status); }; }; then |
| 18501 | ac_cv_member_struct_statfs_f_bfree=yes |
| 18502 | else |
| 18503 | echo "$as_me: failed program was:" >&5 |
| 18504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18505 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18506 | ac_cv_member_struct_statfs_f_bfree=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18507 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18508 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18510 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18511 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18513 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18514 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5 |
| 18515 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18516 | if test $ac_cv_member_struct_statfs_f_bfree = yes; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18517 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18518 | cat >>confdefs.h <<_ACEOF |
| 18519 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18520 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18521 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18522 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18523 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18524 | { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5 |
| 18525 | echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18526 | if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 18528 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18529 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18530 | /* confdefs.h. */ |
| 18531 | _ACEOF |
| 18532 | cat confdefs.h >>conftest.$ac_ext |
| 18533 | cat >>conftest.$ac_ext <<_ACEOF |
| 18534 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18535 | #include <sys/types.h> |
| 18536 | #ifdef HAVE_SYS_PARAM_H |
| 18537 | # include <sys/param.h> |
| 18538 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18539 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18540 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18541 | #endif |
| 18542 | #ifdef HAVE_SYS_VFS_H |
| 18543 | # include <sys/vfs.h> |
| 18544 | #endif |
| 18545 | #ifdef HAVE_SYS_STATFS_H |
| 18546 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18547 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18548 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18549 | int |
| 18550 | main () |
| 18551 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18552 | static struct statfs ac_aggr; |
| 18553 | if (ac_aggr.f_bavail) |
| 18554 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18555 | ; |
| 18556 | return 0; |
| 18557 | } |
| 18558 | _ACEOF |
| 18559 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18561 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18562 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18564 | rm -f conftest.er1 |
| 18565 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18567 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18568 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18570 | (eval $ac_try) 2>&5 |
| 18571 | ac_status=$? |
| 18572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18573 | (exit $ac_status); }; } && |
| 18574 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18576 | (eval $ac_try) 2>&5 |
| 18577 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18579 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18580 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 18581 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18582 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18584 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18585 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18586 | /* confdefs.h. */ |
| 18587 | _ACEOF |
| 18588 | cat confdefs.h >>conftest.$ac_ext |
| 18589 | cat >>conftest.$ac_ext <<_ACEOF |
| 18590 | /* end confdefs.h. */ |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18591 | #include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18592 | #ifdef HAVE_SYS_PARAM_H |
| 18593 | # include <sys/param.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 18594 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18595 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18596 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18597 | #endif |
| 18598 | #ifdef HAVE_SYS_VFS_H |
| 18599 | # include <sys/vfs.h> |
| 18600 | #endif |
| 18601 | #ifdef HAVE_SYS_STATFS_H |
| 18602 | # include <sys/statfs.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18603 | #endif |
| 18604 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18605 | int |
| 18606 | main () |
| 18607 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18608 | static struct statfs ac_aggr; |
| 18609 | if (sizeof ac_aggr.f_bavail) |
| 18610 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18611 | ; |
| 18612 | return 0; |
| 18613 | } |
| 18614 | _ACEOF |
| 18615 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18617 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18618 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18620 | rm -f conftest.er1 |
| 18621 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18623 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18626 | (eval $ac_try) 2>&5 |
| 18627 | ac_status=$? |
| 18628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18629 | (exit $ac_status); }; } && |
| 18630 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18632 | (eval $ac_try) 2>&5 |
| 18633 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18635 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18636 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18637 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18638 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18640 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18641 | ac_cv_member_struct_statfs_f_bavail=no |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18642 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18643 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18645 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18646 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18648 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18649 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5 |
| 18650 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18651 | if test $ac_cv_member_struct_statfs_f_bavail = yes; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18652 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18653 | cat >>confdefs.h <<_ACEOF |
| 18654 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18655 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18656 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18657 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18658 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18659 | { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5 |
| 18660 | echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18661 | if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then |
| 18662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18663 | else |
| 18664 | cat >conftest.$ac_ext <<_ACEOF |
| 18665 | /* confdefs.h. */ |
| 18666 | _ACEOF |
| 18667 | cat confdefs.h >>conftest.$ac_ext |
| 18668 | cat >>conftest.$ac_ext <<_ACEOF |
| 18669 | /* end confdefs.h. */ |
| 18670 | #include <sys/types.h> |
| 18671 | #ifdef HAVE_SYS_PARAM_H |
| 18672 | # include <sys/param.h> |
| 18673 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18674 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18675 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18676 | #endif |
| 18677 | #ifdef HAVE_SYS_VFS_H |
| 18678 | # include <sys/vfs.h> |
| 18679 | #endif |
| 18680 | #ifdef HAVE_SYS_STATFS_H |
| 18681 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18682 | #endif |
| 18683 | |
| 18684 | int |
| 18685 | main () |
| 18686 | { |
| 18687 | static struct statfs ac_aggr; |
| 18688 | if (ac_aggr.f_frsize) |
| 18689 | return 0; |
| 18690 | ; |
| 18691 | return 0; |
| 18692 | } |
| 18693 | _ACEOF |
| 18694 | rm -f conftest.$ac_objext |
| 18695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18696 | (eval $ac_compile) 2>conftest.er1 |
| 18697 | ac_status=$? |
| 18698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18699 | rm -f conftest.er1 |
| 18700 | cat conftest.err >&5 |
| 18701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18702 | (exit $ac_status); } && |
| 18703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18705 | (eval $ac_try) 2>&5 |
| 18706 | ac_status=$? |
| 18707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18708 | (exit $ac_status); }; } && |
| 18709 | { ac_try='test -s conftest.$ac_objext' |
| 18710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18711 | (eval $ac_try) 2>&5 |
| 18712 | ac_status=$? |
| 18713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18714 | (exit $ac_status); }; }; then |
| 18715 | ac_cv_member_struct_statfs_f_frsize=yes |
| 18716 | else |
| 18717 | echo "$as_me: failed program was:" >&5 |
| 18718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18719 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18720 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18721 | /* confdefs.h. */ |
| 18722 | _ACEOF |
| 18723 | cat confdefs.h >>conftest.$ac_ext |
| 18724 | cat >>conftest.$ac_ext <<_ACEOF |
| 18725 | /* end confdefs.h. */ |
| 18726 | #include <sys/types.h> |
| 18727 | #ifdef HAVE_SYS_PARAM_H |
| 18728 | # include <sys/param.h> |
| 18729 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18730 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18731 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18732 | #endif |
| 18733 | #ifdef HAVE_SYS_VFS_H |
| 18734 | # include <sys/vfs.h> |
| 18735 | #endif |
| 18736 | #ifdef HAVE_SYS_STATFS_H |
| 18737 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18738 | #endif |
| 18739 | |
| 18740 | int |
| 18741 | main () |
| 18742 | { |
| 18743 | static struct statfs ac_aggr; |
| 18744 | if (sizeof ac_aggr.f_frsize) |
| 18745 | return 0; |
| 18746 | ; |
| 18747 | return 0; |
| 18748 | } |
| 18749 | _ACEOF |
| 18750 | rm -f conftest.$ac_objext |
| 18751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18752 | (eval $ac_compile) 2>conftest.er1 |
| 18753 | ac_status=$? |
| 18754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18755 | rm -f conftest.er1 |
| 18756 | cat conftest.err >&5 |
| 18757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18758 | (exit $ac_status); } && |
| 18759 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18761 | (eval $ac_try) 2>&5 |
| 18762 | ac_status=$? |
| 18763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18764 | (exit $ac_status); }; } && |
| 18765 | { ac_try='test -s conftest.$ac_objext' |
| 18766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18767 | (eval $ac_try) 2>&5 |
| 18768 | ac_status=$? |
| 18769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18770 | (exit $ac_status); }; }; then |
| 18771 | ac_cv_member_struct_statfs_f_frsize=yes |
| 18772 | else |
| 18773 | echo "$as_me: failed program was:" >&5 |
| 18774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18775 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18776 | ac_cv_member_struct_statfs_f_frsize=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18777 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18778 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18780 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18781 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18783 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18784 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5 |
| 18785 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18786 | if test $ac_cv_member_struct_statfs_f_frsize = yes; then |
| 18787 | |
| 18788 | cat >>confdefs.h <<_ACEOF |
| 18789 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 |
| 18790 | _ACEOF |
| 18791 | |
| 18792 | |
| 18793 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18794 | { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5 |
| 18795 | echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18796 | if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then |
| 18797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18798 | else |
| 18799 | cat >conftest.$ac_ext <<_ACEOF |
| 18800 | /* confdefs.h. */ |
| 18801 | _ACEOF |
| 18802 | cat confdefs.h >>conftest.$ac_ext |
| 18803 | cat >>conftest.$ac_ext <<_ACEOF |
| 18804 | /* end confdefs.h. */ |
| 18805 | #include <sys/types.h> |
| 18806 | #ifdef HAVE_SYS_PARAM_H |
| 18807 | # include <sys/param.h> |
| 18808 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18809 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18810 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18811 | #endif |
| 18812 | #ifdef HAVE_SYS_VFS_H |
| 18813 | # include <sys/vfs.h> |
| 18814 | #endif |
| 18815 | #ifdef HAVE_SYS_STATFS_H |
| 18816 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18817 | #endif |
| 18818 | |
| 18819 | int |
| 18820 | main () |
| 18821 | { |
| 18822 | static struct statfs ac_aggr; |
| 18823 | if (ac_aggr.f_ffree) |
| 18824 | return 0; |
| 18825 | ; |
| 18826 | return 0; |
| 18827 | } |
| 18828 | _ACEOF |
| 18829 | rm -f conftest.$ac_objext |
| 18830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18831 | (eval $ac_compile) 2>conftest.er1 |
| 18832 | ac_status=$? |
| 18833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18834 | rm -f conftest.er1 |
| 18835 | cat conftest.err >&5 |
| 18836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18837 | (exit $ac_status); } && |
| 18838 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18840 | (eval $ac_try) 2>&5 |
| 18841 | ac_status=$? |
| 18842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18843 | (exit $ac_status); }; } && |
| 18844 | { ac_try='test -s conftest.$ac_objext' |
| 18845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18846 | (eval $ac_try) 2>&5 |
| 18847 | ac_status=$? |
| 18848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18849 | (exit $ac_status); }; }; then |
| 18850 | ac_cv_member_struct_statfs_f_ffree=yes |
| 18851 | else |
| 18852 | echo "$as_me: failed program was:" >&5 |
| 18853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18854 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18855 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18856 | /* confdefs.h. */ |
| 18857 | _ACEOF |
| 18858 | cat confdefs.h >>conftest.$ac_ext |
| 18859 | cat >>conftest.$ac_ext <<_ACEOF |
| 18860 | /* end confdefs.h. */ |
| 18861 | #include <sys/types.h> |
| 18862 | #ifdef HAVE_SYS_PARAM_H |
| 18863 | # include <sys/param.h> |
| 18864 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18865 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18866 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18867 | #endif |
| 18868 | #ifdef HAVE_SYS_VFS_H |
| 18869 | # include <sys/vfs.h> |
| 18870 | #endif |
| 18871 | #ifdef HAVE_SYS_STATFS_H |
| 18872 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18873 | #endif |
| 18874 | |
| 18875 | int |
| 18876 | main () |
| 18877 | { |
| 18878 | static struct statfs ac_aggr; |
| 18879 | if (sizeof ac_aggr.f_ffree) |
| 18880 | return 0; |
| 18881 | ; |
| 18882 | return 0; |
| 18883 | } |
| 18884 | _ACEOF |
| 18885 | rm -f conftest.$ac_objext |
| 18886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18887 | (eval $ac_compile) 2>conftest.er1 |
| 18888 | ac_status=$? |
| 18889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18890 | rm -f conftest.er1 |
| 18891 | cat conftest.err >&5 |
| 18892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18893 | (exit $ac_status); } && |
| 18894 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18896 | (eval $ac_try) 2>&5 |
| 18897 | ac_status=$? |
| 18898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18899 | (exit $ac_status); }; } && |
| 18900 | { ac_try='test -s conftest.$ac_objext' |
| 18901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18902 | (eval $ac_try) 2>&5 |
| 18903 | ac_status=$? |
| 18904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18905 | (exit $ac_status); }; }; then |
| 18906 | ac_cv_member_struct_statfs_f_ffree=yes |
| 18907 | else |
| 18908 | echo "$as_me: failed program was:" >&5 |
| 18909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18910 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18911 | ac_cv_member_struct_statfs_f_ffree=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18912 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18913 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18915 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18916 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18918 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18919 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5 |
| 18920 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18921 | if test $ac_cv_member_struct_statfs_f_ffree = yes; then |
| 18922 | |
| 18923 | cat >>confdefs.h <<_ACEOF |
| 18924 | #define HAVE_STRUCT_STATFS_F_FFREE 1 |
| 18925 | _ACEOF |
| 18926 | |
| 18927 | |
| 18928 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18929 | { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5 |
| 18930 | echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18931 | if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then |
| 18932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18933 | else |
| 18934 | cat >conftest.$ac_ext <<_ACEOF |
| 18935 | /* confdefs.h. */ |
| 18936 | _ACEOF |
| 18937 | cat confdefs.h >>conftest.$ac_ext |
| 18938 | cat >>conftest.$ac_ext <<_ACEOF |
| 18939 | /* end confdefs.h. */ |
| 18940 | #include <sys/types.h> |
| 18941 | #ifdef HAVE_SYS_PARAM_H |
| 18942 | # include <sys/param.h> |
| 18943 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18944 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18945 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 18946 | #endif |
| 18947 | #ifdef HAVE_SYS_VFS_H |
| 18948 | # include <sys/vfs.h> |
| 18949 | #endif |
| 18950 | #ifdef HAVE_SYS_STATFS_H |
| 18951 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18952 | #endif |
| 18953 | |
| 18954 | int |
| 18955 | main () |
| 18956 | { |
| 18957 | static struct statfs ac_aggr; |
| 18958 | if (ac_aggr.f_favail) |
| 18959 | return 0; |
| 18960 | ; |
| 18961 | return 0; |
| 18962 | } |
| 18963 | _ACEOF |
| 18964 | rm -f conftest.$ac_objext |
| 18965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18966 | (eval $ac_compile) 2>conftest.er1 |
| 18967 | ac_status=$? |
| 18968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18969 | rm -f conftest.er1 |
| 18970 | cat conftest.err >&5 |
| 18971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18972 | (exit $ac_status); } && |
| 18973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18975 | (eval $ac_try) 2>&5 |
| 18976 | ac_status=$? |
| 18977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18978 | (exit $ac_status); }; } && |
| 18979 | { ac_try='test -s conftest.$ac_objext' |
| 18980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18981 | (eval $ac_try) 2>&5 |
| 18982 | ac_status=$? |
| 18983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18984 | (exit $ac_status); }; }; then |
| 18985 | ac_cv_member_struct_statfs_f_favail=yes |
| 18986 | else |
| 18987 | echo "$as_me: failed program was:" >&5 |
| 18988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18989 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18990 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18991 | /* confdefs.h. */ |
| 18992 | _ACEOF |
| 18993 | cat confdefs.h >>conftest.$ac_ext |
| 18994 | cat >>conftest.$ac_ext <<_ACEOF |
| 18995 | /* end confdefs.h. */ |
| 18996 | #include <sys/types.h> |
| 18997 | #ifdef HAVE_SYS_PARAM_H |
| 18998 | # include <sys/param.h> |
| 18999 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 19000 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19001 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 19002 | #endif |
| 19003 | #ifdef HAVE_SYS_VFS_H |
| 19004 | # include <sys/vfs.h> |
| 19005 | #endif |
| 19006 | #ifdef HAVE_SYS_STATFS_H |
| 19007 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19008 | #endif |
| 19009 | |
| 19010 | int |
| 19011 | main () |
| 19012 | { |
| 19013 | static struct statfs ac_aggr; |
| 19014 | if (sizeof ac_aggr.f_favail) |
| 19015 | return 0; |
| 19016 | ; |
| 19017 | return 0; |
| 19018 | } |
| 19019 | _ACEOF |
| 19020 | rm -f conftest.$ac_objext |
| 19021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19022 | (eval $ac_compile) 2>conftest.er1 |
| 19023 | ac_status=$? |
| 19024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19025 | rm -f conftest.er1 |
| 19026 | cat conftest.err >&5 |
| 19027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19028 | (exit $ac_status); } && |
| 19029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19031 | (eval $ac_try) 2>&5 |
| 19032 | ac_status=$? |
| 19033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19034 | (exit $ac_status); }; } && |
| 19035 | { ac_try='test -s conftest.$ac_objext' |
| 19036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19037 | (eval $ac_try) 2>&5 |
| 19038 | ac_status=$? |
| 19039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19040 | (exit $ac_status); }; }; then |
| 19041 | ac_cv_member_struct_statfs_f_favail=yes |
| 19042 | else |
| 19043 | echo "$as_me: failed program was:" >&5 |
| 19044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19045 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19046 | ac_cv_member_struct_statfs_f_favail=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19047 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19048 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19050 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19051 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19053 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19054 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5 |
| 19055 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19056 | if test $ac_cv_member_struct_statfs_f_favail = yes; then |
| 19057 | |
| 19058 | cat >>confdefs.h <<_ACEOF |
| 19059 | #define HAVE_STRUCT_STATFS_F_FAVAIL 1 |
| 19060 | _ACEOF |
| 19061 | |
| 19062 | |
| 19063 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19064 | { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5 |
| 19065 | echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; } |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 19066 | if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then |
| 19067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19068 | else |
| 19069 | cat >conftest.$ac_ext <<_ACEOF |
| 19070 | /* confdefs.h. */ |
| 19071 | _ACEOF |
| 19072 | cat confdefs.h >>conftest.$ac_ext |
| 19073 | cat >>conftest.$ac_ext <<_ACEOF |
| 19074 | /* end confdefs.h. */ |
| 19075 | #include <sys/types.h> |
| 19076 | #ifdef HAVE_SYS_PARAM_H |
| 19077 | # include <sys/param.h> |
| 19078 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 19079 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 19080 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 19081 | #endif |
| 19082 | #ifdef HAVE_SYS_VFS_H |
| 19083 | # include <sys/vfs.h> |
| 19084 | #endif |
| 19085 | #ifdef HAVE_SYS_STATFS_H |
| 19086 | # include <sys/statfs.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 19087 | #endif |
| 19088 | |
| 19089 | int |
| 19090 | main () |
| 19091 | { |
| 19092 | static struct statfs ac_aggr; |
| 19093 | if (ac_aggr.f_namelen) |
| 19094 | return 0; |
| 19095 | ; |
| 19096 | return 0; |
| 19097 | } |
| 19098 | _ACEOF |
| 19099 | rm -f conftest.$ac_objext |
| 19100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19101 | (eval $ac_compile) 2>conftest.er1 |
| 19102 | ac_status=$? |
| 19103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19104 | rm -f conftest.er1 |
| 19105 | cat conftest.err >&5 |
| 19106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19107 | (exit $ac_status); } && |
| 19108 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19110 | (eval $ac_try) 2>&5 |
| 19111 | ac_status=$? |
| 19112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19113 | (exit $ac_status); }; } && |
| 19114 | { ac_try='test -s conftest.$ac_objext' |
| 19115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19116 | (eval $ac_try) 2>&5 |
| 19117 | ac_status=$? |
| 19118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19119 | (exit $ac_status); }; }; then |
| 19120 | ac_cv_member_struct_statfs_f_namelen=yes |
| 19121 | else |
| 19122 | echo "$as_me: failed program was:" >&5 |
| 19123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19124 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19125 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 19126 | /* confdefs.h. */ |
| 19127 | _ACEOF |
| 19128 | cat confdefs.h >>conftest.$ac_ext |
| 19129 | cat >>conftest.$ac_ext <<_ACEOF |
| 19130 | /* end confdefs.h. */ |
| 19131 | #include <sys/types.h> |
| 19132 | #ifdef HAVE_SYS_PARAM_H |
| 19133 | # include <sys/param.h> |
| 19134 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 19135 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 19136 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 19137 | #endif |
| 19138 | #ifdef HAVE_SYS_VFS_H |
| 19139 | # include <sys/vfs.h> |
| 19140 | #endif |
| 19141 | #ifdef HAVE_SYS_STATFS_H |
| 19142 | # include <sys/statfs.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 19143 | #endif |
| 19144 | |
| 19145 | int |
| 19146 | main () |
| 19147 | { |
| 19148 | static struct statfs ac_aggr; |
| 19149 | if (sizeof ac_aggr.f_namelen) |
| 19150 | return 0; |
| 19151 | ; |
| 19152 | return 0; |
| 19153 | } |
| 19154 | _ACEOF |
| 19155 | rm -f conftest.$ac_objext |
| 19156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19157 | (eval $ac_compile) 2>conftest.er1 |
| 19158 | ac_status=$? |
| 19159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19160 | rm -f conftest.er1 |
| 19161 | cat conftest.err >&5 |
| 19162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19163 | (exit $ac_status); } && |
| 19164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19166 | (eval $ac_try) 2>&5 |
| 19167 | ac_status=$? |
| 19168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19169 | (exit $ac_status); }; } && |
| 19170 | { ac_try='test -s conftest.$ac_objext' |
| 19171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19172 | (eval $ac_try) 2>&5 |
| 19173 | ac_status=$? |
| 19174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19175 | (exit $ac_status); }; }; then |
| 19176 | ac_cv_member_struct_statfs_f_namelen=yes |
| 19177 | else |
| 19178 | echo "$as_me: failed program was:" >&5 |
| 19179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19180 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19181 | ac_cv_member_struct_statfs_f_namelen=no |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 19182 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19183 | |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 19184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19185 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19186 | |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 19187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19188 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19189 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5 |
| 19190 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; } |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 19191 | if test $ac_cv_member_struct_statfs_f_namelen = yes; then |
| 19192 | |
| 19193 | cat >>confdefs.h <<_ACEOF |
| 19194 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 |
| 19195 | _ACEOF |
| 19196 | |
| 19197 | |
| 19198 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19199 | |
| 19200 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19201 | { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5 |
| 19202 | echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19203 | if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then |
| 19204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19205 | else |
| 19206 | cat >conftest.$ac_ext <<_ACEOF |
| 19207 | /* confdefs.h. */ |
| 19208 | _ACEOF |
| 19209 | cat confdefs.h >>conftest.$ac_ext |
| 19210 | cat >>conftest.$ac_ext <<_ACEOF |
| 19211 | /* end confdefs.h. */ |
| 19212 | #ifdef HAVE_SYS_STATVFS_H |
| 19213 | #include <sys/statvfs.h> |
| 19214 | #endif |
| 19215 | |
| 19216 | int |
| 19217 | main () |
| 19218 | { |
| 19219 | static struct statvfs ac_aggr; |
| 19220 | if (ac_aggr.f_blocks) |
| 19221 | return 0; |
| 19222 | ; |
| 19223 | return 0; |
| 19224 | } |
| 19225 | _ACEOF |
| 19226 | rm -f conftest.$ac_objext |
| 19227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19228 | (eval $ac_compile) 2>conftest.er1 |
| 19229 | ac_status=$? |
| 19230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19231 | rm -f conftest.er1 |
| 19232 | cat conftest.err >&5 |
| 19233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19234 | (exit $ac_status); } && |
| 19235 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19237 | (eval $ac_try) 2>&5 |
| 19238 | ac_status=$? |
| 19239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19240 | (exit $ac_status); }; } && |
| 19241 | { ac_try='test -s conftest.$ac_objext' |
| 19242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19243 | (eval $ac_try) 2>&5 |
| 19244 | ac_status=$? |
| 19245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19246 | (exit $ac_status); }; }; then |
| 19247 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 19248 | else |
| 19249 | echo "$as_me: failed program was:" >&5 |
| 19250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19251 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19252 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19253 | /* confdefs.h. */ |
| 19254 | _ACEOF |
| 19255 | cat confdefs.h >>conftest.$ac_ext |
| 19256 | cat >>conftest.$ac_ext <<_ACEOF |
| 19257 | /* end confdefs.h. */ |
| 19258 | #ifdef HAVE_SYS_STATVFS_H |
| 19259 | #include <sys/statvfs.h> |
| 19260 | #endif |
| 19261 | |
| 19262 | int |
| 19263 | main () |
| 19264 | { |
| 19265 | static struct statvfs ac_aggr; |
| 19266 | if (sizeof ac_aggr.f_blocks) |
| 19267 | return 0; |
| 19268 | ; |
| 19269 | return 0; |
| 19270 | } |
| 19271 | _ACEOF |
| 19272 | rm -f conftest.$ac_objext |
| 19273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19274 | (eval $ac_compile) 2>conftest.er1 |
| 19275 | ac_status=$? |
| 19276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19277 | rm -f conftest.er1 |
| 19278 | cat conftest.err >&5 |
| 19279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19280 | (exit $ac_status); } && |
| 19281 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19283 | (eval $ac_try) 2>&5 |
| 19284 | ac_status=$? |
| 19285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19286 | (exit $ac_status); }; } && |
| 19287 | { ac_try='test -s conftest.$ac_objext' |
| 19288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19289 | (eval $ac_try) 2>&5 |
| 19290 | ac_status=$? |
| 19291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19292 | (exit $ac_status); }; }; then |
| 19293 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 19294 | else |
| 19295 | echo "$as_me: failed program was:" >&5 |
| 19296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19297 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19298 | ac_cv_member_struct_statvfs_f_blocks=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19299 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19300 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19302 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19303 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19305 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19306 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5 |
| 19307 | echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19308 | if test $ac_cv_member_struct_statvfs_f_blocks = yes; then |
| 19309 | |
| 19310 | cat >>confdefs.h <<_ACEOF |
| 19311 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 |
| 19312 | _ACEOF |
| 19313 | |
| 19314 | |
| 19315 | fi |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 19316 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19317 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19318 | { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5 |
| 19319 | echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19320 | if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 19322 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19323 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19324 | /* confdefs.h. */ |
| 19325 | _ACEOF |
| 19326 | cat confdefs.h >>conftest.$ac_ext |
| 19327 | cat >>conftest.$ac_ext <<_ACEOF |
| 19328 | /* end confdefs.h. */ |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 19329 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 19330 | #ifdef HAVE_SYS_SOCKET_H |
| 19331 | # include <sys/socket.h> |
| 19332 | #endif |
| 19333 | #ifdef HAVE_SYS_UN_H |
| 19334 | # include <sys/un.h> |
| 19335 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19336 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19337 | int |
| 19338 | main () |
| 19339 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19340 | static struct msghdr ac_aggr; |
| 19341 | if (ac_aggr.msg_accrights) |
| 19342 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19343 | ; |
| 19344 | return 0; |
| 19345 | } |
| 19346 | _ACEOF |
| 19347 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19349 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19350 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19352 | rm -f conftest.er1 |
| 19353 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19355 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19356 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19358 | (eval $ac_try) 2>&5 |
| 19359 | ac_status=$? |
| 19360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19361 | (exit $ac_status); }; } && |
| 19362 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19364 | (eval $ac_try) 2>&5 |
| 19365 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19367 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19368 | ac_cv_member_struct_msghdr_msg_accrights=yes |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19369 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19370 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19372 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19373 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19374 | /* confdefs.h. */ |
| 19375 | _ACEOF |
| 19376 | cat confdefs.h >>conftest.$ac_ext |
| 19377 | cat >>conftest.$ac_ext <<_ACEOF |
| 19378 | /* end confdefs.h. */ |
| 19379 | #include <sys/types.h> |
| 19380 | #ifdef HAVE_SYS_SOCKET_H |
| 19381 | # include <sys/socket.h> |
| 19382 | #endif |
| 19383 | #ifdef HAVE_SYS_UN_H |
| 19384 | # include <sys/un.h> |
| 19385 | #endif |
| 19386 | |
| 19387 | int |
| 19388 | main () |
| 19389 | { |
| 19390 | static struct msghdr ac_aggr; |
| 19391 | if (sizeof ac_aggr.msg_accrights) |
| 19392 | return 0; |
| 19393 | ; |
| 19394 | return 0; |
| 19395 | } |
| 19396 | _ACEOF |
| 19397 | rm -f conftest.$ac_objext |
| 19398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19399 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19400 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19402 | rm -f conftest.er1 |
| 19403 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19405 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19406 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19408 | (eval $ac_try) 2>&5 |
| 19409 | ac_status=$? |
| 19410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19411 | (exit $ac_status); }; } && |
| 19412 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19414 | (eval $ac_try) 2>&5 |
| 19415 | ac_status=$? |
| 19416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19417 | (exit $ac_status); }; }; then |
| 19418 | ac_cv_member_struct_msghdr_msg_accrights=yes |
| 19419 | else |
| 19420 | echo "$as_me: failed program was:" >&5 |
| 19421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19422 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19423 | ac_cv_member_struct_msghdr_msg_accrights=no |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19424 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19425 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19427 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19428 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19430 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19431 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5 |
| 19432 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19433 | if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19434 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19435 | cat >>confdefs.h <<_ACEOF |
| 19436 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19437 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19438 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19439 | |
| 19440 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19441 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 19442 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19443 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
| 19444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19445 | else |
| 19446 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19447 | /* confdefs.h. */ |
| 19448 | _ACEOF |
| 19449 | cat confdefs.h >>conftest.$ac_ext |
| 19450 | cat >>conftest.$ac_ext <<_ACEOF |
| 19451 | /* end confdefs.h. */ |
| 19452 | #include <sys/types.h> |
| 19453 | #ifdef HAVE_SYS_SOCKET_H |
| 19454 | # include <sys/socket.h> |
| 19455 | #endif |
| 19456 | #ifdef HAVE_SYS_UN_H |
| 19457 | # include <sys/un.h> |
| 19458 | #endif |
| 19459 | |
| 19460 | int |
| 19461 | main () |
| 19462 | { |
| 19463 | static struct sockaddr ac_aggr; |
| 19464 | if (ac_aggr.sa_len) |
| 19465 | return 0; |
| 19466 | ; |
| 19467 | return 0; |
| 19468 | } |
| 19469 | _ACEOF |
| 19470 | rm -f conftest.$ac_objext |
| 19471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19472 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19473 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19475 | rm -f conftest.er1 |
| 19476 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19478 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19479 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19481 | (eval $ac_try) 2>&5 |
| 19482 | ac_status=$? |
| 19483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19484 | (exit $ac_status); }; } && |
| 19485 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19487 | (eval $ac_try) 2>&5 |
| 19488 | ac_status=$? |
| 19489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19490 | (exit $ac_status); }; }; then |
| 19491 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 19492 | else |
| 19493 | echo "$as_me: failed program was:" >&5 |
| 19494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19495 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19496 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19497 | /* confdefs.h. */ |
| 19498 | _ACEOF |
| 19499 | cat confdefs.h >>conftest.$ac_ext |
| 19500 | cat >>conftest.$ac_ext <<_ACEOF |
| 19501 | /* end confdefs.h. */ |
| 19502 | #include <sys/types.h> |
| 19503 | #ifdef HAVE_SYS_SOCKET_H |
| 19504 | # include <sys/socket.h> |
| 19505 | #endif |
| 19506 | #ifdef HAVE_SYS_UN_H |
| 19507 | # include <sys/un.h> |
| 19508 | #endif |
| 19509 | |
| 19510 | int |
| 19511 | main () |
| 19512 | { |
| 19513 | static struct sockaddr ac_aggr; |
| 19514 | if (sizeof ac_aggr.sa_len) |
| 19515 | return 0; |
| 19516 | ; |
| 19517 | return 0; |
| 19518 | } |
| 19519 | _ACEOF |
| 19520 | rm -f conftest.$ac_objext |
| 19521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19522 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19523 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19525 | rm -f conftest.er1 |
| 19526 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19528 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19529 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19531 | (eval $ac_try) 2>&5 |
| 19532 | ac_status=$? |
| 19533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19534 | (exit $ac_status); }; } && |
| 19535 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19537 | (eval $ac_try) 2>&5 |
| 19538 | ac_status=$? |
| 19539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19540 | (exit $ac_status); }; }; then |
| 19541 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 19542 | else |
| 19543 | echo "$as_me: failed program was:" >&5 |
| 19544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19545 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19546 | ac_cv_member_struct_sockaddr_sa_len=no |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19547 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19548 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19550 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19551 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19553 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19554 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 19555 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19556 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
| 19557 | |
| 19558 | cat >>confdefs.h <<_ACEOF |
| 19559 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 19560 | _ACEOF |
| 19561 | |
| 19562 | |
| 19563 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19564 | { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5 |
| 19565 | 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] | 19566 | if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then |
| 19567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19568 | else |
| 19569 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19570 | /* confdefs.h. */ |
| 19571 | _ACEOF |
| 19572 | cat confdefs.h >>conftest.$ac_ext |
| 19573 | cat >>conftest.$ac_ext <<_ACEOF |
| 19574 | /* end confdefs.h. */ |
| 19575 | #include <sys/types.h> |
| 19576 | #ifdef HAVE_SYS_SOCKET_H |
| 19577 | # include <sys/socket.h> |
| 19578 | #endif |
| 19579 | #ifdef HAVE_SYS_UN_H |
| 19580 | # include <sys/un.h> |
| 19581 | #endif |
| 19582 | |
| 19583 | int |
| 19584 | main () |
| 19585 | { |
| 19586 | static struct sockaddr_un ac_aggr; |
| 19587 | if (ac_aggr.sun_len) |
| 19588 | return 0; |
| 19589 | ; |
| 19590 | return 0; |
| 19591 | } |
| 19592 | _ACEOF |
| 19593 | rm -f conftest.$ac_objext |
| 19594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19595 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19596 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19598 | rm -f conftest.er1 |
| 19599 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19601 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19604 | (eval $ac_try) 2>&5 |
| 19605 | ac_status=$? |
| 19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19607 | (exit $ac_status); }; } && |
| 19608 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19610 | (eval $ac_try) 2>&5 |
| 19611 | ac_status=$? |
| 19612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19613 | (exit $ac_status); }; }; then |
| 19614 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 19615 | else |
| 19616 | echo "$as_me: failed program was:" >&5 |
| 19617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19618 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19619 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19620 | /* confdefs.h. */ |
| 19621 | _ACEOF |
| 19622 | cat confdefs.h >>conftest.$ac_ext |
| 19623 | cat >>conftest.$ac_ext <<_ACEOF |
| 19624 | /* end confdefs.h. */ |
| 19625 | #include <sys/types.h> |
| 19626 | #ifdef HAVE_SYS_SOCKET_H |
| 19627 | # include <sys/socket.h> |
| 19628 | #endif |
| 19629 | #ifdef HAVE_SYS_UN_H |
| 19630 | # include <sys/un.h> |
| 19631 | #endif |
| 19632 | |
| 19633 | int |
| 19634 | main () |
| 19635 | { |
| 19636 | static struct sockaddr_un ac_aggr; |
| 19637 | if (sizeof ac_aggr.sun_len) |
| 19638 | return 0; |
| 19639 | ; |
| 19640 | return 0; |
| 19641 | } |
| 19642 | _ACEOF |
| 19643 | rm -f conftest.$ac_objext |
| 19644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19645 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19646 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19648 | rm -f conftest.er1 |
| 19649 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19651 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19654 | (eval $ac_try) 2>&5 |
| 19655 | ac_status=$? |
| 19656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19657 | (exit $ac_status); }; } && |
| 19658 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19660 | (eval $ac_try) 2>&5 |
| 19661 | ac_status=$? |
| 19662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19663 | (exit $ac_status); }; }; then |
| 19664 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 19665 | else |
| 19666 | echo "$as_me: failed program was:" >&5 |
| 19667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19668 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19669 | ac_cv_member_struct_sockaddr_un_sun_len=no |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19670 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19671 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19673 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19674 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19676 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19677 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5 |
| 19678 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19679 | if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then |
| 19680 | |
| 19681 | cat >>confdefs.h <<_ACEOF |
| 19682 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 19683 | _ACEOF |
| 19684 | |
| 19685 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19686 | fi |
| 19687 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19688 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19689 | { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5 |
| 19690 | echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; } |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 19691 | if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then |
| 19692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19693 | else |
| 19694 | cat >conftest.$ac_ext <<_ACEOF |
| 19695 | /* confdefs.h. */ |
| 19696 | _ACEOF |
| 19697 | cat confdefs.h >>conftest.$ac_ext |
| 19698 | cat >>conftest.$ac_ext <<_ACEOF |
| 19699 | /* end confdefs.h. */ |
| 19700 | #include <sys/types.h> |
| 19701 | #ifdef HAVE_SCSI_SG_H |
| 19702 | #include <scsi/sg.h> |
| 19703 | #endif |
| 19704 | |
| 19705 | int |
| 19706 | main () |
| 19707 | { |
| 19708 | static scsireq_t ac_aggr; |
| 19709 | if (ac_aggr.cmd) |
| 19710 | return 0; |
| 19711 | ; |
| 19712 | return 0; |
| 19713 | } |
| 19714 | _ACEOF |
| 19715 | rm -f conftest.$ac_objext |
| 19716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19717 | (eval $ac_compile) 2>conftest.er1 |
| 19718 | ac_status=$? |
| 19719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19720 | rm -f conftest.er1 |
| 19721 | cat conftest.err >&5 |
| 19722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19723 | (exit $ac_status); } && |
| 19724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19726 | (eval $ac_try) 2>&5 |
| 19727 | ac_status=$? |
| 19728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19729 | (exit $ac_status); }; } && |
| 19730 | { ac_try='test -s conftest.$ac_objext' |
| 19731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19732 | (eval $ac_try) 2>&5 |
| 19733 | ac_status=$? |
| 19734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19735 | (exit $ac_status); }; }; then |
| 19736 | ac_cv_member_scsireq_t_cmd=yes |
| 19737 | else |
| 19738 | echo "$as_me: failed program was:" >&5 |
| 19739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19740 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19741 | cat >conftest.$ac_ext <<_ACEOF |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 19742 | /* confdefs.h. */ |
| 19743 | _ACEOF |
| 19744 | cat confdefs.h >>conftest.$ac_ext |
| 19745 | cat >>conftest.$ac_ext <<_ACEOF |
| 19746 | /* end confdefs.h. */ |
| 19747 | #include <sys/types.h> |
| 19748 | #ifdef HAVE_SCSI_SG_H |
| 19749 | #include <scsi/sg.h> |
| 19750 | #endif |
| 19751 | |
| 19752 | int |
| 19753 | main () |
| 19754 | { |
| 19755 | static scsireq_t ac_aggr; |
| 19756 | if (sizeof ac_aggr.cmd) |
| 19757 | return 0; |
| 19758 | ; |
| 19759 | return 0; |
| 19760 | } |
| 19761 | _ACEOF |
| 19762 | rm -f conftest.$ac_objext |
| 19763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19764 | (eval $ac_compile) 2>conftest.er1 |
| 19765 | ac_status=$? |
| 19766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19767 | rm -f conftest.er1 |
| 19768 | cat conftest.err >&5 |
| 19769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19770 | (exit $ac_status); } && |
| 19771 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19773 | (eval $ac_try) 2>&5 |
| 19774 | ac_status=$? |
| 19775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19776 | (exit $ac_status); }; } && |
| 19777 | { ac_try='test -s conftest.$ac_objext' |
| 19778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19779 | (eval $ac_try) 2>&5 |
| 19780 | ac_status=$? |
| 19781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19782 | (exit $ac_status); }; }; then |
| 19783 | ac_cv_member_scsireq_t_cmd=yes |
| 19784 | else |
| 19785 | echo "$as_me: failed program was:" >&5 |
| 19786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19787 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19788 | ac_cv_member_scsireq_t_cmd=no |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 19789 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19790 | |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 19791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19792 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19793 | |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 19794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19795 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19796 | { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5 |
| 19797 | echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; } |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 19798 | if test $ac_cv_member_scsireq_t_cmd = yes; then |
| 19799 | |
| 19800 | cat >>confdefs.h <<_ACEOF |
| 19801 | #define HAVE_SCSIREQ_T_CMD 1 |
| 19802 | _ACEOF |
| 19803 | |
| 19804 | |
| 19805 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19806 | { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5 |
| 19807 | 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] | 19808 | if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then |
| 19809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19810 | else |
| 19811 | cat >conftest.$ac_ext <<_ACEOF |
| 19812 | /* confdefs.h. */ |
| 19813 | _ACEOF |
| 19814 | cat confdefs.h >>conftest.$ac_ext |
| 19815 | cat >>conftest.$ac_ext <<_ACEOF |
| 19816 | /* end confdefs.h. */ |
| 19817 | #include <sys/types.h> |
| 19818 | #ifdef HAVE_SCSI_SG_H |
| 19819 | #include <scsi/sg.h> |
| 19820 | #endif |
| 19821 | |
| 19822 | int |
| 19823 | main () |
| 19824 | { |
| 19825 | static sg_io_hdr_t ac_aggr; |
| 19826 | if (ac_aggr.interface_id) |
| 19827 | return 0; |
| 19828 | ; |
| 19829 | return 0; |
| 19830 | } |
| 19831 | _ACEOF |
| 19832 | rm -f conftest.$ac_objext |
| 19833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19834 | (eval $ac_compile) 2>conftest.er1 |
| 19835 | ac_status=$? |
| 19836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19837 | rm -f conftest.er1 |
| 19838 | cat conftest.err >&5 |
| 19839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19840 | (exit $ac_status); } && |
| 19841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19843 | (eval $ac_try) 2>&5 |
| 19844 | ac_status=$? |
| 19845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19846 | (exit $ac_status); }; } && |
| 19847 | { ac_try='test -s conftest.$ac_objext' |
| 19848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19849 | (eval $ac_try) 2>&5 |
| 19850 | ac_status=$? |
| 19851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19852 | (exit $ac_status); }; }; then |
| 19853 | ac_cv_member_sg_io_hdr_t_interface_id=yes |
| 19854 | else |
| 19855 | echo "$as_me: failed program was:" >&5 |
| 19856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19857 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19858 | cat >conftest.$ac_ext <<_ACEOF |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 19859 | /* confdefs.h. */ |
| 19860 | _ACEOF |
| 19861 | cat confdefs.h >>conftest.$ac_ext |
| 19862 | cat >>conftest.$ac_ext <<_ACEOF |
| 19863 | /* end confdefs.h. */ |
| 19864 | #include <sys/types.h> |
| 19865 | #ifdef HAVE_SCSI_SG_H |
| 19866 | #include <scsi/sg.h> |
| 19867 | #endif |
| 19868 | |
| 19869 | int |
| 19870 | main () |
| 19871 | { |
| 19872 | static sg_io_hdr_t ac_aggr; |
| 19873 | if (sizeof ac_aggr.interface_id) |
| 19874 | return 0; |
| 19875 | ; |
| 19876 | return 0; |
| 19877 | } |
| 19878 | _ACEOF |
| 19879 | rm -f conftest.$ac_objext |
| 19880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19881 | (eval $ac_compile) 2>conftest.er1 |
| 19882 | ac_status=$? |
| 19883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19884 | rm -f conftest.er1 |
| 19885 | cat conftest.err >&5 |
| 19886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19887 | (exit $ac_status); } && |
| 19888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19890 | (eval $ac_try) 2>&5 |
| 19891 | ac_status=$? |
| 19892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19893 | (exit $ac_status); }; } && |
| 19894 | { ac_try='test -s conftest.$ac_objext' |
| 19895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19896 | (eval $ac_try) 2>&5 |
| 19897 | ac_status=$? |
| 19898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19899 | (exit $ac_status); }; }; then |
| 19900 | ac_cv_member_sg_io_hdr_t_interface_id=yes |
| 19901 | else |
| 19902 | echo "$as_me: failed program was:" >&5 |
| 19903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19904 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19905 | ac_cv_member_sg_io_hdr_t_interface_id=no |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 19906 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19907 | |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 19908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19909 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19910 | |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 19911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19912 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19913 | { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5 |
| 19914 | 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] | 19915 | if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then |
| 19916 | |
| 19917 | cat >>confdefs.h <<_ACEOF |
| 19918 | #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1 |
| 19919 | _ACEOF |
| 19920 | |
| 19921 | |
| 19922 | fi |
| 19923 | |
| 19924 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19925 | { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5 |
| 19926 | echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19927 | if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then |
| 19928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19929 | else |
| 19930 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19931 | /* confdefs.h. */ |
| 19932 | _ACEOF |
| 19933 | cat confdefs.h >>conftest.$ac_ext |
| 19934 | cat >>conftest.$ac_ext <<_ACEOF |
| 19935 | /* end confdefs.h. */ |
| 19936 | #include <signal.h> |
| 19937 | |
| 19938 | int |
| 19939 | main () |
| 19940 | { |
| 19941 | static siginfo_t ac_aggr; |
| 19942 | if (ac_aggr.si_fd) |
| 19943 | return 0; |
| 19944 | ; |
| 19945 | return 0; |
| 19946 | } |
| 19947 | _ACEOF |
| 19948 | rm -f conftest.$ac_objext |
| 19949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19950 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19951 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19953 | rm -f conftest.er1 |
| 19954 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19956 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19957 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19959 | (eval $ac_try) 2>&5 |
| 19960 | ac_status=$? |
| 19961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19962 | (exit $ac_status); }; } && |
| 19963 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19965 | (eval $ac_try) 2>&5 |
| 19966 | ac_status=$? |
| 19967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19968 | (exit $ac_status); }; }; then |
| 19969 | ac_cv_member_siginfo_t_si_fd=yes |
| 19970 | else |
| 19971 | echo "$as_me: failed program was:" >&5 |
| 19972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19973 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19974 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19975 | /* confdefs.h. */ |
| 19976 | _ACEOF |
| 19977 | cat confdefs.h >>conftest.$ac_ext |
| 19978 | cat >>conftest.$ac_ext <<_ACEOF |
| 19979 | /* end confdefs.h. */ |
| 19980 | #include <signal.h> |
| 19981 | |
| 19982 | int |
| 19983 | main () |
| 19984 | { |
| 19985 | static siginfo_t ac_aggr; |
| 19986 | if (sizeof ac_aggr.si_fd) |
| 19987 | return 0; |
| 19988 | ; |
| 19989 | return 0; |
| 19990 | } |
| 19991 | _ACEOF |
| 19992 | rm -f conftest.$ac_objext |
| 19993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19994 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19995 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19997 | rm -f conftest.er1 |
| 19998 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20000 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20003 | (eval $ac_try) 2>&5 |
| 20004 | ac_status=$? |
| 20005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20006 | (exit $ac_status); }; } && |
| 20007 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20009 | (eval $ac_try) 2>&5 |
| 20010 | ac_status=$? |
| 20011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20012 | (exit $ac_status); }; }; then |
| 20013 | ac_cv_member_siginfo_t_si_fd=yes |
| 20014 | else |
| 20015 | echo "$as_me: failed program was:" >&5 |
| 20016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20017 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20018 | ac_cv_member_siginfo_t_si_fd=no |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20019 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20020 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20022 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20023 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20025 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20026 | { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5 |
| 20027 | echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20028 | if test $ac_cv_member_siginfo_t_si_fd = yes; then |
| 20029 | |
| 20030 | cat >>confdefs.h <<_ACEOF |
| 20031 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 20032 | _ACEOF |
| 20033 | |
| 20034 | |
| 20035 | fi |
| 20036 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20037 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20038 | { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5 |
| 20039 | echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20040 | if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then |
| 20041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20042 | else |
| 20043 | cat >conftest.$ac_ext <<_ACEOF |
| 20044 | /* confdefs.h. */ |
| 20045 | _ACEOF |
| 20046 | cat confdefs.h >>conftest.$ac_ext |
| 20047 | cat >>conftest.$ac_ext <<_ACEOF |
| 20048 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 20049 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20050 | #ifdef HAVE_SYS_MTIO_H |
| 20051 | #include <sys/mtio.h> |
| 20052 | #endif |
| 20053 | |
| 20054 | int |
| 20055 | main () |
| 20056 | { |
| 20057 | static struct mtget ac_aggr; |
| 20058 | if (ac_aggr.mt_blksiz) |
| 20059 | return 0; |
| 20060 | ; |
| 20061 | return 0; |
| 20062 | } |
| 20063 | _ACEOF |
| 20064 | rm -f conftest.$ac_objext |
| 20065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20066 | (eval $ac_compile) 2>conftest.er1 |
| 20067 | ac_status=$? |
| 20068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20069 | rm -f conftest.er1 |
| 20070 | cat conftest.err >&5 |
| 20071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20072 | (exit $ac_status); } && |
| 20073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20075 | (eval $ac_try) 2>&5 |
| 20076 | ac_status=$? |
| 20077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20078 | (exit $ac_status); }; } && |
| 20079 | { ac_try='test -s conftest.$ac_objext' |
| 20080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20081 | (eval $ac_try) 2>&5 |
| 20082 | ac_status=$? |
| 20083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20084 | (exit $ac_status); }; }; then |
| 20085 | ac_cv_member_struct_mtget_mt_blksiz=yes |
| 20086 | else |
| 20087 | echo "$as_me: failed program was:" >&5 |
| 20088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20089 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20090 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20091 | /* confdefs.h. */ |
| 20092 | _ACEOF |
| 20093 | cat confdefs.h >>conftest.$ac_ext |
| 20094 | cat >>conftest.$ac_ext <<_ACEOF |
| 20095 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 20096 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20097 | #ifdef HAVE_SYS_MTIO_H |
| 20098 | #include <sys/mtio.h> |
| 20099 | #endif |
| 20100 | |
| 20101 | int |
| 20102 | main () |
| 20103 | { |
| 20104 | static struct mtget ac_aggr; |
| 20105 | if (sizeof ac_aggr.mt_blksiz) |
| 20106 | return 0; |
| 20107 | ; |
| 20108 | return 0; |
| 20109 | } |
| 20110 | _ACEOF |
| 20111 | rm -f conftest.$ac_objext |
| 20112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20113 | (eval $ac_compile) 2>conftest.er1 |
| 20114 | ac_status=$? |
| 20115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20116 | rm -f conftest.er1 |
| 20117 | cat conftest.err >&5 |
| 20118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20119 | (exit $ac_status); } && |
| 20120 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20122 | (eval $ac_try) 2>&5 |
| 20123 | ac_status=$? |
| 20124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20125 | (exit $ac_status); }; } && |
| 20126 | { ac_try='test -s conftest.$ac_objext' |
| 20127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20128 | (eval $ac_try) 2>&5 |
| 20129 | ac_status=$? |
| 20130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20131 | (exit $ac_status); }; }; then |
| 20132 | ac_cv_member_struct_mtget_mt_blksiz=yes |
| 20133 | else |
| 20134 | echo "$as_me: failed program was:" >&5 |
| 20135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20136 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20137 | ac_cv_member_struct_mtget_mt_blksiz=no |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20138 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20139 | |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20141 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20142 | |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20144 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20145 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5 |
| 20146 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20147 | if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then |
| 20148 | |
| 20149 | cat >>confdefs.h <<_ACEOF |
| 20150 | #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1 |
| 20151 | _ACEOF |
| 20152 | |
| 20153 | |
| 20154 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20155 | { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5 |
| 20156 | echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20157 | if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then |
| 20158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20159 | else |
| 20160 | cat >conftest.$ac_ext <<_ACEOF |
| 20161 | /* confdefs.h. */ |
| 20162 | _ACEOF |
| 20163 | cat confdefs.h >>conftest.$ac_ext |
| 20164 | cat >>conftest.$ac_ext <<_ACEOF |
| 20165 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 20166 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20167 | #ifdef HAVE_SYS_MTIO_H |
| 20168 | #include <sys/mtio.h> |
| 20169 | #endif |
| 20170 | |
| 20171 | int |
| 20172 | main () |
| 20173 | { |
| 20174 | static struct mtget ac_aggr; |
| 20175 | if (ac_aggr.mt_gstat) |
| 20176 | return 0; |
| 20177 | ; |
| 20178 | return 0; |
| 20179 | } |
| 20180 | _ACEOF |
| 20181 | rm -f conftest.$ac_objext |
| 20182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20183 | (eval $ac_compile) 2>conftest.er1 |
| 20184 | ac_status=$? |
| 20185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20186 | rm -f conftest.er1 |
| 20187 | cat conftest.err >&5 |
| 20188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20189 | (exit $ac_status); } && |
| 20190 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20192 | (eval $ac_try) 2>&5 |
| 20193 | ac_status=$? |
| 20194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20195 | (exit $ac_status); }; } && |
| 20196 | { ac_try='test -s conftest.$ac_objext' |
| 20197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20198 | (eval $ac_try) 2>&5 |
| 20199 | ac_status=$? |
| 20200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20201 | (exit $ac_status); }; }; then |
| 20202 | ac_cv_member_struct_mtget_mt_gstat=yes |
| 20203 | else |
| 20204 | echo "$as_me: failed program was:" >&5 |
| 20205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20206 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20207 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20208 | /* confdefs.h. */ |
| 20209 | _ACEOF |
| 20210 | cat confdefs.h >>conftest.$ac_ext |
| 20211 | cat >>conftest.$ac_ext <<_ACEOF |
| 20212 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 20213 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20214 | #ifdef HAVE_SYS_MTIO_H |
| 20215 | #include <sys/mtio.h> |
| 20216 | #endif |
| 20217 | |
| 20218 | int |
| 20219 | main () |
| 20220 | { |
| 20221 | static struct mtget ac_aggr; |
| 20222 | if (sizeof ac_aggr.mt_gstat) |
| 20223 | return 0; |
| 20224 | ; |
| 20225 | return 0; |
| 20226 | } |
| 20227 | _ACEOF |
| 20228 | rm -f conftest.$ac_objext |
| 20229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20230 | (eval $ac_compile) 2>conftest.er1 |
| 20231 | ac_status=$? |
| 20232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20233 | rm -f conftest.er1 |
| 20234 | cat conftest.err >&5 |
| 20235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20236 | (exit $ac_status); } && |
| 20237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20239 | (eval $ac_try) 2>&5 |
| 20240 | ac_status=$? |
| 20241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20242 | (exit $ac_status); }; } && |
| 20243 | { ac_try='test -s conftest.$ac_objext' |
| 20244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20245 | (eval $ac_try) 2>&5 |
| 20246 | ac_status=$? |
| 20247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20248 | (exit $ac_status); }; }; then |
| 20249 | ac_cv_member_struct_mtget_mt_gstat=yes |
| 20250 | else |
| 20251 | echo "$as_me: failed program was:" >&5 |
| 20252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20253 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20254 | ac_cv_member_struct_mtget_mt_gstat=no |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20255 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20256 | |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20258 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20259 | |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20261 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20262 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5 |
| 20263 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20264 | if test $ac_cv_member_struct_mtget_mt_gstat = yes; then |
| 20265 | |
| 20266 | cat >>confdefs.h <<_ACEOF |
| 20267 | #define HAVE_STRUCT_MTGET_MT_GSTAT 1 |
| 20268 | _ACEOF |
| 20269 | |
| 20270 | |
| 20271 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20272 | { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5 |
| 20273 | echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; } |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 20274 | if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then |
| 20275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20276 | else |
| 20277 | cat >conftest.$ac_ext <<_ACEOF |
| 20278 | /* confdefs.h. */ |
| 20279 | _ACEOF |
| 20280 | cat confdefs.h >>conftest.$ac_ext |
| 20281 | cat >>conftest.$ac_ext <<_ACEOF |
| 20282 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 20283 | #include <sys/types.h> |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 20284 | #ifdef HAVE_SYS_MTIO_H |
| 20285 | #include <sys/mtio.h> |
| 20286 | #endif |
| 20287 | |
| 20288 | int |
| 20289 | main () |
| 20290 | { |
| 20291 | static struct mtget ac_aggr; |
| 20292 | if (ac_aggr.mt_blkno) |
| 20293 | return 0; |
| 20294 | ; |
| 20295 | return 0; |
| 20296 | } |
| 20297 | _ACEOF |
| 20298 | rm -f conftest.$ac_objext |
| 20299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20300 | (eval $ac_compile) 2>conftest.er1 |
| 20301 | ac_status=$? |
| 20302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20303 | rm -f conftest.er1 |
| 20304 | cat conftest.err >&5 |
| 20305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20306 | (exit $ac_status); } && |
| 20307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20309 | (eval $ac_try) 2>&5 |
| 20310 | ac_status=$? |
| 20311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20312 | (exit $ac_status); }; } && |
| 20313 | { ac_try='test -s conftest.$ac_objext' |
| 20314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20315 | (eval $ac_try) 2>&5 |
| 20316 | ac_status=$? |
| 20317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20318 | (exit $ac_status); }; }; then |
| 20319 | ac_cv_member_struct_mtget_mt_blkno=yes |
| 20320 | else |
| 20321 | echo "$as_me: failed program was:" >&5 |
| 20322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20323 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20324 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 20325 | /* confdefs.h. */ |
| 20326 | _ACEOF |
| 20327 | cat confdefs.h >>conftest.$ac_ext |
| 20328 | cat >>conftest.$ac_ext <<_ACEOF |
| 20329 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 20330 | #include <sys/types.h> |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 20331 | #ifdef HAVE_SYS_MTIO_H |
| 20332 | #include <sys/mtio.h> |
| 20333 | #endif |
| 20334 | |
| 20335 | int |
| 20336 | main () |
| 20337 | { |
| 20338 | static struct mtget ac_aggr; |
| 20339 | if (sizeof ac_aggr.mt_blkno) |
| 20340 | return 0; |
| 20341 | ; |
| 20342 | return 0; |
| 20343 | } |
| 20344 | _ACEOF |
| 20345 | rm -f conftest.$ac_objext |
| 20346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20347 | (eval $ac_compile) 2>conftest.er1 |
| 20348 | ac_status=$? |
| 20349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20350 | rm -f conftest.er1 |
| 20351 | cat conftest.err >&5 |
| 20352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20353 | (exit $ac_status); } && |
| 20354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20356 | (eval $ac_try) 2>&5 |
| 20357 | ac_status=$? |
| 20358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20359 | (exit $ac_status); }; } && |
| 20360 | { ac_try='test -s conftest.$ac_objext' |
| 20361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20362 | (eval $ac_try) 2>&5 |
| 20363 | ac_status=$? |
| 20364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20365 | (exit $ac_status); }; }; then |
| 20366 | ac_cv_member_struct_mtget_mt_blkno=yes |
| 20367 | else |
| 20368 | echo "$as_me: failed program was:" >&5 |
| 20369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20370 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20371 | ac_cv_member_struct_mtget_mt_blkno=no |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 20372 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20373 | |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 20374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20375 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20376 | |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 20377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20378 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20379 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5 |
| 20380 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; } |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 20381 | if test $ac_cv_member_struct_mtget_mt_blkno = yes; then |
| 20382 | |
| 20383 | cat >>confdefs.h <<_ACEOF |
| 20384 | #define HAVE_STRUCT_MTGET_MT_BLKNO 1 |
| 20385 | _ACEOF |
| 20386 | |
| 20387 | |
| 20388 | fi |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 20389 | |
| 20390 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20391 | { echo "$as_me:$LINENO: checking for struct option.name" >&5 |
| 20392 | echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; } |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20393 | if test "${ac_cv_member_struct_option_name+set}" = set; then |
| 20394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20395 | else |
| 20396 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20397 | /* confdefs.h. */ |
| 20398 | _ACEOF |
| 20399 | cat confdefs.h >>conftest.$ac_ext |
| 20400 | cat >>conftest.$ac_ext <<_ACEOF |
| 20401 | /* end confdefs.h. */ |
| 20402 | #ifdef HAVE_GETOPT_H |
| 20403 | #include <getopt.h> |
| 20404 | #endif |
| 20405 | |
| 20406 | int |
| 20407 | main () |
| 20408 | { |
| 20409 | static struct option ac_aggr; |
| 20410 | if (ac_aggr.name) |
| 20411 | return 0; |
| 20412 | ; |
| 20413 | return 0; |
| 20414 | } |
| 20415 | _ACEOF |
| 20416 | rm -f conftest.$ac_objext |
| 20417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20418 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20419 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20421 | rm -f conftest.er1 |
| 20422 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20424 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20425 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20427 | (eval $ac_try) 2>&5 |
| 20428 | ac_status=$? |
| 20429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20430 | (exit $ac_status); }; } && |
| 20431 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20433 | (eval $ac_try) 2>&5 |
| 20434 | ac_status=$? |
| 20435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20436 | (exit $ac_status); }; }; then |
| 20437 | ac_cv_member_struct_option_name=yes |
| 20438 | else |
| 20439 | echo "$as_me: failed program was:" >&5 |
| 20440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20441 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20442 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20443 | /* confdefs.h. */ |
| 20444 | _ACEOF |
| 20445 | cat confdefs.h >>conftest.$ac_ext |
| 20446 | cat >>conftest.$ac_ext <<_ACEOF |
| 20447 | /* end confdefs.h. */ |
| 20448 | #ifdef HAVE_GETOPT_H |
| 20449 | #include <getopt.h> |
| 20450 | #endif |
| 20451 | |
| 20452 | int |
| 20453 | main () |
| 20454 | { |
| 20455 | static struct option ac_aggr; |
| 20456 | if (sizeof ac_aggr.name) |
| 20457 | return 0; |
| 20458 | ; |
| 20459 | return 0; |
| 20460 | } |
| 20461 | _ACEOF |
| 20462 | rm -f conftest.$ac_objext |
| 20463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20464 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20465 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20467 | rm -f conftest.er1 |
| 20468 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20470 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20471 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20473 | (eval $ac_try) 2>&5 |
| 20474 | ac_status=$? |
| 20475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20476 | (exit $ac_status); }; } && |
| 20477 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20479 | (eval $ac_try) 2>&5 |
| 20480 | ac_status=$? |
| 20481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20482 | (exit $ac_status); }; }; then |
| 20483 | ac_cv_member_struct_option_name=yes |
| 20484 | else |
| 20485 | echo "$as_me: failed program was:" >&5 |
| 20486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20487 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20488 | ac_cv_member_struct_option_name=no |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20489 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20490 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20492 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20493 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20495 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20496 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5 |
| 20497 | echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; } |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 20498 | if test $ac_cv_member_struct_option_name = yes; then |
| 20499 | |
| 20500 | cat >>confdefs.h <<_ACEOF |
| 20501 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 20502 | _ACEOF |
| 20503 | |
| 20504 | |
| 20505 | fi |
| 20506 | |
| 20507 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20508 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 20509 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; } |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20510 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 20511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20512 | else |
| 20513 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20514 | /* confdefs.h. */ |
| 20515 | _ACEOF |
| 20516 | cat confdefs.h >>conftest.$ac_ext |
| 20517 | cat >>conftest.$ac_ext <<_ACEOF |
| 20518 | /* end confdefs.h. */ |
| 20519 | $ac_includes_default |
| 20520 | int |
| 20521 | main () |
| 20522 | { |
| 20523 | static struct stat ac_aggr; |
| 20524 | if (ac_aggr.st_blocks) |
| 20525 | return 0; |
| 20526 | ; |
| 20527 | return 0; |
| 20528 | } |
| 20529 | _ACEOF |
| 20530 | rm -f conftest.$ac_objext |
| 20531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20532 | (eval $ac_compile) 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20533 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20535 | rm -f conftest.er1 |
| 20536 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20538 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20539 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20541 | (eval $ac_try) 2>&5 |
| 20542 | ac_status=$? |
| 20543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20544 | (exit $ac_status); }; } && |
| 20545 | { ac_try='test -s conftest.$ac_objext' |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20547 | (eval $ac_try) 2>&5 |
| 20548 | ac_status=$? |
| 20549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20550 | (exit $ac_status); }; }; then |
| 20551 | ac_cv_member_struct_stat_st_blocks=yes |
| 20552 | else |
| 20553 | echo "$as_me: failed program was:" >&5 |
| 20554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20555 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20556 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20557 | /* confdefs.h. */ |
| 20558 | _ACEOF |
| 20559 | cat confdefs.h >>conftest.$ac_ext |
| 20560 | cat >>conftest.$ac_ext <<_ACEOF |
| 20561 | /* end confdefs.h. */ |
| 20562 | $ac_includes_default |
| 20563 | int |
| 20564 | main () |
| 20565 | { |
| 20566 | static struct stat ac_aggr; |
| 20567 | if (sizeof ac_aggr.st_blocks) |
| 20568 | return 0; |
| 20569 | ; |
| 20570 | return 0; |
| 20571 | } |
| 20572 | _ACEOF |
| 20573 | rm -f conftest.$ac_objext |
| 20574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20575 | (eval $ac_compile) 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20576 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20578 | rm -f conftest.er1 |
| 20579 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20581 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20584 | (eval $ac_try) 2>&5 |
| 20585 | ac_status=$? |
| 20586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20587 | (exit $ac_status); }; } && |
| 20588 | { ac_try='test -s conftest.$ac_objext' |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20590 | (eval $ac_try) 2>&5 |
| 20591 | ac_status=$? |
| 20592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20593 | (exit $ac_status); }; }; then |
| 20594 | ac_cv_member_struct_stat_st_blocks=yes |
| 20595 | else |
| 20596 | echo "$as_me: failed program was:" >&5 |
| 20597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20598 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20599 | ac_cv_member_struct_stat_st_blocks=no |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20600 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20601 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20603 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20604 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20606 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20607 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 20608 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20609 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
| 20610 | |
| 20611 | cat >>confdefs.h <<_ACEOF |
| 20612 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 20613 | _ACEOF |
| 20614 | |
| 20615 | |
| 20616 | fi |
| 20617 | |
| 20618 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20619 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 |
| 20620 | 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] | 20621 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then |
| 20622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20623 | else |
| 20624 | cat >conftest.$ac_ext <<_ACEOF |
| 20625 | /* confdefs.h. */ |
| 20626 | _ACEOF |
| 20627 | cat confdefs.h >>conftest.$ac_ext |
| 20628 | cat >>conftest.$ac_ext <<_ACEOF |
| 20629 | /* end confdefs.h. */ |
| 20630 | #ifdef HAVE_SYS_TYPES_H |
| 20631 | #include <sys/types.h> |
| 20632 | #endif |
| 20633 | #ifdef HAVE_NETINET_IN_H |
| 20634 | #include <netinet/in.h> |
| 20635 | #endif |
| 20636 | |
| 20637 | int |
| 20638 | main () |
| 20639 | { |
| 20640 | static struct sockaddr_in6 ac_aggr; |
| 20641 | if (ac_aggr.sin6_scope_id) |
| 20642 | return 0; |
| 20643 | ; |
| 20644 | return 0; |
| 20645 | } |
| 20646 | _ACEOF |
| 20647 | rm -f conftest.$ac_objext |
| 20648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20649 | (eval $ac_compile) 2>conftest.er1 |
| 20650 | ac_status=$? |
| 20651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20652 | rm -f conftest.er1 |
| 20653 | cat conftest.err >&5 |
| 20654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20655 | (exit $ac_status); } && |
| 20656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20658 | (eval $ac_try) 2>&5 |
| 20659 | ac_status=$? |
| 20660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20661 | (exit $ac_status); }; } && |
| 20662 | { ac_try='test -s conftest.$ac_objext' |
| 20663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20664 | (eval $ac_try) 2>&5 |
| 20665 | ac_status=$? |
| 20666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20667 | (exit $ac_status); }; }; then |
| 20668 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes |
| 20669 | else |
| 20670 | echo "$as_me: failed program was:" >&5 |
| 20671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20672 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20673 | cat >conftest.$ac_ext <<_ACEOF |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 20674 | /* confdefs.h. */ |
| 20675 | _ACEOF |
| 20676 | cat confdefs.h >>conftest.$ac_ext |
| 20677 | cat >>conftest.$ac_ext <<_ACEOF |
| 20678 | /* end confdefs.h. */ |
| 20679 | #ifdef HAVE_SYS_TYPES_H |
| 20680 | #include <sys/types.h> |
| 20681 | #endif |
| 20682 | #ifdef HAVE_NETINET_IN_H |
| 20683 | #include <netinet/in.h> |
| 20684 | #endif |
| 20685 | |
| 20686 | int |
| 20687 | main () |
| 20688 | { |
| 20689 | static struct sockaddr_in6 ac_aggr; |
| 20690 | if (sizeof ac_aggr.sin6_scope_id) |
| 20691 | return 0; |
| 20692 | ; |
| 20693 | return 0; |
| 20694 | } |
| 20695 | _ACEOF |
| 20696 | rm -f conftest.$ac_objext |
| 20697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20698 | (eval $ac_compile) 2>conftest.er1 |
| 20699 | ac_status=$? |
| 20700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20701 | rm -f conftest.er1 |
| 20702 | cat conftest.err >&5 |
| 20703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20704 | (exit $ac_status); } && |
| 20705 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20707 | (eval $ac_try) 2>&5 |
| 20708 | ac_status=$? |
| 20709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20710 | (exit $ac_status); }; } && |
| 20711 | { ac_try='test -s conftest.$ac_objext' |
| 20712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20713 | (eval $ac_try) 2>&5 |
| 20714 | ac_status=$? |
| 20715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20716 | (exit $ac_status); }; }; then |
| 20717 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes |
| 20718 | else |
| 20719 | echo "$as_me: failed program was:" >&5 |
| 20720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20721 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20722 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 20723 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20724 | |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 20725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20726 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20727 | |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 20728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20729 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20730 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 |
| 20731 | 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] | 20732 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then |
| 20733 | |
| 20734 | cat >>confdefs.h <<_ACEOF |
| 20735 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 20736 | _ACEOF |
| 20737 | |
| 20738 | |
| 20739 | fi |
| 20740 | |
| 20741 | |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 20742 | { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5 |
| 20743 | echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; } |
| 20744 | if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then |
| 20745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20746 | else |
| 20747 | cat >conftest.$ac_ext <<_ACEOF |
| 20748 | /* confdefs.h. */ |
| 20749 | _ACEOF |
| 20750 | cat confdefs.h >>conftest.$ac_ext |
| 20751 | cat >>conftest.$ac_ext <<_ACEOF |
| 20752 | /* end confdefs.h. */ |
| 20753 | #ifdef HAVE_SYS_TYPES_H |
| 20754 | #include <sys/types.h> |
| 20755 | #endif |
| 20756 | #ifdef HAVE_NETINET_IN_H |
| 20757 | # include <netinet/in.h> |
| 20758 | #endif |
| 20759 | #ifdef HAVE_ARPA_NAMESER_H |
| 20760 | # include <arpa/nameser.h> |
| 20761 | #endif |
| 20762 | |
| 20763 | int |
| 20764 | main () |
| 20765 | { |
| 20766 | static ns_msg ac_aggr; |
| 20767 | if (ac_aggr._msg_ptr) |
| 20768 | return 0; |
| 20769 | ; |
| 20770 | return 0; |
| 20771 | } |
| 20772 | _ACEOF |
| 20773 | rm -f conftest.$ac_objext |
| 20774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20775 | (eval $ac_compile) 2>conftest.er1 |
| 20776 | ac_status=$? |
| 20777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20778 | rm -f conftest.er1 |
| 20779 | cat conftest.err >&5 |
| 20780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20781 | (exit $ac_status); } && |
| 20782 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20784 | (eval $ac_try) 2>&5 |
| 20785 | ac_status=$? |
| 20786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20787 | (exit $ac_status); }; } && |
| 20788 | { ac_try='test -s conftest.$ac_objext' |
| 20789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20790 | (eval $ac_try) 2>&5 |
| 20791 | ac_status=$? |
| 20792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20793 | (exit $ac_status); }; }; then |
| 20794 | ac_cv_member_ns_msg__msg_ptr=yes |
| 20795 | else |
| 20796 | echo "$as_me: failed program was:" >&5 |
| 20797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20798 | |
| 20799 | cat >conftest.$ac_ext <<_ACEOF |
| 20800 | /* confdefs.h. */ |
| 20801 | _ACEOF |
| 20802 | cat confdefs.h >>conftest.$ac_ext |
| 20803 | cat >>conftest.$ac_ext <<_ACEOF |
| 20804 | /* end confdefs.h. */ |
| 20805 | #ifdef HAVE_SYS_TYPES_H |
| 20806 | #include <sys/types.h> |
| 20807 | #endif |
| 20808 | #ifdef HAVE_NETINET_IN_H |
| 20809 | # include <netinet/in.h> |
| 20810 | #endif |
| 20811 | #ifdef HAVE_ARPA_NAMESER_H |
| 20812 | # include <arpa/nameser.h> |
| 20813 | #endif |
| 20814 | |
| 20815 | int |
| 20816 | main () |
| 20817 | { |
| 20818 | static ns_msg ac_aggr; |
| 20819 | if (sizeof ac_aggr._msg_ptr) |
| 20820 | return 0; |
| 20821 | ; |
| 20822 | return 0; |
| 20823 | } |
| 20824 | _ACEOF |
| 20825 | rm -f conftest.$ac_objext |
| 20826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20827 | (eval $ac_compile) 2>conftest.er1 |
| 20828 | ac_status=$? |
| 20829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20830 | rm -f conftest.er1 |
| 20831 | cat conftest.err >&5 |
| 20832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20833 | (exit $ac_status); } && |
| 20834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20836 | (eval $ac_try) 2>&5 |
| 20837 | ac_status=$? |
| 20838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20839 | (exit $ac_status); }; } && |
| 20840 | { ac_try='test -s conftest.$ac_objext' |
| 20841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20842 | (eval $ac_try) 2>&5 |
| 20843 | ac_status=$? |
| 20844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20845 | (exit $ac_status); }; }; then |
| 20846 | ac_cv_member_ns_msg__msg_ptr=yes |
| 20847 | else |
| 20848 | echo "$as_me: failed program was:" >&5 |
| 20849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20850 | |
| 20851 | ac_cv_member_ns_msg__msg_ptr=no |
| 20852 | fi |
| 20853 | |
| 20854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20855 | fi |
| 20856 | |
| 20857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20858 | fi |
| 20859 | { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5 |
| 20860 | echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; } |
| 20861 | if test $ac_cv_member_ns_msg__msg_ptr = yes; then |
| 20862 | |
| 20863 | cat >>confdefs.h <<_ACEOF |
| 20864 | #define HAVE_NS_MSG__MSG_PTR 1 |
| 20865 | _ACEOF |
| 20866 | |
| 20867 | |
| 20868 | fi |
| 20869 | |
| 20870 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20871 | { echo "$as_me:$LINENO: checking for timezone variable" >&5 |
| 20872 | echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 20873 | if test "${ac_cv_have_timezone+set}" = set; then |
| 20874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20875 | else |
| 20876 | cat >conftest.$ac_ext <<_ACEOF |
| 20877 | /* confdefs.h. */ |
| 20878 | _ACEOF |
| 20879 | cat confdefs.h >>conftest.$ac_ext |
| 20880 | cat >>conftest.$ac_ext <<_ACEOF |
| 20881 | /* end confdefs.h. */ |
| 20882 | #include <time.h> |
| 20883 | int |
| 20884 | main () |
| 20885 | { |
| 20886 | timezone; |
| 20887 | ; |
| 20888 | return 0; |
| 20889 | } |
| 20890 | _ACEOF |
| 20891 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20893 | (eval $ac_link) 2>conftest.er1 |
| 20894 | ac_status=$? |
| 20895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20896 | rm -f conftest.er1 |
| 20897 | cat conftest.err >&5 |
| 20898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20899 | (exit $ac_status); } && |
| 20900 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20902 | (eval $ac_try) 2>&5 |
| 20903 | ac_status=$? |
| 20904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20905 | (exit $ac_status); }; } && |
| 20906 | { ac_try='test -s conftest$ac_exeext' |
| 20907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20908 | (eval $ac_try) 2>&5 |
| 20909 | ac_status=$? |
| 20910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20911 | (exit $ac_status); }; }; then |
| 20912 | ac_cv_have_timezone="yes" |
| 20913 | else |
| 20914 | echo "$as_me: failed program was:" >&5 |
| 20915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20916 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20917 | ac_cv_have_timezone="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 20918 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20919 | |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 20920 | rm -f conftest.err conftest.$ac_objext \ |
| 20921 | conftest$ac_exeext conftest.$ac_ext |
| 20922 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20923 | { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5 |
| 20924 | echo "${ECHO_T}$ac_cv_have_timezone" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 20925 | if test "$ac_cv_have_timezone" = "yes" |
| 20926 | then |
| 20927 | |
| 20928 | cat >>confdefs.h <<\_ACEOF |
| 20929 | #define HAVE_TIMEZONE 1 |
| 20930 | _ACEOF |
| 20931 | |
| 20932 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20933 | { echo "$as_me:$LINENO: checking for daylight variable" >&5 |
| 20934 | echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 20935 | if test "${ac_cv_have_daylight+set}" = set; then |
| 20936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20937 | else |
| 20938 | cat >conftest.$ac_ext <<_ACEOF |
| 20939 | /* confdefs.h. */ |
| 20940 | _ACEOF |
| 20941 | cat confdefs.h >>conftest.$ac_ext |
| 20942 | cat >>conftest.$ac_ext <<_ACEOF |
| 20943 | /* end confdefs.h. */ |
| 20944 | #include <time.h> |
| 20945 | int |
| 20946 | main () |
| 20947 | { |
| 20948 | daylight; |
| 20949 | ; |
| 20950 | return 0; |
| 20951 | } |
| 20952 | _ACEOF |
| 20953 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20955 | (eval $ac_link) 2>conftest.er1 |
| 20956 | ac_status=$? |
| 20957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20958 | rm -f conftest.er1 |
| 20959 | cat conftest.err >&5 |
| 20960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20961 | (exit $ac_status); } && |
| 20962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20964 | (eval $ac_try) 2>&5 |
| 20965 | ac_status=$? |
| 20966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20967 | (exit $ac_status); }; } && |
| 20968 | { ac_try='test -s conftest$ac_exeext' |
| 20969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20970 | (eval $ac_try) 2>&5 |
| 20971 | ac_status=$? |
| 20972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20973 | (exit $ac_status); }; }; then |
| 20974 | ac_cv_have_daylight="yes" |
| 20975 | else |
| 20976 | echo "$as_me: failed program was:" >&5 |
| 20977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20978 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20979 | ac_cv_have_daylight="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 20980 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20981 | |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 20982 | rm -f conftest.err conftest.$ac_objext \ |
| 20983 | conftest$ac_exeext conftest.$ac_ext |
| 20984 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20985 | { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5 |
| 20986 | echo "${ECHO_T}$ac_cv_have_daylight" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 20987 | if test "$ac_cv_have_daylight" = "yes" |
| 20988 | then |
| 20989 | |
| 20990 | cat >>confdefs.h <<\_ACEOF |
| 20991 | #define HAVE_DAYLIGHT 1 |
| 20992 | _ACEOF |
| 20993 | |
| 20994 | fi |
| 20995 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20996 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 20997 | case $host_cpu in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20998 | *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5 |
| 20999 | 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] | 21000 | if test "${ac_cv_cpp_def___i386__+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 21002 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21003 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21004 | /* confdefs.h. */ |
| 21005 | _ACEOF |
| 21006 | cat confdefs.h >>conftest.$ac_ext |
| 21007 | cat >>conftest.$ac_ext <<_ACEOF |
| 21008 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21009 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 21010 | yes |
| 21011 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21012 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 21013 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21014 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21015 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 21016 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21017 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 21018 | fi |
| 21019 | rm -f conftest* |
| 21020 | |
| 21021 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21022 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5 |
| 21023 | echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21024 | if test $ac_cv_cpp_def___i386__ = yes; then |
| 21025 | CFLAGS="$CFLAGS -D__i386__" |
| 21026 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 21027 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21028 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21029 | *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5 |
| 21030 | 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] | 21031 | if test "${ac_cv_cpp_def___x86_64__+set}" = set; then |
| 21032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21033 | else |
| 21034 | cat >conftest.$ac_ext <<_ACEOF |
| 21035 | /* confdefs.h. */ |
| 21036 | _ACEOF |
| 21037 | cat confdefs.h >>conftest.$ac_ext |
| 21038 | cat >>conftest.$ac_ext <<_ACEOF |
| 21039 | /* end confdefs.h. */ |
| 21040 | #ifndef __x86_64__ |
| 21041 | yes |
| 21042 | #endif |
| 21043 | _ACEOF |
| 21044 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21045 | $EGREP "yes" >/dev/null 2>&1; then |
| 21046 | ac_cv_cpp_def___x86_64__=yes |
| 21047 | else |
| 21048 | ac_cv_cpp_def___x86_64__=no |
| 21049 | fi |
| 21050 | rm -f conftest* |
| 21051 | |
| 21052 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21053 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5 |
| 21054 | echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; } |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 21055 | if test $ac_cv_cpp_def___x86_64__ = yes; then |
| 21056 | CFLAGS="$CFLAGS -D__x86_64__" |
| 21057 | LINTFLAGS="$LINTFLAGS -D__x86_64__" |
| 21058 | fi |
| 21059 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21060 | *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5 |
| 21061 | 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] | 21062 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 21063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21064 | else |
| 21065 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21066 | /* confdefs.h. */ |
| 21067 | _ACEOF |
| 21068 | cat confdefs.h >>conftest.$ac_ext |
| 21069 | cat >>conftest.$ac_ext <<_ACEOF |
| 21070 | /* end confdefs.h. */ |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 21071 | #ifndef __ALPHA__ |
| 21072 | yes |
| 21073 | #endif |
| 21074 | _ACEOF |
| 21075 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21076 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21077 | ac_cv_cpp_def___ALPHA__=yes |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 21078 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21079 | ac_cv_cpp_def___ALPHA__=no |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 21080 | fi |
| 21081 | rm -f conftest* |
| 21082 | |
| 21083 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21084 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5 |
| 21085 | echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21086 | if test $ac_cv_cpp_def___ALPHA__ = yes; then |
| 21087 | CFLAGS="$CFLAGS -D__ALPHA__" |
| 21088 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 21089 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21090 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21091 | *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5 |
| 21092 | 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] | 21093 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 21094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21095 | else |
| 21096 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21097 | /* confdefs.h. */ |
| 21098 | _ACEOF |
| 21099 | cat confdefs.h >>conftest.$ac_ext |
| 21100 | cat >>conftest.$ac_ext <<_ACEOF |
| 21101 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 21102 | #ifndef __sparc__ |
| 21103 | yes |
| 21104 | #endif |
| 21105 | _ACEOF |
| 21106 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21107 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21108 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 21109 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21110 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 21111 | fi |
| 21112 | rm -f conftest* |
| 21113 | |
| 21114 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21115 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5 |
| 21116 | echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21117 | if test $ac_cv_cpp_def___sparc__ = yes; then |
| 21118 | CFLAGS="$CFLAGS -D__sparc__" |
| 21119 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 21120 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21121 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21122 | *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5 |
| 21123 | 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] | 21124 | if test "${ac_cv_cpp_def___powerpc__+set}" = set; then |
| 21125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21126 | else |
| 21127 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 21128 | /* confdefs.h. */ |
| 21129 | _ACEOF |
| 21130 | cat confdefs.h >>conftest.$ac_ext |
| 21131 | cat >>conftest.$ac_ext <<_ACEOF |
| 21132 | /* end confdefs.h. */ |
| 21133 | #ifndef __powerpc__ |
| 21134 | yes |
| 21135 | #endif |
| 21136 | _ACEOF |
| 21137 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21138 | $EGREP "yes" >/dev/null 2>&1; then |
| 21139 | ac_cv_cpp_def___powerpc__=yes |
| 21140 | else |
| 21141 | ac_cv_cpp_def___powerpc__=no |
| 21142 | fi |
| 21143 | rm -f conftest* |
| 21144 | |
| 21145 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21146 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5 |
| 21147 | echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; } |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 21148 | if test $ac_cv_cpp_def___powerpc__ = yes; then |
| 21149 | CFLAGS="$CFLAGS -D__powerpc__" |
| 21150 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
| 21151 | fi |
| 21152 | ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21153 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 21154 | |
| 21155 | case $host_vendor in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21156 | *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5 |
| 21157 | 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] | 21158 | if test "${ac_cv_cpp_def___sun__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 21159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21160 | else |
| 21161 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21162 | /* confdefs.h. */ |
| 21163 | _ACEOF |
| 21164 | cat confdefs.h >>conftest.$ac_ext |
| 21165 | cat >>conftest.$ac_ext <<_ACEOF |
| 21166 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 21167 | #ifndef __sun__ |
| 21168 | yes |
| 21169 | #endif |
| 21170 | _ACEOF |
| 21171 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21172 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21173 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 21174 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21175 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 21176 | fi |
| 21177 | rm -f conftest* |
| 21178 | |
| 21179 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21180 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5 |
| 21181 | echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21182 | if test $ac_cv_cpp_def___sun__ = yes; then |
| 21183 | CFLAGS="$CFLAGS -D__sun__" |
| 21184 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 21185 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 21186 | ;; |
| 21187 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 21188 | |
| 21189 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21190 | |
| 21191 | |
| 21192 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21193 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 21194 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21195 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 21196 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21197 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21198 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21199 | ac_config_commands="$ac_config_commands dlls/user/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21200 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21201 | ac_config_commands="$ac_config_commands dlls/wineps.drv/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21202 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21203 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21204 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 21205 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 21206 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21207 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21208 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 21209 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 21210 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21211 | |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 21212 | MAKE_IMPLIB_RULES=dlls/Makeimplib.rules |
| 21213 | |
| 21214 | |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 21215 | MAKE_TEST_RULES=dlls/Maketest.rules |
| 21216 | |
| 21217 | |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 21218 | MAKE_LIB_RULES=libs/Makelib.rules |
| 21219 | |
| 21220 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 21221 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 21222 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21223 | |
Alexandre Julliard | bdb4fab | 2006-06-16 09:57:50 +0200 | [diff] [blame^] | 21224 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.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/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/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/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/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/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/unicode/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/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] | 21225 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 21226 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21227 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21228 | # This file is a shell script that caches the results of configure |
| 21229 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21230 | # scripts and configure runs, see configure's option --config-cache. |
| 21231 | # It is not useful on other systems. If it contains results you don't |
| 21232 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21233 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21234 | # config.status only pays attention to the cache file if you give it |
| 21235 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21236 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21237 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21238 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21239 | # following values. |
| 21240 | |
| 21241 | _ACEOF |
| 21242 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 21243 | # The following way of writing the cache mishandles newlines in values, |
| 21244 | # but we know of no workaround that is simple, portable, and efficient. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21245 | # So, we kill variables containing newlines. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21246 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21247 | # 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] | 21248 | ( |
| 21249 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 21250 | eval ac_val=\$$ac_var |
| 21251 | case $ac_val in #( |
| 21252 | *${as_nl}*) |
| 21253 | case $ac_var in #( |
| 21254 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 21255 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 21256 | esac |
| 21257 | case $ac_var in #( |
| 21258 | _ | IFS | as_nl) ;; #( |
| 21259 | *) $as_unset $ac_var ;; |
| 21260 | esac ;; |
| 21261 | esac |
| 21262 | done |
| 21263 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21264 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21265 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 21266 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21267 | # `set' does not quote correctly, so add quotes (double-quote |
| 21268 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 21269 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21270 | "s/'/'\\\\''/g; |
| 21271 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21272 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21273 | *) |
| 21274 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21275 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21276 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21277 | esac | |
| 21278 | sort |
| 21279 | ) | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21280 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21281 | /^ac_cv_env_/b end |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21282 | t clear |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21283 | :clear |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21284 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21285 | t end |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21286 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21287 | :end' >>confcache |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21288 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21289 | if test -w $cache_file; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21290 | test "x$cache_file" != "x/dev/null" && |
| 21291 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 21292 | echo "$as_me: updating cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21293 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21294 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21295 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 21296 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21297 | fi |
| 21298 | fi |
| 21299 | rm -f confcache |
| 21300 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21301 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21302 | # Let make expand exec_prefix. |
| 21303 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 21304 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21305 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21306 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21307 | ac_libobjs= |
| 21308 | ac_ltlibobjs= |
| 21309 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21310 | # 1. Remove the extension, and $U if already installed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21311 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 21312 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 21313 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 21314 | # will be set to the directory where LIBOBJS objects are built. |
| 21315 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 21316 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21317 | done |
| 21318 | LIBOBJS=$ac_libobjs |
| 21319 | |
| 21320 | LTLIBOBJS=$ac_ltlibobjs |
| 21321 | |
| 21322 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21323 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21324 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21325 | ac_clean_files_save=$ac_clean_files |
| 21326 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21327 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21328 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21329 | cat >$CONFIG_STATUS <<_ACEOF |
| 21330 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21331 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21332 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21333 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21334 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21335 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21336 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21337 | ac_cs_recheck=false |
| 21338 | ac_cs_silent=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21339 | SHELL=\${CONFIG_SHELL-$SHELL} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21340 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21341 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21342 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21343 | ## --------------------- ## |
| 21344 | ## M4sh Initialization. ## |
| 21345 | ## --------------------- ## |
| 21346 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21347 | # Be Bourne compatible |
| 21348 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 21349 | emulate sh |
| 21350 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21351 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 21352 | # is contrary to our usage. Disable this feature. |
| 21353 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21354 | setopt NO_GLOB_SUBST |
| 21355 | else |
| 21356 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 21357 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21358 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21359 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21360 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21361 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21362 | # PATH needs CR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21363 | # Avoid depending upon Character Ranges. |
| 21364 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21365 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21366 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21367 | as_cr_digits='0123456789' |
| 21368 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 21369 | |
| 21370 | # The user is always right. |
| 21371 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21372 | echo "#! /bin/sh" >conf$$.sh |
| 21373 | echo "exit 0" >>conf$$.sh |
| 21374 | chmod +x conf$$.sh |
| 21375 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21376 | PATH_SEPARATOR=';' |
| 21377 | else |
| 21378 | PATH_SEPARATOR=: |
| 21379 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21380 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21381 | fi |
| 21382 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21383 | # Support unset when possible. |
| 21384 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 21385 | as_unset=unset |
| 21386 | else |
| 21387 | as_unset=false |
| 21388 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21389 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21390 | |
| 21391 | # IFS |
| 21392 | # We need space, tab and new line, in precisely that order. Quoting is |
| 21393 | # there to prevent editors from complaining about space-tab. |
| 21394 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 21395 | # splitting by setting IFS to empty value.) |
| 21396 | as_nl=' |
| 21397 | ' |
| 21398 | IFS=" "" $as_nl" |
| 21399 | |
| 21400 | # Find who we are. Look in the path if we contain no directory separator. |
| 21401 | case $0 in |
| 21402 | *[\\/]* ) as_myself=$0 ;; |
| 21403 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21404 | for as_dir in $PATH |
| 21405 | do |
| 21406 | IFS=$as_save_IFS |
| 21407 | test -z "$as_dir" && as_dir=. |
| 21408 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21409 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21410 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21411 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21412 | ;; |
| 21413 | esac |
| 21414 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21415 | # in which case we are not to be found in the path. |
| 21416 | if test "x$as_myself" = x; then |
| 21417 | as_myself=$0 |
| 21418 | fi |
| 21419 | if test ! -f "$as_myself"; then |
| 21420 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 21421 | { (exit 1); exit 1; } |
| 21422 | fi |
| 21423 | |
| 21424 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21425 | for as_var in ENV MAIL MAILPATH |
| 21426 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 21427 | done |
| 21428 | PS1='$ ' |
| 21429 | PS2='> ' |
| 21430 | PS4='+ ' |
| 21431 | |
| 21432 | # NLS nuisances. |
| 21433 | for as_var in \ |
| 21434 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21435 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21436 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21437 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21438 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 21439 | eval $as_var=C; export $as_var |
| 21440 | else |
| 21441 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 21442 | fi |
| 21443 | done |
| 21444 | |
| 21445 | # Required to use basename. |
| 21446 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21447 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21448 | as_expr=expr |
| 21449 | else |
| 21450 | as_expr=false |
| 21451 | fi |
| 21452 | |
| 21453 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 21454 | as_basename=basename |
| 21455 | else |
| 21456 | as_basename=false |
| 21457 | fi |
| 21458 | |
| 21459 | |
| 21460 | # Name of the executable. |
| 21461 | as_me=`$as_basename -- "$0" || |
| 21462 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21463 | X"$0" : 'X\(//\)$' \| \ |
| 21464 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 21465 | echo X/"$0" | |
| 21466 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 21467 | s//\1/ |
| 21468 | q |
| 21469 | } |
| 21470 | /^X\/\(\/\/\)$/{ |
| 21471 | s//\1/ |
| 21472 | q |
| 21473 | } |
| 21474 | /^X\/\(\/\).*/{ |
| 21475 | s//\1/ |
| 21476 | q |
| 21477 | } |
| 21478 | s/.*/./; q'` |
| 21479 | |
| 21480 | # CDPATH. |
| 21481 | $as_unset CDPATH |
| 21482 | |
| 21483 | |
| 21484 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21485 | as_lineno_1=$LINENO |
| 21486 | as_lineno_2=$LINENO |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21487 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21488 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21489 | |
| 21490 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21491 | # uniformly replaced by the line number. The first 'sed' inserts a |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21492 | # line-number line after each line using $LINENO; the second 'sed' |
| 21493 | # does the real work. The second script uses 'N' to pair each |
| 21494 | # line-number line with the line containing $LINENO, and appends |
| 21495 | # trailing '-' during substitution so that $LINENO is not a special |
| 21496 | # case at line end. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21497 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21498 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 21499 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 21500 | sed -n ' |
| 21501 | p |
| 21502 | /[$]LINENO/= |
| 21503 | ' <$as_myself | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21504 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21505 | s/[$]LINENO.*/&-/ |
| 21506 | t lineno |
| 21507 | b |
| 21508 | :lineno |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21509 | N |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21510 | :loop |
| 21511 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21512 | t loop |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21513 | s/-\n.*// |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21514 | ' >$as_me.lineno && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21515 | chmod +x "$as_me.lineno" || |
| 21516 | { 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] | 21517 | { (exit 1); exit 1; }; } |
| 21518 | |
| 21519 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21520 | # (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] | 21521 | # original and so on. Autoconf is especially sensitive to this). |
| 21522 | . "./$as_me.lineno" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21523 | # Exit status is that of the last command. |
| 21524 | exit |
| 21525 | } |
| 21526 | |
| 21527 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21528 | if (dirname -- /) >/dev/null 2>&1; then |
| 21529 | as_dirname=dirname |
| 21530 | else |
| 21531 | as_dirname=false |
| 21532 | fi |
| 21533 | |
| 21534 | ECHO_C= ECHO_N= ECHO_T= |
| 21535 | case `echo -n x` in |
| 21536 | -n*) |
| 21537 | case `echo 'x\c'` in |
| 21538 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 21539 | *) ECHO_C='\c';; |
| 21540 | esac;; |
| 21541 | *) |
| 21542 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21543 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21544 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21545 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21546 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21547 | as_expr=expr |
| 21548 | else |
| 21549 | as_expr=false |
| 21550 | fi |
| 21551 | |
| 21552 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21553 | if test -d conf$$.dir; then |
| 21554 | rm -f conf$$.dir/conf$$.file |
| 21555 | else |
| 21556 | rm -f conf$$.dir |
| 21557 | mkdir conf$$.dir |
| 21558 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21559 | echo >conf$$.file |
| 21560 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21561 | as_ln_s='ln -s' |
| 21562 | # ... but there are two gotchas: |
| 21563 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 21564 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 21565 | # In both cases, we have to default to `cp -p'. |
| 21566 | 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] | 21567 | as_ln_s='cp -p' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21568 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21569 | as_ln_s=ln |
| 21570 | else |
| 21571 | as_ln_s='cp -p' |
| 21572 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21573 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21574 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21575 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21576 | if mkdir -p . 2>/dev/null; then |
| 21577 | as_mkdir_p=: |
| 21578 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21579 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21580 | as_mkdir_p=false |
| 21581 | fi |
| 21582 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21583 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 21584 | # systems may use methods other than mode bits to determine executability. |
| 21585 | cat >conf$$.file <<_ASEOF |
| 21586 | #! /bin/sh |
| 21587 | exit 0 |
| 21588 | _ASEOF |
| 21589 | chmod +x conf$$.file |
| 21590 | if test -x conf$$.file >/dev/null 2>&1; then |
| 21591 | as_executable_p="test -x" |
| 21592 | else |
| 21593 | as_executable_p=: |
| 21594 | fi |
| 21595 | rm -f conf$$.file |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21596 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21597 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21598 | 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] | 21599 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21600 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21601 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21602 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21603 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21604 | exec 6>&1 |
| 21605 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21606 | # 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] | 21607 | # report actual input values of CONFIG_FILES etc. instead of their |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21608 | # values after options handling. |
| 21609 | ac_log=" |
Alexandre Julliard | 2962ded | 2006-06-08 17:04:58 +0200 | [diff] [blame] | 21610 | This file was extended by Wine $as_me 0.9.15, which was |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21611 | generated by GNU Autoconf 2.59d. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21612 | |
| 21613 | CONFIG_FILES = $CONFIG_FILES |
| 21614 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21615 | CONFIG_LINKS = $CONFIG_LINKS |
| 21616 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21617 | $ $0 $@ |
| 21618 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21619 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21620 | " |
| 21621 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21622 | _ACEOF |
| 21623 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21624 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21625 | # Files that config.status was made for. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21626 | config_files="$ac_config_files" |
| 21627 | config_headers="$ac_config_headers" |
| 21628 | config_commands="$ac_config_commands" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21629 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21630 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21631 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21632 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21633 | ac_cs_usage="\ |
| 21634 | \`$as_me' instantiates files from templates according to the |
| 21635 | current configuration. |
| 21636 | |
| 21637 | Usage: $0 [OPTIONS] [FILE]... |
| 21638 | |
| 21639 | -h, --help print this help, then exit |
| 21640 | -V, --version print version number, then exit |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21641 | -q, --quiet do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21642 | -d, --debug don't remove temporary files |
| 21643 | --recheck update $as_me by reconfiguring in the same conditions |
| 21644 | --file=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21645 | instantiate the configuration file FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21646 | --header=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21647 | instantiate the configuration header FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21648 | |
| 21649 | Configuration files: |
| 21650 | $config_files |
| 21651 | |
| 21652 | Configuration headers: |
| 21653 | $config_headers |
| 21654 | |
| 21655 | Configuration commands: |
| 21656 | $config_commands |
| 21657 | |
| 21658 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 21659 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21660 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21661 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21662 | ac_cs_version="\\ |
Alexandre Julliard | 2962ded | 2006-06-08 17:04:58 +0200 | [diff] [blame] | 21663 | Wine config.status 0.9.15 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21664 | configured by $0, generated by GNU Autoconf 2.59d, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21665 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21666 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21667 | Copyright (C) 2006 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21668 | This config.status script is free software; the Free Software Foundation |
| 21669 | gives unlimited permission to copy, distribute and modify it." |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21670 | |
| 21671 | ac_pwd='$ac_pwd' |
| 21672 | srcdir='$srcdir' |
| 21673 | INSTALL='$INSTALL' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21674 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21675 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21676 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21677 | # If no file are specified by the user, then we need to provide default |
| 21678 | # value. By we need to know if files were specified by the user. |
| 21679 | ac_need_defaults=: |
| 21680 | while test $# != 0 |
| 21681 | do |
| 21682 | case $1 in |
| 21683 | --*=*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21684 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21685 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21686 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21687 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21688 | *) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21689 | ac_option=$1 |
| 21690 | ac_optarg=$2 |
| 21691 | ac_shift=shift |
| 21692 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21693 | esac |
| 21694 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21695 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21696 | # Handling of the options. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21697 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21698 | ac_cs_recheck=: ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21699 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 21700 | echo "$ac_cs_version"; exit ;; |
| 21701 | --debug | --debu | --deb | --de | --d | -d ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21702 | debug=: ;; |
| 21703 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21704 | $ac_shift |
| 21705 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21706 | ac_need_defaults=false;; |
| 21707 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21708 | $ac_shift |
| 21709 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21710 | ac_need_defaults=false;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21711 | --he | --h) |
| 21712 | # Conflict between --help and --header |
| 21713 | { echo "$as_me: error: ambiguous option: $1 |
| 21714 | Try \`$0 --help' for more information." >&2 |
| 21715 | { (exit 1); exit 1; }; };; |
| 21716 | --help | --hel | -h ) |
| 21717 | echo "$ac_cs_usage"; exit ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21718 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21719 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21720 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21721 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21722 | # This is an error. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21723 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21724 | Try \`$0 --help' for more information." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21725 | { (exit 1); exit 1; }; } ;; |
| 21726 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21727 | *) ac_config_targets="$ac_config_targets $1" |
| 21728 | ac_need_defaults=false ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21729 | |
| 21730 | esac |
| 21731 | shift |
| 21732 | done |
| 21733 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21734 | ac_configure_extra_args= |
| 21735 | |
| 21736 | if $ac_cs_silent; then |
| 21737 | exec 6>/dev/null |
| 21738 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21739 | fi |
| 21740 | |
| 21741 | _ACEOF |
| 21742 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21743 | if \$ac_cs_recheck; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21744 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21745 | CONFIG_SHELL=$SHELL |
| 21746 | export CONFIG_SHELL |
| 21747 | 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] | 21748 | fi |
| 21749 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21750 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21751 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21752 | exec 5>>config.log |
| 21753 | { |
| 21754 | echo |
| 21755 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21756 | ## Running $as_me. ## |
| 21757 | _ASBOX |
| 21758 | echo "$ac_log" |
| 21759 | } >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21760 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21761 | _ACEOF |
| 21762 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21763 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21764 | |
| 21765 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21766 | |
| 21767 | # Handling of arguments. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21768 | for ac_config_target in $ac_config_targets |
| 21769 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21770 | case $ac_config_target in |
| 21771 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
| 21772 | "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
| 21773 | "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; |
| 21774 | "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
| 21775 | "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
| 21776 | "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;; |
| 21777 | "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
| 21778 | "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 21779 | "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
| 21780 | "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;; |
| 21781 | "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; |
| 21782 | "libs/Makelib.rules") CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;; |
| 21783 | "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 21784 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 21785 | "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 21786 | "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;; |
| 21787 | "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
| 21788 | "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;; |
| 21789 | "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;; |
| 21790 | "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;; |
| 21791 | "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;; |
| 21792 | "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;; |
| 21793 | "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 21794 | "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
| 21795 | "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;; |
| 21796 | "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;; |
| 21797 | "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;; |
| 21798 | "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;; |
| 21799 | "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;; |
| 21800 | "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
| 21801 | "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
| 21802 | "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;; |
| 21803 | "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;; |
| 21804 | "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 21805 | "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
| 21806 | "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;; |
| 21807 | "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;; |
| 21808 | "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;; |
| 21809 | "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; |
| 21810 | "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;; |
| 21811 | "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;; |
| 21812 | "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;; |
| 21813 | "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;; |
| 21814 | "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;; |
| 21815 | "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;; |
| 21816 | "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;; |
| 21817 | "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;; |
| 21818 | "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 21819 | "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
| 21820 | "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;; |
| 21821 | "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 21822 | "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
| 21823 | "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;; |
| 21824 | "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; |
| 21825 | "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;; |
| 21826 | "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;; |
| 21827 | "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;; |
| 21828 | "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;; |
| 21829 | "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;; |
| 21830 | "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;; |
| 21831 | "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;; |
| 21832 | "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;; |
| 21833 | "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;; |
| 21834 | "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;; |
| 21835 | "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;; |
| 21836 | "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 21837 | "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
| 21838 | "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;; |
| 21839 | "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;; |
| 21840 | "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
| 21841 | "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; |
| 21842 | "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;; |
| 21843 | "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;; |
| 21844 | "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;; |
| 21845 | "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;; |
| 21846 | "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;; |
| 21847 | "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
| 21848 | "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;; |
| 21849 | "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
| 21850 | "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;; |
| 21851 | "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;; |
| 21852 | "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;; |
Mike McCormack | b732e9b | 2006-06-06 19:26:24 +0900 | [diff] [blame] | 21853 | "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21854 | "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;; |
| 21855 | "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
| 21856 | "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;; |
| 21857 | "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;; |
| 21858 | "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 21859 | "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
| 21860 | "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;; |
| 21861 | "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;; |
| 21862 | "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;; |
| 21863 | "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
| 21864 | "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;; |
| 21865 | "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;; |
| 21866 | "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;; |
| 21867 | "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
| 21868 | "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;; |
| 21869 | "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;; |
| 21870 | "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;; |
| 21871 | "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;; |
| 21872 | "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;; |
| 21873 | "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;; |
| 21874 | "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;; |
| 21875 | "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;; |
| 21876 | "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;; |
| 21877 | "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;; |
| 21878 | "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 21879 | "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;; |
| 21880 | "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;; |
| 21881 | "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;; |
| 21882 | "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;; |
| 21883 | "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;; |
| 21884 | "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;; |
| 21885 | "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;; |
| 21886 | "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
| 21887 | "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;; |
| 21888 | "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;; |
| 21889 | "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;; |
| 21890 | "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;; |
| 21891 | "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;; |
| 21892 | "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;; |
| 21893 | "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
| 21894 | "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;; |
| 21895 | "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
| 21896 | "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;; |
| 21897 | "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
| 21898 | "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;; |
| 21899 | "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
| 21900 | "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;; |
| 21901 | "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;; |
| 21902 | "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;; |
| 21903 | "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;; |
| 21904 | "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;; |
| 21905 | "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;; |
| 21906 | "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;; |
| 21907 | "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;; |
| 21908 | "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
| 21909 | "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; |
| 21910 | "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;; |
| 21911 | "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
| 21912 | "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; |
| 21913 | "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;; |
| 21914 | "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;; |
| 21915 | "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 21916 | "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;; |
| 21917 | "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
| 21918 | "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;; |
| 21919 | "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;; |
| 21920 | "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
| 21921 | "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;; |
| 21922 | "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;; |
| 21923 | "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 21924 | "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 21925 | "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;; |
| 21926 | "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 21927 | "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;; |
| 21928 | "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
| 21929 | "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;; |
| 21930 | "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 21931 | "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
| 21932 | "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;; |
| 21933 | "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 21934 | "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;; |
| 21935 | "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;; |
| 21936 | "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;; |
| 21937 | "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
| 21938 | "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;; |
| 21939 | "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;; |
| 21940 | "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;; |
| 21941 | "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;; |
| 21942 | "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;; |
| 21943 | "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;; |
| 21944 | "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;; |
| 21945 | "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;; |
| 21946 | "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;; |
| 21947 | "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;; |
| 21948 | "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 21949 | "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 21950 | "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;; |
| 21951 | "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;; |
| 21952 | "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 21953 | "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;; |
| 21954 | "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
| 21955 | "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;; |
| 21956 | "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 21957 | "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
| 21958 | "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;; |
| 21959 | "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
| 21960 | "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;; |
| 21961 | "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;; |
| 21962 | "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;; |
| 21963 | "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
| 21964 | "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;; |
| 21965 | "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 21966 | "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;; |
| 21967 | "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;; |
| 21968 | "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 21969 | "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
| 21970 | "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; |
| 21971 | "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
| 21972 | "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;; |
Mike McCormack | a6ea0f6 | 2006-06-05 14:01:10 +0900 | [diff] [blame] | 21973 | "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21974 | "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;; |
| 21975 | "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;; |
| 21976 | "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;; |
| 21977 | "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;; |
Paul Vriens | 569a452 | 2006-06-13 14:16:58 +0200 | [diff] [blame] | 21978 | "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21979 | "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;; |
| 21980 | "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;; |
| 21981 | "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
| 21982 | "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;; |
| 21983 | "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;; |
| 21984 | "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;; |
| 21985 | "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;; |
| 21986 | "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;; |
| 21987 | "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;; |
| 21988 | "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;; |
| 21989 | "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;; |
| 21990 | "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;; |
| 21991 | "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 21992 | "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;; |
| 21993 | "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;; |
Alexandre Julliard | bdb4fab | 2006-06-16 09:57:50 +0200 | [diff] [blame^] | 21994 | "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21995 | "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
| 21996 | "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;; |
| 21997 | "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 21998 | "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 21999 | "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;; |
| 22000 | "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; |
| 22001 | "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
| 22002 | "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 22003 | "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22004 | "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;; |
| 22005 | "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;; |
| 22006 | "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; |
| 22007 | "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 22008 | "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;; |
| 22009 | "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;; |
| 22010 | "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;; |
| 22011 | "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;; |
| 22012 | "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
| 22013 | "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;; |
| 22014 | "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;; |
| 22015 | "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 22016 | "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;; |
| 22017 | "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;; |
| 22018 | "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
| 22019 | "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22020 | "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
| 22021 | "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;; |
| 22022 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
| 22023 | "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; |
| 22024 | "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;; |
| 22025 | "libs/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;; |
| 22026 | "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;; |
| 22027 | "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;; |
| 22028 | "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;; |
| 22029 | "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 22030 | "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 22031 | "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 22032 | "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
| 22033 | "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;; |
| 22034 | "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
| 22035 | "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;; |
| 22036 | "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;; |
| 22037 | "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;; |
| 22038 | "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;; |
| 22039 | "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;; |
| 22040 | "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
| 22041 | "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
| 22042 | "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
| 22043 | "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
| 22044 | "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;; |
| 22045 | "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;; |
| 22046 | "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;; |
| 22047 | "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;; |
| 22048 | "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 22049 | "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 22050 | "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
| 22051 | "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;; |
| 22052 | "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;; |
| 22053 | "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;; |
| 22054 | "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
| 22055 | "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;; |
| 22056 | "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; |
| 22057 | "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;; |
| 22058 | "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
| 22059 | "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
| 22060 | "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;; |
| 22061 | "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;; |
| 22062 | "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 22063 | "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
| 22064 | "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;; |
| 22065 | "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 22066 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
| 22067 | "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; |
| 22068 | "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; |
| 22069 | "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 22070 | "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
| 22071 | "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;; |
| 22072 | "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
| 22073 | "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
| 22074 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22075 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22076 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 22077 | { (exit 1); exit 1; }; };; |
| 22078 | esac |
| 22079 | done |
| 22080 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22081 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22082 | # If the user did not use the arguments to specify the items to instantiate, |
| 22083 | # then the envvar interface is used. Set only those that are not. |
| 22084 | # We use the long form for the default assignment because of an extremely |
| 22085 | # bizarre bug on SunOS 4.1.3. |
| 22086 | if $ac_need_defaults; then |
| 22087 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 22088 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 22089 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 22090 | fi |
| 22091 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 22092 | # Have a temporary directory for convenience. Make it in the build tree |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22093 | # 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] | 22094 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22095 | # Hook for its removal unless debugging. |
| 22096 | # Note that there is a small window in which the directory will not be cleaned: |
| 22097 | # after its creation but before its name has been assigned to `$tmp'. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22098 | $debug || |
| 22099 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22100 | tmp= |
| 22101 | trap 'exit_status=$? |
| 22102 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 22103 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22104 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 22105 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22106 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 22107 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22108 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22109 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22110 | test -n "$tmp" && test -d "$tmp" |
| 22111 | } || |
| 22112 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22113 | tmp=./conf$$-$RANDOM |
| 22114 | (umask 077 && mkdir "$tmp") |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22115 | } || |
| 22116 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 22117 | echo "$me: cannot create a temporary directory in ." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22118 | { (exit 1); exit 1; } |
| 22119 | } |
| 22120 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22121 | # |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22122 | # Set up the sed scripts for CONFIG_FILES section. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22123 | # |
| 22124 | |
| 22125 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 22126 | # This happens for instance when ./config.status config.h |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22127 | if test -n "$CONFIG_FILES"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22128 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22129 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22130 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22131 | # Create sed commands to just substitute file output variables. |
| 22132 | |
| 22133 | # Remaining file output variables are in a fragment that also has non-file |
| 22134 | # output varibles. |
| 22135 | |
| 22136 | |
| 22137 | |
| 22138 | ac_delim='%!_!# ' |
| 22139 | for ac_last_try in false false false false false :; do |
| 22140 | cat >conf$$subs.sed <<_ACEOF |
| 22141 | SHELL!$SHELL$ac_delim |
| 22142 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 22143 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 22144 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 22145 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 22146 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 22147 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 22148 | exec_prefix!$exec_prefix$ac_delim |
| 22149 | prefix!$prefix$ac_delim |
| 22150 | program_transform_name!$program_transform_name$ac_delim |
| 22151 | bindir!$bindir$ac_delim |
| 22152 | sbindir!$sbindir$ac_delim |
| 22153 | libexecdir!$libexecdir$ac_delim |
| 22154 | datarootdir!$datarootdir$ac_delim |
| 22155 | datadir!$datadir$ac_delim |
| 22156 | sysconfdir!$sysconfdir$ac_delim |
| 22157 | sharedstatedir!$sharedstatedir$ac_delim |
| 22158 | localstatedir!$localstatedir$ac_delim |
| 22159 | includedir!$includedir$ac_delim |
| 22160 | oldincludedir!$oldincludedir$ac_delim |
| 22161 | docdir!$docdir$ac_delim |
| 22162 | infodir!$infodir$ac_delim |
| 22163 | htmldir!$htmldir$ac_delim |
| 22164 | dvidir!$dvidir$ac_delim |
| 22165 | pdfdir!$pdfdir$ac_delim |
| 22166 | psdir!$psdir$ac_delim |
| 22167 | libdir!$libdir$ac_delim |
| 22168 | localedir!$localedir$ac_delim |
| 22169 | mandir!$mandir$ac_delim |
| 22170 | DEFS!$DEFS$ac_delim |
| 22171 | ECHO_C!$ECHO_C$ac_delim |
| 22172 | ECHO_N!$ECHO_N$ac_delim |
| 22173 | ECHO_T!$ECHO_T$ac_delim |
| 22174 | LIBS!$LIBS$ac_delim |
| 22175 | build_alias!$build_alias$ac_delim |
| 22176 | host_alias!$host_alias$ac_delim |
| 22177 | target_alias!$target_alias$ac_delim |
| 22178 | build!$build$ac_delim |
| 22179 | build_cpu!$build_cpu$ac_delim |
| 22180 | build_vendor!$build_vendor$ac_delim |
| 22181 | build_os!$build_os$ac_delim |
| 22182 | host!$host$ac_delim |
| 22183 | host_cpu!$host_cpu$ac_delim |
| 22184 | host_vendor!$host_vendor$ac_delim |
| 22185 | host_os!$host_os$ac_delim |
| 22186 | WIN16_FILES!$WIN16_FILES$ac_delim |
| 22187 | WIN16_INSTALL!$WIN16_INSTALL$ac_delim |
| 22188 | SET_MAKE!$SET_MAKE$ac_delim |
| 22189 | CC!$CC$ac_delim |
| 22190 | CFLAGS!$CFLAGS$ac_delim |
| 22191 | LDFLAGS!$LDFLAGS$ac_delim |
| 22192 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 22193 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 22194 | EXEEXT!$EXEEXT$ac_delim |
| 22195 | OBJEXT!$OBJEXT$ac_delim |
| 22196 | CXX!$CXX$ac_delim |
| 22197 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 22198 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 22199 | CPPBIN!$CPPBIN$ac_delim |
| 22200 | TOOLSDIR!$TOOLSDIR$ac_delim |
| 22201 | XMKMF!$XMKMF$ac_delim |
| 22202 | CPP!$CPP$ac_delim |
| 22203 | X_CFLAGS!$X_CFLAGS$ac_delim |
| 22204 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
| 22205 | X_LIBS!$X_LIBS$ac_delim |
| 22206 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
| 22207 | LEX!$LEX$ac_delim |
| 22208 | LEXLIB!$LEXLIB$ac_delim |
| 22209 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
| 22210 | XLEX!$XLEX$ac_delim |
| 22211 | BISON!$BISON$ac_delim |
| 22212 | AS!$AS$ac_delim |
| 22213 | ac_ct_AS!$ac_ct_AS$ac_delim |
| 22214 | LD!$LD$ac_delim |
| 22215 | AR!$AR$ac_delim |
| 22216 | RANLIB!$RANLIB$ac_delim |
| 22217 | STRIP!$STRIP$ac_delim |
| 22218 | WINDRES!$WINDRES$ac_delim |
| 22219 | LN_S!$LN_S$ac_delim |
| 22220 | _ACEOF |
| 22221 | |
| 22222 | if test `grep -c "$ac_delim\$" conf$$subs.sed` = 79; then |
| 22223 | break |
| 22224 | elif $ac_last_try; then |
| 22225 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 22226 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 22227 | { (exit 1); exit 1; }; } |
| 22228 | else |
| 22229 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22230 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22231 | done |
| 22232 | |
| 22233 | ac_eof= |
| 22234 | if grep '^CEOF$' conf$$subs.sed >/dev/null; then |
| 22235 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q` |
| 22236 | ac_eof=`expr 0$ac_eof + 1` |
| 22237 | fi |
| 22238 | |
| 22239 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22240 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 22241 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 22242 | /^[ ]*@MAKE_RULES@[ ]*$/{ |
| 22243 | r $MAKE_RULES |
| 22244 | d |
| 22245 | } |
| 22246 | /^[ ]*@MAKE_DLL_RULES@[ ]*$/{ |
| 22247 | r $MAKE_DLL_RULES |
| 22248 | d |
| 22249 | } |
| 22250 | /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{ |
| 22251 | r $MAKE_IMPLIB_RULES |
| 22252 | d |
| 22253 | } |
| 22254 | /^[ ]*@MAKE_TEST_RULES@[ ]*$/{ |
| 22255 | r $MAKE_TEST_RULES |
| 22256 | d |
| 22257 | } |
| 22258 | /^[ ]*@MAKE_LIB_RULES@[ ]*$/{ |
| 22259 | r $MAKE_LIB_RULES |
| 22260 | d |
| 22261 | } |
| 22262 | /^[ ]*@MAKE_PROG_RULES@[ ]*$/{ |
| 22263 | r $MAKE_PROG_RULES |
| 22264 | d |
| 22265 | } |
| 22266 | _ACEOF |
| 22267 | sed ' |
| 22268 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 22269 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 22270 | :n |
| 22271 | t n |
| 22272 | s/'"$ac_delim"'$/,g/; t |
| 22273 | s/$/\\/; p |
| 22274 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 22275 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 22276 | rm -f conf$$subs.sed |
| 22277 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22278 | CEOF$ac_eof |
| 22279 | _ACEOF |
| 22280 | |
| 22281 | |
| 22282 | ac_delim='%!_!# ' |
| 22283 | for ac_last_try in false false false false false :; do |
| 22284 | cat >conf$$subs.sed <<_ACEOF |
| 22285 | LN!$LN$ac_delim |
| 22286 | GREP!$GREP$ac_delim |
| 22287 | EGREP!$EGREP$ac_delim |
| 22288 | LDCONFIG!$LDCONFIG$ac_delim |
| 22289 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 22290 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 22291 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 22292 | LINT!$LINT$ac_delim |
| 22293 | LINTFLAGS!$LINTFLAGS$ac_delim |
| 22294 | FONTFORGE!$FONTFORGE$ac_delim |
| 22295 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
| 22296 | PRELINK!$PRELINK$ac_delim |
| 22297 | LIBPTHREAD!$LIBPTHREAD$ac_delim |
| 22298 | XLIB!$XLIB$ac_delim |
| 22299 | XFILES!$XFILES$ac_delim |
| 22300 | OPENGLFILES!$OPENGLFILES$ac_delim |
| 22301 | GLU32FILES!$GLU32FILES$ac_delim |
| 22302 | OPENGL_LIBS!$OPENGL_LIBS$ac_delim |
| 22303 | GLUT_LIBS!$GLUT_LIBS$ac_delim |
| 22304 | GLUT32FILES!$GLUT32FILES$ac_delim |
| 22305 | NASLIBS!$NASLIBS$ac_delim |
| 22306 | XML2LIBS!$XML2LIBS$ac_delim |
| 22307 | XML2INCL!$XML2INCL$ac_delim |
| 22308 | XSLTLIBS!$XSLTLIBS$ac_delim |
| 22309 | XSLTINCL!$XSLTINCL$ac_delim |
| 22310 | HALINCL!$HALINCL$ac_delim |
| 22311 | CURSESLIBS!$CURSESLIBS$ac_delim |
| 22312 | sane_devel!$sane_devel$ac_delim |
| 22313 | SANELIBS!$SANELIBS$ac_delim |
| 22314 | SANEINCL!$SANEINCL$ac_delim |
| 22315 | gphoto2_devel!$gphoto2_devel$ac_delim |
| 22316 | gphoto2port_devel!$gphoto2port_devel$ac_delim |
| 22317 | GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim |
| 22318 | GPHOTO2INCL!$GPHOTO2INCL$ac_delim |
| 22319 | ICULIBS!$ICULIBS$ac_delim |
| 22320 | RESOLVLIBS!$RESOLVLIBS$ac_delim |
| 22321 | LCMSLIBS!$LCMSLIBS$ac_delim |
| 22322 | LDAPLIBS!$LDAPLIBS$ac_delim |
| 22323 | FREETYPELIBS!$FREETYPELIBS$ac_delim |
| 22324 | FREETYPEINCL!$FREETYPEINCL$ac_delim |
| 22325 | ft_devel!$ft_devel$ac_delim |
| 22326 | ft_devel2!$ft_devel2$ac_delim |
| 22327 | FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim |
| 22328 | ARTSCCONFIG!$ARTSCCONFIG$ac_delim |
| 22329 | ARTSLIBS!$ARTSLIBS$ac_delim |
| 22330 | ARTSINCL!$ARTSINCL$ac_delim |
| 22331 | ESDCONFIG!$ESDCONFIG$ac_delim |
| 22332 | ESDLIBS!$ESDLIBS$ac_delim |
| 22333 | ESDINCL!$ESDINCL$ac_delim |
| 22334 | ALSALIBS!$ALSALIBS$ac_delim |
| 22335 | AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim |
| 22336 | EXTRACFLAGS!$EXTRACFLAGS$ac_delim |
| 22337 | BUILTINFLAG!$BUILTINFLAG$ac_delim |
| 22338 | DLLEXT!$DLLEXT$ac_delim |
| 22339 | DLLFLAGS!$DLLFLAGS$ac_delim |
| 22340 | DLLIBS!$DLLIBS$ac_delim |
| 22341 | LDSHARED!$LDSHARED$ac_delim |
| 22342 | LDDLLFLAGS!$LDDLLFLAGS$ac_delim |
| 22343 | LIBEXT!$LIBEXT$ac_delim |
| 22344 | IMPLIBEXT!$IMPLIBEXT$ac_delim |
| 22345 | DLLTOOL!$DLLTOOL$ac_delim |
| 22346 | DLLWRAP!$DLLWRAP$ac_delim |
| 22347 | LDEXECFLAGS!$LDEXECFLAGS$ac_delim |
| 22348 | LDEXERPATH!$LDEXERPATH$ac_delim |
| 22349 | LDDLLRPATH!$LDDLLRPATH$ac_delim |
| 22350 | COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim |
| 22351 | IOKITLIB!$IOKITLIB$ac_delim |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 22352 | COREAUDIO!$COREAUDIO$ac_delim |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22353 | CROSSTEST!$CROSSTEST$ac_delim |
| 22354 | CROSSCC!$CROSSCC$ac_delim |
| 22355 | CROSSWINDRES!$CROSSWINDRES$ac_delim |
| 22356 | LDPATH!$LDPATH$ac_delim |
| 22357 | CRTLIBS!$CRTLIBS$ac_delim |
| 22358 | SOCKETLIBS!$SOCKETLIBS$ac_delim |
| 22359 | MAIN_BINARY!$MAIN_BINARY$ac_delim |
| 22360 | EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim |
| 22361 | LDD!$LDD$ac_delim |
| 22362 | LIBOBJS!$LIBOBJS$ac_delim |
| 22363 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 22364 | _ACEOF |
| 22365 | |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 22366 | if test `grep -c "$ac_delim\$" conf$$subs.sed` = 79; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22367 | break |
| 22368 | elif $ac_last_try; then |
| 22369 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 22370 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 22371 | { (exit 1); exit 1; }; } |
| 22372 | else |
| 22373 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 22374 | fi |
| 22375 | done |
| 22376 | |
| 22377 | ac_eof= |
| 22378 | if grep '^CEOF$' conf$$subs.sed >/dev/null; then |
| 22379 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q` |
| 22380 | ac_eof=`expr 0$ac_eof + 1` |
| 22381 | fi |
| 22382 | |
| 22383 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22384 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 22385 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 22386 | _ACEOF |
| 22387 | sed ' |
| 22388 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 22389 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 22390 | :n |
| 22391 | t n |
| 22392 | s/'"$ac_delim"'$/,g/; t |
| 22393 | s/$/\\/; p |
| 22394 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 22395 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 22396 | rm -f conf$$subs.sed |
| 22397 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22398 | :end |
| 22399 | s/|#_!!_#|//g |
| 22400 | CEOF$ac_eof |
| 22401 | _ACEOF |
| 22402 | |
| 22403 | |
| 22404 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22405 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22406 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 22407 | # (actually we leave an empty line to preserve line numbers). |
| 22408 | if test "x$srcdir" = x.; then |
| 22409 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 22410 | s/:*\$(srcdir):*/:/ |
| 22411 | s/:*\${srcdir}:*/:/ |
| 22412 | s/:*@srcdir@:*/:/ |
| 22413 | s/^\([^=]*=[ ]*\):*/\1/ |
| 22414 | s/:*$// |
| 22415 | s/^[^=]*=[ ]*$// |
| 22416 | }' |
| 22417 | fi |
| 22418 | |
| 22419 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22420 | fi # test -n "$CONFIG_FILES" |
| 22421 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22422 | |
| 22423 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 22424 | do |
| 22425 | case $ac_tag in |
| 22426 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 22427 | esac |
| 22428 | case $ac_mode$ac_tag in |
| 22429 | :[FHL]*:*);; |
| 22430 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 22431 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 22432 | { (exit 1); exit 1; }; };; |
| 22433 | :[FH]-) ac_tag=-:-;; |
| 22434 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 22435 | esac |
| 22436 | ac_save_IFS=$IFS |
| 22437 | IFS=: |
| 22438 | set x $ac_tag |
| 22439 | IFS=$ac_save_IFS |
| 22440 | shift |
| 22441 | ac_file=$1 |
| 22442 | shift |
| 22443 | |
| 22444 | case $ac_mode in |
| 22445 | :L) ac_source=$1;; |
| 22446 | :[FH]) |
| 22447 | ac_file_inputs= |
| 22448 | for ac_f |
| 22449 | do |
| 22450 | case $ac_f in |
| 22451 | -) ac_f="$tmp/stdin";; |
| 22452 | *) # Look for the file first in the build tree, then in the source tree |
| 22453 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 22454 | # because $ac_f cannot contain `:'. |
| 22455 | test -f "$ac_f" || |
| 22456 | case $ac_f in |
| 22457 | [\\/$]*) false;; |
| 22458 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 22459 | esac || |
| 22460 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 22461 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 22462 | { (exit 1); exit 1; }; };; |
| 22463 | esac |
| 22464 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 22465 | done |
| 22466 | |
| 22467 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22468 | # use $as_me), people would be surprised to read: |
| 22469 | # /* config.h. Generated by config.status. */ |
| 22470 | configure_input="Generated from "`IFS=: |
| 22471 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 22472 | if test x"$ac_file" != x-; then |
| 22473 | configure_input="$ac_file. $configure_input" |
| 22474 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22475 | echo "$as_me: creating $ac_file" >&6;} |
| 22476 | fi |
| 22477 | |
| 22478 | case $ac_tag in |
| 22479 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 22480 | esac |
| 22481 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22482 | esac |
| 22483 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22484 | ac_dir=`$as_dirname -- "$ac_file" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22485 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22486 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22487 | X"$ac_file" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22488 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22489 | echo X"$ac_file" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22490 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22491 | s//\1/ |
| 22492 | q |
| 22493 | } |
| 22494 | /^X\(\/\/\)[^/].*/{ |
| 22495 | s//\1/ |
| 22496 | q |
| 22497 | } |
| 22498 | /^X\(\/\/\)$/{ |
| 22499 | s//\1/ |
| 22500 | q |
| 22501 | } |
| 22502 | /^X\(\/\).*/{ |
| 22503 | s//\1/ |
| 22504 | q |
| 22505 | } |
| 22506 | s/.*/./; q'` |
| 22507 | { as_dir="$ac_dir" |
| 22508 | case $as_dir in #( |
| 22509 | -*) as_dir=./$as_dir;; |
| 22510 | esac |
| 22511 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 22512 | as_dirs= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22513 | while :; do |
| 22514 | case $as_dir in #( |
| 22515 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22516 | *) as_qdir=$as_dir;; |
| 22517 | esac |
| 22518 | as_dirs="'$as_qdir' $as_dirs" |
| 22519 | as_dir=`$as_dirname -- "$as_dir" || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 22520 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22521 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22522 | X"$as_dir" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22523 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 22524 | echo X"$as_dir" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22525 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22526 | s//\1/ |
| 22527 | q |
| 22528 | } |
| 22529 | /^X\(\/\/\)[^/].*/{ |
| 22530 | s//\1/ |
| 22531 | q |
| 22532 | } |
| 22533 | /^X\(\/\/\)$/{ |
| 22534 | s//\1/ |
| 22535 | q |
| 22536 | } |
| 22537 | /^X\(\/\).*/{ |
| 22538 | s//\1/ |
| 22539 | q |
| 22540 | } |
| 22541 | s/.*/./; q'` |
| 22542 | test -d "$as_dir" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 22543 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22544 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22545 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22546 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 22547 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22548 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 22549 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22550 | case "$ac_dir" in |
| 22551 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22552 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22553 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22554 | # A ".." for each directory in $ac_dir_suffix. |
| 22555 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 22556 | case $ac_top_builddir_sub in |
| 22557 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22558 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22559 | esac ;; |
| 22560 | esac |
| 22561 | ac_abs_top_builddir=$ac_pwd |
| 22562 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22563 | # for backward compatibility: |
| 22564 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22565 | |
| 22566 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22567 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22568 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22569 | ac_top_srcdir=$ac_top_builddir_sub |
| 22570 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22571 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22572 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22573 | ac_top_srcdir=$srcdir |
| 22574 | ac_abs_top_srcdir=$srcdir ;; |
| 22575 | *) # Relative name. |
| 22576 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22577 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22578 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22579 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22580 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22581 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22582 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22583 | case $ac_mode in |
| 22584 | :F) |
| 22585 | # |
| 22586 | # CONFIG_FILE |
| 22587 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 22588 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22589 | case $INSTALL in |
| 22590 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22591 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 22592 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22593 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22594 | |
| 22595 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22596 | # If the template does not know about datarootdir, expand it. |
| 22597 | # FIXME: This hack should be removed a few years after 2.60. |
| 22598 | ac_datarootdir_hack= |
| 22599 | |
| 22600 | case `sed -n '/datarootdir/ { |
| 22601 | p |
| 22602 | q |
| 22603 | } |
| 22604 | /@datadir@/p |
| 22605 | /@docdir@/p |
| 22606 | /@infodir@/p |
| 22607 | /@localedir@/p |
| 22608 | /@mandir@/p |
| 22609 | ' $ac_file_inputs` in |
| 22610 | *datarootdir*) ;; |
| 22611 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 22612 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 22613 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 22614 | _ACEOF |
| 22615 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22616 | ac_datarootdir_hack=' |
| 22617 | s&@datadir@&$datadir&g |
| 22618 | s&@docdir@&$docdir&g |
| 22619 | s&@infodir@&$infodir&g |
| 22620 | s&@localedir@&$localedir&g |
| 22621 | s&@mandir@&$mandir&g |
| 22622 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 22623 | esac |
| 22624 | _ACEOF |
| 22625 | |
| 22626 | # Neutralize VPATH when `$srcdir' = `.'. |
| 22627 | # Shell code in configure.ac might set extrasub. |
| 22628 | # FIXME: do we really want to maintain this feature? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22629 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22630 | sed "$ac_vpsub |
| 22631 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22632 | _ACEOF |
| 22633 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22634 | :t |
| 22635 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22636 | s&@configure_input@&$configure_input&;t t |
| 22637 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 22638 | s&@srcdir@&$ac_srcdir&;t t |
| 22639 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 22640 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 22641 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 22642 | s&@builddir@&$ac_builddir&;t t |
| 22643 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 22644 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 22645 | s&@INSTALL@&$ac_INSTALL&;t t |
| 22646 | $ac_datarootdir_hack |
| 22647 | " $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] | 22648 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22649 | rm -f "$tmp/stdin" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22650 | case $ac_file in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22651 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 22652 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 22653 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22654 | ;; |
| 22655 | :H) |
| 22656 | # |
| 22657 | # CONFIG_HEADER |
| 22658 | # |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 22659 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22660 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 22661 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 22662 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 22663 | # just an empty string. |
| 22664 | # |
| 22665 | ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*' |
| 22666 | ac_dB='\)[ (].*$,\1define\2' |
| 22667 | ac_dC=' ' |
| 22668 | ac_dD=' ,' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 22669 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22670 | ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]* |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22671 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 22672 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22673 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 22674 | # substitutes the proper values into config.h.in to produce config.h. |
| 22675 | rm -f conftest.defines conftest.tail |
| 22676 | # First, append a space to every undef/define line, to ease matching. |
| 22677 | echo 's/$/ /' >conftest.defines |
| 22678 | # Then, protect against being on the right side of a sed subst, or in |
| 22679 | # an unquoted here document, in config.status. If some macros were |
| 22680 | # called several times there might be several #defines for the same |
| 22681 | # symbol, which is useless. But do not sort them, since the last |
| 22682 | # AC_DEFINE must be honored. |
| 22683 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 22684 | uniq confdefs.h | |
| 22685 | sed -n ' |
| 22686 | t rset |
| 22687 | :rset |
| 22688 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 22689 | t ok |
| 22690 | d |
| 22691 | :ok |
| 22692 | s/[\\&,]/\\&/g |
| 22693 | s/[\\$`]/\\&/g |
| 22694 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p |
| 22695 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p |
| 22696 | ' >>conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 22697 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22698 | # Remove the space that was appended to ease matching. |
| 22699 | # Then replace #undef with comments. This is necessary, for |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 22700 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22701 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22702 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 22703 | echo 's/ $// |
| 22704 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 22705 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22706 | # Break up conftest.defines: |
| 22707 | ac_max_sed_lines=96 |
| 22708 | |
| 22709 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 22710 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 22711 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 22712 | # et cetera. |
| 22713 | ac_in='$ac_file_inputs' |
| 22714 | ac_out='"$tmp/out1"' |
| 22715 | ac_nxt='"$tmp/out2"' |
| 22716 | |
| 22717 | while : |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 22718 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22719 | # Write a here document: |
| 22720 | echo ' # First, check the format of the line: |
| 22721 | cat >"$tmp/defines.sed" <<CEOF |
| 22722 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def |
| 22723 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def |
| 22724 | b |
| 22725 | :def' >>$CONFIG_STATUS |
| 22726 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 22727 | echo 'CEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22728 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 22729 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 22730 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 22731 | grep . conftest.tail >/dev/null || break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22732 | rm -f conftest.defines |
| 22733 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 22734 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22735 | rm -f conftest.defines conftest.tail |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 22736 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22737 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22738 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22739 | if test x"$ac_file" != x-; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22740 | echo "/* $configure_input */" >"$tmp/config.h" |
| 22741 | cat "$ac_result" >>"$tmp/config.h" |
| 22742 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22743 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22744 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 22745 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22746 | rm -f $ac_file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22747 | mv "$tmp/config.h" $ac_file |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22748 | fi |
| 22749 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22750 | echo "/* $configure_input */" |
| 22751 | cat "$ac_result" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22752 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22753 | rm -f "$tmp/out12" |
| 22754 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 22755 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22756 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 22757 | echo "$as_me: executing $ac_file commands" >&6;} |
| 22758 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22759 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 22760 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22761 | |
| 22762 | case $ac_file$ac_mode in |
| 22763 | "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
| 22764 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
| 22765 | "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
| 22766 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
| 22767 | "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
| 22768 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
| 22769 | "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
| 22770 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
| 22771 | "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5 |
| 22772 | echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;; |
| 22773 | "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
| 22774 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
| 22775 | |
| 22776 | esac |
| 22777 | done # for ac_tag |
| 22778 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 22779 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22780 | { (exit 0); exit 0; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22781 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 22782 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22783 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 22784 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22785 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22786 | # configure is writing to config.log, and then calls config.status. |
| 22787 | # config.status does its own redirection, appending to config.log. |
| 22788 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22789 | # by configure, so config.status won't be able to write to it; its |
| 22790 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22791 | # effectively closing config.log, so it can be properly (re)opened and |
| 22792 | # appended to by config.status. When coming back to configure, we |
| 22793 | # need to make the FD available again. |
| 22794 | if test "$no_create" != yes; then |
| 22795 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 22796 | ac_config_status_args= |
| 22797 | test "$silent" = yes && |
| 22798 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22799 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 22800 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22801 | exec 5>>config.log |
| 22802 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22803 | # would make configure fail if this is the last instruction. |
| 22804 | $ac_cs_success || { (exit 1); exit 1; } |
| 22805 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 22806 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22807 | |
Mike McCormack | 8d6b9aa | 2006-04-17 18:16:10 +0900 | [diff] [blame] | 22808 | exitcode=0 |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 22809 | if test "$have_x" = "no" |
| 22810 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 22811 | echo >&2 |
| 22812 | { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5 |
| 22813 | echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;} |
| 22814 | { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5 |
| 22815 | echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;} |
| 22816 | { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5 |
| 22817 | echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;} |
| 22818 | { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5 |
| 22819 | echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;} |
Mike McCormack | 8d6b9aa | 2006-04-17 18:16:10 +0900 | [diff] [blame] | 22820 | exitcode=1 |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 22821 | fi |
| 22822 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 22823 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 22824 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 22825 | echo >&2 |
| 22826 | { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5 |
| 22827 | echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;} |
| 22828 | { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5 |
| 22829 | echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;} |
Mike McCormack | 8d6b9aa | 2006-04-17 18:16:10 +0900 | [diff] [blame] | 22830 | exitcode=1 |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 22831 | fi |
| 22832 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 22833 | if test "$wine_cv_msg_freetype" = "yes" |
| 22834 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 22835 | echo >&2 |
| 22836 | { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5 |
| 22837 | echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;} |
| 22838 | { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5 |
| 22839 | echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;} |
| 22840 | { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5 |
| 22841 | echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;} |
| 22842 | { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5 |
| 22843 | echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;} |
Mike McCormack | 8d6b9aa | 2006-04-17 18:16:10 +0900 | [diff] [blame] | 22844 | exitcode=1 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 22845 | fi |
| 22846 | |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 22847 | if test -z "$FONTSSUBDIRS" |
Mike McCormack | 8f6aa41 | 2006-04-04 13:36:51 +0900 | [diff] [blame] | 22848 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 22849 | echo >&2 |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 22850 | if test "$FONTFORGE" = "false" |
| 22851 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 22852 | { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5 |
| 22853 | echo "$as_me: WARNING: FontForge is missing." >&2;} |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 22854 | else |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 22855 | { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5 |
| 22856 | echo "$as_me: WARNING: FreeType is missing." >&2;} |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 22857 | fi |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 22858 | { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5 |
| 22859 | echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;} |
Mike McCormack | 8d6b9aa | 2006-04-17 18:16:10 +0900 | [diff] [blame] | 22860 | exitcode=1 |
Mike McCormack | 8f6aa41 | 2006-04-04 13:36:51 +0900 | [diff] [blame] | 22861 | fi |
| 22862 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 22863 | if test -z "$ALSALIBS" -a \ |
| 22864 | -z "$ARTSC_LIBS" -a \ |
| 22865 | -z "$AUDIOIOLIBS" -a \ |
| 22866 | -z "$NASLIBS" -a \ |
| 22867 | -z "$ESD_LIBS" -a \ |
| 22868 | -z "$ac_cv_lib_soname_jack" -a \ |
| 22869 | "$ac_cv_header_sys_soundcard_h" != "yes" -a \ |
| 22870 | "$ac_cv_header_machine_soundcard_h" != "yes" -a \ |
| 22871 | "$ac_cv_header_soundcard_h" != "yes" |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 22872 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 22873 | echo >&2 |
| 22874 | { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5 |
| 22875 | echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;} |
| 22876 | { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5 |
| 22877 | echo "$as_me: WARNING: The currently supported sound systems are:" >&2;} |
| 22878 | { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5 |
| 22879 | echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;} |
Mike McCormack | 8d6b9aa | 2006-04-17 18:16:10 +0900 | [diff] [blame] | 22880 | exitcode=1 |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 22881 | fi |
| 22882 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 22883 | echo |
Vincent BĂ©ron | 5606d10 | 2004-08-19 00:03:45 +0000 | [diff] [blame] | 22884 | echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 22885 | echo |
| 22886 | |
Mike McCormack | 8d6b9aa | 2006-04-17 18:16:10 +0900 | [diff] [blame] | 22887 | exit $exitcode |
| 22888 | |