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 | bf71a2f | 2006-08-24 16:11:45 +0200 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60a for Wine 0.9.20. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4 | # |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5 | # Report bugs to <wine-devel@winehq.org>. |
| 6 | # |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22 | setopt NO_GLOB_SUBST |
| 23 | else |
| 24 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 26 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 27 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 28 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 29 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 30 | # PATH needs CR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 31 | # Avoid depending upon Character Ranges. |
| 32 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 33 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 34 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35 | as_cr_digits='0123456789' |
| 36 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 37 | |
| 38 | # The user is always right. |
| 39 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 40 | echo "#! /bin/sh" >conf$$.sh |
| 41 | echo "exit 0" >>conf$$.sh |
| 42 | chmod +x conf$$.sh |
| 43 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 44 | PATH_SEPARATOR=';' |
| 45 | else |
| 46 | PATH_SEPARATOR=: |
| 47 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 48 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 49 | fi |
| 50 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 51 | # Support unset when possible. |
| 52 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 53 | as_unset=unset |
| 54 | else |
| 55 | as_unset=false |
| 56 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 57 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 58 | |
| 59 | # IFS |
| 60 | # We need space, tab and new line, in precisely that order. Quoting is |
| 61 | # there to prevent editors from complaining about space-tab. |
| 62 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 63 | # splitting by setting IFS to empty value.) |
| 64 | as_nl=' |
| 65 | ' |
| 66 | IFS=" "" $as_nl" |
| 67 | |
| 68 | # Find who we are. Look in the path if we contain no directory separator. |
| 69 | case $0 in |
| 70 | *[\\/]* ) as_myself=$0 ;; |
| 71 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 72 | for as_dir in $PATH |
| 73 | do |
| 74 | IFS=$as_save_IFS |
| 75 | test -z "$as_dir" && as_dir=. |
| 76 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 77 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 78 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 79 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 80 | ;; |
| 81 | esac |
| 82 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 83 | # in which case we are not to be found in the path. |
| 84 | if test "x$as_myself" = x; then |
| 85 | as_myself=$0 |
| 86 | fi |
| 87 | if test ! -f "$as_myself"; then |
| 88 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 89 | { (exit 1); exit 1; } |
| 90 | fi |
| 91 | |
| 92 | # Work around bugs in pre-3.0 UWIN ksh. |
| 93 | for as_var in ENV MAIL MAILPATH |
| 94 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 95 | done |
| 96 | PS1='$ ' |
| 97 | PS2='> ' |
| 98 | PS4='+ ' |
| 99 | |
| 100 | # NLS nuisances. |
| 101 | for as_var in \ |
| 102 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 103 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 104 | LC_TELEPHONE LC_TIME |
| 105 | do |
| 106 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 107 | eval $as_var=C; export $as_var |
| 108 | else |
| 109 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 110 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 111 | done |
| 112 | |
| 113 | # Required to use basename. |
| 114 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 116 | as_expr=expr |
| 117 | else |
| 118 | as_expr=false |
| 119 | fi |
| 120 | |
| 121 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 122 | as_basename=basename |
| 123 | else |
| 124 | as_basename=false |
| 125 | fi |
| 126 | |
| 127 | |
| 128 | # Name of the executable. |
| 129 | as_me=`$as_basename -- "$0" || |
| 130 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 131 | X"$0" : 'X\(//\)$' \| \ |
| 132 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 133 | echo X/"$0" | |
| 134 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 135 | s//\1/ |
| 136 | q |
| 137 | } |
| 138 | /^X\/\(\/\/\)$/{ |
| 139 | s//\1/ |
| 140 | q |
| 141 | } |
| 142 | /^X\/\(\/\).*/{ |
| 143 | s//\1/ |
| 144 | q |
| 145 | } |
| 146 | s/.*/./; q'` |
| 147 | |
| 148 | # CDPATH. |
| 149 | $as_unset CDPATH |
| 150 | |
| 151 | |
| 152 | if test "x$CONFIG_SHELL" = x; then |
| 153 | if (eval ":") 2>/dev/null; then |
| 154 | as_have_required=yes |
| 155 | else |
| 156 | as_have_required=no |
| 157 | fi |
| 158 | |
| 159 | if test $as_have_required = yes && (eval ": |
| 160 | (as_func_return () { |
| 161 | (exit \$1) |
| 162 | } |
| 163 | as_func_success () { |
| 164 | as_func_return 0 |
| 165 | } |
| 166 | as_func_failure () { |
| 167 | as_func_return 1 |
| 168 | } |
| 169 | as_func_ret_success () { |
| 170 | return 0 |
| 171 | } |
| 172 | as_func_ret_failure () { |
| 173 | return 1 |
| 174 | } |
| 175 | |
| 176 | exitcode=0 |
| 177 | if as_func_success; then |
| 178 | : |
| 179 | else |
| 180 | exitcode=1 |
| 181 | echo as_func_success failed. |
| 182 | fi |
| 183 | |
| 184 | if as_func_failure; then |
| 185 | exitcode=1 |
| 186 | echo as_func_failure succeeded. |
| 187 | fi |
| 188 | |
| 189 | if as_func_ret_success; then |
| 190 | : |
| 191 | else |
| 192 | exitcode=1 |
| 193 | echo as_func_ret_success failed. |
| 194 | fi |
| 195 | |
| 196 | if as_func_ret_failure; then |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_failure succeeded. |
| 199 | fi |
| 200 | |
| 201 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 202 | : |
| 203 | else |
| 204 | exitcode=1 |
| 205 | echo positional parameters were not saved. |
| 206 | fi |
| 207 | |
| 208 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 209 | |
| 210 | ( |
| 211 | as_lineno_1=\$LINENO |
| 212 | as_lineno_2=\$LINENO |
| 213 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 214 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 215 | ") 2> /dev/null; then |
| 216 | : |
| 217 | else |
| 218 | as_candidate_shells= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 220 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 221 | do |
| 222 | IFS=$as_save_IFS |
| 223 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 224 | case $as_dir in |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 225 | /*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 226 | for as_base in sh bash ksh sh5; do |
| 227 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 228 | done;; |
| 229 | esac |
| 230 | done |
| 231 | IFS=$as_save_IFS |
| 232 | |
| 233 | |
| 234 | for as_shell in $as_candidate_shells $SHELL; do |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 235 | # Try only shells that exist, to save several forks. |
| 236 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 237 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 238 | # Be Bourne compatible |
| 239 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 240 | emulate sh |
| 241 | NULLCMD=: |
| 242 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 243 | # is contrary to our usage. Disable this feature. |
| 244 | alias -g '${1+"$@"}'='"$@"' |
| 245 | setopt NO_GLOB_SUBST |
| 246 | else |
| 247 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 248 | fi |
| 249 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 250 | DUALCASE=1; export DUALCASE # for MKS sh |
| 251 | |
| 252 | : |
| 253 | _ASEOF |
| 254 | }; then |
| 255 | CONFIG_SHELL=$as_shell |
| 256 | as_have_required=yes |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 257 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 258 | # Be Bourne compatible |
| 259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 260 | emulate sh |
| 261 | NULLCMD=: |
| 262 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 263 | # is contrary to our usage. Disable this feature. |
| 264 | alias -g '${1+"$@"}'='"$@"' |
| 265 | setopt NO_GLOB_SUBST |
| 266 | else |
| 267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 268 | fi |
| 269 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 270 | DUALCASE=1; export DUALCASE # for MKS sh |
| 271 | |
| 272 | : |
| 273 | (as_func_return () { |
| 274 | (exit $1) |
| 275 | } |
| 276 | as_func_success () { |
| 277 | as_func_return 0 |
| 278 | } |
| 279 | as_func_failure () { |
| 280 | as_func_return 1 |
| 281 | } |
| 282 | as_func_ret_success () { |
| 283 | return 0 |
| 284 | } |
| 285 | as_func_ret_failure () { |
| 286 | return 1 |
| 287 | } |
| 288 | |
| 289 | exitcode=0 |
| 290 | if as_func_success; then |
| 291 | : |
| 292 | else |
| 293 | exitcode=1 |
| 294 | echo as_func_success failed. |
| 295 | fi |
| 296 | |
| 297 | if as_func_failure; then |
| 298 | exitcode=1 |
| 299 | echo as_func_failure succeeded. |
| 300 | fi |
| 301 | |
| 302 | if as_func_ret_success; then |
| 303 | : |
| 304 | else |
| 305 | exitcode=1 |
| 306 | echo as_func_ret_success failed. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_failure; then |
| 310 | exitcode=1 |
| 311 | echo as_func_ret_failure succeeded. |
| 312 | fi |
| 313 | |
| 314 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 315 | : |
| 316 | else |
| 317 | exitcode=1 |
| 318 | echo positional parameters were not saved. |
| 319 | fi |
| 320 | |
| 321 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 322 | |
| 323 | ( |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 324 | as_lineno_1=$LINENO |
| 325 | as_lineno_2=$LINENO |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 326 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 327 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 328 | |
| 329 | _ASEOF |
| 330 | }; then |
| 331 | break |
| 332 | fi |
| 333 | |
| 334 | fi |
| 335 | |
| 336 | done |
| 337 | |
| 338 | if test "x$CONFIG_SHELL" != x; then |
| 339 | for as_var in BASH_ENV ENV |
| 340 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 341 | done |
| 342 | export CONFIG_SHELL |
| 343 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 344 | fi |
| 345 | |
| 346 | |
| 347 | if test $as_have_required = no; then |
| 348 | echo This script requires a shell more modern than all the |
| 349 | echo shells that I found on your system. Please install a |
| 350 | echo modern shell, or manually run the script under such a |
| 351 | echo shell if you do have one. |
| 352 | { (exit 1); exit 1; } |
| 353 | fi |
| 354 | |
| 355 | |
| 356 | fi |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | |
| 361 | |
| 362 | (eval "as_func_return () { |
| 363 | (exit \$1) |
| 364 | } |
| 365 | as_func_success () { |
| 366 | as_func_return 0 |
| 367 | } |
| 368 | as_func_failure () { |
| 369 | as_func_return 1 |
| 370 | } |
| 371 | as_func_ret_success () { |
| 372 | return 0 |
| 373 | } |
| 374 | as_func_ret_failure () { |
| 375 | return 1 |
| 376 | } |
| 377 | |
| 378 | exitcode=0 |
| 379 | if as_func_success; then |
| 380 | : |
| 381 | else |
| 382 | exitcode=1 |
| 383 | echo as_func_success failed. |
| 384 | fi |
| 385 | |
| 386 | if as_func_failure; then |
| 387 | exitcode=1 |
| 388 | echo as_func_failure succeeded. |
| 389 | fi |
| 390 | |
| 391 | if as_func_ret_success; then |
| 392 | : |
| 393 | else |
| 394 | exitcode=1 |
| 395 | echo as_func_ret_success failed. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_failure; then |
| 399 | exitcode=1 |
| 400 | echo as_func_ret_failure succeeded. |
| 401 | fi |
| 402 | |
| 403 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 404 | : |
| 405 | else |
| 406 | exitcode=1 |
| 407 | echo positional parameters were not saved. |
| 408 | fi |
| 409 | |
| 410 | test \$exitcode = 0") || { |
| 411 | echo No shell found that supports shell functions. |
| 412 | echo Please tell autoconf@gnu.org about your system, |
| 413 | echo including any error possibly output before this |
| 414 | echo message |
| 415 | } |
| 416 | |
| 417 | |
| 418 | |
| 419 | as_lineno_1=$LINENO |
| 420 | as_lineno_2=$LINENO |
| 421 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 422 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 423 | |
| 424 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 425 | # uniformly replaced by the line number. The first 'sed' inserts a |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 426 | # line-number line after each line using $LINENO; the second 'sed' |
| 427 | # does the real work. The second script uses 'N' to pair each |
| 428 | # line-number line with the line containing $LINENO, and appends |
| 429 | # trailing '-' during substitution so that $LINENO is not a special |
| 430 | # case at line end. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 431 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 432 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 433 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 434 | sed -n ' |
| 435 | p |
| 436 | /[$]LINENO/= |
| 437 | ' <$as_myself | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 438 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 439 | s/[$]LINENO.*/&-/ |
| 440 | t lineno |
| 441 | b |
| 442 | :lineno |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 443 | N |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 444 | :loop |
| 445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 446 | t loop |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 447 | s/-\n.*// |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 448 | ' >$as_me.lineno && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 449 | chmod +x "$as_me.lineno" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 450 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 451 | { (exit 1); exit 1; }; } |
| 452 | |
| 453 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 454 | # (the dirname of $[0] is not the place where we might find the |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 455 | # original and so on. Autoconf is especially sensitive to this). |
| 456 | . "./$as_me.lineno" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 457 | # Exit status is that of the last command. |
| 458 | exit |
| 459 | } |
| 460 | |
| 461 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 462 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 463 | as_dirname=dirname |
| 464 | else |
| 465 | as_dirname=false |
| 466 | fi |
| 467 | |
| 468 | ECHO_C= ECHO_N= ECHO_T= |
| 469 | case `echo -n x` in |
| 470 | -n*) |
| 471 | case `echo 'x\c'` in |
| 472 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 473 | *) ECHO_C='\c';; |
| 474 | esac;; |
| 475 | *) |
| 476 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 477 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 478 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 479 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 480 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 481 | as_expr=expr |
| 482 | else |
| 483 | as_expr=false |
| 484 | fi |
| 485 | |
| 486 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 487 | if test -d conf$$.dir; then |
| 488 | rm -f conf$$.dir/conf$$.file |
| 489 | else |
| 490 | rm -f conf$$.dir |
| 491 | mkdir conf$$.dir |
| 492 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 493 | echo >conf$$.file |
| 494 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 495 | as_ln_s='ln -s' |
| 496 | # ... but there are two gotchas: |
| 497 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 498 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 499 | # In both cases, we have to default to `cp -p'. |
| 500 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 501 | as_ln_s='cp -p' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 503 | as_ln_s=ln |
| 504 | else |
| 505 | as_ln_s='cp -p' |
| 506 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 508 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 509 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 510 | if mkdir -p . 2>/dev/null; then |
| 511 | as_mkdir_p=: |
| 512 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 513 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 514 | as_mkdir_p=false |
| 515 | fi |
| 516 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 517 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 518 | # systems may use methods other than mode bits to determine executability. |
| 519 | cat >conf$$.file <<_ASEOF |
| 520 | #! /bin/sh |
| 521 | exit 0 |
| 522 | _ASEOF |
| 523 | chmod +x conf$$.file |
| 524 | if test -x conf$$.file >/dev/null 2>&1; then |
| 525 | as_executable_p="test -x" |
| 526 | else |
| 527 | as_executable_p=: |
| 528 | fi |
| 529 | rm -f conf$$.file |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 530 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 531 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 532 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 533 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 534 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 535 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 536 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 537 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 538 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 539 | exec 7<&0 </dev/null 6>&1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 540 | |
| 541 | # Name of the host. |
| 542 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 543 | # so uname gets run too. |
| 544 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 545 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 546 | # |
| 547 | # Initializations. |
| 548 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 549 | ac_default_prefix=/usr/local |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 550 | ac_clean_files= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 551 | ac_config_libobj_dir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 552 | LIBOBJS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 553 | cross_compiling=no |
| 554 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 555 | MFLAGS= |
| 556 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 557 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 558 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 559 | # Identity of this package. |
| 560 | PACKAGE_NAME='Wine' |
| 561 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | bf71a2f | 2006-08-24 16:11:45 +0200 | [diff] [blame] | 562 | PACKAGE_VERSION='0.9.20' |
| 563 | PACKAGE_STRING='Wine 0.9.20' |
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 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 737 | LDSHARED |
| 738 | LDDLLFLAGS |
| 739 | LIBEXT |
| 740 | IMPLIBEXT |
Alexandre Julliard | 13a93b4 | 2006-08-25 17:23:44 +0200 | [diff] [blame] | 741 | LIBWINE_LDFLAGS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 742 | DLLTOOL |
| 743 | DLLWRAP |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 744 | COREFOUNDATIONLIB |
| 745 | IOKITLIB |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 746 | LDEXECFLAGS |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 747 | COREAUDIO |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 748 | CROSSTEST |
| 749 | CROSSCC |
| 750 | CROSSWINDRES |
| 751 | LDPATH |
| 752 | CRTLIBS |
| 753 | SOCKETLIBS |
| 754 | MAIN_BINARY |
| 755 | EXTRA_BINARIES |
| 756 | LDD |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 757 | LIBDL |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 758 | LIBPOLL |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 759 | LIBOBJS |
| 760 | LTLIBOBJS' |
| 761 | ac_subst_files='MAKE_RULES |
| 762 | MAKE_DLL_RULES |
| 763 | MAKE_IMPLIB_RULES |
| 764 | MAKE_TEST_RULES |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 765 | MAKE_PROG_RULES' |
| 766 | ac_precious_vars='build_alias |
| 767 | host_alias |
| 768 | target_alias |
| 769 | CC |
| 770 | CFLAGS |
| 771 | LDFLAGS |
| 772 | CPPFLAGS |
| 773 | CXX |
| 774 | CXXFLAGS |
| 775 | CCC |
| 776 | XMKMF |
| 777 | CPP' |
| 778 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 779 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 780 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 781 | ac_init_help= |
| 782 | ac_init_version=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 783 | # The variables have the same names as the options, with |
| 784 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 785 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 786 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 787 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 788 | no_recursion= |
| 789 | prefix=NONE |
| 790 | program_prefix=NONE |
| 791 | program_suffix=NONE |
| 792 | program_transform_name=s,x,x, |
| 793 | silent= |
| 794 | site= |
| 795 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 796 | verbose= |
| 797 | x_includes=NONE |
| 798 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 799 | |
| 800 | # Installation directory options. |
| 801 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 802 | # and all the variables that are supposed to be based on exec_prefix |
| 803 | # by default will actually change. |
| 804 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 805 | # (The list follows the same order as the GNU Coding Standards.) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 806 | bindir='${exec_prefix}/bin' |
| 807 | sbindir='${exec_prefix}/sbin' |
| 808 | libexecdir='${exec_prefix}/libexec' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 809 | datarootdir='${prefix}/share' |
| 810 | datadir='${datarootdir}' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 811 | sysconfdir='${prefix}/etc' |
| 812 | sharedstatedir='${prefix}/com' |
| 813 | localstatedir='${prefix}/var' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 814 | includedir='${prefix}/include' |
| 815 | oldincludedir='/usr/include' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 816 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 817 | infodir='${datarootdir}/info' |
| 818 | htmldir='${docdir}' |
| 819 | dvidir='${docdir}' |
| 820 | pdfdir='${docdir}' |
| 821 | psdir='${docdir}' |
| 822 | libdir='${exec_prefix}/lib' |
| 823 | localedir='${datarootdir}/locale' |
| 824 | mandir='${datarootdir}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 825 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 826 | ac_prev= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 827 | ac_dashdash= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 828 | for ac_option |
| 829 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 830 | # If the previous option needs an argument, assign it. |
| 831 | if test -n "$ac_prev"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 832 | eval $ac_prev=\$ac_option |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 833 | ac_prev= |
| 834 | continue |
| 835 | fi |
| 836 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 837 | case $ac_option in |
| 838 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 839 | *) ac_optarg=yes ;; |
| 840 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 841 | |
| 842 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 843 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 844 | case $ac_dashdash$ac_option in |
| 845 | --) |
| 846 | ac_dashdash=yes ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 847 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 848 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 849 | ac_prev=bindir ;; |
| 850 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 851 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 852 | |
| 853 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 854 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 855 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 856 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 857 | |
| 858 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 859 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 860 | ac_prev=cache_file ;; |
| 861 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 862 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 863 | cache_file=$ac_optarg ;; |
| 864 | |
| 865 | --config-cache | -C) |
| 866 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 867 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 868 | -datadir | --datadir | --datadi | --datad) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 869 | ac_prev=datadir ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 870 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 871 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 872 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 873 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 874 | | --dataroo | --dataro | --datar) |
| 875 | ac_prev=datarootdir ;; |
| 876 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 877 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 878 | datarootdir=$ac_optarg ;; |
| 879 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 880 | -disable-* | --disable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 881 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 882 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 883 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 884 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 885 | { (exit 1); exit 1; }; } |
| 886 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 887 | eval enable_$ac_feature=no ;; |
| 888 | |
| 889 | -docdir | --docdir | --docdi | --doc | --do) |
| 890 | ac_prev=docdir ;; |
| 891 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 892 | docdir=$ac_optarg ;; |
| 893 | |
| 894 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 895 | ac_prev=dvidir ;; |
| 896 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 897 | dvidir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 898 | |
| 899 | -enable-* | --enable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 900 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 901 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 902 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 903 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 904 | { (exit 1); exit 1; }; } |
| 905 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 906 | eval enable_$ac_feature=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 907 | |
| 908 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 909 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 910 | | --exec | --exe | --ex) |
| 911 | ac_prev=exec_prefix ;; |
| 912 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 913 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 914 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 915 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 916 | |
| 917 | -gas | --gas | --ga | --g) |
| 918 | # Obsolete; use --with-gas. |
| 919 | with_gas=yes ;; |
| 920 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 921 | -help | --help | --hel | --he | -h) |
| 922 | ac_init_help=long ;; |
| 923 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 924 | ac_init_help=recursive ;; |
| 925 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 926 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 927 | |
| 928 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 929 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 930 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 931 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 932 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 933 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 934 | ac_prev=htmldir ;; |
| 935 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 936 | | --ht=*) |
| 937 | htmldir=$ac_optarg ;; |
| 938 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 939 | -includedir | --includedir | --includedi | --included | --include \ |
| 940 | | --includ | --inclu | --incl | --inc) |
| 941 | ac_prev=includedir ;; |
| 942 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 943 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 944 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 945 | |
| 946 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 947 | ac_prev=infodir ;; |
| 948 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 949 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 950 | |
| 951 | -libdir | --libdir | --libdi | --libd) |
| 952 | ac_prev=libdir ;; |
| 953 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 954 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 955 | |
| 956 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 957 | | --libexe | --libex | --libe) |
| 958 | ac_prev=libexecdir ;; |
| 959 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 960 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 961 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 962 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 963 | -localedir | --localedir | --localedi | --localed | --locale) |
| 964 | ac_prev=localedir ;; |
| 965 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 966 | localedir=$ac_optarg ;; |
| 967 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 968 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 969 | | --localstate | --localstat | --localsta | --localst | --locals) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 970 | ac_prev=localstatedir ;; |
| 971 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 972 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 973 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 974 | |
| 975 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 976 | ac_prev=mandir ;; |
| 977 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 978 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 979 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 980 | -nfp | --nfp | --nf) |
| 981 | # Obsolete; use --without-fp. |
| 982 | with_fp=no ;; |
| 983 | |
| 984 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 985 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 986 | no_create=yes ;; |
| 987 | |
| 988 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 989 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 990 | no_recursion=yes ;; |
| 991 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 992 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 993 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 994 | | --oldin | --oldi | --old | --ol | --o) |
| 995 | ac_prev=oldincludedir ;; |
| 996 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 997 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 998 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 999 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1000 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1001 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1002 | ac_prev=prefix ;; |
| 1003 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1004 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1005 | |
| 1006 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1007 | | --program-pre | --program-pr | --program-p) |
| 1008 | ac_prev=program_prefix ;; |
| 1009 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1010 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1011 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1012 | |
| 1013 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1014 | | --program-suf | --program-su | --program-s) |
| 1015 | ac_prev=program_suffix ;; |
| 1016 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1017 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1018 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1019 | |
| 1020 | -program-transform-name | --program-transform-name \ |
| 1021 | | --program-transform-nam | --program-transform-na \ |
| 1022 | | --program-transform-n | --program-transform- \ |
| 1023 | | --program-transform | --program-transfor \ |
| 1024 | | --program-transfo | --program-transf \ |
| 1025 | | --program-trans | --program-tran \ |
| 1026 | | --progr-tra | --program-tr | --program-t) |
| 1027 | ac_prev=program_transform_name ;; |
| 1028 | -program-transform-name=* | --program-transform-name=* \ |
| 1029 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1030 | | --program-transform-n=* | --program-transform-=* \ |
| 1031 | | --program-transform=* | --program-transfor=* \ |
| 1032 | | --program-transfo=* | --program-transf=* \ |
| 1033 | | --program-trans=* | --program-tran=* \ |
| 1034 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1035 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1036 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1037 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1038 | ac_prev=pdfdir ;; |
| 1039 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1040 | pdfdir=$ac_optarg ;; |
| 1041 | |
| 1042 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1043 | ac_prev=psdir ;; |
| 1044 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1045 | psdir=$ac_optarg ;; |
| 1046 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1047 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1048 | | -silent | --silent | --silen | --sile | --sil) |
| 1049 | silent=yes ;; |
| 1050 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1051 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1052 | ac_prev=sbindir ;; |
| 1053 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1054 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1055 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1056 | |
| 1057 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1058 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1059 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1060 | | --sha | --sh) |
| 1061 | ac_prev=sharedstatedir ;; |
| 1062 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1063 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1064 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1065 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1066 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1067 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1068 | -site | --site | --sit) |
| 1069 | ac_prev=site ;; |
| 1070 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1071 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1072 | |
| 1073 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1074 | ac_prev=srcdir ;; |
| 1075 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1076 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1077 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1078 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1079 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1080 | ac_prev=sysconfdir ;; |
| 1081 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1082 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1083 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1084 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1085 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1086 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1087 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1088 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1089 | |
| 1090 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1091 | verbose=yes ;; |
| 1092 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1093 | -version | --version | --versio | --versi | --vers | -V) |
| 1094 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1095 | |
| 1096 | -with-* | --with-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1097 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1098 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1099 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1100 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1101 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1102 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1103 | eval with_$ac_package=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1104 | |
| 1105 | -without-* | --without-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1106 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1107 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1108 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1109 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1110 | { (exit 1); exit 1; }; } |
| 1111 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1112 | eval with_$ac_package=no ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1113 | |
| 1114 | --x) |
| 1115 | # Obsolete; use --with-x. |
| 1116 | with_x=yes ;; |
| 1117 | |
| 1118 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1119 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1120 | ac_prev=x_includes ;; |
| 1121 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1122 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1123 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1124 | |
| 1125 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1126 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1127 | ac_prev=x_libraries ;; |
| 1128 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1129 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1130 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1131 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1132 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1133 | Try \`$0 --help' for more information." >&2 |
| 1134 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1135 | ;; |
| 1136 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1137 | *=*) |
| 1138 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1139 | # Reject names that are not valid shell variable names. |
| 1140 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1141 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1142 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1143 | eval $ac_envvar=\$ac_optarg |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1144 | export $ac_envvar ;; |
| 1145 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1146 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1147 | # FIXME: should be removed in autoconf 3.0. |
| 1148 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1149 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1150 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1151 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1152 | ;; |
| 1153 | |
| 1154 | esac |
| 1155 | done |
| 1156 | |
| 1157 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1158 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1159 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1160 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1161 | fi |
| 1162 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1163 | # Be sure to have absolute directory names. |
| 1164 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1165 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1166 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1167 | libdir localedir mandir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1168 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1169 | eval ac_val=\$$ac_var |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1170 | case $ac_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1171 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1172 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1173 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1174 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1175 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1176 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1177 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1178 | # There might be people who depend on the old broken behavior: `$host' |
| 1179 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1180 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1181 | build=$build_alias |
| 1182 | host=$host_alias |
| 1183 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1184 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1185 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1186 | if test "x$host_alias" != x; then |
| 1187 | if test "x$build_alias" = x; then |
| 1188 | cross_compiling=maybe |
| 1189 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1190 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1191 | elif test "x$build_alias" != "x$host_alias"; then |
| 1192 | cross_compiling=yes |
| 1193 | fi |
| 1194 | fi |
| 1195 | |
| 1196 | ac_tool_prefix= |
| 1197 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1198 | |
| 1199 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1200 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1201 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1202 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1203 | ac_ls_di=`ls -di .` && |
| 1204 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1205 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1206 | { (exit 1); exit 1; }; } |
| 1207 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1208 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1209 | { (exit 1); exit 1; }; } |
| 1210 | |
| 1211 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1212 | # Find the source files, if location was not specified. |
| 1213 | if test -z "$srcdir"; then |
| 1214 | ac_srcdir_defaulted=yes |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1215 | # Try the directory containing this script, then the parent directory. |
| 1216 | ac_confdir=`$as_dirname -- "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1217 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1218 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1219 | X"$0" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1220 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1221 | echo X"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1223 | s//\1/ |
| 1224 | q |
| 1225 | } |
| 1226 | /^X\(\/\/\)[^/].*/{ |
| 1227 | s//\1/ |
| 1228 | q |
| 1229 | } |
| 1230 | /^X\(\/\/\)$/{ |
| 1231 | s//\1/ |
| 1232 | q |
| 1233 | } |
| 1234 | /^X\(\/\).*/{ |
| 1235 | s//\1/ |
| 1236 | q |
| 1237 | } |
| 1238 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1239 | srcdir=$ac_confdir |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1240 | if test ! -r "$srcdir/$ac_unique_file"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1241 | srcdir=.. |
| 1242 | fi |
| 1243 | else |
| 1244 | ac_srcdir_defaulted=no |
| 1245 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1246 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1247 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1248 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1249 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1250 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1251 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1252 | ac_abs_confdir=`( |
| 1253 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1254 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1255 | pwd)` |
| 1256 | # When building in place, set srcdir=. |
| 1257 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1258 | srcdir=. |
| 1259 | fi |
| 1260 | # Remove unnecessary trailing slashes from srcdir. |
| 1261 | # Double slashes in file names in object file debugging info |
| 1262 | # mess up M-x gdb in Emacs. |
| 1263 | case $srcdir in |
| 1264 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1265 | esac |
| 1266 | for ac_var in $ac_precious_vars; do |
| 1267 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1268 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1269 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1270 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1271 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1272 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1273 | # |
| 1274 | # Report the --help message. |
| 1275 | # |
| 1276 | if test "$ac_init_help" = "long"; then |
| 1277 | # Omit some internal or obsolete options to make the list less imposing. |
| 1278 | # This message is too long to be a string in the A/UX 3.1 sh. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1279 | cat <<_ACEOF |
Alexandre Julliard | bf71a2f | 2006-08-24 16:11:45 +0200 | [diff] [blame] | 1280 | \`configure' configures Wine 0.9.20 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1281 | |
| 1282 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1283 | |
| 1284 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1285 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1286 | |
| 1287 | Defaults for the options are specified in brackets. |
| 1288 | |
| 1289 | Configuration: |
| 1290 | -h, --help display this help and exit |
| 1291 | --help=short display options specific to this package |
| 1292 | --help=recursive display the short help of all the included packages |
| 1293 | -V, --version display version information and exit |
| 1294 | -q, --quiet, --silent do not print \`checking...' messages |
| 1295 | --cache-file=FILE cache test results in FILE [disabled] |
| 1296 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1297 | -n, --no-create do not create output files |
| 1298 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1299 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1300 | Installation directories: |
| 1301 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1302 | [$ac_default_prefix] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1303 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1304 | [PREFIX] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1305 | |
| 1306 | By default, \`make install' will install all the files in |
| 1307 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1308 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1309 | for instance \`--prefix=\$HOME'. |
| 1310 | |
| 1311 | For better control, use the options below. |
| 1312 | |
| 1313 | Fine tuning of the installation directories: |
| 1314 | --bindir=DIR user executables [EPREFIX/bin] |
| 1315 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1316 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1317 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1318 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1319 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1320 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1321 | --includedir=DIR C header files [PREFIX/include] |
| 1322 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1323 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1324 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1325 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1326 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1327 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1328 | --docdir=DIR documentation root [DATAROOTDIR/doc/wine] |
| 1329 | --htmldir=DIR html documentation [DOCDIR] |
| 1330 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1331 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1332 | --psdir=DIR ps documentation [DOCDIR] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1333 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1334 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1335 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1336 | |
| 1337 | X features: |
| 1338 | --x-includes=DIR X include files are in DIR |
| 1339 | --x-libraries=DIR X library files are in DIR |
| 1340 | |
| 1341 | System types: |
| 1342 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1343 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1344 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1345 | fi |
| 1346 | |
| 1347 | if test -n "$ac_init_help"; then |
| 1348 | case $ac_init_help in |
Alexandre Julliard | bf71a2f | 2006-08-24 16:11:45 +0200 | [diff] [blame] | 1349 | short | recursive ) echo "Configuration of Wine 0.9.20:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1350 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1351 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1352 | |
| 1353 | Optional Features: |
| 1354 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1355 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1356 | --disable-win16 do not include Win16 support |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1357 | --enable-win64 build a Win64 emulator on AMD64 (won't run Win32 |
| 1358 | binaries) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1359 | |
| 1360 | Optional Packages: |
| 1361 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1362 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1363 | --without-opengl do not use OpenGL |
| 1364 | --without-curses do not use curses |
| 1365 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1366 | --with-x use the X Window System |
| 1367 | |
| 1368 | Some influential environment variables: |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1369 | CC C compiler command |
| 1370 | CFLAGS C compiler flags |
| 1371 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1372 | nonstandard directory <lib dir> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1373 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1374 | you have headers in a nonstandard directory <include dir> |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 1375 | CXX C++ compiler command |
| 1376 | CXXFLAGS C++ compiler flags |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1377 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1378 | CPP C preprocessor |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1379 | |
| 1380 | Use these variables to override the choices made by `configure' or to help |
| 1381 | it to find libraries and programs with nonstandard names/locations. |
| 1382 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1383 | Report bugs to <wine-devel@winehq.org>. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1384 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1385 | ac_status=$? |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1386 | fi |
| 1387 | |
| 1388 | if test "$ac_init_help" = "recursive"; then |
| 1389 | # If there are subdirs, report their specific --help. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1390 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1391 | test -d "$ac_dir" || continue |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1392 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1393 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1394 | case "$ac_dir" in |
| 1395 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1396 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1397 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1398 | # A ".." for each directory in $ac_dir_suffix. |
| 1399 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1400 | case $ac_top_builddir_sub in |
| 1401 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1402 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1403 | esac ;; |
| 1404 | esac |
| 1405 | ac_abs_top_builddir=$ac_pwd |
| 1406 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1407 | # for backward compatibility: |
| 1408 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1409 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1410 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1411 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1412 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1413 | ac_top_srcdir=$ac_top_builddir_sub |
| 1414 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1415 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1416 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1417 | ac_top_srcdir=$srcdir |
| 1418 | ac_abs_top_srcdir=$srcdir ;; |
| 1419 | *) # Relative name. |
| 1420 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1421 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1422 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1423 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1424 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1425 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1426 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1427 | # Check for guested configure. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1428 | if test -f "$ac_srcdir/configure.gnu"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1429 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1430 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1431 | elif test -f "$ac_srcdir/configure"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1432 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1433 | $SHELL "$ac_srcdir/configure" --help=recursive |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1434 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1435 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1436 | fi || ac_status=$? |
| 1437 | cd "$ac_pwd" || { ac_status=$?; break; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1438 | done |
| 1439 | fi |
| 1440 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1441 | test -n "$ac_init_help" && exit $ac_status |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1442 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1443 | cat <<\_ACEOF |
Alexandre Julliard | bf71a2f | 2006-08-24 16:11:45 +0200 | [diff] [blame] | 1444 | Wine configure 0.9.20 |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 1445 | generated by GNU Autoconf 2.60a |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1446 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1447 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1448 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1449 | This configure script is free software; the Free Software Foundation |
| 1450 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1451 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1452 | exit |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1453 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1454 | cat >config.log <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1455 | This file contains any messages produced by compilers while |
| 1456 | running configure, to aid debugging if configure makes a mistake. |
| 1457 | |
Alexandre Julliard | bf71a2f | 2006-08-24 16:11:45 +0200 | [diff] [blame] | 1458 | It was created by Wine $as_me 0.9.20, which was |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 1459 | generated by GNU Autoconf 2.60a. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1460 | |
| 1461 | $ $0 $@ |
| 1462 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1463 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1464 | exec 5>>config.log |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1465 | { |
| 1466 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1467 | ## --------- ## |
| 1468 | ## Platform. ## |
| 1469 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1470 | |
| 1471 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1472 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1473 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1474 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1475 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1476 | |
| 1477 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1478 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1479 | |
| 1480 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1481 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1482 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1483 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1484 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1485 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1486 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1487 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1488 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1489 | |
| 1490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1491 | for as_dir in $PATH |
| 1492 | do |
| 1493 | IFS=$as_save_IFS |
| 1494 | test -z "$as_dir" && as_dir=. |
| 1495 | echo "PATH: $as_dir" |
| 1496 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1497 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1498 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1499 | } >&5 |
| 1500 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1501 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1502 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1503 | |
| 1504 | ## ----------- ## |
| 1505 | ## Core tests. ## |
| 1506 | ## ----------- ## |
| 1507 | |
| 1508 | _ACEOF |
| 1509 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1510 | |
| 1511 | # Keep a trace of the command line. |
| 1512 | # Strip out --no-create and --no-recursion so they do not pile up. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1513 | # Strip out --silent because we don't want to record it for future runs. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1514 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1515 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1516 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1517 | ac_configure_args0= |
| 1518 | ac_configure_args1= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1519 | ac_must_keep_next=false |
| 1520 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1521 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1522 | for ac_arg |
| 1523 | do |
| 1524 | case $ac_arg in |
| 1525 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1526 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1527 | | -silent | --silent | --silen | --sile | --sil) |
| 1528 | continue ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1529 | *\'*) |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1530 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1531 | esac |
| 1532 | case $ac_pass in |
| 1533 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1534 | 2) |
| 1535 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1536 | if test $ac_must_keep_next = true; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1537 | ac_must_keep_next=false # Got value, back to normal. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1538 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1539 | case $ac_arg in |
| 1540 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1541 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1542 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1543 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1544 | case "$ac_configure_args0 " in |
| 1545 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1546 | esac |
| 1547 | ;; |
| 1548 | -* ) ac_must_keep_next=true ;; |
| 1549 | esac |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1550 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1551 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1552 | ;; |
| 1553 | esac |
| 1554 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1555 | done |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1556 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1557 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1558 | |
| 1559 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1560 | # config.log. We remove comments because anyway the quotes in there |
| 1561 | # would cause problems or look ugly. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1562 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1563 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1564 | trap 'exit_status=$? |
| 1565 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1566 | { |
| 1567 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1568 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1569 | cat <<\_ASBOX |
| 1570 | ## ---------------- ## |
| 1571 | ## Cache variables. ## |
| 1572 | ## ---------------- ## |
| 1573 | _ASBOX |
| 1574 | echo |
| 1575 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1576 | ( |
| 1577 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1578 | eval ac_val=\$$ac_var |
| 1579 | case $ac_val in #( |
| 1580 | *${as_nl}*) |
| 1581 | case $ac_var in #( |
| 1582 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1583 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1584 | esac |
| 1585 | case $ac_var in #( |
| 1586 | _ | IFS | as_nl) ;; #( |
| 1587 | *) $as_unset $ac_var ;; |
| 1588 | esac ;; |
| 1589 | esac |
| 1590 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1591 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1592 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1593 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1594 | sed -n \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1595 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1596 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1597 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1598 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1599 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1600 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1601 | esac | |
| 1602 | sort |
| 1603 | ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1604 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1605 | |
| 1606 | cat <<\_ASBOX |
| 1607 | ## ----------------- ## |
| 1608 | ## Output variables. ## |
| 1609 | ## ----------------- ## |
| 1610 | _ASBOX |
| 1611 | echo |
| 1612 | for ac_var in $ac_subst_vars |
| 1613 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1614 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1615 | case $ac_val in |
| 1616 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1617 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1618 | echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1619 | done | sort |
| 1620 | echo |
| 1621 | |
| 1622 | if test -n "$ac_subst_files"; then |
| 1623 | cat <<\_ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1624 | ## ------------------- ## |
| 1625 | ## File substitutions. ## |
| 1626 | ## ------------------- ## |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1627 | _ASBOX |
| 1628 | echo |
| 1629 | for ac_var in $ac_subst_files |
| 1630 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1631 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1632 | case $ac_val in |
| 1633 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1634 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1635 | echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1636 | done | sort |
| 1637 | echo |
| 1638 | fi |
| 1639 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1640 | if test -s confdefs.h; then |
| 1641 | cat <<\_ASBOX |
| 1642 | ## ----------- ## |
| 1643 | ## confdefs.h. ## |
| 1644 | ## ----------- ## |
| 1645 | _ASBOX |
| 1646 | echo |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1647 | cat confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1648 | echo |
| 1649 | fi |
| 1650 | test "$ac_signal" != 0 && |
| 1651 | echo "$as_me: caught signal $ac_signal" |
| 1652 | echo "$as_me: exit $exit_status" |
| 1653 | } >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1654 | rm -f core *.core core.conftest.* && |
| 1655 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1656 | exit $exit_status |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1657 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1658 | for ac_signal in 1 2 13 15; do |
| 1659 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1660 | done |
| 1661 | ac_signal=0 |
| 1662 | |
| 1663 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1664 | rm -f -r conftest* confdefs.h |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1665 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1666 | # Predefined preprocessor variables. |
| 1667 | |
| 1668 | cat >>confdefs.h <<_ACEOF |
| 1669 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1670 | _ACEOF |
| 1671 | |
| 1672 | |
| 1673 | cat >>confdefs.h <<_ACEOF |
| 1674 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1675 | _ACEOF |
| 1676 | |
| 1677 | |
| 1678 | cat >>confdefs.h <<_ACEOF |
| 1679 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1680 | _ACEOF |
| 1681 | |
| 1682 | |
| 1683 | cat >>confdefs.h <<_ACEOF |
| 1684 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1685 | _ACEOF |
| 1686 | |
| 1687 | |
| 1688 | cat >>confdefs.h <<_ACEOF |
| 1689 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1690 | _ACEOF |
| 1691 | |
| 1692 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1693 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1694 | # Prefer explicitly selected file to automatically selected ones. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1695 | if test -n "$CONFIG_SITE"; then |
| 1696 | set x "$CONFIG_SITE" |
| 1697 | elif test "x$prefix" != xNONE; then |
| 1698 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1699 | else |
| 1700 | set x "$ac_default_prefix/share/config.site" \ |
| 1701 | "$ac_default_prefix/etc/config.site" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1702 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1703 | shift |
| 1704 | for ac_site_file |
| 1705 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1706 | if test -r "$ac_site_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1707 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1708 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1709 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1710 | . "$ac_site_file" |
| 1711 | fi |
| 1712 | done |
| 1713 | |
| 1714 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1715 | # Some versions of bash will fail to source /dev/null (special |
| 1716 | # files actually), so we avoid doing that. |
| 1717 | if test -f "$cache_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1718 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1719 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1720 | case $cache_file in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1721 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1722 | *) . "./$cache_file";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1723 | esac |
| 1724 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1725 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1726 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1727 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1728 | >$cache_file |
| 1729 | fi |
| 1730 | |
| 1731 | # Check that the precious variables saved in the cache have kept the same |
| 1732 | # value. |
| 1733 | ac_cache_corrupted=false |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1734 | for ac_var in $ac_precious_vars; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1735 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1736 | eval ac_new_set=\$ac_env_${ac_var}_set |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1737 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1738 | eval ac_new_val=\$ac_env_${ac_var}_value |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1739 | case $ac_old_set,$ac_new_set in |
| 1740 | set,) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1741 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1742 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1743 | ac_cache_corrupted=: ;; |
| 1744 | ,set) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1745 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1746 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1747 | ac_cache_corrupted=: ;; |
| 1748 | ,);; |
| 1749 | *) |
| 1750 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1751 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1752 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1753 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1754 | echo "$as_me: former value: $ac_old_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1755 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1756 | echo "$as_me: current value: $ac_new_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1757 | ac_cache_corrupted=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1758 | fi;; |
| 1759 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1760 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1761 | if test "$ac_new_set" = set; then |
| 1762 | case $ac_new_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1763 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1764 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1765 | esac |
| 1766 | case " $ac_configure_args " in |
| 1767 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1768 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1769 | esac |
| 1770 | fi |
| 1771 | done |
| 1772 | if $ac_cache_corrupted; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1773 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1774 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1775 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1776 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1777 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1778 | fi |
| 1779 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1804 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1805 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1809 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1810 | |
| 1811 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1812 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1813 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1814 | ac_aux_dir= |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1815 | for ac_dir in tools "$srcdir"/tools; do |
| 1816 | if test -f "$ac_dir/install-sh"; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1817 | ac_aux_dir=$ac_dir |
| 1818 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1819 | break |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1820 | elif test -f "$ac_dir/install.sh"; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1821 | ac_aux_dir=$ac_dir |
| 1822 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1823 | break |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1824 | elif test -f "$ac_dir/shtool"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1825 | ac_aux_dir=$ac_dir |
| 1826 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1827 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1828 | fi |
| 1829 | done |
| 1830 | if test -z "$ac_aux_dir"; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1831 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5 |
| 1832 | echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1833 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1834 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1835 | |
| 1836 | # These three variables are undocumented and unsupported, |
| 1837 | # and are intended to be withdrawn in a future Autoconf release. |
| 1838 | # They can cause serious problems if a builder's source tree is in a directory |
| 1839 | # whose full name contains unusual characters. |
| 1840 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1841 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1842 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1843 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1844 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1845 | |
| 1846 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1847 | # Check whether --enable-win16 was given. |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1848 | if test "${enable_win16+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1849 | enableval=$enable_win16; |
| 1850 | fi |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1851 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1852 | # Check whether --enable-win64 was given. |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1853 | if test "${enable_win64+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1854 | enableval=$enable_win64; |
| 1855 | fi |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1856 | |
| 1857 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1858 | |
| 1859 | # Check whether --with-opengl was given. |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1860 | if test "${with_opengl+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1861 | withval=$with_opengl; |
| 1862 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1863 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1864 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1865 | # Check whether --with-curses was given. |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1866 | if test "${with_curses+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1867 | withval=$with_curses; |
| 1868 | fi |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1869 | |
| 1870 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1871 | # Check whether --with-wine-tools was given. |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1872 | if test "${with_wine_tools+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1873 | withval=$with_wine_tools; |
| 1874 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1875 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1876 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1877 | # Make sure we can run config.sub. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1878 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1879 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1880 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1881 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1882 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1883 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1884 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1885 | if test "${ac_cv_build+set}" = set; then |
| 1886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1887 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1888 | ac_build_alias=$build_alias |
| 1889 | test "x$ac_build_alias" = x && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1890 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1891 | test "x$ac_build_alias" = x && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1892 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1893 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1894 | { (exit 1); exit 1; }; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1895 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1896 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1897 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1898 | { (exit 1); exit 1; }; } |
| 1899 | |
| 1900 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1901 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1902 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1903 | case $ac_cv_build in |
| 1904 | *-*-*) ;; |
| 1905 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1906 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1907 | { (exit 1); exit 1; }; };; |
| 1908 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1909 | build=$ac_cv_build |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1910 | ac_save_IFS=$IFS; IFS='-' |
| 1911 | set x $ac_cv_build |
| 1912 | shift |
| 1913 | build_cpu=$1 |
| 1914 | build_vendor=$2 |
| 1915 | shift; shift |
| 1916 | # Remember, the first character of IFS is used to create $*, |
| 1917 | # except with old shells: |
| 1918 | build_os=$* |
| 1919 | IFS=$ac_save_IFS |
| 1920 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1921 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1922 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1923 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1924 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1925 | if test "${ac_cv_host+set}" = set; then |
| 1926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1927 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1928 | if test "x$host_alias" = x; then |
| 1929 | ac_cv_host=$ac_cv_build |
| 1930 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1931 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1932 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1933 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1934 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1935 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1936 | |
| 1937 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1938 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1939 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1940 | case $ac_cv_host in |
| 1941 | *-*-*) ;; |
| 1942 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1943 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1944 | { (exit 1); exit 1; }; };; |
| 1945 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1946 | host=$ac_cv_host |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1947 | ac_save_IFS=$IFS; IFS='-' |
| 1948 | set x $ac_cv_host |
| 1949 | shift |
| 1950 | host_cpu=$1 |
| 1951 | host_vendor=$2 |
| 1952 | shift; shift |
| 1953 | # Remember, the first character of IFS is used to create $*, |
| 1954 | # except with old shells: |
| 1955 | host_os=$* |
| 1956 | IFS=$ac_save_IFS |
| 1957 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1958 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1959 | |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1960 | case $host in |
| 1961 | x86_64*linux*) |
| 1962 | if test "x$enable_win64" != "xyes" |
| 1963 | then |
| 1964 | test -n "$CC" || CC="gcc -m32" |
| 1965 | test -n "$LD" || LD="ld -m elf_i386" |
| 1966 | test -n "$AS" || AS="as --32" |
Alex Woods | bbcf986 | 2005-02-10 19:09:08 +0000 | [diff] [blame] | 1967 | host_cpu="i386" |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1968 | fi |
| 1969 | ;; |
| 1970 | esac |
| 1971 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 1972 | case $host_cpu in |
| 1973 | *i[3456789]86*) |
| 1974 | if test "x$enable_win16" != "xno" |
| 1975 | then |
| 1976 | enable_win16="yes" |
| 1977 | fi |
| 1978 | ;; |
| 1979 | esac |
| 1980 | |
| 1981 | WIN16_FILES="\$(WIN16_FILES)" |
| 1982 | |
| 1983 | WIN16_INSTALL="\$(WIN16_INSTALL)" |
| 1984 | |
| 1985 | if test "x$enable_win16" != "xyes" |
| 1986 | then |
| 1987 | WIN16_FILES="" |
| 1988 | WIN16_INSTALL="" |
| 1989 | fi |
| 1990 | |
| 1991 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1992 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1993 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1994 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1995 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1997 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1998 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1999 | SHELL = /bin/sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2000 | all: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2001 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2002 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2003 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2004 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2005 | *@@@%%%=?*=@@@%%%*) |
| 2006 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2007 | *) |
| 2008 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2009 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2010 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2011 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2012 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2013 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2014 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2015 | SET_MAKE= |
| 2016 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2018 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2019 | SET_MAKE="MAKE=${MAKE-make}" |
| 2020 | fi |
| 2021 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2022 | ac_ext=c |
| 2023 | ac_cpp='$CPP $CPPFLAGS' |
| 2024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2027 | if test -n "$ac_tool_prefix"; then |
| 2028 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2029 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2030 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2031 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2032 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2034 | else |
| 2035 | if test -n "$CC"; then |
| 2036 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2037 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2039 | for as_dir in $PATH |
| 2040 | do |
| 2041 | IFS=$as_save_IFS |
| 2042 | test -z "$as_dir" && as_dir=. |
| 2043 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2045 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2047 | break 2 |
| 2048 | fi |
| 2049 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2050 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2051 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2052 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2053 | fi |
| 2054 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2055 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2056 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2057 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2058 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2059 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2060 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2061 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2062 | fi |
| 2063 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2064 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2065 | fi |
| 2066 | if test -z "$ac_cv_prog_CC"; then |
| 2067 | ac_ct_CC=$CC |
| 2068 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2069 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2070 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2071 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2072 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2074 | else |
| 2075 | if test -n "$ac_ct_CC"; then |
| 2076 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2077 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2079 | for as_dir in $PATH |
| 2080 | do |
| 2081 | IFS=$as_save_IFS |
| 2082 | test -z "$as_dir" && as_dir=. |
| 2083 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2084 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2085 | ac_cv_prog_ac_ct_CC="gcc" |
| 2086 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2087 | break 2 |
| 2088 | fi |
| 2089 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2090 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2091 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2092 | |
| 2093 | fi |
| 2094 | fi |
| 2095 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2096 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2097 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2098 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2099 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2100 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2101 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2102 | fi |
| 2103 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2104 | if test "x$ac_ct_CC" = x; then |
| 2105 | CC="" |
| 2106 | else |
| 2107 | case $cross_compiling:$ac_tool_warned in |
| 2108 | yes:) |
| 2109 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2110 | whose name does not start with the host triplet. If you think this |
| 2111 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2112 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2113 | whose name does not start with the host triplet. If you think this |
| 2114 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2115 | ac_tool_warned=yes ;; |
| 2116 | esac |
| 2117 | CC=$ac_ct_CC |
| 2118 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2119 | else |
| 2120 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2121 | fi |
| 2122 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2123 | if test -z "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2124 | if test -n "$ac_tool_prefix"; then |
| 2125 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2126 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2127 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2129 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2131 | else |
| 2132 | if test -n "$CC"; then |
| 2133 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2134 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2136 | for as_dir in $PATH |
| 2137 | do |
| 2138 | IFS=$as_save_IFS |
| 2139 | test -z "$as_dir" && as_dir=. |
| 2140 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2142 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2144 | break 2 |
| 2145 | fi |
| 2146 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2147 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2148 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2149 | |
| 2150 | fi |
| 2151 | fi |
| 2152 | CC=$ac_cv_prog_CC |
| 2153 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2154 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2155 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2156 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2157 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2158 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2159 | fi |
| 2160 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2161 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2162 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2163 | fi |
| 2164 | if test -z "$CC"; then |
| 2165 | # Extract the first word of "cc", so it can be a program name with args. |
| 2166 | set dummy cc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2167 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2169 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2171 | else |
| 2172 | if test -n "$CC"; then |
| 2173 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2174 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2175 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2177 | for as_dir in $PATH |
| 2178 | do |
| 2179 | IFS=$as_save_IFS |
| 2180 | test -z "$as_dir" && as_dir=. |
| 2181 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2183 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2184 | ac_prog_rejected=yes |
| 2185 | continue |
| 2186 | fi |
| 2187 | ac_cv_prog_CC="cc" |
| 2188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2189 | break 2 |
| 2190 | fi |
| 2191 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2192 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2193 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2194 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2195 | if test $ac_prog_rejected = yes; then |
| 2196 | # We found a bogon in the path, so make sure we never use it. |
| 2197 | set dummy $ac_cv_prog_CC |
| 2198 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2199 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2200 | # We chose a different compiler from the bogus one. |
| 2201 | # However, it has the same basename, so the bogon will be chosen |
| 2202 | # first if we set CC to just the basename; use the full file name. |
| 2203 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2204 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2205 | fi |
| 2206 | fi |
| 2207 | fi |
| 2208 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2209 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2210 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2211 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2212 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2213 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2214 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2215 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2216 | fi |
| 2217 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2218 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2219 | fi |
| 2220 | if test -z "$CC"; then |
| 2221 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2222 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2223 | do |
| 2224 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2225 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2226 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2227 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2228 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2230 | else |
| 2231 | if test -n "$CC"; then |
| 2232 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2233 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2235 | for as_dir in $PATH |
| 2236 | do |
| 2237 | IFS=$as_save_IFS |
| 2238 | test -z "$as_dir" && as_dir=. |
| 2239 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2241 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2242 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2243 | break 2 |
| 2244 | fi |
| 2245 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2246 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2247 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2248 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2249 | fi |
| 2250 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2251 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2252 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2253 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2254 | echo "${ECHO_T}$CC" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2255 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2256 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2257 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2258 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2259 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2260 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2261 | test -n "$CC" && break |
| 2262 | done |
| 2263 | fi |
| 2264 | if test -z "$CC"; then |
| 2265 | ac_ct_CC=$CC |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2266 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2267 | do |
| 2268 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2269 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2270 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2272 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2274 | else |
| 2275 | if test -n "$ac_ct_CC"; then |
| 2276 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2277 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2279 | for as_dir in $PATH |
| 2280 | do |
| 2281 | IFS=$as_save_IFS |
| 2282 | test -z "$as_dir" && as_dir=. |
| 2283 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2284 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2285 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2287 | break 2 |
| 2288 | fi |
| 2289 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2290 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2291 | IFS=$as_save_IFS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2292 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2293 | fi |
| 2294 | fi |
| 2295 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2296 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2297 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2298 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2299 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2300 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2301 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2302 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2303 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2304 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2305 | test -n "$ac_ct_CC" && break |
| 2306 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2307 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2308 | if test "x$ac_ct_CC" = x; then |
| 2309 | CC="" |
| 2310 | else |
| 2311 | case $cross_compiling:$ac_tool_warned in |
| 2312 | yes:) |
| 2313 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2314 | whose name does not start with the host triplet. If you think this |
| 2315 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2316 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2317 | whose name does not start with the host triplet. If you think this |
| 2318 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2319 | ac_tool_warned=yes ;; |
| 2320 | esac |
| 2321 | CC=$ac_ct_CC |
| 2322 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2323 | fi |
| 2324 | |
| 2325 | fi |
| 2326 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2327 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2328 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2329 | See \`config.log' for more details." >&5 |
| 2330 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2331 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2332 | { (exit 1); exit 1; }; } |
| 2333 | |
| 2334 | # Provide some information about the compiler. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2335 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2336 | ac_compiler=`set X $ac_compile; echo $2` |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2337 | { (ac_try="$ac_compiler --version >&5" |
| 2338 | case "(($ac_try" in |
| 2339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2340 | *) ac_try_echo=$ac_try;; |
| 2341 | esac |
| 2342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2343 | (eval "$ac_compiler --version >&5") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2344 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2346 | (exit $ac_status); } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2347 | { (ac_try="$ac_compiler -v >&5" |
| 2348 | case "(($ac_try" in |
| 2349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2350 | *) ac_try_echo=$ac_try;; |
| 2351 | esac |
| 2352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2353 | (eval "$ac_compiler -v >&5") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2354 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2356 | (exit $ac_status); } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2357 | { (ac_try="$ac_compiler -V >&5" |
| 2358 | case "(($ac_try" in |
| 2359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2360 | *) ac_try_echo=$ac_try;; |
| 2361 | esac |
| 2362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2363 | (eval "$ac_compiler -V >&5") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2364 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2366 | (exit $ac_status); } |
| 2367 | |
| 2368 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2369 | /* confdefs.h. */ |
| 2370 | _ACEOF |
| 2371 | cat confdefs.h >>conftest.$ac_ext |
| 2372 | cat >>conftest.$ac_ext <<_ACEOF |
| 2373 | /* end confdefs.h. */ |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2374 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2375 | int |
| 2376 | main () |
| 2377 | { |
| 2378 | |
| 2379 | ; |
| 2380 | return 0; |
| 2381 | } |
| 2382 | _ACEOF |
| 2383 | ac_clean_files_save=$ac_clean_files |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2384 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2385 | # Try to create an executable without -o first, disregard a.out. |
| 2386 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2387 | # of exeext. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2388 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2389 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2390 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2391 | # |
| 2392 | # List of possible output files, starting from the most likely. |
| 2393 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2394 | # only as a last resort. b.out is created by i960 compilers. |
| 2395 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2396 | # |
| 2397 | # The IRIX 6 linker writes into existing files which may not be |
| 2398 | # executable, retaining their permissions. Remove them first so a |
| 2399 | # subsequent execution test works. |
| 2400 | ac_rmfiles= |
| 2401 | for ac_file in $ac_files |
| 2402 | do |
| 2403 | case $ac_file in |
| 2404 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2405 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2406 | esac |
| 2407 | done |
| 2408 | rm -f $ac_rmfiles |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2409 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2410 | if { (ac_try="$ac_link_default" |
| 2411 | case "(($ac_try" in |
| 2412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2413 | *) ac_try_echo=$ac_try;; |
| 2414 | esac |
| 2415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2416 | (eval "$ac_link_default") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2417 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2419 | (exit $ac_status); }; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2420 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2421 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2422 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2423 | # so that the user can short-circuit this test for compilers unknown to |
| 2424 | # Autoconf. |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 2425 | for ac_file in $ac_files '' |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2426 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2427 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2428 | case $ac_file in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2429 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
| 2430 | ;; |
| 2431 | [ab].out ) |
| 2432 | # We found the default executable, but exeext='' is most |
| 2433 | # certainly right. |
| 2434 | break;; |
| 2435 | *.* ) |
| 2436 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2437 | then :; else |
| 2438 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2439 | fi |
| 2440 | # We set ac_cv_exeext here because the later test for it is not |
| 2441 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2442 | # argument, so we may need to know it at that point already. |
| 2443 | # Even if this section looks crufty: it has the advantage of |
| 2444 | # actually working. |
| 2445 | break;; |
| 2446 | * ) |
| 2447 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2448 | esac |
| 2449 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2450 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2451 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2452 | else |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 2453 | ac_file='' |
| 2454 | fi |
| 2455 | |
| 2456 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2457 | echo "${ECHO_T}$ac_file" >&6; } |
| 2458 | if test -z "$ac_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2459 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2461 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2462 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2463 | See \`config.log' for more details." >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2464 | echo "$as_me: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2465 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2466 | { (exit 77); exit 77; }; } |
| 2467 | fi |
| 2468 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2469 | ac_exeext=$ac_cv_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2470 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2471 | # Check that the compiler produces executables we can run. If not, either |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2472 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2473 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2474 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2475 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2476 | # If not cross compiling, check that we can run a simple program. |
| 2477 | if test "$cross_compiling" != yes; then |
| 2478 | if { ac_try='./$ac_file' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2479 | { (case "(($ac_try" in |
| 2480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2481 | *) ac_try_echo=$ac_try;; |
| 2482 | esac |
| 2483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2484 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2485 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2487 | (exit $ac_status); }; }; then |
| 2488 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2489 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2490 | if test "$cross_compiling" = maybe; then |
| 2491 | cross_compiling=yes |
| 2492 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2493 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2494 | If you meant to cross compile, use \`--host'. |
| 2495 | See \`config.log' for more details." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2496 | echo "$as_me: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2497 | If you meant to cross compile, use \`--host'. |
| 2498 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2499 | { (exit 1); exit 1; }; } |
| 2500 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2501 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2502 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2503 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2504 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2505 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2506 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2507 | ac_clean_files=$ac_clean_files_save |
| 2508 | # Check that the compiler produces executables we can run. If not, either |
| 2509 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2510 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2511 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2512 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2513 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2514 | |
| 2515 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2516 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2517 | if { (ac_try="$ac_link" |
| 2518 | case "(($ac_try" in |
| 2519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2520 | *) ac_try_echo=$ac_try;; |
| 2521 | esac |
| 2522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2523 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2524 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2526 | (exit $ac_status); }; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2527 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2528 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2529 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2530 | # `rm'. |
| 2531 | for ac_file in conftest.exe conftest conftest.*; do |
| 2532 | test -f "$ac_file" || continue |
| 2533 | case $ac_file in |
| 2534 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2535 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2536 | break;; |
| 2537 | * ) break;; |
| 2538 | esac |
| 2539 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2540 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2541 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2542 | See \`config.log' for more details." >&5 |
| 2543 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2544 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2545 | { (exit 1); exit 1; }; } |
| 2546 | fi |
| 2547 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2548 | rm -f conftest$ac_cv_exeext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2549 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2550 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2551 | |
| 2552 | rm -f conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2553 | EXEEXT=$ac_cv_exeext |
| 2554 | ac_exeext=$EXEEXT |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2555 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2556 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2557 | if test "${ac_cv_objext+set}" = set; then |
| 2558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2559 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2560 | cat >conftest.$ac_ext <<_ACEOF |
| 2561 | /* confdefs.h. */ |
| 2562 | _ACEOF |
| 2563 | cat confdefs.h >>conftest.$ac_ext |
| 2564 | cat >>conftest.$ac_ext <<_ACEOF |
| 2565 | /* end confdefs.h. */ |
| 2566 | |
| 2567 | int |
| 2568 | main () |
| 2569 | { |
| 2570 | |
| 2571 | ; |
| 2572 | return 0; |
| 2573 | } |
| 2574 | _ACEOF |
| 2575 | rm -f conftest.o conftest.obj |
| 2576 | if { (ac_try="$ac_compile" |
| 2577 | case "(($ac_try" in |
| 2578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2579 | *) ac_try_echo=$ac_try;; |
| 2580 | esac |
| 2581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2582 | (eval "$ac_compile") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2583 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2585 | (exit $ac_status); }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2586 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2587 | test -f "$ac_file" || continue; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2588 | case $ac_file in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2589 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2590 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2591 | break;; |
| 2592 | esac |
| 2593 | done |
| 2594 | else |
| 2595 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2597 | |
| 2598 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2599 | See \`config.log' for more details." >&5 |
| 2600 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2601 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2602 | { (exit 1); exit 1; }; } |
| 2603 | fi |
| 2604 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2605 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2606 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2607 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2608 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2609 | OBJEXT=$ac_cv_objext |
| 2610 | ac_objext=$OBJEXT |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2611 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2612 | 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] | 2613 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2615 | else |
| 2616 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2617 | /* confdefs.h. */ |
| 2618 | _ACEOF |
| 2619 | cat confdefs.h >>conftest.$ac_ext |
| 2620 | cat >>conftest.$ac_ext <<_ACEOF |
| 2621 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2622 | |
| 2623 | int |
| 2624 | main () |
| 2625 | { |
| 2626 | #ifndef __GNUC__ |
| 2627 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2628 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2629 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2630 | ; |
| 2631 | return 0; |
| 2632 | } |
| 2633 | _ACEOF |
| 2634 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2635 | if { (ac_try="$ac_compile" |
| 2636 | case "(($ac_try" in |
| 2637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2638 | *) ac_try_echo=$ac_try;; |
| 2639 | esac |
| 2640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2641 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2642 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2644 | rm -f conftest.er1 |
| 2645 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2647 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2648 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2649 | { (case "(($ac_try" in |
| 2650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2651 | *) ac_try_echo=$ac_try;; |
| 2652 | esac |
| 2653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2654 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2655 | ac_status=$? |
| 2656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2657 | (exit $ac_status); }; } && |
| 2658 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2659 | { (case "(($ac_try" in |
| 2660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2661 | *) ac_try_echo=$ac_try;; |
| 2662 | esac |
| 2663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2664 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2665 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2667 | (exit $ac_status); }; }; then |
| 2668 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2669 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2670 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2672 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2673 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2674 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2675 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2677 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2678 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2679 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2680 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2681 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2682 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2683 | ac_test_CFLAGS=${CFLAGS+set} |
| 2684 | ac_save_CFLAGS=$CFLAGS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2685 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2686 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2687 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2689 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2690 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2691 | ac_c_werror_flag=yes |
| 2692 | ac_cv_prog_cc_g=no |
| 2693 | CFLAGS="-g" |
| 2694 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2695 | /* confdefs.h. */ |
| 2696 | _ACEOF |
| 2697 | cat confdefs.h >>conftest.$ac_ext |
| 2698 | cat >>conftest.$ac_ext <<_ACEOF |
| 2699 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2700 | |
| 2701 | int |
| 2702 | main () |
| 2703 | { |
| 2704 | |
| 2705 | ; |
| 2706 | return 0; |
| 2707 | } |
| 2708 | _ACEOF |
| 2709 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2710 | if { (ac_try="$ac_compile" |
| 2711 | case "(($ac_try" in |
| 2712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2713 | *) ac_try_echo=$ac_try;; |
| 2714 | esac |
| 2715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2716 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2717 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2719 | rm -f conftest.er1 |
| 2720 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2722 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2724 | { (case "(($ac_try" in |
| 2725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2726 | *) ac_try_echo=$ac_try;; |
| 2727 | esac |
| 2728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2729 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2730 | ac_status=$? |
| 2731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2732 | (exit $ac_status); }; } && |
| 2733 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2734 | { (case "(($ac_try" in |
| 2735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2736 | *) ac_try_echo=$ac_try;; |
| 2737 | esac |
| 2738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2739 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2740 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2742 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2743 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2744 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2745 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2747 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2748 | CFLAGS="" |
| 2749 | cat >conftest.$ac_ext <<_ACEOF |
| 2750 | /* confdefs.h. */ |
| 2751 | _ACEOF |
| 2752 | cat confdefs.h >>conftest.$ac_ext |
| 2753 | cat >>conftest.$ac_ext <<_ACEOF |
| 2754 | /* end confdefs.h. */ |
| 2755 | |
| 2756 | int |
| 2757 | main () |
| 2758 | { |
| 2759 | |
| 2760 | ; |
| 2761 | return 0; |
| 2762 | } |
| 2763 | _ACEOF |
| 2764 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2765 | if { (ac_try="$ac_compile" |
| 2766 | case "(($ac_try" in |
| 2767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2768 | *) ac_try_echo=$ac_try;; |
| 2769 | esac |
| 2770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2771 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2772 | ac_status=$? |
| 2773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2774 | rm -f conftest.er1 |
| 2775 | cat conftest.err >&5 |
| 2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2777 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2778 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2779 | { (case "(($ac_try" in |
| 2780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2781 | *) ac_try_echo=$ac_try;; |
| 2782 | esac |
| 2783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2784 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2785 | ac_status=$? |
| 2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2787 | (exit $ac_status); }; } && |
| 2788 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2789 | { (case "(($ac_try" in |
| 2790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2791 | *) ac_try_echo=$ac_try;; |
| 2792 | esac |
| 2793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2794 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2795 | ac_status=$? |
| 2796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2797 | (exit $ac_status); }; }; then |
| 2798 | : |
| 2799 | else |
| 2800 | echo "$as_me: failed program was:" >&5 |
| 2801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2802 | |
| 2803 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2804 | CFLAGS="-g" |
| 2805 | cat >conftest.$ac_ext <<_ACEOF |
| 2806 | /* confdefs.h. */ |
| 2807 | _ACEOF |
| 2808 | cat confdefs.h >>conftest.$ac_ext |
| 2809 | cat >>conftest.$ac_ext <<_ACEOF |
| 2810 | /* end confdefs.h. */ |
| 2811 | |
| 2812 | int |
| 2813 | main () |
| 2814 | { |
| 2815 | |
| 2816 | ; |
| 2817 | return 0; |
| 2818 | } |
| 2819 | _ACEOF |
| 2820 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2821 | if { (ac_try="$ac_compile" |
| 2822 | case "(($ac_try" in |
| 2823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2824 | *) ac_try_echo=$ac_try;; |
| 2825 | esac |
| 2826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2827 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2828 | ac_status=$? |
| 2829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2830 | rm -f conftest.er1 |
| 2831 | cat conftest.err >&5 |
| 2832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2833 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2835 | { (case "(($ac_try" in |
| 2836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2837 | *) ac_try_echo=$ac_try;; |
| 2838 | esac |
| 2839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2840 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2841 | ac_status=$? |
| 2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2843 | (exit $ac_status); }; } && |
| 2844 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2845 | { (case "(($ac_try" in |
| 2846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2847 | *) ac_try_echo=$ac_try;; |
| 2848 | esac |
| 2849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2850 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2851 | ac_status=$? |
| 2852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2853 | (exit $ac_status); }; }; then |
| 2854 | ac_cv_prog_cc_g=yes |
| 2855 | else |
| 2856 | echo "$as_me: failed program was:" >&5 |
| 2857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2858 | |
| 2859 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2860 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2861 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2863 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2864 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2866 | fi |
| 2867 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2869 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2870 | fi |
| 2871 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2872 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2873 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2874 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2875 | elif test $ac_cv_prog_cc_g = yes; then |
| 2876 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2877 | CFLAGS="-g -O2" |
| 2878 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2879 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2880 | fi |
| 2881 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2882 | if test "$GCC" = yes; then |
| 2883 | CFLAGS="-O2" |
| 2884 | else |
| 2885 | CFLAGS= |
| 2886 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2887 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2888 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2889 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2890 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2892 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2893 | ac_cv_prog_cc_c89=no |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2894 | ac_save_CC=$CC |
| 2895 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2896 | /* confdefs.h. */ |
| 2897 | _ACEOF |
| 2898 | cat confdefs.h >>conftest.$ac_ext |
| 2899 | cat >>conftest.$ac_ext <<_ACEOF |
| 2900 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2901 | #include <stdarg.h> |
| 2902 | #include <stdio.h> |
| 2903 | #include <sys/types.h> |
| 2904 | #include <sys/stat.h> |
| 2905 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2906 | struct buf { int x; }; |
| 2907 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2908 | static char *e (p, i) |
| 2909 | char **p; |
| 2910 | int i; |
| 2911 | { |
| 2912 | return p[i]; |
| 2913 | } |
| 2914 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2915 | { |
| 2916 | char *s; |
| 2917 | va_list v; |
| 2918 | va_start (v,p); |
| 2919 | s = g (p, va_arg (v,int)); |
| 2920 | va_end (v); |
| 2921 | return s; |
| 2922 | } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2923 | |
| 2924 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2925 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2926 | These don't provoke an error unfortunately, instead are silently treated |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2927 | 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] | 2928 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2929 | 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] | 2930 | that's true only with -std. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2931 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2932 | |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 2933 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2934 | inside strings and character constants. */ |
| 2935 | #define FOO(x) 'x' |
| 2936 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2937 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2938 | int test (int i, double x); |
| 2939 | struct s1 {int (*f) (int a);}; |
| 2940 | struct s2 {int (*f) (double a);}; |
| 2941 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2942 | int argc; |
| 2943 | char **argv; |
| 2944 | int |
| 2945 | main () |
| 2946 | { |
| 2947 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2948 | ; |
| 2949 | return 0; |
| 2950 | } |
| 2951 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2952 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2953 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2954 | do |
| 2955 | CC="$ac_save_CC $ac_arg" |
| 2956 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2957 | if { (ac_try="$ac_compile" |
| 2958 | case "(($ac_try" in |
| 2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2960 | *) ac_try_echo=$ac_try;; |
| 2961 | esac |
| 2962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2963 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2964 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2966 | rm -f conftest.er1 |
| 2967 | cat conftest.err >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2969 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2970 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2971 | { (case "(($ac_try" in |
| 2972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2973 | *) ac_try_echo=$ac_try;; |
| 2974 | esac |
| 2975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2976 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2977 | ac_status=$? |
| 2978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2979 | (exit $ac_status); }; } && |
| 2980 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2981 | { (case "(($ac_try" in |
| 2982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2983 | *) ac_try_echo=$ac_try;; |
| 2984 | esac |
| 2985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2986 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2987 | ac_status=$? |
| 2988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2989 | (exit $ac_status); }; }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2990 | ac_cv_prog_cc_c89=$ac_arg |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2991 | else |
| 2992 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2994 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2995 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2996 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2997 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2998 | rm -f core conftest.err conftest.$ac_objext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2999 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3000 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3001 | rm -f conftest.$ac_ext |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3002 | CC=$ac_save_CC |
| 3003 | |
| 3004 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3005 | # AC_CACHE_VAL |
| 3006 | case "x$ac_cv_prog_cc_c89" in |
| 3007 | x) |
| 3008 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3009 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3010 | xno) |
| 3011 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3012 | echo "${ECHO_T}unsupported" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3013 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3014 | CC="$CC $ac_cv_prog_cc_c89" |
| 3015 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3016 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3017 | esac |
| 3018 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3019 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3020 | ac_ext=c |
| 3021 | ac_cpp='$CPP $CPPFLAGS' |
| 3022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3025 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3026 | ac_ext=cpp |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3027 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3028 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3029 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3030 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3031 | if test -z "$CXX"; then |
| 3032 | if test -n "$CCC"; then |
| 3033 | CXX=$CCC |
| 3034 | else |
| 3035 | if test -n "$ac_tool_prefix"; then |
| 3036 | 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] | 3037 | do |
| 3038 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3039 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3040 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3041 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3042 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3044 | else |
| 3045 | if test -n "$CXX"; then |
| 3046 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3047 | else |
| 3048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3049 | for as_dir in $PATH |
| 3050 | do |
| 3051 | IFS=$as_save_IFS |
| 3052 | test -z "$as_dir" && as_dir=. |
| 3053 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3054 | 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] | 3055 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3056 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3057 | break 2 |
| 3058 | fi |
| 3059 | done |
| 3060 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3061 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3062 | |
| 3063 | fi |
| 3064 | fi |
| 3065 | CXX=$ac_cv_prog_CXX |
| 3066 | if test -n "$CXX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3067 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3068 | echo "${ECHO_T}$CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3069 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3070 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3071 | echo "${ECHO_T}no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3072 | fi |
| 3073 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3074 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3075 | test -n "$CXX" && break |
| 3076 | done |
| 3077 | fi |
| 3078 | if test -z "$CXX"; then |
| 3079 | ac_ct_CXX=$CXX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3080 | 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] | 3081 | do |
| 3082 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3083 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3084 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3086 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3088 | else |
| 3089 | if test -n "$ac_ct_CXX"; then |
| 3090 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3091 | else |
| 3092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3093 | for as_dir in $PATH |
| 3094 | do |
| 3095 | IFS=$as_save_IFS |
| 3096 | test -z "$as_dir" && as_dir=. |
| 3097 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3098 | 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] | 3099 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3101 | break 2 |
| 3102 | fi |
| 3103 | done |
| 3104 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3105 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3106 | |
| 3107 | fi |
| 3108 | fi |
| 3109 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3110 | if test -n "$ac_ct_CXX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3111 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3112 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3113 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3114 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3115 | echo "${ECHO_T}no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3116 | fi |
| 3117 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3118 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3119 | test -n "$ac_ct_CXX" && break |
| 3120 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3121 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3122 | if test "x$ac_ct_CXX" = x; then |
| 3123 | CXX="g++" |
| 3124 | else |
| 3125 | case $cross_compiling:$ac_tool_warned in |
| 3126 | yes:) |
| 3127 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3128 | whose name does not start with the host triplet. If you think this |
| 3129 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3130 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3131 | whose name does not start with the host triplet. If you think this |
| 3132 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3133 | ac_tool_warned=yes ;; |
| 3134 | esac |
| 3135 | CXX=$ac_ct_CXX |
| 3136 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3137 | fi |
| 3138 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3139 | fi |
| 3140 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3141 | # Provide some information about the compiler. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3142 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3143 | ac_compiler=`set X $ac_compile; echo $2` |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3144 | { (ac_try="$ac_compiler --version >&5" |
| 3145 | case "(($ac_try" in |
| 3146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3147 | *) ac_try_echo=$ac_try;; |
| 3148 | esac |
| 3149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3150 | (eval "$ac_compiler --version >&5") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3151 | ac_status=$? |
| 3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3153 | (exit $ac_status); } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3154 | { (ac_try="$ac_compiler -v >&5" |
| 3155 | case "(($ac_try" in |
| 3156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3157 | *) ac_try_echo=$ac_try;; |
| 3158 | esac |
| 3159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3160 | (eval "$ac_compiler -v >&5") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3161 | ac_status=$? |
| 3162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3163 | (exit $ac_status); } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3164 | { (ac_try="$ac_compiler -V >&5" |
| 3165 | case "(($ac_try" in |
| 3166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3167 | *) ac_try_echo=$ac_try;; |
| 3168 | esac |
| 3169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3170 | (eval "$ac_compiler -V >&5") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3171 | ac_status=$? |
| 3172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3173 | (exit $ac_status); } |
| 3174 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3175 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3176 | 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] | 3177 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3179 | else |
| 3180 | cat >conftest.$ac_ext <<_ACEOF |
| 3181 | /* confdefs.h. */ |
| 3182 | _ACEOF |
| 3183 | cat confdefs.h >>conftest.$ac_ext |
| 3184 | cat >>conftest.$ac_ext <<_ACEOF |
| 3185 | /* end confdefs.h. */ |
| 3186 | |
| 3187 | int |
| 3188 | main () |
| 3189 | { |
| 3190 | #ifndef __GNUC__ |
| 3191 | choke me |
| 3192 | #endif |
| 3193 | |
| 3194 | ; |
| 3195 | return 0; |
| 3196 | } |
| 3197 | _ACEOF |
| 3198 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3199 | if { (ac_try="$ac_compile" |
| 3200 | case "(($ac_try" in |
| 3201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3202 | *) ac_try_echo=$ac_try;; |
| 3203 | esac |
| 3204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3205 | (eval "$ac_compile") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3206 | ac_status=$? |
| 3207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3208 | rm -f conftest.er1 |
| 3209 | cat conftest.err >&5 |
| 3210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3211 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3212 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3213 | { (case "(($ac_try" in |
| 3214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3215 | *) ac_try_echo=$ac_try;; |
| 3216 | esac |
| 3217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3218 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3219 | ac_status=$? |
| 3220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3221 | (exit $ac_status); }; } && |
| 3222 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3223 | { (case "(($ac_try" in |
| 3224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3225 | *) ac_try_echo=$ac_try;; |
| 3226 | esac |
| 3227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3228 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3229 | ac_status=$? |
| 3230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3231 | (exit $ac_status); }; }; then |
| 3232 | ac_compiler_gnu=yes |
| 3233 | else |
| 3234 | echo "$as_me: failed program was:" >&5 |
| 3235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3236 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3237 | ac_compiler_gnu=no |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3238 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3239 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3241 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3242 | |
| 3243 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3244 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3245 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3246 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3247 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3248 | ac_save_CXXFLAGS=$CXXFLAGS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3249 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3250 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3251 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3253 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3254 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3255 | ac_cxx_werror_flag=yes |
| 3256 | ac_cv_prog_cxx_g=no |
| 3257 | CXXFLAGS="-g" |
| 3258 | cat >conftest.$ac_ext <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3259 | /* confdefs.h. */ |
| 3260 | _ACEOF |
| 3261 | cat confdefs.h >>conftest.$ac_ext |
| 3262 | cat >>conftest.$ac_ext <<_ACEOF |
| 3263 | /* end confdefs.h. */ |
| 3264 | |
| 3265 | int |
| 3266 | main () |
| 3267 | { |
| 3268 | |
| 3269 | ; |
| 3270 | return 0; |
| 3271 | } |
| 3272 | _ACEOF |
| 3273 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3274 | if { (ac_try="$ac_compile" |
| 3275 | case "(($ac_try" in |
| 3276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3277 | *) ac_try_echo=$ac_try;; |
| 3278 | esac |
| 3279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3280 | (eval "$ac_compile") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3281 | ac_status=$? |
| 3282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3283 | rm -f conftest.er1 |
| 3284 | cat conftest.err >&5 |
| 3285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3286 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3287 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3288 | { (case "(($ac_try" in |
| 3289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3290 | *) ac_try_echo=$ac_try;; |
| 3291 | esac |
| 3292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3293 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3294 | ac_status=$? |
| 3295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3296 | (exit $ac_status); }; } && |
| 3297 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3298 | { (case "(($ac_try" in |
| 3299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3300 | *) ac_try_echo=$ac_try;; |
| 3301 | esac |
| 3302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3303 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3304 | ac_status=$? |
| 3305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3306 | (exit $ac_status); }; }; then |
| 3307 | ac_cv_prog_cxx_g=yes |
| 3308 | else |
| 3309 | echo "$as_me: failed program was:" >&5 |
| 3310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3311 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3312 | CXXFLAGS="" |
| 3313 | cat >conftest.$ac_ext <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3314 | /* confdefs.h. */ |
| 3315 | _ACEOF |
| 3316 | cat confdefs.h >>conftest.$ac_ext |
| 3317 | cat >>conftest.$ac_ext <<_ACEOF |
| 3318 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3319 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3320 | int |
| 3321 | main () |
| 3322 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3323 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3324 | ; |
| 3325 | return 0; |
| 3326 | } |
| 3327 | _ACEOF |
| 3328 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3329 | if { (ac_try="$ac_compile" |
| 3330 | case "(($ac_try" in |
| 3331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3332 | *) ac_try_echo=$ac_try;; |
| 3333 | esac |
| 3334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3335 | (eval "$ac_compile") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3336 | ac_status=$? |
| 3337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3338 | rm -f conftest.er1 |
| 3339 | cat conftest.err >&5 |
| 3340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3341 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3342 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3343 | { (case "(($ac_try" in |
| 3344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3345 | *) ac_try_echo=$ac_try;; |
| 3346 | esac |
| 3347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3348 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3349 | ac_status=$? |
| 3350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3351 | (exit $ac_status); }; } && |
| 3352 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3353 | { (case "(($ac_try" in |
| 3354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3355 | *) ac_try_echo=$ac_try;; |
| 3356 | esac |
| 3357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3358 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3359 | ac_status=$? |
| 3360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3361 | (exit $ac_status); }; }; then |
| 3362 | : |
| 3363 | else |
| 3364 | echo "$as_me: failed program was:" >&5 |
| 3365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3366 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3367 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3368 | CXXFLAGS="-g" |
| 3369 | cat >conftest.$ac_ext <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3370 | /* confdefs.h. */ |
| 3371 | _ACEOF |
| 3372 | cat confdefs.h >>conftest.$ac_ext |
| 3373 | cat >>conftest.$ac_ext <<_ACEOF |
| 3374 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3375 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3376 | int |
| 3377 | main () |
| 3378 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3379 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3380 | ; |
| 3381 | return 0; |
| 3382 | } |
| 3383 | _ACEOF |
| 3384 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3385 | if { (ac_try="$ac_compile" |
| 3386 | case "(($ac_try" in |
| 3387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3388 | *) ac_try_echo=$ac_try;; |
| 3389 | esac |
| 3390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3391 | (eval "$ac_compile") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3392 | ac_status=$? |
| 3393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3394 | rm -f conftest.er1 |
| 3395 | cat conftest.err >&5 |
| 3396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3397 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3398 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3399 | { (case "(($ac_try" in |
| 3400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3401 | *) ac_try_echo=$ac_try;; |
| 3402 | esac |
| 3403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3404 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3405 | ac_status=$? |
| 3406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3407 | (exit $ac_status); }; } && |
| 3408 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3409 | { (case "(($ac_try" in |
| 3410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3411 | *) ac_try_echo=$ac_try;; |
| 3412 | esac |
| 3413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3414 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3415 | ac_status=$? |
| 3416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3417 | (exit $ac_status); }; }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3418 | ac_cv_prog_cxx_g=yes |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3419 | else |
| 3420 | echo "$as_me: failed program was:" >&5 |
| 3421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3422 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3423 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3424 | fi |
| 3425 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3427 | fi |
| 3428 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3430 | fi |
| 3431 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3433 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3434 | fi |
| 3435 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3436 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3437 | if test "$ac_test_CXXFLAGS" = set; then |
| 3438 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3439 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3440 | if test "$GXX" = yes; then |
| 3441 | CXXFLAGS="-g -O2" |
| 3442 | else |
| 3443 | CXXFLAGS="-g" |
| 3444 | fi |
| 3445 | else |
| 3446 | if test "$GXX" = yes; then |
| 3447 | CXXFLAGS="-O2" |
| 3448 | else |
| 3449 | CXXFLAGS= |
| 3450 | fi |
| 3451 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3452 | ac_ext=c |
| 3453 | ac_cpp='$CPP $CPPFLAGS' |
| 3454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3457 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3458 | if test -n "$ac_tool_prefix"; then |
| 3459 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. |
| 3460 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3461 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3463 | if test "${ac_cv_prog_CPPBIN+set}" = set; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3465 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3466 | if test -n "$CPPBIN"; then |
| 3467 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3468 | else |
| 3469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3470 | for as_dir in $PATH |
| 3471 | do |
| 3472 | IFS=$as_save_IFS |
| 3473 | test -z "$as_dir" && as_dir=. |
| 3474 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3475 | 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] | 3476 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3477 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3478 | break 2 |
| 3479 | fi |
| 3480 | done |
| 3481 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3482 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3483 | |
| 3484 | fi |
| 3485 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3486 | CPPBIN=$ac_cv_prog_CPPBIN |
| 3487 | if test -n "$CPPBIN"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3488 | { echo "$as_me:$LINENO: result: $CPPBIN" >&5 |
| 3489 | echo "${ECHO_T}$CPPBIN" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3490 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3491 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3492 | echo "${ECHO_T}no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3493 | fi |
| 3494 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3495 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3496 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3497 | if test -z "$ac_cv_prog_CPPBIN"; then |
| 3498 | ac_ct_CPPBIN=$CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3499 | # Extract the first word of "cpp", so it can be a program name with args. |
| 3500 | set dummy cpp; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3501 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3503 | if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3505 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3506 | if test -n "$ac_ct_CPPBIN"; then |
| 3507 | 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] | 3508 | else |
| 3509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3510 | for as_dir in $PATH |
| 3511 | do |
| 3512 | IFS=$as_save_IFS |
| 3513 | test -z "$as_dir" && as_dir=. |
| 3514 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3515 | 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] | 3516 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3518 | break 2 |
| 3519 | fi |
| 3520 | done |
| 3521 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3522 | IFS=$as_save_IFS |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3523 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3524 | fi |
| 3525 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3526 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
| 3527 | if test -n "$ac_ct_CPPBIN"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3528 | { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5 |
| 3529 | echo "${ECHO_T}$ac_ct_CPPBIN" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3530 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3531 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3532 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3533 | fi |
| 3534 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3535 | if test "x$ac_ct_CPPBIN" = x; then |
| 3536 | CPPBIN="cpp" |
| 3537 | else |
| 3538 | case $cross_compiling:$ac_tool_warned in |
| 3539 | yes:) |
| 3540 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3541 | whose name does not start with the host triplet. If you think this |
| 3542 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3543 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3544 | whose name does not start with the host triplet. If you think this |
| 3545 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3546 | ac_tool_warned=yes ;; |
| 3547 | esac |
| 3548 | CPPBIN=$ac_ct_CPPBIN |
| 3549 | fi |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3550 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3551 | CPPBIN="$ac_cv_prog_CPPBIN" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3552 | fi |
| 3553 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3554 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3555 | { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
| 3556 | 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] | 3557 | if test "${wine_cv_toolsdir+set}" = set; then |
| 3558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3559 | else |
| 3560 | if test -z "$with_wine_tools"; then |
| 3561 | if test "$cross_compiling" = "yes"; then |
| 3562 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 |
| 3563 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} |
| 3564 | { (exit 1); exit 1; }; } |
| 3565 | else |
| 3566 | wine_cv_toolsdir="\$(TOPOBJDIR)" |
| 3567 | fi |
| 3568 | elif test -d "$with_wine_tools/tools/winebuild"; then |
| 3569 | case $with_wine_tools in |
| 3570 | /*) wine_cv_toolsdir="$with_wine_tools" ;; |
| 3571 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; |
| 3572 | esac |
| 3573 | else |
| 3574 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 |
| 3575 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} |
| 3576 | { (exit 1); exit 1; }; } |
| 3577 | fi |
| 3578 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3579 | { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
| 3580 | echo "${ECHO_T}$wine_cv_toolsdir" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3581 | TOOLSDIR=$wine_cv_toolsdir |
| 3582 | |
| 3583 | |
| 3584 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3585 | ac_ext=c |
| 3586 | ac_cpp='$CPP $CPPFLAGS' |
| 3587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3590 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3591 | 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] | 3592 | # On Suns, sometimes $CPP names a directory. |
| 3593 | if test -n "$CPP" && test -d "$CPP"; then |
| 3594 | CPP= |
| 3595 | fi |
| 3596 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3597 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3599 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3600 | # Double quotes because CPP needs to be expanded |
| 3601 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3602 | do |
| 3603 | ac_preproc_ok=false |
| 3604 | for ac_c_preproc_warn_flag in '' yes |
| 3605 | do |
| 3606 | # Use a header file that comes with gcc, so configuring glibc |
| 3607 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3608 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3609 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3610 | # 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] | 3611 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3612 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3613 | /* confdefs.h. */ |
| 3614 | _ACEOF |
| 3615 | cat confdefs.h >>conftest.$ac_ext |
| 3616 | cat >>conftest.$ac_ext <<_ACEOF |
| 3617 | /* end confdefs.h. */ |
| 3618 | #ifdef __STDC__ |
| 3619 | # include <limits.h> |
| 3620 | #else |
| 3621 | # include <assert.h> |
| 3622 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3623 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3624 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3625 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3626 | case "(($ac_try" in |
| 3627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3628 | *) ac_try_echo=$ac_try;; |
| 3629 | esac |
| 3630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3631 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3632 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3633 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3634 | rm -f conftest.er1 |
| 3635 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3637 | (exit $ac_status); } >/dev/null; then |
| 3638 | if test -s conftest.err; then |
| 3639 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3640 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3641 | else |
| 3642 | ac_cpp_err= |
| 3643 | fi |
| 3644 | else |
| 3645 | ac_cpp_err=yes |
| 3646 | fi |
| 3647 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3648 | : |
| 3649 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3650 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3652 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3653 | # Broken: fails on valid input. |
| 3654 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3655 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3656 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3657 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3658 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3659 | # OK, works on sane cases. Now check whether nonexistent headers |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3660 | # can be detected and how. |
| 3661 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3662 | /* confdefs.h. */ |
| 3663 | _ACEOF |
| 3664 | cat confdefs.h >>conftest.$ac_ext |
| 3665 | cat >>conftest.$ac_ext <<_ACEOF |
| 3666 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3667 | #include <ac_nonexistent.h> |
| 3668 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3669 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3670 | case "(($ac_try" in |
| 3671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3672 | *) ac_try_echo=$ac_try;; |
| 3673 | esac |
| 3674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3675 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3676 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3677 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3678 | rm -f conftest.er1 |
| 3679 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3681 | (exit $ac_status); } >/dev/null; then |
| 3682 | if test -s conftest.err; then |
| 3683 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3684 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3685 | else |
| 3686 | ac_cpp_err= |
| 3687 | fi |
| 3688 | else |
| 3689 | ac_cpp_err=yes |
| 3690 | fi |
| 3691 | if test -z "$ac_cpp_err"; then |
| 3692 | # Broken: success on invalid input. |
| 3693 | continue |
| 3694 | else |
| 3695 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3697 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3698 | # Passes both tests. |
| 3699 | ac_preproc_ok=: |
| 3700 | break |
| 3701 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3702 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3703 | rm -f conftest.err conftest.$ac_ext |
| 3704 | |
| 3705 | done |
| 3706 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3707 | rm -f conftest.err conftest.$ac_ext |
| 3708 | if $ac_preproc_ok; then |
| 3709 | break |
| 3710 | fi |
| 3711 | |
| 3712 | done |
| 3713 | ac_cv_prog_CPP=$CPP |
| 3714 | |
| 3715 | fi |
| 3716 | CPP=$ac_cv_prog_CPP |
| 3717 | else |
| 3718 | ac_cv_prog_CPP=$CPP |
| 3719 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3720 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3721 | echo "${ECHO_T}$CPP" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3722 | ac_preproc_ok=false |
| 3723 | for ac_c_preproc_warn_flag in '' yes |
| 3724 | do |
| 3725 | # Use a header file that comes with gcc, so configuring glibc |
| 3726 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3727 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3728 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3729 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3730 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3731 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3732 | /* confdefs.h. */ |
| 3733 | _ACEOF |
| 3734 | cat confdefs.h >>conftest.$ac_ext |
| 3735 | cat >>conftest.$ac_ext <<_ACEOF |
| 3736 | /* end confdefs.h. */ |
| 3737 | #ifdef __STDC__ |
| 3738 | # include <limits.h> |
| 3739 | #else |
| 3740 | # include <assert.h> |
| 3741 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3742 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3743 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3744 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3745 | case "(($ac_try" in |
| 3746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3747 | *) ac_try_echo=$ac_try;; |
| 3748 | esac |
| 3749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3750 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3751 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3752 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3753 | rm -f conftest.er1 |
| 3754 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3756 | (exit $ac_status); } >/dev/null; then |
| 3757 | if test -s conftest.err; then |
| 3758 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3759 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3760 | else |
| 3761 | ac_cpp_err= |
| 3762 | fi |
| 3763 | else |
| 3764 | ac_cpp_err=yes |
| 3765 | fi |
| 3766 | if test -z "$ac_cpp_err"; then |
| 3767 | : |
| 3768 | else |
| 3769 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3771 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3772 | # Broken: fails on valid input. |
| 3773 | continue |
| 3774 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3775 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3776 | rm -f conftest.err conftest.$ac_ext |
| 3777 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3778 | # OK, works on sane cases. Now check whether nonexistent headers |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3779 | # can be detected and how. |
| 3780 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3781 | /* confdefs.h. */ |
| 3782 | _ACEOF |
| 3783 | cat confdefs.h >>conftest.$ac_ext |
| 3784 | cat >>conftest.$ac_ext <<_ACEOF |
| 3785 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3786 | #include <ac_nonexistent.h> |
| 3787 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3788 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3789 | case "(($ac_try" in |
| 3790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3791 | *) ac_try_echo=$ac_try;; |
| 3792 | esac |
| 3793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3794 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3795 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3796 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3797 | rm -f conftest.er1 |
| 3798 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3800 | (exit $ac_status); } >/dev/null; then |
| 3801 | if test -s conftest.err; then |
| 3802 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3803 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3804 | else |
| 3805 | ac_cpp_err= |
| 3806 | fi |
| 3807 | else |
| 3808 | ac_cpp_err=yes |
| 3809 | fi |
| 3810 | if test -z "$ac_cpp_err"; then |
| 3811 | # Broken: success on invalid input. |
| 3812 | continue |
| 3813 | else |
| 3814 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3816 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3817 | # Passes both tests. |
| 3818 | ac_preproc_ok=: |
| 3819 | break |
| 3820 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3821 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3822 | rm -f conftest.err conftest.$ac_ext |
| 3823 | |
| 3824 | done |
| 3825 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3826 | rm -f conftest.err conftest.$ac_ext |
| 3827 | if $ac_preproc_ok; then |
| 3828 | : |
| 3829 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3830 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3831 | See \`config.log' for more details." >&5 |
| 3832 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3833 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3834 | { (exit 1); exit 1; }; } |
| 3835 | fi |
| 3836 | |
| 3837 | ac_ext=c |
| 3838 | ac_cpp='$CPP $CPPFLAGS' |
| 3839 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3840 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3842 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3843 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3844 | { echo "$as_me:$LINENO: checking for X" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3845 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3846 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3847 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3848 | # Check whether --with-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3849 | if test "${with_x+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3850 | withval=$with_x; |
| 3851 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3852 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3853 | # $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] | 3854 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3855 | # The user explicitly disabled X. |
| 3856 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3857 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3858 | case $x_includes,$x_libraries in #( |
| 3859 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
| 3860 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
| 3861 | { (exit 1); exit 1; }; };; #( |
| 3862 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3864 | else |
| 3865 | # 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] | 3866 | ac_x_includes=no ac_x_libraries=no |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3867 | rm -f -r conftest.dir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3868 | if mkdir conftest.dir; then |
| 3869 | cd conftest.dir |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3870 | cat >Imakefile <<'_ACEOF' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3871 | incroot: |
| 3872 | @echo incroot='${INCROOT}' |
| 3873 | usrlibdir: |
| 3874 | @echo usrlibdir='${USRLIBDIR}' |
| 3875 | libdir: |
| 3876 | @echo libdir='${LIBDIR}' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3877 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3878 | 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] | 3879 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3880 | for ac_var in incroot usrlibdir libdir; do |
| 3881 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 3882 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3883 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 3884 | for ac_extension in a so sl; do |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3885 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 3886 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3887 | ac_im_usrlibdir=$ac_im_libdir; break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3888 | fi |
| 3889 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3890 | # Screen out bogus values from the imake configuration. They are |
| 3891 | # bogus both because they are the default anyway, and because |
| 3892 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3893 | case $ac_im_incroot in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3894 | /usr/include) ac_x_includes= ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3895 | *) 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] | 3896 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3897 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3898 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3899 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3900 | esac |
| 3901 | fi |
| 3902 | cd .. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3903 | rm -f -r conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3904 | fi |
| 3905 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3906 | # Standard set of common directories for X headers. |
| 3907 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 3908 | ac_x_header_dirs=' |
| 3909 | /usr/X11/include |
| 3910 | /usr/X11R6/include |
| 3911 | /usr/X11R5/include |
| 3912 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3913 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3914 | /usr/include/X11 |
| 3915 | /usr/include/X11R6 |
| 3916 | /usr/include/X11R5 |
| 3917 | /usr/include/X11R4 |
| 3918 | |
| 3919 | /usr/local/X11/include |
| 3920 | /usr/local/X11R6/include |
| 3921 | /usr/local/X11R5/include |
| 3922 | /usr/local/X11R4/include |
| 3923 | |
| 3924 | /usr/local/include/X11 |
| 3925 | /usr/local/include/X11R6 |
| 3926 | /usr/local/include/X11R5 |
| 3927 | /usr/local/include/X11R4 |
| 3928 | |
| 3929 | /usr/X386/include |
| 3930 | /usr/x386/include |
| 3931 | /usr/XFree86/include/X11 |
| 3932 | |
| 3933 | /usr/include |
| 3934 | /usr/local/include |
| 3935 | /usr/unsupported/include |
| 3936 | /usr/athena/include |
| 3937 | /usr/local/x11r5/include |
| 3938 | /usr/lpp/Xamples/include |
| 3939 | |
| 3940 | /usr/openwin/include |
| 3941 | /usr/openwin/share/include' |
| 3942 | |
| 3943 | if test "$ac_x_includes" = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3944 | # Guess where to find include files, by looking for Xlib.h. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3945 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3946 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3947 | /* confdefs.h. */ |
| 3948 | _ACEOF |
| 3949 | cat confdefs.h >>conftest.$ac_ext |
| 3950 | cat >>conftest.$ac_ext <<_ACEOF |
| 3951 | /* end confdefs.h. */ |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3952 | #include <X11/Xlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3953 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3954 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3955 | case "(($ac_try" in |
| 3956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3957 | *) ac_try_echo=$ac_try;; |
| 3958 | esac |
| 3959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3960 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3961 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3962 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3963 | rm -f conftest.er1 |
| 3964 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3966 | (exit $ac_status); } >/dev/null; then |
| 3967 | if test -s conftest.err; then |
| 3968 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3969 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3970 | else |
| 3971 | ac_cpp_err= |
| 3972 | fi |
| 3973 | else |
| 3974 | ac_cpp_err=yes |
| 3975 | fi |
| 3976 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3977 | # We can compile using X headers with no special include directory. |
| 3978 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3979 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3980 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3982 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3983 | for ac_dir in $ac_x_header_dirs; do |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 3984 | if test -r "$ac_dir/X11/Xlib.h"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3985 | ac_x_includes=$ac_dir |
| 3986 | break |
| 3987 | fi |
| 3988 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3989 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3990 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3991 | rm -f conftest.err conftest.$ac_ext |
| 3992 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3993 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3994 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3995 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3996 | # See if we find them without any special options. |
| 3997 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3998 | ac_save_LIBS=$LIBS |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 3999 | LIBS="-lX11 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4000 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4001 | /* confdefs.h. */ |
| 4002 | _ACEOF |
| 4003 | cat confdefs.h >>conftest.$ac_ext |
| 4004 | cat >>conftest.$ac_ext <<_ACEOF |
| 4005 | /* end confdefs.h. */ |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 4006 | #include <X11/Xlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4007 | int |
| 4008 | main () |
| 4009 | { |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 4010 | XrmInitialize () |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4011 | ; |
| 4012 | return 0; |
| 4013 | } |
| 4014 | _ACEOF |
| 4015 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4016 | if { (ac_try="$ac_link" |
| 4017 | case "(($ac_try" in |
| 4018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4019 | *) ac_try_echo=$ac_try;; |
| 4020 | esac |
| 4021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4022 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4023 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4025 | rm -f conftest.er1 |
| 4026 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4028 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4030 | { (case "(($ac_try" in |
| 4031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4032 | *) ac_try_echo=$ac_try;; |
| 4033 | esac |
| 4034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4035 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4036 | ac_status=$? |
| 4037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4038 | (exit $ac_status); }; } && |
| 4039 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4040 | { (case "(($ac_try" in |
| 4041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4042 | *) ac_try_echo=$ac_try;; |
| 4043 | esac |
| 4044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4045 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4046 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4048 | (exit $ac_status); }; }; then |
| 4049 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4050 | # We can link X programs with no special library path. |
| 4051 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4052 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4053 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4055 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4056 | LIBS=$ac_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4057 | 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] | 4058 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4059 | # 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] | 4060 | for ac_extension in a so sl; do |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 4061 | if test -r "$ac_dir/libX11.$ac_extension"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4062 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4063 | break 2 |
| 4064 | fi |
| 4065 | done |
| 4066 | done |
| 4067 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4068 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4069 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4070 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4071 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4072 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4073 | case $ac_x_includes,$ac_x_libraries in #( |
| 4074 | no,* | *,no | *\'*) |
| 4075 | # Didn't find X, or a directory has "'" in its name. |
| 4076 | ac_cv_have_x="have_x=no";; #( |
| 4077 | *) |
| 4078 | # Record where we found X for the cache. |
| 4079 | ac_cv_have_x="have_x=yes\ |
| 4080 | ac_x_includes='$ac_x_includes'\ |
| 4081 | ac_x_libraries='$ac_x_libraries'" |
| 4082 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4083 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4084 | ;; #( |
| 4085 | *) have_x=yes;; |
| 4086 | esac |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4087 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4088 | fi # $with_x != no |
| 4089 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4090 | if test "$have_x" != yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4091 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
| 4092 | echo "${ECHO_T}$have_x" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4093 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4094 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4095 | # 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] | 4096 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 4097 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4098 | # Update the cache value to reflect the command line values. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4099 | ac_cv_have_x="have_x=yes\ |
| 4100 | ac_x_includes='$x_includes'\ |
| 4101 | ac_x_libraries='$x_libraries'" |
| 4102 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 4103 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4104 | fi |
| 4105 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4106 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4107 | # 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] | 4108 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4109 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4110 | #define X_DISPLAY_MISSING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4111 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4112 | |
| 4113 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4114 | else |
| 4115 | if test -n "$x_includes"; then |
| 4116 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 4117 | fi |
| 4118 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4119 | # It would also be nice to do this for all -L options, not just this one. |
| 4120 | if test -n "$x_libraries"; then |
| 4121 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4122 | # For Solaris; some versions of Sun CC require a space after -R and |
| 4123 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4124 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4125 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4126 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 4127 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 4128 | ac_c_werror_flag=yes |
| 4129 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4130 | /* confdefs.h. */ |
| 4131 | _ACEOF |
| 4132 | cat confdefs.h >>conftest.$ac_ext |
| 4133 | cat >>conftest.$ac_ext <<_ACEOF |
| 4134 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4135 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4136 | int |
| 4137 | main () |
| 4138 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4139 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4140 | ; |
| 4141 | return 0; |
| 4142 | } |
| 4143 | _ACEOF |
| 4144 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4145 | if { (ac_try="$ac_link" |
| 4146 | case "(($ac_try" in |
| 4147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4148 | *) ac_try_echo=$ac_try;; |
| 4149 | esac |
| 4150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4151 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4152 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4154 | rm -f conftest.er1 |
| 4155 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4157 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4158 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4159 | { (case "(($ac_try" in |
| 4160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4161 | *) ac_try_echo=$ac_try;; |
| 4162 | esac |
| 4163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4164 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4165 | ac_status=$? |
| 4166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4167 | (exit $ac_status); }; } && |
| 4168 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4169 | { (case "(($ac_try" in |
| 4170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4171 | *) ac_try_echo=$ac_try;; |
| 4172 | esac |
| 4173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4174 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4175 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4177 | (exit $ac_status); }; }; then |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4178 | { echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4179 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4180 | X_LIBS="$X_LIBS -R$x_libraries" |
| 4181 | else |
| 4182 | echo "$as_me: failed program was:" >&5 |
| 4183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4184 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4185 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4186 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4187 | /* confdefs.h. */ |
| 4188 | _ACEOF |
| 4189 | cat confdefs.h >>conftest.$ac_ext |
| 4190 | cat >>conftest.$ac_ext <<_ACEOF |
| 4191 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4192 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4193 | int |
| 4194 | main () |
| 4195 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4196 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4197 | ; |
| 4198 | return 0; |
| 4199 | } |
| 4200 | _ACEOF |
| 4201 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4202 | if { (ac_try="$ac_link" |
| 4203 | case "(($ac_try" in |
| 4204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4205 | *) ac_try_echo=$ac_try;; |
| 4206 | esac |
| 4207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4208 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4209 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4211 | rm -f conftest.er1 |
| 4212 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4214 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4216 | { (case "(($ac_try" in |
| 4217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4218 | *) ac_try_echo=$ac_try;; |
| 4219 | esac |
| 4220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4221 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4222 | ac_status=$? |
| 4223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4224 | (exit $ac_status); }; } && |
| 4225 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4226 | { (case "(($ac_try" in |
| 4227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4228 | *) ac_try_echo=$ac_try;; |
| 4229 | esac |
| 4230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4231 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4232 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4234 | (exit $ac_status); }; }; then |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4235 | { echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4236 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4237 | X_LIBS="$X_LIBS -R $x_libraries" |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4238 | else |
| 4239 | echo "$as_me: failed program was:" >&5 |
| 4240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4241 | |
| 4242 | { echo "$as_me:$LINENO: result: neither works" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4243 | echo "${ECHO_T}neither works" >&6; } |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 4244 | fi |
| 4245 | |
| 4246 | rm -f core conftest.err conftest.$ac_objext \ |
| 4247 | conftest$ac_exeext conftest.$ac_ext |
| 4248 | fi |
| 4249 | |
| 4250 | rm -f core conftest.err conftest.$ac_objext \ |
| 4251 | conftest$ac_exeext conftest.$ac_ext |
| 4252 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 4253 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4254 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4255 | |
| 4256 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4257 | # Do this before checking for the system-independent R6 libraries |
| 4258 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4259 | |
| 4260 | if test "$ISC" = yes; then |
| 4261 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 4262 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4263 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 4264 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4265 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4266 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 4267 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4268 | /* confdefs.h. */ |
| 4269 | _ACEOF |
| 4270 | cat confdefs.h >>conftest.$ac_ext |
| 4271 | cat >>conftest.$ac_ext <<_ACEOF |
| 4272 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4273 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4274 | /* Override any GCC internal prototype to avoid an error. |
| 4275 | Use char because int might match the return type of a GCC |
| 4276 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4277 | #ifdef __cplusplus |
| 4278 | extern "C" |
| 4279 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4280 | char XOpenDisplay (); |
| 4281 | int |
| 4282 | main () |
| 4283 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4284 | return XOpenDisplay (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4285 | ; |
| 4286 | return 0; |
| 4287 | } |
| 4288 | _ACEOF |
| 4289 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4290 | if { (ac_try="$ac_link" |
| 4291 | case "(($ac_try" in |
| 4292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4293 | *) ac_try_echo=$ac_try;; |
| 4294 | esac |
| 4295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4296 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4297 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4299 | rm -f conftest.er1 |
| 4300 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4302 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4304 | { (case "(($ac_try" in |
| 4305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4306 | *) ac_try_echo=$ac_try;; |
| 4307 | esac |
| 4308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4309 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4310 | ac_status=$? |
| 4311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4312 | (exit $ac_status); }; } && |
| 4313 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4314 | { (case "(($ac_try" in |
| 4315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4316 | *) ac_try_echo=$ac_try;; |
| 4317 | esac |
| 4318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4319 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4320 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4322 | (exit $ac_status); }; }; then |
| 4323 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4324 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4325 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4327 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4328 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 4329 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4330 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 4331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4332 | else |
| 4333 | ac_check_lib_save_LIBS=$LIBS |
| 4334 | LIBS="-ldnet $LIBS" |
| 4335 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4336 | /* confdefs.h. */ |
| 4337 | _ACEOF |
| 4338 | cat confdefs.h >>conftest.$ac_ext |
| 4339 | cat >>conftest.$ac_ext <<_ACEOF |
| 4340 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4341 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4342 | /* Override any GCC internal prototype to avoid an error. |
| 4343 | Use char because int might match the return type of a GCC |
| 4344 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4345 | #ifdef __cplusplus |
| 4346 | extern "C" |
| 4347 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4348 | char dnet_ntoa (); |
| 4349 | int |
| 4350 | main () |
| 4351 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4352 | return dnet_ntoa (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4353 | ; |
| 4354 | return 0; |
| 4355 | } |
| 4356 | _ACEOF |
| 4357 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4358 | if { (ac_try="$ac_link" |
| 4359 | case "(($ac_try" in |
| 4360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4361 | *) ac_try_echo=$ac_try;; |
| 4362 | esac |
| 4363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4364 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4365 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4367 | rm -f conftest.er1 |
| 4368 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4370 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4372 | { (case "(($ac_try" in |
| 4373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4374 | *) ac_try_echo=$ac_try;; |
| 4375 | esac |
| 4376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4377 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4378 | ac_status=$? |
| 4379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4380 | (exit $ac_status); }; } && |
| 4381 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4382 | { (case "(($ac_try" in |
| 4383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4384 | *) ac_try_echo=$ac_try;; |
| 4385 | esac |
| 4386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4387 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4388 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4390 | (exit $ac_status); }; }; then |
| 4391 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 4392 | else |
| 4393 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4395 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4396 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4397 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4398 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4399 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4400 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4401 | LIBS=$ac_check_lib_save_LIBS |
| 4402 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4403 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 4404 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4405 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4406 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4407 | fi |
| 4408 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 4409 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4410 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 4411 | 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] | 4412 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 4413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4414 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4415 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4416 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4417 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4418 | /* confdefs.h. */ |
| 4419 | _ACEOF |
| 4420 | cat confdefs.h >>conftest.$ac_ext |
| 4421 | cat >>conftest.$ac_ext <<_ACEOF |
| 4422 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4423 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4424 | /* Override any GCC internal prototype to avoid an error. |
| 4425 | Use char because int might match the return type of a GCC |
| 4426 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4427 | #ifdef __cplusplus |
| 4428 | extern "C" |
| 4429 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4430 | char dnet_ntoa (); |
| 4431 | int |
| 4432 | main () |
| 4433 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4434 | return dnet_ntoa (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4435 | ; |
| 4436 | return 0; |
| 4437 | } |
| 4438 | _ACEOF |
| 4439 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4440 | if { (ac_try="$ac_link" |
| 4441 | case "(($ac_try" in |
| 4442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4443 | *) ac_try_echo=$ac_try;; |
| 4444 | esac |
| 4445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4446 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4447 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4449 | rm -f conftest.er1 |
| 4450 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4452 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4453 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4454 | { (case "(($ac_try" in |
| 4455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4456 | *) ac_try_echo=$ac_try;; |
| 4457 | esac |
| 4458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4459 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4460 | ac_status=$? |
| 4461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4462 | (exit $ac_status); }; } && |
| 4463 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4464 | { (case "(($ac_try" in |
| 4465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4466 | *) ac_try_echo=$ac_try;; |
| 4467 | esac |
| 4468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4469 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4470 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4472 | (exit $ac_status); }; }; then |
| 4473 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4474 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4475 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4477 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4478 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4479 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4480 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4481 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4482 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4483 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4484 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4485 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 4486 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4487 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4488 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4489 | fi |
| 4490 | |
| 4491 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4492 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4493 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4494 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4495 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4496 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4497 | |
| 4498 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 4499 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4500 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4501 | # needs -lnsl. |
| 4502 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4503 | # on Irix 5.2, according to T.E. Dickey. |
| 4504 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 4505 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4506 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 4507 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4508 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 4509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4510 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4511 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4512 | /* confdefs.h. */ |
| 4513 | _ACEOF |
| 4514 | cat confdefs.h >>conftest.$ac_ext |
| 4515 | cat >>conftest.$ac_ext <<_ACEOF |
| 4516 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4517 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 4518 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4519 | #define gethostbyname innocuous_gethostbyname |
| 4520 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4521 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4522 | which can conflict with char gethostbyname (); below. |
| 4523 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4524 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4525 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4526 | #ifdef __STDC__ |
| 4527 | # include <limits.h> |
| 4528 | #else |
| 4529 | # include <assert.h> |
| 4530 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4531 | |
| 4532 | #undef gethostbyname |
| 4533 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4534 | /* Override any GCC internal prototype to avoid an error. |
| 4535 | Use char because int might match the return type of a GCC |
| 4536 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4537 | #ifdef __cplusplus |
| 4538 | extern "C" |
| 4539 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4540 | char gethostbyname (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4541 | /* The GNU C library defines this for functions which it implements |
| 4542 | to always fail with ENOSYS. Some functions are actually named |
| 4543 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4544 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4545 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4546 | #endif |
| 4547 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4548 | int |
| 4549 | main () |
| 4550 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4551 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4552 | ; |
| 4553 | return 0; |
| 4554 | } |
| 4555 | _ACEOF |
| 4556 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4557 | if { (ac_try="$ac_link" |
| 4558 | case "(($ac_try" in |
| 4559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4560 | *) ac_try_echo=$ac_try;; |
| 4561 | esac |
| 4562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4563 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4564 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4566 | rm -f conftest.er1 |
| 4567 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4569 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4571 | { (case "(($ac_try" in |
| 4572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4573 | *) ac_try_echo=$ac_try;; |
| 4574 | esac |
| 4575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4576 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4577 | ac_status=$? |
| 4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4579 | (exit $ac_status); }; } && |
| 4580 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4581 | { (case "(($ac_try" in |
| 4582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4583 | *) ac_try_echo=$ac_try;; |
| 4584 | esac |
| 4585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4586 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4587 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4589 | (exit $ac_status); }; }; then |
| 4590 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4591 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4592 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4594 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4595 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4596 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4597 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4598 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4599 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4600 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4601 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 4602 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4603 | |
| 4604 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4605 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 4606 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4607 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4609 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4610 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4611 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4612 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4613 | /* confdefs.h. */ |
| 4614 | _ACEOF |
| 4615 | cat confdefs.h >>conftest.$ac_ext |
| 4616 | cat >>conftest.$ac_ext <<_ACEOF |
| 4617 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4618 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4619 | /* Override any GCC internal prototype to avoid an error. |
| 4620 | Use char because int might match the return type of a GCC |
| 4621 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4622 | #ifdef __cplusplus |
| 4623 | extern "C" |
| 4624 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4625 | char gethostbyname (); |
| 4626 | int |
| 4627 | main () |
| 4628 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4629 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4630 | ; |
| 4631 | return 0; |
| 4632 | } |
| 4633 | _ACEOF |
| 4634 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4635 | if { (ac_try="$ac_link" |
| 4636 | case "(($ac_try" in |
| 4637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4638 | *) ac_try_echo=$ac_try;; |
| 4639 | esac |
| 4640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4641 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4642 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4644 | rm -f conftest.er1 |
| 4645 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4647 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4648 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4649 | { (case "(($ac_try" in |
| 4650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4651 | *) ac_try_echo=$ac_try;; |
| 4652 | esac |
| 4653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4654 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4655 | ac_status=$? |
| 4656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4657 | (exit $ac_status); }; } && |
| 4658 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4659 | { (case "(($ac_try" in |
| 4660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4661 | *) ac_try_echo=$ac_try;; |
| 4662 | esac |
| 4663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4664 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4665 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4667 | (exit $ac_status); }; }; then |
| 4668 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4669 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4670 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4672 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4673 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4674 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4675 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4676 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4677 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4678 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4679 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4680 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 4681 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4682 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4683 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4684 | fi |
| 4685 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4686 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4687 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 4688 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4689 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 4690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4691 | else |
| 4692 | ac_check_lib_save_LIBS=$LIBS |
| 4693 | LIBS="-lbsd $LIBS" |
| 4694 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4695 | /* confdefs.h. */ |
| 4696 | _ACEOF |
| 4697 | cat confdefs.h >>conftest.$ac_ext |
| 4698 | cat >>conftest.$ac_ext <<_ACEOF |
| 4699 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4700 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4701 | /* Override any GCC internal prototype to avoid an error. |
| 4702 | Use char because int might match the return type of a GCC |
| 4703 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4704 | #ifdef __cplusplus |
| 4705 | extern "C" |
| 4706 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4707 | char gethostbyname (); |
| 4708 | int |
| 4709 | main () |
| 4710 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4711 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4712 | ; |
| 4713 | return 0; |
| 4714 | } |
| 4715 | _ACEOF |
| 4716 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4717 | if { (ac_try="$ac_link" |
| 4718 | case "(($ac_try" in |
| 4719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4720 | *) ac_try_echo=$ac_try;; |
| 4721 | esac |
| 4722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4723 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4724 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4726 | rm -f conftest.er1 |
| 4727 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4729 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4731 | { (case "(($ac_try" in |
| 4732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4733 | *) ac_try_echo=$ac_try;; |
| 4734 | esac |
| 4735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4736 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4737 | ac_status=$? |
| 4738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4739 | (exit $ac_status); }; } && |
| 4740 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4741 | { (case "(($ac_try" in |
| 4742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4743 | *) ac_try_echo=$ac_try;; |
| 4744 | esac |
| 4745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4746 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4747 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4749 | (exit $ac_status); }; }; then |
| 4750 | ac_cv_lib_bsd_gethostbyname=yes |
| 4751 | else |
| 4752 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4754 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4755 | ac_cv_lib_bsd_gethostbyname=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4756 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4757 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4758 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4759 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4760 | LIBS=$ac_check_lib_save_LIBS |
| 4761 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4762 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 4763 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4764 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 4765 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 4766 | fi |
| 4767 | |
| 4768 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4769 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4770 | |
| 4771 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4772 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 4773 | # 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] | 4774 | # on later versions), says Simon Leinen: it contains gethostby* |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 4775 | # variants that don't use the name server (or something). -lsocket |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4776 | # must be given before -lnsl if both are needed. We assume that |
| 4777 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4778 | { echo "$as_me:$LINENO: checking for connect" >&5 |
| 4779 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4780 | if test "${ac_cv_func_connect+set}" = set; then |
| 4781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4782 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4783 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4784 | /* confdefs.h. */ |
| 4785 | _ACEOF |
| 4786 | cat confdefs.h >>conftest.$ac_ext |
| 4787 | cat >>conftest.$ac_ext <<_ACEOF |
| 4788 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4789 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 4790 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4791 | #define connect innocuous_connect |
| 4792 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4793 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4794 | which can conflict with char connect (); below. |
| 4795 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4796 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4797 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4798 | #ifdef __STDC__ |
| 4799 | # include <limits.h> |
| 4800 | #else |
| 4801 | # include <assert.h> |
| 4802 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4803 | |
| 4804 | #undef connect |
| 4805 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4806 | /* Override any GCC internal prototype to avoid an error. |
| 4807 | Use char because int might match the return type of a GCC |
| 4808 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4809 | #ifdef __cplusplus |
| 4810 | extern "C" |
| 4811 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4812 | char connect (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4813 | /* The GNU C library defines this for functions which it implements |
| 4814 | to always fail with ENOSYS. Some functions are actually named |
| 4815 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4816 | #if defined __stub_connect || defined __stub___connect |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4817 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4818 | #endif |
| 4819 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4820 | int |
| 4821 | main () |
| 4822 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4823 | return connect (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4824 | ; |
| 4825 | return 0; |
| 4826 | } |
| 4827 | _ACEOF |
| 4828 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4829 | if { (ac_try="$ac_link" |
| 4830 | case "(($ac_try" in |
| 4831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4832 | *) ac_try_echo=$ac_try;; |
| 4833 | esac |
| 4834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4835 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4836 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4838 | rm -f conftest.er1 |
| 4839 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4841 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4843 | { (case "(($ac_try" in |
| 4844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4845 | *) ac_try_echo=$ac_try;; |
| 4846 | esac |
| 4847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4848 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4849 | ac_status=$? |
| 4850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4851 | (exit $ac_status); }; } && |
| 4852 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4853 | { (case "(($ac_try" in |
| 4854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4855 | *) ac_try_echo=$ac_try;; |
| 4856 | esac |
| 4857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4858 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4859 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4861 | (exit $ac_status); }; }; then |
| 4862 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4863 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4864 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4866 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4867 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4868 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4869 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4870 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4871 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4872 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4873 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 4874 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4875 | |
| 4876 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4877 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 4878 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4879 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 4880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4881 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4882 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4883 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4884 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4885 | /* confdefs.h. */ |
| 4886 | _ACEOF |
| 4887 | cat confdefs.h >>conftest.$ac_ext |
| 4888 | cat >>conftest.$ac_ext <<_ACEOF |
| 4889 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4890 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4891 | /* Override any GCC internal prototype to avoid an error. |
| 4892 | Use char because int might match the return type of a GCC |
| 4893 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4894 | #ifdef __cplusplus |
| 4895 | extern "C" |
| 4896 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4897 | char connect (); |
| 4898 | int |
| 4899 | main () |
| 4900 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4901 | return connect (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4902 | ; |
| 4903 | return 0; |
| 4904 | } |
| 4905 | _ACEOF |
| 4906 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4907 | if { (ac_try="$ac_link" |
| 4908 | case "(($ac_try" in |
| 4909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4910 | *) ac_try_echo=$ac_try;; |
| 4911 | esac |
| 4912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4913 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4914 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4916 | rm -f conftest.er1 |
| 4917 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4919 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4920 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4921 | { (case "(($ac_try" in |
| 4922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4923 | *) ac_try_echo=$ac_try;; |
| 4924 | esac |
| 4925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4926 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4927 | ac_status=$? |
| 4928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4929 | (exit $ac_status); }; } && |
| 4930 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4931 | { (case "(($ac_try" in |
| 4932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4933 | *) ac_try_echo=$ac_try;; |
| 4934 | esac |
| 4935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4936 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4937 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4939 | (exit $ac_status); }; }; then |
| 4940 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4941 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4942 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4944 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4945 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4946 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4947 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4948 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4949 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4950 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4951 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4952 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 4953 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4954 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4955 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4956 | fi |
| 4957 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4958 | fi |
| 4959 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4960 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4961 | { echo "$as_me:$LINENO: checking for remove" >&5 |
| 4962 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4963 | if test "${ac_cv_func_remove+set}" = set; then |
| 4964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4965 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4966 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4967 | /* confdefs.h. */ |
| 4968 | _ACEOF |
| 4969 | cat confdefs.h >>conftest.$ac_ext |
| 4970 | cat >>conftest.$ac_ext <<_ACEOF |
| 4971 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4972 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 4973 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4974 | #define remove innocuous_remove |
| 4975 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4976 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4977 | which can conflict with char remove (); below. |
| 4978 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4979 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4980 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4981 | #ifdef __STDC__ |
| 4982 | # include <limits.h> |
| 4983 | #else |
| 4984 | # include <assert.h> |
| 4985 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4986 | |
| 4987 | #undef remove |
| 4988 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4989 | /* Override any GCC internal prototype to avoid an error. |
| 4990 | Use char because int might match the return type of a GCC |
| 4991 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4992 | #ifdef __cplusplus |
| 4993 | extern "C" |
| 4994 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4995 | char remove (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4996 | /* The GNU C library defines this for functions which it implements |
| 4997 | to always fail with ENOSYS. Some functions are actually named |
| 4998 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4999 | #if defined __stub_remove || defined __stub___remove |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5000 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5001 | #endif |
| 5002 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5003 | int |
| 5004 | main () |
| 5005 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5006 | return remove (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5007 | ; |
| 5008 | return 0; |
| 5009 | } |
| 5010 | _ACEOF |
| 5011 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5012 | if { (ac_try="$ac_link" |
| 5013 | case "(($ac_try" in |
| 5014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5015 | *) ac_try_echo=$ac_try;; |
| 5016 | esac |
| 5017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5018 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5019 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5021 | rm -f conftest.er1 |
| 5022 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5024 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5026 | { (case "(($ac_try" in |
| 5027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5028 | *) ac_try_echo=$ac_try;; |
| 5029 | esac |
| 5030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5031 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5032 | ac_status=$? |
| 5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5034 | (exit $ac_status); }; } && |
| 5035 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5036 | { (case "(($ac_try" in |
| 5037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5038 | *) ac_try_echo=$ac_try;; |
| 5039 | esac |
| 5040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5041 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5042 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5044 | (exit $ac_status); }; }; then |
| 5045 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5046 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5047 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5049 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5050 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5051 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5052 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5053 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5054 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5055 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5056 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 5057 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5058 | |
| 5059 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5060 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 5061 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5062 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 5063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5064 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5065 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5066 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5067 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5068 | /* confdefs.h. */ |
| 5069 | _ACEOF |
| 5070 | cat confdefs.h >>conftest.$ac_ext |
| 5071 | cat >>conftest.$ac_ext <<_ACEOF |
| 5072 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5073 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5074 | /* Override any GCC internal prototype to avoid an error. |
| 5075 | Use char because int might match the return type of a GCC |
| 5076 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5077 | #ifdef __cplusplus |
| 5078 | extern "C" |
| 5079 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5080 | char remove (); |
| 5081 | int |
| 5082 | main () |
| 5083 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5084 | return remove (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5085 | ; |
| 5086 | return 0; |
| 5087 | } |
| 5088 | _ACEOF |
| 5089 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5090 | if { (ac_try="$ac_link" |
| 5091 | case "(($ac_try" in |
| 5092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5093 | *) ac_try_echo=$ac_try;; |
| 5094 | esac |
| 5095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5096 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5097 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5099 | rm -f conftest.er1 |
| 5100 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5102 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5104 | { (case "(($ac_try" in |
| 5105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5106 | *) ac_try_echo=$ac_try;; |
| 5107 | esac |
| 5108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5109 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5110 | ac_status=$? |
| 5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5112 | (exit $ac_status); }; } && |
| 5113 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5114 | { (case "(($ac_try" in |
| 5115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5116 | *) ac_try_echo=$ac_try;; |
| 5117 | esac |
| 5118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5119 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5120 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5122 | (exit $ac_status); }; }; then |
| 5123 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5124 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5125 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5127 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5128 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5129 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5130 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5131 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5132 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5133 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5134 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5135 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 5136 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5137 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5138 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5139 | fi |
| 5140 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5141 | fi |
| 5142 | |
| 5143 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5144 | { echo "$as_me:$LINENO: checking for shmat" >&5 |
| 5145 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5146 | if test "${ac_cv_func_shmat+set}" = set; then |
| 5147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5148 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5149 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5150 | /* confdefs.h. */ |
| 5151 | _ACEOF |
| 5152 | cat confdefs.h >>conftest.$ac_ext |
| 5153 | cat >>conftest.$ac_ext <<_ACEOF |
| 5154 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5155 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 5156 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5157 | #define shmat innocuous_shmat |
| 5158 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5159 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5160 | which can conflict with char shmat (); below. |
| 5161 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5162 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5163 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5164 | #ifdef __STDC__ |
| 5165 | # include <limits.h> |
| 5166 | #else |
| 5167 | # include <assert.h> |
| 5168 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5169 | |
| 5170 | #undef shmat |
| 5171 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5172 | /* Override any GCC internal prototype to avoid an error. |
| 5173 | Use char because int might match the return type of a GCC |
| 5174 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5175 | #ifdef __cplusplus |
| 5176 | extern "C" |
| 5177 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5178 | char shmat (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5179 | /* The GNU C library defines this for functions which it implements |
| 5180 | to always fail with ENOSYS. Some functions are actually named |
| 5181 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5182 | #if defined __stub_shmat || defined __stub___shmat |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5183 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5184 | #endif |
| 5185 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5186 | int |
| 5187 | main () |
| 5188 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5189 | return shmat (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5190 | ; |
| 5191 | return 0; |
| 5192 | } |
| 5193 | _ACEOF |
| 5194 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5195 | if { (ac_try="$ac_link" |
| 5196 | case "(($ac_try" in |
| 5197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5198 | *) ac_try_echo=$ac_try;; |
| 5199 | esac |
| 5200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5201 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5202 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5204 | rm -f conftest.er1 |
| 5205 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5207 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5208 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5209 | { (case "(($ac_try" in |
| 5210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5211 | *) ac_try_echo=$ac_try;; |
| 5212 | esac |
| 5213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5214 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5215 | ac_status=$? |
| 5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5217 | (exit $ac_status); }; } && |
| 5218 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5219 | { (case "(($ac_try" in |
| 5220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5221 | *) ac_try_echo=$ac_try;; |
| 5222 | esac |
| 5223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5224 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5225 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5227 | (exit $ac_status); }; }; then |
| 5228 | ac_cv_func_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5229 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5230 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5232 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5233 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5234 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5235 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5236 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5237 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5238 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5239 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 5240 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5241 | |
| 5242 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5243 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 5244 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5245 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 5246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5247 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5248 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5249 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5250 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5251 | /* confdefs.h. */ |
| 5252 | _ACEOF |
| 5253 | cat confdefs.h >>conftest.$ac_ext |
| 5254 | cat >>conftest.$ac_ext <<_ACEOF |
| 5255 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5256 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5257 | /* Override any GCC internal prototype to avoid an error. |
| 5258 | Use char because int might match the return type of a GCC |
| 5259 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5260 | #ifdef __cplusplus |
| 5261 | extern "C" |
| 5262 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5263 | char shmat (); |
| 5264 | int |
| 5265 | main () |
| 5266 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5267 | return shmat (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5268 | ; |
| 5269 | return 0; |
| 5270 | } |
| 5271 | _ACEOF |
| 5272 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5273 | if { (ac_try="$ac_link" |
| 5274 | case "(($ac_try" in |
| 5275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5276 | *) ac_try_echo=$ac_try;; |
| 5277 | esac |
| 5278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5279 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5280 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5282 | rm -f conftest.er1 |
| 5283 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5285 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5286 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5287 | { (case "(($ac_try" in |
| 5288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5289 | *) ac_try_echo=$ac_try;; |
| 5290 | esac |
| 5291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5292 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5293 | ac_status=$? |
| 5294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5295 | (exit $ac_status); }; } && |
| 5296 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5297 | { (case "(($ac_try" in |
| 5298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5299 | *) ac_try_echo=$ac_try;; |
| 5300 | esac |
| 5301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5302 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5303 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5305 | (exit $ac_status); }; }; then |
| 5306 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5307 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5308 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5310 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5311 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5312 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5313 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5314 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5315 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5316 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5317 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5318 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 5319 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5320 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5321 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5322 | fi |
| 5323 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5324 | fi |
| 5325 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5326 | |
| 5327 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5328 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5329 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 5330 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 5331 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 5332 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 5333 | # These have to be linked with before -lX11, unlike the other |
| 5334 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5335 | # John Interrante, Karl Berry |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5336 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 5337 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5338 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 5339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5340 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5341 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 5342 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5343 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5344 | /* confdefs.h. */ |
| 5345 | _ACEOF |
| 5346 | cat confdefs.h >>conftest.$ac_ext |
| 5347 | cat >>conftest.$ac_ext <<_ACEOF |
| 5348 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5349 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5350 | /* Override any GCC internal prototype to avoid an error. |
| 5351 | Use char because int might match the return type of a GCC |
| 5352 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5353 | #ifdef __cplusplus |
| 5354 | extern "C" |
| 5355 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5356 | char IceConnectionNumber (); |
| 5357 | int |
| 5358 | main () |
| 5359 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5360 | return IceConnectionNumber (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5361 | ; |
| 5362 | return 0; |
| 5363 | } |
| 5364 | _ACEOF |
| 5365 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5366 | if { (ac_try="$ac_link" |
| 5367 | case "(($ac_try" in |
| 5368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5369 | *) ac_try_echo=$ac_try;; |
| 5370 | esac |
| 5371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5372 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5373 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5375 | rm -f conftest.er1 |
| 5376 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5378 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5379 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5380 | { (case "(($ac_try" in |
| 5381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5382 | *) ac_try_echo=$ac_try;; |
| 5383 | esac |
| 5384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5385 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5386 | ac_status=$? |
| 5387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5388 | (exit $ac_status); }; } && |
| 5389 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5390 | { (case "(($ac_try" in |
| 5391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5392 | *) ac_try_echo=$ac_try;; |
| 5393 | esac |
| 5394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5395 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5396 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5398 | (exit $ac_status); }; }; then |
| 5399 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5400 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5401 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5403 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5404 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5405 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5406 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5407 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5408 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5409 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5410 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5411 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 5412 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5413 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5414 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5415 | fi |
| 5416 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5417 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5418 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5419 | fi |
| 5420 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5421 | for ac_prog in flex lex |
| 5422 | do |
| 5423 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5424 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5425 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5427 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 5428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5429 | else |
| 5430 | if test -n "$LEX"; then |
| 5431 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 5432 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5434 | for as_dir in $PATH |
| 5435 | do |
| 5436 | IFS=$as_save_IFS |
| 5437 | test -z "$as_dir" && as_dir=. |
| 5438 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5439 | 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] | 5440 | ac_cv_prog_LEX="$ac_prog" |
| 5441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5442 | break 2 |
| 5443 | fi |
| 5444 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5445 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5446 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5447 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5448 | fi |
| 5449 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5450 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5451 | if test -n "$LEX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5452 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 5453 | echo "${ECHO_T}$LEX" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5454 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5455 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5456 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5457 | fi |
| 5458 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5459 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5460 | test -n "$LEX" && break |
| 5461 | done |
| 5462 | test -n "$LEX" || LEX=":" |
| 5463 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5464 | if test -z "$LEXLIB" |
| 5465 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5466 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 5467 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5468 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 5469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5470 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5471 | ac_check_lib_save_LIBS=$LIBS |
| 5472 | LIBS="-lfl $LIBS" |
| 5473 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5474 | /* confdefs.h. */ |
| 5475 | _ACEOF |
| 5476 | cat confdefs.h >>conftest.$ac_ext |
| 5477 | cat >>conftest.$ac_ext <<_ACEOF |
| 5478 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5479 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5480 | /* Override any GCC internal prototype to avoid an error. |
| 5481 | Use char because int might match the return type of a GCC |
| 5482 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5483 | #ifdef __cplusplus |
| 5484 | extern "C" |
| 5485 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5486 | char yywrap (); |
| 5487 | int |
| 5488 | main () |
| 5489 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5490 | return yywrap (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5491 | ; |
| 5492 | return 0; |
| 5493 | } |
| 5494 | _ACEOF |
| 5495 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5496 | if { (ac_try="$ac_link" |
| 5497 | case "(($ac_try" in |
| 5498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5499 | *) ac_try_echo=$ac_try;; |
| 5500 | esac |
| 5501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5502 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5503 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5505 | rm -f conftest.er1 |
| 5506 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5508 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5510 | { (case "(($ac_try" in |
| 5511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5512 | *) ac_try_echo=$ac_try;; |
| 5513 | esac |
| 5514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5515 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5516 | ac_status=$? |
| 5517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5518 | (exit $ac_status); }; } && |
| 5519 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5520 | { (case "(($ac_try" in |
| 5521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5522 | *) ac_try_echo=$ac_try;; |
| 5523 | esac |
| 5524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5525 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5526 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5528 | (exit $ac_status); }; }; then |
| 5529 | ac_cv_lib_fl_yywrap=yes |
| 5530 | else |
| 5531 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5533 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5534 | ac_cv_lib_fl_yywrap=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5535 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5536 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5537 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5538 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5539 | LIBS=$ac_check_lib_save_LIBS |
| 5540 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5541 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 5542 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5543 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 5544 | LEXLIB="-lfl" |
| 5545 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5546 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 5547 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5548 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 5549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5550 | else |
| 5551 | ac_check_lib_save_LIBS=$LIBS |
| 5552 | LIBS="-ll $LIBS" |
| 5553 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5554 | /* confdefs.h. */ |
| 5555 | _ACEOF |
| 5556 | cat confdefs.h >>conftest.$ac_ext |
| 5557 | cat >>conftest.$ac_ext <<_ACEOF |
| 5558 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5559 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5560 | /* Override any GCC internal prototype to avoid an error. |
| 5561 | Use char because int might match the return type of a GCC |
| 5562 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5563 | #ifdef __cplusplus |
| 5564 | extern "C" |
| 5565 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5566 | char yywrap (); |
| 5567 | int |
| 5568 | main () |
| 5569 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5570 | return yywrap (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5571 | ; |
| 5572 | return 0; |
| 5573 | } |
| 5574 | _ACEOF |
| 5575 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5576 | if { (ac_try="$ac_link" |
| 5577 | case "(($ac_try" in |
| 5578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5579 | *) ac_try_echo=$ac_try;; |
| 5580 | esac |
| 5581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5582 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5583 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5585 | rm -f conftest.er1 |
| 5586 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5588 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5589 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5590 | { (case "(($ac_try" in |
| 5591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5592 | *) ac_try_echo=$ac_try;; |
| 5593 | esac |
| 5594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5595 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5596 | ac_status=$? |
| 5597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5598 | (exit $ac_status); }; } && |
| 5599 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5600 | { (case "(($ac_try" in |
| 5601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5602 | *) ac_try_echo=$ac_try;; |
| 5603 | esac |
| 5604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5605 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5606 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5608 | (exit $ac_status); }; }; then |
| 5609 | ac_cv_lib_l_yywrap=yes |
| 5610 | else |
| 5611 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5613 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5614 | ac_cv_lib_l_yywrap=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5615 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5616 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5617 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5618 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5619 | LIBS=$ac_check_lib_save_LIBS |
| 5620 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5621 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 5622 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5623 | if test $ac_cv_lib_l_yywrap = yes; then |
| 5624 | LEXLIB="-ll" |
| 5625 | fi |
| 5626 | |
| 5627 | fi |
| 5628 | |
| 5629 | fi |
| 5630 | |
| 5631 | if test "x$LEX" != "x:"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5632 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 5633 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5634 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 5635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5636 | else |
| 5637 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 5638 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5639 | cat >conftest.l <<_ACEOF |
| 5640 | %% |
| 5641 | %% |
| 5642 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5643 | { (ac_try="$LEX conftest.l" |
| 5644 | case "(($ac_try" in |
| 5645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5646 | *) ac_try_echo=$ac_try;; |
| 5647 | esac |
| 5648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5649 | (eval "$LEX conftest.l") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5650 | ac_status=$? |
| 5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5652 | (exit $ac_status); } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5653 | if test -f lex.yy.c; then |
| 5654 | ac_cv_prog_lex_root=lex.yy |
| 5655 | elif test -f lexyy.c; then |
| 5656 | ac_cv_prog_lex_root=lexyy |
| 5657 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5658 | { { 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] | 5659 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 5660 | { (exit 1); exit 1; }; } |
| 5661 | fi |
| 5662 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5663 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 5664 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5665 | rm -f conftest.l |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5666 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 5667 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5668 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 5669 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5670 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 5671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5672 | else |
| 5673 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 5674 | # default is implementation-dependent. Figure out which it is, since |
| 5675 | # not all implementations provide the %pointer and %array declarations. |
| 5676 | ac_cv_prog_lex_yytext_pointer=no |
| 5677 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 5678 | ac_save_LIBS=$LIBS |
| 5679 | LIBS="$LIBS $LEXLIB" |
| 5680 | cat >conftest.$ac_ext <<_ACEOF |
| 5681 | `cat $LEX_OUTPUT_ROOT.c` |
| 5682 | _ACEOF |
| 5683 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5684 | if { (ac_try="$ac_link" |
| 5685 | case "(($ac_try" in |
| 5686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5687 | *) ac_try_echo=$ac_try;; |
| 5688 | esac |
| 5689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5690 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5691 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5693 | rm -f conftest.er1 |
| 5694 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5696 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5698 | { (case "(($ac_try" in |
| 5699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5700 | *) ac_try_echo=$ac_try;; |
| 5701 | esac |
| 5702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5703 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5704 | ac_status=$? |
| 5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5706 | (exit $ac_status); }; } && |
| 5707 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5708 | { (case "(($ac_try" in |
| 5709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5710 | *) ac_try_echo=$ac_try;; |
| 5711 | esac |
| 5712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5713 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5714 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5716 | (exit $ac_status); }; }; then |
| 5717 | ac_cv_prog_lex_yytext_pointer=yes |
| 5718 | else |
| 5719 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5721 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5722 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5723 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5724 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5725 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5726 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5727 | LIBS=$ac_save_LIBS |
| 5728 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 5729 | |
| 5730 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5731 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 5732 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5733 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 5734 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5735 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5736 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5737 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5738 | |
| 5739 | fi |
| 5740 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5741 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 5742 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5743 | for ac_prog in $LEX flex lex |
| 5744 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5745 | # 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] | 5746 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5747 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5749 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 5750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5751 | else |
| 5752 | if test -n "$XLEX"; then |
| 5753 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 5754 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5756 | for as_dir in $PATH |
| 5757 | do |
| 5758 | IFS=$as_save_IFS |
| 5759 | test -z "$as_dir" && as_dir=. |
| 5760 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5761 | 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] | 5762 | ac_cv_prog_XLEX="$ac_prog" |
| 5763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5764 | break 2 |
| 5765 | fi |
| 5766 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5767 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5768 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5769 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5770 | fi |
| 5771 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5772 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5773 | if test -n "$XLEX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5774 | { echo "$as_me:$LINENO: result: $XLEX" >&5 |
| 5775 | echo "${ECHO_T}$XLEX" >&6; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5776 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5777 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5778 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5779 | fi |
| 5780 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5781 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5782 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5783 | done |
| 5784 | test -n "$XLEX" || XLEX="none" |
| 5785 | |
| 5786 | if test "$XLEX" = "none" |
| 5787 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5788 | { { 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] | 5789 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 5790 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5791 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5792 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5793 | for ac_prog in bison |
| 5794 | do |
| 5795 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5796 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5797 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5799 | if test "${ac_cv_prog_BISON+set}" = set; then |
| 5800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5801 | else |
| 5802 | if test -n "$BISON"; then |
| 5803 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
| 5804 | else |
| 5805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5806 | for as_dir in $PATH |
| 5807 | do |
| 5808 | IFS=$as_save_IFS |
| 5809 | test -z "$as_dir" && as_dir=. |
| 5810 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5811 | 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] | 5812 | ac_cv_prog_BISON="$ac_prog" |
| 5813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5814 | break 2 |
| 5815 | fi |
| 5816 | done |
| 5817 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5818 | IFS=$as_save_IFS |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5819 | |
| 5820 | fi |
| 5821 | fi |
| 5822 | BISON=$ac_cv_prog_BISON |
| 5823 | if test -n "$BISON"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5824 | { echo "$as_me:$LINENO: result: $BISON" >&5 |
| 5825 | echo "${ECHO_T}$BISON" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5826 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5827 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5828 | echo "${ECHO_T}no" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5829 | fi |
| 5830 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5831 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5832 | test -n "$BISON" && break |
| 5833 | done |
| 5834 | test -n "$BISON" || BISON="none" |
| 5835 | |
| 5836 | if test "$BISON" = "none" |
| 5837 | then |
| 5838 | { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5 |
| 5839 | echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;} |
| 5840 | { (exit 1); exit 1; }; } |
| 5841 | fi |
| 5842 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5843 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5844 | for ac_prog in gas as |
| 5845 | do |
| 5846 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5847 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5848 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5850 | if test "${ac_cv_prog_AS+set}" = set; then |
| 5851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5852 | else |
| 5853 | if test -n "$AS"; then |
| 5854 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 5855 | else |
| 5856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5857 | for as_dir in $PATH |
| 5858 | do |
| 5859 | IFS=$as_save_IFS |
| 5860 | test -z "$as_dir" && as_dir=. |
| 5861 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5862 | 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] | 5863 | ac_cv_prog_AS="$ac_tool_prefix$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5864 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5865 | break 2 |
| 5866 | fi |
| 5867 | done |
| 5868 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5869 | IFS=$as_save_IFS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5870 | |
| 5871 | fi |
| 5872 | fi |
| 5873 | AS=$ac_cv_prog_AS |
| 5874 | if test -n "$AS"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5875 | { echo "$as_me:$LINENO: result: $AS" >&5 |
| 5876 | echo "${ECHO_T}$AS" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5877 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5878 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5879 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5880 | fi |
| 5881 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5882 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5883 | test -n "$AS" && break |
| 5884 | done |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5885 | fi |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5886 | if test -z "$AS"; then |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5887 | ac_ct_AS=$AS |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5888 | for ac_prog in gas as |
| 5889 | do |
| 5890 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5891 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5892 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5894 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| 5895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5896 | else |
| 5897 | if test -n "$ac_ct_AS"; then |
| 5898 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 5899 | else |
| 5900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5901 | for as_dir in $PATH |
| 5902 | do |
| 5903 | IFS=$as_save_IFS |
| 5904 | test -z "$as_dir" && as_dir=. |
| 5905 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5906 | 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] | 5907 | ac_cv_prog_ac_ct_AS="$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5909 | break 2 |
| 5910 | fi |
| 5911 | done |
| 5912 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5913 | IFS=$as_save_IFS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5914 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5915 | fi |
| 5916 | fi |
| 5917 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 5918 | if test -n "$ac_ct_AS"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5919 | { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
| 5920 | echo "${ECHO_T}$ac_ct_AS" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5921 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5922 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5923 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5924 | fi |
| 5925 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5926 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5927 | test -n "$ac_ct_AS" && break |
| 5928 | done |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5929 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5930 | if test "x$ac_ct_AS" = x; then |
| 5931 | AS="as" |
| 5932 | else |
| 5933 | case $cross_compiling:$ac_tool_warned in |
| 5934 | yes:) |
| 5935 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5936 | whose name does not start with the host triplet. If you think this |
| 5937 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5938 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5939 | whose name does not start with the host triplet. If you think this |
| 5940 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5941 | ac_tool_warned=yes ;; |
| 5942 | esac |
| 5943 | AS=$ac_ct_AS |
| 5944 | fi |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5945 | fi |
| 5946 | |
| 5947 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5948 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 5949 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5950 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5952 | if test "${ac_cv_prog_LD+set}" = set; then |
| 5953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5954 | else |
| 5955 | if test -n "$LD"; then |
| 5956 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 5957 | else |
| 5958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5959 | for as_dir in $PATH |
| 5960 | do |
| 5961 | IFS=$as_save_IFS |
| 5962 | test -z "$as_dir" && as_dir=. |
| 5963 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5964 | 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] | 5965 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
| 5966 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5967 | break 2 |
| 5968 | fi |
| 5969 | done |
| 5970 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5971 | IFS=$as_save_IFS |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5972 | |
| 5973 | fi |
| 5974 | fi |
| 5975 | LD=$ac_cv_prog_LD |
| 5976 | if test -n "$LD"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5977 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 5978 | echo "${ECHO_T}$LD" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5979 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5980 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5981 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5982 | fi |
| 5983 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5984 | |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5985 | fi |
| 5986 | if test -z "$ac_cv_prog_LD"; then |
| 5987 | ac_ct_LD=$LD |
| 5988 | # Extract the first word of "ld", so it can be a program name with args. |
| 5989 | set dummy ld; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5990 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5992 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
| 5993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5994 | else |
| 5995 | if test -n "$ac_ct_LD"; then |
| 5996 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 5997 | else |
| 5998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5999 | for as_dir in $PATH |
| 6000 | do |
| 6001 | IFS=$as_save_IFS |
| 6002 | test -z "$as_dir" && as_dir=. |
| 6003 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6004 | 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] | 6005 | ac_cv_prog_ac_ct_LD="ld" |
| 6006 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6007 | break 2 |
| 6008 | fi |
| 6009 | done |
| 6010 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6011 | IFS=$as_save_IFS |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6012 | |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6013 | fi |
| 6014 | fi |
| 6015 | ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 6016 | if test -n "$ac_ct_LD"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6017 | { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
| 6018 | echo "${ECHO_T}$ac_ct_LD" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6019 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6020 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6021 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6022 | fi |
| 6023 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6024 | if test "x$ac_ct_LD" = x; then |
| 6025 | LD="ld" |
| 6026 | else |
| 6027 | case $cross_compiling:$ac_tool_warned in |
| 6028 | yes:) |
| 6029 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6030 | whose name does not start with the host triplet. If you think this |
| 6031 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6032 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6033 | whose name does not start with the host triplet. If you think this |
| 6034 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6035 | ac_tool_warned=yes ;; |
| 6036 | esac |
| 6037 | LD=$ac_ct_LD |
| 6038 | fi |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6039 | else |
| 6040 | LD="$ac_cv_prog_LD" |
| 6041 | fi |
| 6042 | |
| 6043 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6044 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6045 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6046 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6048 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6050 | else |
| 6051 | if test -n "$AR"; then |
| 6052 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6053 | else |
| 6054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6055 | for as_dir in $PATH |
| 6056 | do |
| 6057 | IFS=$as_save_IFS |
| 6058 | test -z "$as_dir" && as_dir=. |
| 6059 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6060 | 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] | 6061 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6063 | break 2 |
| 6064 | fi |
| 6065 | done |
| 6066 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6067 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6068 | |
| 6069 | fi |
| 6070 | fi |
| 6071 | AR=$ac_cv_prog_AR |
| 6072 | if test -n "$AR"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6073 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6074 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6075 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6076 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6077 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6078 | fi |
| 6079 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6080 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6081 | fi |
| 6082 | if test -z "$ac_cv_prog_AR"; then |
| 6083 | ac_ct_AR=$AR |
| 6084 | # Extract the first word of "ar", so it can be a program name with args. |
| 6085 | set dummy ar; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6086 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6088 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6090 | else |
| 6091 | if test -n "$ac_ct_AR"; then |
| 6092 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6093 | else |
| 6094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6095 | for as_dir in $PATH |
| 6096 | do |
| 6097 | IFS=$as_save_IFS |
| 6098 | test -z "$as_dir" && as_dir=. |
| 6099 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6100 | 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] | 6101 | ac_cv_prog_ac_ct_AR="ar" |
| 6102 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6103 | break 2 |
| 6104 | fi |
| 6105 | done |
| 6106 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6107 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6108 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6109 | fi |
| 6110 | fi |
| 6111 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6112 | if test -n "$ac_ct_AR"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6113 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6114 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6115 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6116 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6117 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6118 | fi |
| 6119 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6120 | if test "x$ac_ct_AR" = x; then |
| 6121 | AR="ar" |
| 6122 | else |
| 6123 | case $cross_compiling:$ac_tool_warned in |
| 6124 | yes:) |
| 6125 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6126 | whose name does not start with the host triplet. If you think this |
| 6127 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6128 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6129 | whose name does not start with the host triplet. If you think this |
| 6130 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6131 | ac_tool_warned=yes ;; |
| 6132 | esac |
| 6133 | AR=$ac_ct_AR |
| 6134 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6135 | else |
| 6136 | AR="$ac_cv_prog_AR" |
| 6137 | fi |
| 6138 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6139 | if test -n "$ac_tool_prefix"; then |
| 6140 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6141 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6142 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6144 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 6146 | else |
| 6147 | if test -n "$RANLIB"; then |
| 6148 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6149 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6151 | for as_dir in $PATH |
| 6152 | do |
| 6153 | IFS=$as_save_IFS |
| 6154 | test -z "$as_dir" && as_dir=. |
| 6155 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6156 | 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] | 6157 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6159 | break 2 |
| 6160 | fi |
| 6161 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6162 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6163 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6164 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6165 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6166 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6167 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 6168 | if test -n "$RANLIB"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6169 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6170 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 6171 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6172 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6173 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6174 | fi |
| 6175 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6176 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6177 | fi |
| 6178 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6179 | ac_ct_RANLIB=$RANLIB |
| 6180 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6181 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6182 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6183 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6184 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6186 | else |
| 6187 | if test -n "$ac_ct_RANLIB"; then |
| 6188 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6189 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6191 | for as_dir in $PATH |
| 6192 | do |
| 6193 | IFS=$as_save_IFS |
| 6194 | test -z "$as_dir" && as_dir=. |
| 6195 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6196 | 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] | 6197 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6198 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6199 | break 2 |
| 6200 | fi |
| 6201 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6202 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6203 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6204 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6205 | fi |
| 6206 | fi |
| 6207 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6208 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6209 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6210 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6211 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6212 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6213 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6214 | fi |
| 6215 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6216 | if test "x$ac_ct_RANLIB" = x; then |
| 6217 | RANLIB=":" |
| 6218 | else |
| 6219 | case $cross_compiling:$ac_tool_warned in |
| 6220 | yes:) |
| 6221 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6222 | whose name does not start with the host triplet. If you think this |
| 6223 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6224 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6225 | whose name does not start with the host triplet. If you think this |
| 6226 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6227 | ac_tool_warned=yes ;; |
| 6228 | esac |
| 6229 | RANLIB=$ac_ct_RANLIB |
| 6230 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6231 | else |
| 6232 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 6233 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6234 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6235 | if test -n "$ac_tool_prefix"; then |
| 6236 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6237 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6238 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6240 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 6241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6242 | else |
| 6243 | if test -n "$STRIP"; then |
| 6244 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6245 | else |
| 6246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6247 | for as_dir in $PATH |
| 6248 | do |
| 6249 | IFS=$as_save_IFS |
| 6250 | test -z "$as_dir" && as_dir=. |
| 6251 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6252 | 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] | 6253 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6255 | break 2 |
| 6256 | fi |
| 6257 | done |
| 6258 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6259 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6260 | |
| 6261 | fi |
| 6262 | fi |
| 6263 | STRIP=$ac_cv_prog_STRIP |
| 6264 | if test -n "$STRIP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6265 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 6266 | echo "${ECHO_T}$STRIP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6267 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6268 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6269 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6270 | fi |
| 6271 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6272 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6273 | fi |
| 6274 | if test -z "$ac_cv_prog_STRIP"; then |
| 6275 | ac_ct_STRIP=$STRIP |
| 6276 | # Extract the first word of "strip", so it can be a program name with args. |
| 6277 | set dummy strip; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6278 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6280 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 6281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6282 | else |
| 6283 | if test -n "$ac_ct_STRIP"; then |
| 6284 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6285 | else |
| 6286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6287 | for as_dir in $PATH |
| 6288 | do |
| 6289 | IFS=$as_save_IFS |
| 6290 | test -z "$as_dir" && as_dir=. |
| 6291 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6292 | 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] | 6293 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6295 | break 2 |
| 6296 | fi |
| 6297 | done |
| 6298 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6299 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6300 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6301 | fi |
| 6302 | fi |
| 6303 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6304 | if test -n "$ac_ct_STRIP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6305 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 6306 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6307 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6308 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6309 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6310 | fi |
| 6311 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6312 | if test "x$ac_ct_STRIP" = x; then |
| 6313 | STRIP="strip" |
| 6314 | else |
| 6315 | case $cross_compiling:$ac_tool_warned in |
| 6316 | yes:) |
| 6317 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6318 | whose name does not start with the host triplet. If you think this |
| 6319 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6320 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6321 | whose name does not start with the host triplet. If you think this |
| 6322 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6323 | ac_tool_warned=yes ;; |
| 6324 | esac |
| 6325 | STRIP=$ac_ct_STRIP |
| 6326 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6327 | else |
| 6328 | STRIP="$ac_cv_prog_STRIP" |
| 6329 | fi |
| 6330 | |
| 6331 | if test -n "$ac_tool_prefix"; then |
| 6332 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 6333 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6334 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6336 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 6337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6338 | else |
| 6339 | if test -n "$WINDRES"; then |
| 6340 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 6341 | else |
| 6342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6343 | for as_dir in $PATH |
| 6344 | do |
| 6345 | IFS=$as_save_IFS |
| 6346 | test -z "$as_dir" && as_dir=. |
| 6347 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6348 | 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] | 6349 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 6350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6351 | break 2 |
| 6352 | fi |
| 6353 | done |
| 6354 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6355 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6356 | |
| 6357 | fi |
| 6358 | fi |
| 6359 | WINDRES=$ac_cv_prog_WINDRES |
| 6360 | if test -n "$WINDRES"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6361 | { echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 6362 | echo "${ECHO_T}$WINDRES" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6363 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6364 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6365 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6366 | fi |
| 6367 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6368 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6369 | fi |
| 6370 | if test -z "$ac_cv_prog_WINDRES"; then |
| 6371 | ac_ct_WINDRES=$WINDRES |
| 6372 | # Extract the first word of "windres", so it can be a program name with args. |
| 6373 | set dummy windres; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6374 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6376 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 6377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6378 | else |
| 6379 | if test -n "$ac_ct_WINDRES"; then |
| 6380 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 6381 | else |
| 6382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6383 | for as_dir in $PATH |
| 6384 | do |
| 6385 | IFS=$as_save_IFS |
| 6386 | test -z "$as_dir" && as_dir=. |
| 6387 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6388 | 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] | 6389 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 6390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6391 | break 2 |
| 6392 | fi |
| 6393 | done |
| 6394 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6395 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6396 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6397 | fi |
| 6398 | fi |
| 6399 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 6400 | if test -n "$ac_ct_WINDRES"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6401 | { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 6402 | echo "${ECHO_T}$ac_ct_WINDRES" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6403 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6404 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6405 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6406 | fi |
| 6407 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6408 | if test "x$ac_ct_WINDRES" = x; then |
| 6409 | WINDRES="false" |
| 6410 | else |
| 6411 | case $cross_compiling:$ac_tool_warned in |
| 6412 | yes:) |
| 6413 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6414 | whose name does not start with the host triplet. If you think this |
| 6415 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6416 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6417 | whose name does not start with the host triplet. If you think this |
| 6418 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6419 | ac_tool_warned=yes ;; |
| 6420 | esac |
| 6421 | WINDRES=$ac_ct_WINDRES |
| 6422 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6423 | else |
| 6424 | WINDRES="$ac_cv_prog_WINDRES" |
| 6425 | fi |
| 6426 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6427 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6428 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6429 | LN_S=$as_ln_s |
| 6430 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6431 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6432 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 6433 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6434 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6435 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 6436 | fi |
| 6437 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6438 | { echo "$as_me:$LINENO: checking whether ln works" >&5 |
| 6439 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; } |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 6440 | rm -f conf$$ conf$$.file |
| 6441 | echo >conf$$.file |
| 6442 | if ln conf$$.file conf$$ 2>/dev/null; then |
| 6443 | LN=ln |
| 6444 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6445 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6446 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 6447 | else |
| 6448 | LN="cp -p" |
| 6449 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6450 | { echo "$as_me:$LINENO: result: no, using $LN" >&5 |
| 6451 | echo "${ECHO_T}no, using $LN" >&6; } |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 6452 | fi |
| 6453 | rm -f conf$$ conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6454 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 6455 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 6456 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6458 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6459 | # Extract the first word of "grep ggrep" to use in msg output |
| 6460 | if test -z "$GREP"; then |
| 6461 | set dummy grep ggrep; ac_prog_name=$2 |
| 6462 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6464 | else |
| 6465 | ac_path_GREP_found=false |
| 6466 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6468 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6469 | do |
| 6470 | IFS=$as_save_IFS |
| 6471 | test -z "$as_dir" && as_dir=. |
| 6472 | for ac_prog in grep ggrep; do |
| 6473 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6474 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6475 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 6476 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6477 | # Check for GNU $ac_path_GREP |
| 6478 | case `"$ac_path_GREP" --version 2>&1` in |
| 6479 | *GNU*) |
| 6480 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6481 | *) |
| 6482 | ac_count=0 |
| 6483 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 6484 | while : |
| 6485 | do |
| 6486 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6487 | mv "conftest.tmp" "conftest.in" |
| 6488 | cp "conftest.in" "conftest.nl" |
| 6489 | echo 'GREP' >> "conftest.nl" |
| 6490 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6491 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6492 | ac_count=`expr $ac_count + 1` |
| 6493 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6494 | # Best one so far, save it but keep looking for a better one |
| 6495 | ac_cv_path_GREP="$ac_path_GREP" |
| 6496 | ac_path_GREP_max=$ac_count |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6497 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6498 | # 10*(2^10) chars as input seems more than enough |
| 6499 | test $ac_count -gt 10 && break |
| 6500 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6501 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6502 | esac |
| 6503 | |
| 6504 | |
| 6505 | $ac_path_GREP_found && break 3 |
| 6506 | done |
| 6507 | done |
| 6508 | |
| 6509 | done |
| 6510 | IFS=$as_save_IFS |
| 6511 | |
| 6512 | |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6513 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6514 | |
| 6515 | GREP="$ac_cv_path_GREP" |
| 6516 | if test -z "$GREP"; then |
| 6517 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 6518 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 6519 | { (exit 1); exit 1; }; } |
| 6520 | fi |
| 6521 | |
| 6522 | else |
| 6523 | ac_cv_path_GREP=$GREP |
| 6524 | fi |
| 6525 | |
| 6526 | |
| 6527 | fi |
| 6528 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 6529 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 6530 | GREP="$ac_cv_path_GREP" |
| 6531 | |
| 6532 | |
| 6533 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 6534 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 6535 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 6536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6537 | else |
| 6538 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6539 | then ac_cv_path_EGREP="$GREP -E" |
| 6540 | else |
| 6541 | # Extract the first word of "egrep" to use in msg output |
| 6542 | if test -z "$EGREP"; then |
| 6543 | set dummy egrep; ac_prog_name=$2 |
| 6544 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 6545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6546 | else |
| 6547 | ac_path_EGREP_found=false |
| 6548 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6550 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6551 | do |
| 6552 | IFS=$as_save_IFS |
| 6553 | test -z "$as_dir" && as_dir=. |
| 6554 | for ac_prog in egrep; do |
| 6555 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6556 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6557 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 6558 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6559 | # Check for GNU $ac_path_EGREP |
| 6560 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6561 | *GNU*) |
| 6562 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6563 | *) |
| 6564 | ac_count=0 |
| 6565 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 6566 | while : |
| 6567 | do |
| 6568 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6569 | mv "conftest.tmp" "conftest.in" |
| 6570 | cp "conftest.in" "conftest.nl" |
| 6571 | echo 'EGREP' >> "conftest.nl" |
| 6572 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6573 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6574 | ac_count=`expr $ac_count + 1` |
| 6575 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6576 | # Best one so far, save it but keep looking for a better one |
| 6577 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6578 | ac_path_EGREP_max=$ac_count |
| 6579 | fi |
| 6580 | # 10*(2^10) chars as input seems more than enough |
| 6581 | test $ac_count -gt 10 && break |
| 6582 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6583 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6584 | esac |
| 6585 | |
| 6586 | |
| 6587 | $ac_path_EGREP_found && break 3 |
| 6588 | done |
| 6589 | done |
| 6590 | |
| 6591 | done |
| 6592 | IFS=$as_save_IFS |
| 6593 | |
| 6594 | |
| 6595 | fi |
| 6596 | |
| 6597 | EGREP="$ac_cv_path_EGREP" |
| 6598 | if test -z "$EGREP"; then |
| 6599 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 6600 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 6601 | { (exit 1); exit 1; }; } |
| 6602 | fi |
| 6603 | |
| 6604 | else |
| 6605 | ac_cv_path_EGREP=$EGREP |
| 6606 | fi |
| 6607 | |
| 6608 | |
| 6609 | fi |
| 6610 | fi |
| 6611 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 6612 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 6613 | EGREP="$ac_cv_path_EGREP" |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6614 | |
| 6615 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6616 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 6617 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6618 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6620 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 6621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6622 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6623 | case $LDCONFIG in |
| 6624 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6625 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 6626 | ;; |
| 6627 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 6629 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6630 | do |
| 6631 | IFS=$as_save_IFS |
| 6632 | test -z "$as_dir" && as_dir=. |
| 6633 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6634 | 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] | 6635 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 6636 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6637 | break 2 |
| 6638 | fi |
| 6639 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6640 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6641 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6642 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 6643 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6644 | ;; |
| 6645 | esac |
| 6646 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6647 | LDCONFIG=$ac_cv_path_LDCONFIG |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6648 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6649 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 6650 | echo "${ECHO_T}$LDCONFIG" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6651 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6652 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6653 | echo "${ECHO_T}no" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6654 | fi |
| 6655 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6656 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6657 | # Find a good install program. We prefer a C program (faster), |
| 6658 | # so one script is as good as another. But avoid the broken or |
| 6659 | # incompatible versions: |
| 6660 | # SysV /etc/install, /usr/sbin/install |
| 6661 | # SunOS /usr/etc/install |
| 6662 | # IRIX /sbin/install |
| 6663 | # AIX /bin/install |
| 6664 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6665 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6666 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6667 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6668 | # OS/2's system install, which has a completely different semantic |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6669 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6670 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 6671 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6672 | if test -z "$INSTALL"; then |
| 6673 | if test "${ac_cv_path_install+set}" = set; then |
| 6674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6675 | else |
| 6676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6677 | for as_dir in $PATH |
| 6678 | do |
| 6679 | IFS=$as_save_IFS |
| 6680 | test -z "$as_dir" && as_dir=. |
| 6681 | # Account for people who put trailing slashes in PATH elements. |
| 6682 | case $as_dir/ in |
| 6683 | ./ | .// | /cC/* | \ |
| 6684 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6685 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6686 | /usr/ucb/* ) ;; |
| 6687 | *) |
| 6688 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6689 | # Don't use installbsd from OSF since it installs stuff as root |
| 6690 | # by default. |
| 6691 | for ac_prog in ginstall scoinst install; do |
| 6692 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6693 | 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] | 6694 | if test $ac_prog = install && |
| 6695 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6696 | # AIX install. It has an incompatible calling convention. |
| 6697 | : |
| 6698 | elif test $ac_prog = install && |
| 6699 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6700 | # program-specific install script used by HP pwplus--don't use. |
| 6701 | : |
| 6702 | else |
| 6703 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6704 | break 3 |
| 6705 | fi |
| 6706 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6707 | done |
| 6708 | done |
| 6709 | ;; |
| 6710 | esac |
| 6711 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6712 | IFS=$as_save_IFS |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6713 | |
| 6714 | |
| 6715 | fi |
| 6716 | if test "${ac_cv_path_install+set}" = set; then |
| 6717 | INSTALL=$ac_cv_path_install |
| 6718 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6719 | # As a last resort, use the slow shell script. Don't cache a |
| 6720 | # value for INSTALL within a source directory, because that will |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6721 | # break other packages using the cache if that directory is |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6722 | # removed, or if the value is a relative name. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6723 | INSTALL=$ac_install_sh |
| 6724 | fi |
| 6725 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6726 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 6727 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6728 | |
| 6729 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6730 | # It thinks the first close brace ends the variable substitution. |
| 6731 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6732 | |
| 6733 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6734 | |
| 6735 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6736 | |
| 6737 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 6738 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6739 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 6740 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6741 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6742 | for ac_prog in lclint lint |
| 6743 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6744 | # 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] | 6745 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6746 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6748 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 6749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6750 | else |
| 6751 | if test -n "$LINT"; then |
| 6752 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 6753 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6755 | for as_dir in $PATH |
| 6756 | do |
| 6757 | IFS=$as_save_IFS |
| 6758 | test -z "$as_dir" && as_dir=. |
| 6759 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6760 | 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] | 6761 | ac_cv_prog_LINT="$ac_prog" |
| 6762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6763 | break 2 |
| 6764 | fi |
| 6765 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6766 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6767 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6768 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6769 | fi |
| 6770 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6771 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6772 | if test -n "$LINT"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6773 | { echo "$as_me:$LINENO: result: $LINT" >&5 |
| 6774 | echo "${ECHO_T}$LINT" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6775 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6776 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6777 | echo "${ECHO_T}no" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6778 | fi |
| 6779 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6780 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6781 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6782 | done |
| 6783 | |
| 6784 | if test "$LINT" = "lint" |
| 6785 | then |
| 6786 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 6787 | fi |
| 6788 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6789 | |
| 6790 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6791 | for ac_prog in fontforge |
| 6792 | do |
| 6793 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6794 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6795 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6796 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6797 | if test "${ac_cv_prog_FONTFORGE+set}" = set; then |
| 6798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6799 | else |
| 6800 | if test -n "$FONTFORGE"; then |
| 6801 | ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test. |
| 6802 | else |
| 6803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6804 | for as_dir in $PATH |
| 6805 | do |
| 6806 | IFS=$as_save_IFS |
| 6807 | test -z "$as_dir" && as_dir=. |
| 6808 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6809 | 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] | 6810 | ac_cv_prog_FONTFORGE="$ac_prog" |
| 6811 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6812 | break 2 |
| 6813 | fi |
| 6814 | done |
| 6815 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6816 | IFS=$as_save_IFS |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6817 | |
| 6818 | fi |
| 6819 | fi |
| 6820 | FONTFORGE=$ac_cv_prog_FONTFORGE |
| 6821 | if test -n "$FONTFORGE"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6822 | { echo "$as_me:$LINENO: result: $FONTFORGE" >&5 |
| 6823 | echo "${ECHO_T}$FONTFORGE" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6824 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6825 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6826 | echo "${ECHO_T}no" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6827 | fi |
| 6828 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6829 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6830 | test -n "$FONTFORGE" && break |
| 6831 | done |
| 6832 | test -n "$FONTFORGE" || FONTFORGE="false" |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 6833 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6834 | for ac_prog in pkg-config |
| 6835 | do |
| 6836 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6837 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6838 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6840 | if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then |
| 6841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6842 | else |
| 6843 | if test -n "$PKG_CONFIG"; then |
| 6844 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 6845 | else |
| 6846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6847 | for as_dir in $PATH |
| 6848 | do |
| 6849 | IFS=$as_save_IFS |
| 6850 | test -z "$as_dir" && as_dir=. |
| 6851 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6852 | 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] | 6853 | ac_cv_prog_PKG_CONFIG="$ac_prog" |
| 6854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6855 | break 2 |
| 6856 | fi |
| 6857 | done |
| 6858 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6859 | IFS=$as_save_IFS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6860 | |
| 6861 | fi |
| 6862 | fi |
| 6863 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 6864 | if test -n "$PKG_CONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6865 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 6866 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6867 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6868 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6869 | echo "${ECHO_T}no" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6870 | fi |
| 6871 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6872 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6873 | test -n "$PKG_CONFIG" && break |
| 6874 | done |
| 6875 | test -n "$PKG_CONFIG" || PKG_CONFIG="false" |
| 6876 | |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 6877 | |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6878 | case $host_cpu in |
| 6879 | *i[3456789]86*) |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6880 | # Extract the first word of "prelink", so it can be a program name with args. |
| 6881 | set dummy prelink; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6882 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6884 | if test "${ac_cv_path_PRELINK+set}" = set; then |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6886 | else |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6887 | case $PRELINK in |
| 6888 | [\\/]* | ?:[\\/]*) |
| 6889 | ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path. |
| 6890 | ;; |
| 6891 | *) |
| 6892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6893 | for as_dir in /sbin /usr/sbin $PATH |
| 6894 | do |
| 6895 | IFS=$as_save_IFS |
| 6896 | test -z "$as_dir" && as_dir=. |
| 6897 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6899 | ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6900 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6901 | break 2 |
| 6902 | fi |
| 6903 | done |
| 6904 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6905 | IFS=$as_save_IFS |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6906 | |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6907 | test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false" |
| 6908 | ;; |
| 6909 | esac |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6910 | fi |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6911 | PRELINK=$ac_cv_path_PRELINK |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6912 | if test -n "$PRELINK"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6913 | { echo "$as_me:$LINENO: result: $PRELINK" >&5 |
| 6914 | echo "${ECHO_T}$PRELINK" >&6; } |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6915 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6916 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6917 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6918 | fi |
| 6919 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6920 | |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6921 | ;; |
| 6922 | esac |
| 6923 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6924 | |
| 6925 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6926 | { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
| 6927 | 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] | 6928 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 6929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6930 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6931 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6932 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6933 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6934 | /* confdefs.h. */ |
| 6935 | _ACEOF |
| 6936 | cat confdefs.h >>conftest.$ac_ext |
| 6937 | cat >>conftest.$ac_ext <<_ACEOF |
| 6938 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6939 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6940 | /* Override any GCC internal prototype to avoid an error. |
| 6941 | Use char because int might match the return type of a GCC |
| 6942 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6943 | #ifdef __cplusplus |
| 6944 | extern "C" |
| 6945 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6946 | char i386_set_ldt (); |
| 6947 | int |
| 6948 | main () |
| 6949 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6950 | return i386_set_ldt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6951 | ; |
| 6952 | return 0; |
| 6953 | } |
| 6954 | _ACEOF |
| 6955 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6956 | if { (ac_try="$ac_link" |
| 6957 | case "(($ac_try" in |
| 6958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6959 | *) ac_try_echo=$ac_try;; |
| 6960 | esac |
| 6961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6962 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6963 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6965 | rm -f conftest.er1 |
| 6966 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6968 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6970 | { (case "(($ac_try" in |
| 6971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6972 | *) ac_try_echo=$ac_try;; |
| 6973 | esac |
| 6974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6975 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6976 | ac_status=$? |
| 6977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6978 | (exit $ac_status); }; } && |
| 6979 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6980 | { (case "(($ac_try" in |
| 6981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6982 | *) ac_try_echo=$ac_try;; |
| 6983 | esac |
| 6984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6985 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6986 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6988 | (exit $ac_status); }; }; then |
| 6989 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6990 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6991 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6993 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6994 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6995 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6996 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6997 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6998 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6999 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 7000 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7001 | { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5 |
| 7002 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7003 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7004 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7005 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7006 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 7007 | |
| 7008 | LIBS="-li386 $LIBS" |
| 7009 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 7010 | fi |
| 7011 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7012 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7013 | { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
| 7014 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7015 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 7016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7017 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7018 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7019 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7020 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7021 | /* confdefs.h. */ |
| 7022 | _ACEOF |
| 7023 | cat confdefs.h >>conftest.$ac_ext |
| 7024 | cat >>conftest.$ac_ext <<_ACEOF |
| 7025 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7026 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7027 | /* Override any GCC internal prototype to avoid an error. |
| 7028 | Use char because int might match the return type of a GCC |
| 7029 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7030 | #ifdef __cplusplus |
| 7031 | extern "C" |
| 7032 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7033 | char _oss_ioctl (); |
| 7034 | int |
| 7035 | main () |
| 7036 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7037 | return _oss_ioctl (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7038 | ; |
| 7039 | return 0; |
| 7040 | } |
| 7041 | _ACEOF |
| 7042 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7043 | if { (ac_try="$ac_link" |
| 7044 | case "(($ac_try" in |
| 7045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7046 | *) ac_try_echo=$ac_try;; |
| 7047 | esac |
| 7048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7049 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7050 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7052 | rm -f conftest.er1 |
| 7053 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7055 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7056 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7057 | { (case "(($ac_try" in |
| 7058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7059 | *) ac_try_echo=$ac_try;; |
| 7060 | esac |
| 7061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7062 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7063 | ac_status=$? |
| 7064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7065 | (exit $ac_status); }; } && |
| 7066 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7067 | { (case "(($ac_try" in |
| 7068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7069 | *) ac_try_echo=$ac_try;; |
| 7070 | esac |
| 7071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7072 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7073 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7075 | (exit $ac_status); }; }; then |
| 7076 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7077 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7078 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7080 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7081 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7082 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7083 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7084 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7085 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7086 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7087 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7088 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
| 7089 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7090 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7091 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7092 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7093 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7094 | |
| 7095 | LIBS="-lossaudio $LIBS" |
| 7096 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7097 | fi |
| 7098 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7099 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7100 | { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 7101 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7102 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 7103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7104 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7105 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7106 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7107 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7108 | /* confdefs.h. */ |
| 7109 | _ACEOF |
| 7110 | cat confdefs.h >>conftest.$ac_ext |
| 7111 | cat >>conftest.$ac_ext <<_ACEOF |
| 7112 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7113 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7114 | /* Override any GCC internal prototype to avoid an error. |
| 7115 | Use char because int might match the return type of a GCC |
| 7116 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7117 | #ifdef __cplusplus |
| 7118 | extern "C" |
| 7119 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7120 | char _xpg4_setrunelocale (); |
| 7121 | int |
| 7122 | main () |
| 7123 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7124 | return _xpg4_setrunelocale (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7125 | ; |
| 7126 | return 0; |
| 7127 | } |
| 7128 | _ACEOF |
| 7129 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7130 | if { (ac_try="$ac_link" |
| 7131 | case "(($ac_try" in |
| 7132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7133 | *) ac_try_echo=$ac_try;; |
| 7134 | esac |
| 7135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7136 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7137 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7139 | rm -f conftest.er1 |
| 7140 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7142 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7144 | { (case "(($ac_try" in |
| 7145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7146 | *) ac_try_echo=$ac_try;; |
| 7147 | esac |
| 7148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7149 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7150 | ac_status=$? |
| 7151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7152 | (exit $ac_status); }; } && |
| 7153 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7154 | { (case "(($ac_try" in |
| 7155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7156 | *) ac_try_echo=$ac_try;; |
| 7157 | esac |
| 7158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7159 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7160 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7162 | (exit $ac_status); }; }; then |
| 7163 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7164 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7165 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7167 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7168 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7169 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7170 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7171 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7172 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7173 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7174 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7175 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 7176 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7177 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7178 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7179 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7180 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7181 | |
| 7182 | LIBS="-lxpg4 $LIBS" |
| 7183 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7184 | fi |
| 7185 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7186 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 7187 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7188 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7190 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7191 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7192 | LIBS="-lpthread $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7193 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7194 | /* confdefs.h. */ |
| 7195 | _ACEOF |
| 7196 | cat confdefs.h >>conftest.$ac_ext |
| 7197 | cat >>conftest.$ac_ext <<_ACEOF |
| 7198 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7199 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7200 | /* Override any GCC internal prototype to avoid an error. |
| 7201 | Use char because int might match the return type of a GCC |
| 7202 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7203 | #ifdef __cplusplus |
| 7204 | extern "C" |
| 7205 | #endif |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7206 | char pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7207 | int |
| 7208 | main () |
| 7209 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7210 | return pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7211 | ; |
| 7212 | return 0; |
| 7213 | } |
| 7214 | _ACEOF |
| 7215 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7216 | if { (ac_try="$ac_link" |
| 7217 | case "(($ac_try" in |
| 7218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7219 | *) ac_try_echo=$ac_try;; |
| 7220 | esac |
| 7221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7222 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7223 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7225 | rm -f conftest.er1 |
| 7226 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7228 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7229 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7230 | { (case "(($ac_try" in |
| 7231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7232 | *) ac_try_echo=$ac_try;; |
| 7233 | esac |
| 7234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7235 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7236 | ac_status=$? |
| 7237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7238 | (exit $ac_status); }; } && |
| 7239 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7240 | { (case "(($ac_try" in |
| 7241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7242 | *) ac_try_echo=$ac_try;; |
| 7243 | esac |
| 7244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7245 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7246 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7248 | (exit $ac_status); }; }; then |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7249 | ac_cv_lib_pthread_pthread_create=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7250 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7251 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7253 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7254 | ac_cv_lib_pthread_pthread_create=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7255 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7256 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7257 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7258 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7259 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7260 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7261 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 7262 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7263 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
| 7264 | LIBPTHREAD="-lpthread" |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7265 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7266 | fi |
| 7267 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7268 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 7269 | XLIB="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 7270 | |
| 7271 | XFILES="" |
| 7272 | |
| 7273 | OPENGLFILES="" |
| 7274 | |
| 7275 | GLU32FILES="" |
| 7276 | |
| 7277 | OPENGL_LIBS="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 7278 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7279 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 7280 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7281 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 7282 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7283 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 7285 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7286 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7287 | /* confdefs.h. */ |
| 7288 | _ACEOF |
| 7289 | cat confdefs.h >>conftest.$ac_ext |
| 7290 | cat >>conftest.$ac_ext <<_ACEOF |
| 7291 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7292 | #include <stdlib.h> |
| 7293 | #include <stdarg.h> |
| 7294 | #include <string.h> |
| 7295 | #include <float.h> |
| 7296 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7297 | int |
| 7298 | main () |
| 7299 | { |
| 7300 | |
| 7301 | ; |
| 7302 | return 0; |
| 7303 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7304 | _ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7305 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7306 | if { (ac_try="$ac_compile" |
| 7307 | case "(($ac_try" in |
| 7308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7309 | *) ac_try_echo=$ac_try;; |
| 7310 | esac |
| 7311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7312 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7313 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7315 | rm -f conftest.er1 |
| 7316 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7318 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7320 | { (case "(($ac_try" in |
| 7321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7322 | *) ac_try_echo=$ac_try;; |
| 7323 | esac |
| 7324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7325 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7326 | ac_status=$? |
| 7327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7328 | (exit $ac_status); }; } && |
| 7329 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7330 | { (case "(($ac_try" in |
| 7331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7332 | *) ac_try_echo=$ac_try;; |
| 7333 | esac |
| 7334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7335 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7336 | ac_status=$? |
| 7337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7338 | (exit $ac_status); }; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7339 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7340 | else |
| 7341 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7343 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7344 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 7345 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7346 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7348 | |
| 7349 | if test $ac_cv_header_stdc = yes; then |
| 7350 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7351 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7352 | /* confdefs.h. */ |
| 7353 | _ACEOF |
| 7354 | cat confdefs.h >>conftest.$ac_ext |
| 7355 | cat >>conftest.$ac_ext <<_ACEOF |
| 7356 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7357 | #include <string.h> |
| 7358 | |
| 7359 | _ACEOF |
| 7360 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7361 | $EGREP "memchr" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7362 | : |
| 7363 | else |
| 7364 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 7365 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7366 | rm -f conftest* |
| 7367 | |
| 7368 | fi |
| 7369 | |
| 7370 | if test $ac_cv_header_stdc = yes; then |
| 7371 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7372 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7373 | /* confdefs.h. */ |
| 7374 | _ACEOF |
| 7375 | cat confdefs.h >>conftest.$ac_ext |
| 7376 | cat >>conftest.$ac_ext <<_ACEOF |
| 7377 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7378 | #include <stdlib.h> |
| 7379 | |
| 7380 | _ACEOF |
| 7381 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7382 | $EGREP "free" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7383 | : |
| 7384 | else |
| 7385 | ac_cv_header_stdc=no |
| 7386 | fi |
| 7387 | rm -f conftest* |
| 7388 | |
| 7389 | fi |
| 7390 | |
| 7391 | if test $ac_cv_header_stdc = yes; then |
| 7392 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7393 | if test "$cross_compiling" = yes; then |
| 7394 | : |
| 7395 | else |
| 7396 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7397 | /* confdefs.h. */ |
| 7398 | _ACEOF |
| 7399 | cat confdefs.h >>conftest.$ac_ext |
| 7400 | cat >>conftest.$ac_ext <<_ACEOF |
| 7401 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7402 | #include <ctype.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7403 | #include <stdlib.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7404 | #if ((' ' & 0x0FF) == 0x020) |
| 7405 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7406 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7407 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7408 | # define ISLOWER(c) \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7409 | (('a' <= (c) && (c) <= 'i') \ |
| 7410 | || ('j' <= (c) && (c) <= 'r') \ |
| 7411 | || ('s' <= (c) && (c) <= 'z')) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7412 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7413 | #endif |
| 7414 | |
| 7415 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7416 | int |
| 7417 | main () |
| 7418 | { |
| 7419 | int i; |
| 7420 | for (i = 0; i < 256; i++) |
| 7421 | if (XOR (islower (i), ISLOWER (i)) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7422 | || toupper (i) != TOUPPER (i)) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7423 | return 2; |
| 7424 | return 0; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7425 | } |
| 7426 | _ACEOF |
| 7427 | rm -f conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7428 | if { (ac_try="$ac_link" |
| 7429 | case "(($ac_try" in |
| 7430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7431 | *) ac_try_echo=$ac_try;; |
| 7432 | esac |
| 7433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7434 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7435 | ac_status=$? |
| 7436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7437 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7438 | { (case "(($ac_try" in |
| 7439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7440 | *) ac_try_echo=$ac_try;; |
| 7441 | esac |
| 7442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7443 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7444 | ac_status=$? |
| 7445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7446 | (exit $ac_status); }; }; then |
| 7447 | : |
| 7448 | else |
| 7449 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7450 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7452 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7453 | ( exit $ac_status ) |
| 7454 | ac_cv_header_stdc=no |
| 7455 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7456 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7457 | fi |
| 7458 | |
| 7459 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7460 | fi |
| 7461 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7462 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7463 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7464 | if test $ac_cv_header_stdc = yes; then |
| 7465 | |
| 7466 | cat >>confdefs.h <<\_ACEOF |
| 7467 | #define STDC_HEADERS 1 |
| 7468 | _ACEOF |
| 7469 | |
| 7470 | fi |
| 7471 | |
| 7472 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7473 | |
| 7474 | |
| 7475 | |
| 7476 | |
| 7477 | |
| 7478 | |
| 7479 | |
| 7480 | |
| 7481 | |
| 7482 | 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] | 7483 | inttypes.h stdint.h unistd.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7484 | do |
| 7485 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7486 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7487 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7488 | 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] | 7489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7490 | else |
| 7491 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7492 | /* confdefs.h. */ |
| 7493 | _ACEOF |
| 7494 | cat confdefs.h >>conftest.$ac_ext |
| 7495 | cat >>conftest.$ac_ext <<_ACEOF |
| 7496 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7497 | $ac_includes_default |
| 7498 | |
| 7499 | #include <$ac_header> |
| 7500 | _ACEOF |
| 7501 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7502 | if { (ac_try="$ac_compile" |
| 7503 | case "(($ac_try" in |
| 7504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7505 | *) ac_try_echo=$ac_try;; |
| 7506 | esac |
| 7507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7508 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7509 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7511 | rm -f conftest.er1 |
| 7512 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7514 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7516 | { (case "(($ac_try" in |
| 7517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7518 | *) ac_try_echo=$ac_try;; |
| 7519 | esac |
| 7520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7521 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7522 | ac_status=$? |
| 7523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7524 | (exit $ac_status); }; } && |
| 7525 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7526 | { (case "(($ac_try" in |
| 7527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7528 | *) ac_try_echo=$ac_try;; |
| 7529 | esac |
| 7530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7531 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7532 | ac_status=$? |
| 7533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7534 | (exit $ac_status); }; }; then |
| 7535 | eval "$as_ac_Header=yes" |
| 7536 | else |
| 7537 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7539 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7540 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7541 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7542 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7544 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7545 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7546 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7547 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7548 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7549 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7550 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7551 | _ACEOF |
| 7552 | |
| 7553 | fi |
| 7554 | |
| 7555 | done |
| 7556 | |
| 7557 | |
| 7558 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7559 | |
| 7560 | |
| 7561 | |
| 7562 | |
| 7563 | |
| 7564 | |
| 7565 | |
| 7566 | |
| 7567 | |
| 7568 | |
| 7569 | |
| 7570 | |
| 7571 | |
| 7572 | |
| 7573 | |
| 7574 | |
| 7575 | |
| 7576 | |
| 7577 | |
| 7578 | |
| 7579 | |
| 7580 | |
| 7581 | |
| 7582 | |
| 7583 | |
| 7584 | |
| 7585 | |
| 7586 | |
| 7587 | |
| 7588 | |
| 7589 | |
| 7590 | |
| 7591 | |
| 7592 | |
| 7593 | |
| 7594 | |
| 7595 | |
| 7596 | |
| 7597 | |
| 7598 | |
| 7599 | |
| 7600 | |
| 7601 | |
| 7602 | |
| 7603 | |
| 7604 | |
| 7605 | |
| 7606 | |
| 7607 | |
| 7608 | |
| 7609 | |
| 7610 | |
| 7611 | |
| 7612 | |
| 7613 | |
| 7614 | |
| 7615 | |
| 7616 | |
| 7617 | |
| 7618 | |
| 7619 | |
| 7620 | |
| 7621 | |
| 7622 | |
| 7623 | |
| 7624 | |
| 7625 | |
| 7626 | |
| 7627 | |
| 7628 | |
| 7629 | |
| 7630 | |
| 7631 | |
| 7632 | |
| 7633 | |
| 7634 | |
| 7635 | |
| 7636 | |
| 7637 | |
| 7638 | |
| 7639 | |
| 7640 | |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 7641 | |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 7642 | |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 7643 | |
| 7644 | |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 7645 | |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 7646 | |
| 7647 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7648 | |
| 7649 | |
| 7650 | |
| 7651 | |
| 7652 | |
| 7653 | |
| 7654 | |
| 7655 | |
| 7656 | |
| 7657 | |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 7658 | |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 7659 | |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 7660 | |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 7661 | |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 7662 | |
| 7663 | |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 7664 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7665 | for ac_header in \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 7666 | AudioUnit/AudioUnit.h \ |
| 7667 | CoreAudio/CoreAudio.h \ |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 7668 | IOKit/IOKitLib.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7669 | alsa/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7670 | arpa/inet.h \ |
| 7671 | arpa/nameser.h \ |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 7672 | asm/types.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7673 | capi20.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7674 | cups/cups.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7675 | curses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7676 | direct.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7677 | dlfcn.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7678 | elf.h \ |
| 7679 | float.h \ |
| 7680 | fontconfig/fontconfig.h \ |
| 7681 | getopt.h \ |
| 7682 | gif_lib.h \ |
| 7683 | ieeefp.h \ |
| 7684 | io.h \ |
| 7685 | jack/jack.h \ |
| 7686 | jpeglib.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 7687 | lber.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7688 | lcms.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7689 | lcms/lcms.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 7690 | ldap.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7691 | libaudioio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7692 | link.h \ |
| 7693 | linux/cdrom.h \ |
| 7694 | linux/compiler.h \ |
| 7695 | linux/hdreg.h \ |
| 7696 | linux/input.h \ |
| 7697 | linux/ioctl.h \ |
| 7698 | linux/joystick.h \ |
| 7699 | linux/major.h \ |
| 7700 | linux/param.h \ |
| 7701 | linux/serial.h \ |
| 7702 | linux/ucdrom.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 7703 | mach/machine.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7704 | machine/cpu.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 7705 | machine/limits.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7706 | machine/soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7707 | mntent.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7708 | ncurses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7709 | netdb.h \ |
| 7710 | netinet/in.h \ |
| 7711 | netinet/in_systm.h \ |
| 7712 | netinet/tcp.h \ |
| 7713 | netinet/tcp_fsm.h \ |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 7714 | openssl/err.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7715 | openssl/ssl.h \ |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 7716 | poll.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7717 | process.h \ |
| 7718 | pthread.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7719 | pwd.h \ |
| 7720 | regex.h \ |
| 7721 | sched.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7722 | scsi/scsi.h \ |
| 7723 | scsi/scsi_ioctl.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7724 | scsi/sg.h \ |
| 7725 | soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7726 | stdint.h \ |
| 7727 | strings.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7728 | sys/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7729 | sys/cdio.h \ |
| 7730 | sys/elf32.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7731 | sys/epoll.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7732 | sys/errno.h \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 7733 | sys/event.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7734 | sys/exec_elf.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7735 | sys/filio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7736 | sys/ioctl.h \ |
| 7737 | sys/ipc.h \ |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 7738 | sys/limits.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7739 | sys/link.h \ |
| 7740 | sys/lwp.h \ |
| 7741 | sys/mman.h \ |
| 7742 | sys/modem.h \ |
| 7743 | sys/msg.h \ |
Hans Leidekker | 0844b70 | 2006-01-26 13:23:08 +0100 | [diff] [blame] | 7744 | sys/mtio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7745 | sys/param.h \ |
| 7746 | sys/poll.h \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 7747 | sys/prctl.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7748 | sys/ptrace.h \ |
| 7749 | sys/reg.h \ |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 7750 | sys/resource.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7751 | sys/scsiio.h \ |
| 7752 | sys/shm.h \ |
| 7753 | sys/signal.h \ |
| 7754 | sys/socket.h \ |
| 7755 | sys/sockio.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7756 | sys/soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7757 | sys/statvfs.h \ |
| 7758 | sys/strtio.h \ |
| 7759 | sys/syscall.h \ |
| 7760 | sys/sysctl.h \ |
| 7761 | sys/time.h \ |
| 7762 | sys/times.h \ |
| 7763 | sys/uio.h \ |
| 7764 | sys/un.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7765 | sys/vm86.h \ |
| 7766 | sys/wait.h \ |
| 7767 | syscall.h \ |
| 7768 | termios.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7769 | unicode/ubidi.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7770 | unistd.h \ |
| 7771 | utime.h \ |
| 7772 | valgrind/memcheck.h |
| 7773 | |
| 7774 | do |
| 7775 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7776 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7777 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7778 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7779 | 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] | 7780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7781 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7782 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7783 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7784 | echo "${ECHO_T}$ac_res" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7785 | else |
| 7786 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7787 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7788 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7789 | cat >conftest.$ac_ext <<_ACEOF |
| 7790 | /* confdefs.h. */ |
| 7791 | _ACEOF |
| 7792 | cat confdefs.h >>conftest.$ac_ext |
| 7793 | cat >>conftest.$ac_ext <<_ACEOF |
| 7794 | /* end confdefs.h. */ |
| 7795 | $ac_includes_default |
| 7796 | #include <$ac_header> |
| 7797 | _ACEOF |
| 7798 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7799 | if { (ac_try="$ac_compile" |
| 7800 | case "(($ac_try" in |
| 7801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7802 | *) ac_try_echo=$ac_try;; |
| 7803 | esac |
| 7804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7805 | (eval "$ac_compile") 2>conftest.er1 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7806 | ac_status=$? |
| 7807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7808 | rm -f conftest.er1 |
| 7809 | cat conftest.err >&5 |
| 7810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7811 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7813 | { (case "(($ac_try" in |
| 7814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7815 | *) ac_try_echo=$ac_try;; |
| 7816 | esac |
| 7817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7818 | (eval "$ac_try") 2>&5 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7819 | ac_status=$? |
| 7820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7821 | (exit $ac_status); }; } && |
| 7822 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7823 | { (case "(($ac_try" in |
| 7824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7825 | *) ac_try_echo=$ac_try;; |
| 7826 | esac |
| 7827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7828 | (eval "$ac_try") 2>&5 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7829 | ac_status=$? |
| 7830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7831 | (exit $ac_status); }; }; then |
| 7832 | ac_header_compiler=yes |
| 7833 | else |
| 7834 | echo "$as_me: failed program was:" >&5 |
| 7835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7836 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7837 | ac_header_compiler=no |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7838 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7839 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7841 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7842 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7843 | |
| 7844 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7845 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7846 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7847 | cat >conftest.$ac_ext <<_ACEOF |
| 7848 | /* confdefs.h. */ |
| 7849 | _ACEOF |
| 7850 | cat confdefs.h >>conftest.$ac_ext |
| 7851 | cat >>conftest.$ac_ext <<_ACEOF |
| 7852 | /* end confdefs.h. */ |
| 7853 | #include <$ac_header> |
| 7854 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7855 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7856 | case "(($ac_try" in |
| 7857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7858 | *) ac_try_echo=$ac_try;; |
| 7859 | esac |
| 7860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7861 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7862 | ac_status=$? |
| 7863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7864 | rm -f conftest.er1 |
| 7865 | cat conftest.err >&5 |
| 7866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7867 | (exit $ac_status); } >/dev/null; then |
| 7868 | if test -s conftest.err; then |
| 7869 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7870 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7871 | else |
| 7872 | ac_cpp_err= |
| 7873 | fi |
| 7874 | else |
| 7875 | ac_cpp_err=yes |
| 7876 | fi |
| 7877 | if test -z "$ac_cpp_err"; then |
| 7878 | ac_header_preproc=yes |
| 7879 | else |
| 7880 | echo "$as_me: failed program was:" >&5 |
| 7881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7882 | |
| 7883 | ac_header_preproc=no |
| 7884 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7885 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7886 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7887 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7888 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7889 | |
| 7890 | # So? What about this header? |
| 7891 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7892 | yes:no: ) |
| 7893 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7894 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7896 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7897 | ac_header_preproc=yes |
| 7898 | ;; |
| 7899 | no:yes:* ) |
| 7900 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7901 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7902 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7903 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7904 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7905 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7906 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7907 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7909 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7910 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7911 | 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] | 7912 | ( cat <<\_ASBOX |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7913 | ## ------------------------------------ ## |
| 7914 | ## Report this to wine-devel@winehq.org ## |
| 7915 | ## ------------------------------------ ## |
| 7916 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7917 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7918 | ;; |
| 7919 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7920 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7921 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7922 | 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] | 7923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7924 | else |
| 7925 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7926 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7927 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7928 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7929 | echo "${ECHO_T}$ac_res" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7930 | |
| 7931 | fi |
| 7932 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7933 | cat >>confdefs.h <<_ACEOF |
| 7934 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7935 | _ACEOF |
| 7936 | |
| 7937 | fi |
| 7938 | |
| 7939 | done |
| 7940 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7941 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 7942 | 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] | 7943 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 7944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7945 | else |
| 7946 | cat >conftest.$ac_ext <<_ACEOF |
| 7947 | /* confdefs.h. */ |
| 7948 | _ACEOF |
| 7949 | cat confdefs.h >>conftest.$ac_ext |
| 7950 | cat >>conftest.$ac_ext <<_ACEOF |
| 7951 | /* end confdefs.h. */ |
| 7952 | #include <sys/types.h> |
| 7953 | #include <sys/stat.h> |
| 7954 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7955 | #if defined S_ISBLK && defined S_IFDIR |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7956 | # if S_ISBLK (S_IFDIR) |
| 7957 | You lose. |
| 7958 | # endif |
| 7959 | #endif |
| 7960 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7961 | #if defined S_ISBLK && defined S_IFCHR |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7962 | # if S_ISBLK (S_IFCHR) |
| 7963 | You lose. |
| 7964 | # endif |
| 7965 | #endif |
| 7966 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7967 | #if defined S_ISLNK && defined S_IFREG |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7968 | # if S_ISLNK (S_IFREG) |
| 7969 | You lose. |
| 7970 | # endif |
| 7971 | #endif |
| 7972 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7973 | #if defined S_ISSOCK && defined S_IFREG |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7974 | # if S_ISSOCK (S_IFREG) |
| 7975 | You lose. |
| 7976 | # endif |
| 7977 | #endif |
| 7978 | |
| 7979 | _ACEOF |
| 7980 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7981 | $EGREP "You lose" >/dev/null 2>&1; then |
| 7982 | ac_cv_header_stat_broken=yes |
| 7983 | else |
| 7984 | ac_cv_header_stat_broken=no |
| 7985 | fi |
| 7986 | rm -f conftest* |
| 7987 | |
| 7988 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7989 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 7990 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7991 | if test $ac_cv_header_stat_broken = yes; then |
| 7992 | |
| 7993 | cat >>confdefs.h <<\_ACEOF |
| 7994 | #define STAT_MACROS_BROKEN 1 |
| 7995 | _ACEOF |
| 7996 | |
| 7997 | fi |
| 7998 | |
| 7999 | |
| 8000 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8001 | |
| 8002 | |
| 8003 | |
| 8004 | |
| 8005 | for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h |
| 8006 | do |
| 8007 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8008 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8009 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8010 | 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] | 8011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8012 | else |
| 8013 | cat >conftest.$ac_ext <<_ACEOF |
| 8014 | /* confdefs.h. */ |
| 8015 | _ACEOF |
| 8016 | cat confdefs.h >>conftest.$ac_ext |
| 8017 | cat >>conftest.$ac_ext <<_ACEOF |
| 8018 | /* end confdefs.h. */ |
| 8019 | #include <sys/types.h> |
| 8020 | #if HAVE_SYS_PARAM_H |
| 8021 | # include <sys/param.h> |
| 8022 | #endif |
| 8023 | |
| 8024 | #include <$ac_header> |
| 8025 | _ACEOF |
| 8026 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8027 | if { (ac_try="$ac_compile" |
| 8028 | case "(($ac_try" in |
| 8029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8030 | *) ac_try_echo=$ac_try;; |
| 8031 | esac |
| 8032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8033 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8034 | ac_status=$? |
| 8035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8036 | rm -f conftest.er1 |
| 8037 | cat conftest.err >&5 |
| 8038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8039 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8041 | { (case "(($ac_try" in |
| 8042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8043 | *) ac_try_echo=$ac_try;; |
| 8044 | esac |
| 8045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8046 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8047 | ac_status=$? |
| 8048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8049 | (exit $ac_status); }; } && |
| 8050 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8051 | { (case "(($ac_try" in |
| 8052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8053 | *) ac_try_echo=$ac_try;; |
| 8054 | esac |
| 8055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8056 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8057 | ac_status=$? |
| 8058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8059 | (exit $ac_status); }; }; then |
| 8060 | eval "$as_ac_Header=yes" |
| 8061 | else |
| 8062 | echo "$as_me: failed program was:" >&5 |
| 8063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8064 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8065 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8066 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8067 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8069 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8070 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8071 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8072 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8073 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8074 | cat >>confdefs.h <<_ACEOF |
| 8075 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8076 | _ACEOF |
| 8077 | |
| 8078 | fi |
| 8079 | |
| 8080 | done |
| 8081 | |
| 8082 | |
| 8083 | |
| 8084 | |
| 8085 | |
| 8086 | |
| 8087 | |
| 8088 | |
| 8089 | 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 |
| 8090 | do |
| 8091 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8092 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8093 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8094 | 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] | 8095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8096 | else |
| 8097 | cat >conftest.$ac_ext <<_ACEOF |
| 8098 | /* confdefs.h. */ |
| 8099 | _ACEOF |
| 8100 | cat confdefs.h >>conftest.$ac_ext |
| 8101 | cat >>conftest.$ac_ext <<_ACEOF |
| 8102 | /* end confdefs.h. */ |
| 8103 | #include <sys/types.h> |
| 8104 | #if HAVE_SYS_SOCKET_H |
| 8105 | # include <sys/socket.h> |
| 8106 | #endif |
| 8107 | |
| 8108 | #include <$ac_header> |
| 8109 | _ACEOF |
| 8110 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8111 | if { (ac_try="$ac_compile" |
| 8112 | case "(($ac_try" in |
| 8113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8114 | *) ac_try_echo=$ac_try;; |
| 8115 | esac |
| 8116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8117 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8118 | ac_status=$? |
| 8119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8120 | rm -f conftest.er1 |
| 8121 | cat conftest.err >&5 |
| 8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8123 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8125 | { (case "(($ac_try" in |
| 8126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8127 | *) ac_try_echo=$ac_try;; |
| 8128 | esac |
| 8129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8130 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8131 | ac_status=$? |
| 8132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8133 | (exit $ac_status); }; } && |
| 8134 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8135 | { (case "(($ac_try" in |
| 8136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8137 | *) ac_try_echo=$ac_try;; |
| 8138 | esac |
| 8139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8140 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8141 | ac_status=$? |
| 8142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8143 | (exit $ac_status); }; }; then |
| 8144 | eval "$as_ac_Header=yes" |
| 8145 | else |
| 8146 | echo "$as_me: failed program was:" >&5 |
| 8147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8148 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8149 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8150 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8151 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8153 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8154 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8155 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8156 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8157 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8158 | cat >>confdefs.h <<_ACEOF |
| 8159 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8160 | _ACEOF |
| 8161 | |
| 8162 | fi |
| 8163 | |
| 8164 | done |
| 8165 | |
| 8166 | |
| 8167 | |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 8168 | for ac_header in linux/ipx.h |
| 8169 | do |
| 8170 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8171 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8173 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8175 | else |
| 8176 | cat >conftest.$ac_ext <<_ACEOF |
| 8177 | /* confdefs.h. */ |
| 8178 | _ACEOF |
| 8179 | cat confdefs.h >>conftest.$ac_ext |
| 8180 | cat >>conftest.$ac_ext <<_ACEOF |
| 8181 | /* end confdefs.h. */ |
| 8182 | #include <sys/types.h> |
| 8183 | #ifdef HAVE_ASM_TYPES_H |
| 8184 | # include <asm/types.h> |
| 8185 | #endif |
| 8186 | #if HAVE_SYS_SOCKET_H |
| 8187 | # include <sys/socket.h> |
| 8188 | #endif |
| 8189 | |
| 8190 | #include <$ac_header> |
| 8191 | _ACEOF |
| 8192 | rm -f conftest.$ac_objext |
| 8193 | if { (ac_try="$ac_compile" |
| 8194 | case "(($ac_try" in |
| 8195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8196 | *) ac_try_echo=$ac_try;; |
| 8197 | esac |
| 8198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8199 | (eval "$ac_compile") 2>conftest.er1 |
| 8200 | ac_status=$? |
| 8201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8202 | rm -f conftest.er1 |
| 8203 | cat conftest.err >&5 |
| 8204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8205 | (exit $ac_status); } && |
| 8206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8207 | { (case "(($ac_try" in |
| 8208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8209 | *) ac_try_echo=$ac_try;; |
| 8210 | esac |
| 8211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8212 | (eval "$ac_try") 2>&5 |
| 8213 | ac_status=$? |
| 8214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8215 | (exit $ac_status); }; } && |
| 8216 | { ac_try='test -s conftest.$ac_objext' |
| 8217 | { (case "(($ac_try" in |
| 8218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8219 | *) ac_try_echo=$ac_try;; |
| 8220 | esac |
| 8221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8222 | (eval "$ac_try") 2>&5 |
| 8223 | ac_status=$? |
| 8224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8225 | (exit $ac_status); }; }; then |
| 8226 | eval "$as_ac_Header=yes" |
| 8227 | else |
| 8228 | echo "$as_me: failed program was:" >&5 |
| 8229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8230 | |
| 8231 | eval "$as_ac_Header=no" |
| 8232 | fi |
| 8233 | |
| 8234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8235 | fi |
| 8236 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8237 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8238 | echo "${ECHO_T}$ac_res" >&6; } |
| 8239 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8240 | cat >>confdefs.h <<_ACEOF |
| 8241 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8242 | _ACEOF |
| 8243 | |
| 8244 | fi |
| 8245 | |
| 8246 | done |
| 8247 | |
| 8248 | |
| 8249 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8250 | for ac_header in resolv.h |
| 8251 | do |
| 8252 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8253 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8254 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8255 | 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] | 8256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8257 | else |
| 8258 | cat >conftest.$ac_ext <<_ACEOF |
| 8259 | /* confdefs.h. */ |
| 8260 | _ACEOF |
| 8261 | cat confdefs.h >>conftest.$ac_ext |
| 8262 | cat >>conftest.$ac_ext <<_ACEOF |
| 8263 | /* end confdefs.h. */ |
| 8264 | #include <sys/types.h> |
| 8265 | #if HAVE_SYS_SOCKET_H |
| 8266 | # include <sys/socket.h> |
| 8267 | #endif |
| 8268 | #if HAVE_NETINET_IN_H |
| 8269 | # include <netinet/in.h> |
| 8270 | #endif |
| 8271 | #if HAVE_ARPA_NAMESER_H |
| 8272 | # include <arpa/nameser.h> |
| 8273 | #endif |
| 8274 | |
| 8275 | #include <$ac_header> |
| 8276 | _ACEOF |
| 8277 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8278 | if { (ac_try="$ac_compile" |
| 8279 | case "(($ac_try" in |
| 8280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8281 | *) ac_try_echo=$ac_try;; |
| 8282 | esac |
| 8283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8284 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8285 | ac_status=$? |
| 8286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8287 | rm -f conftest.er1 |
| 8288 | cat conftest.err >&5 |
| 8289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8290 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8292 | { (case "(($ac_try" in |
| 8293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8294 | *) ac_try_echo=$ac_try;; |
| 8295 | esac |
| 8296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8297 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8298 | ac_status=$? |
| 8299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8300 | (exit $ac_status); }; } && |
| 8301 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8302 | { (case "(($ac_try" in |
| 8303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8304 | *) ac_try_echo=$ac_try;; |
| 8305 | esac |
| 8306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8307 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8308 | ac_status=$? |
| 8309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8310 | (exit $ac_status); }; }; then |
| 8311 | eval "$as_ac_Header=yes" |
| 8312 | else |
| 8313 | echo "$as_me: failed program was:" >&5 |
| 8314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8315 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8316 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8317 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8318 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8320 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8321 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8322 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8323 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8324 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8325 | cat >>confdefs.h <<_ACEOF |
| 8326 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8327 | _ACEOF |
| 8328 | |
| 8329 | fi |
| 8330 | |
| 8331 | done |
| 8332 | |
| 8333 | |
| 8334 | |
| 8335 | for ac_header in ucontext.h |
| 8336 | do |
| 8337 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8338 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8339 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8340 | 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] | 8341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8342 | else |
| 8343 | cat >conftest.$ac_ext <<_ACEOF |
| 8344 | /* confdefs.h. */ |
| 8345 | _ACEOF |
| 8346 | cat confdefs.h >>conftest.$ac_ext |
| 8347 | cat >>conftest.$ac_ext <<_ACEOF |
| 8348 | /* end confdefs.h. */ |
| 8349 | #include <signal.h> |
| 8350 | |
| 8351 | #include <$ac_header> |
| 8352 | _ACEOF |
| 8353 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8354 | if { (ac_try="$ac_compile" |
| 8355 | case "(($ac_try" in |
| 8356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8357 | *) ac_try_echo=$ac_try;; |
| 8358 | esac |
| 8359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8360 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8361 | ac_status=$? |
| 8362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8363 | rm -f conftest.er1 |
| 8364 | cat conftest.err >&5 |
| 8365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8366 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8367 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8368 | { (case "(($ac_try" in |
| 8369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8370 | *) ac_try_echo=$ac_try;; |
| 8371 | esac |
| 8372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8373 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8374 | ac_status=$? |
| 8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8376 | (exit $ac_status); }; } && |
| 8377 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8378 | { (case "(($ac_try" in |
| 8379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8380 | *) ac_try_echo=$ac_try;; |
| 8381 | esac |
| 8382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8383 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8384 | ac_status=$? |
| 8385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8386 | (exit $ac_status); }; }; then |
| 8387 | eval "$as_ac_Header=yes" |
| 8388 | else |
| 8389 | echo "$as_me: failed program was:" >&5 |
| 8390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8391 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8392 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8393 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8394 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8396 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8397 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8398 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8399 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8400 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8401 | cat >>confdefs.h <<_ACEOF |
| 8402 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8403 | _ACEOF |
| 8404 | |
| 8405 | fi |
| 8406 | |
| 8407 | done |
| 8408 | |
| 8409 | |
| 8410 | |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 8411 | for ac_header in pthread_np.h |
| 8412 | do |
| 8413 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8414 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8416 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8418 | else |
| 8419 | cat >conftest.$ac_ext <<_ACEOF |
| 8420 | /* confdefs.h. */ |
| 8421 | _ACEOF |
| 8422 | cat confdefs.h >>conftest.$ac_ext |
| 8423 | cat >>conftest.$ac_ext <<_ACEOF |
| 8424 | /* end confdefs.h. */ |
| 8425 | #ifdef HAVE_PTHREAD_H |
| 8426 | #include <pthread.h> |
| 8427 | #endif |
| 8428 | |
| 8429 | #include <$ac_header> |
| 8430 | _ACEOF |
| 8431 | rm -f conftest.$ac_objext |
| 8432 | if { (ac_try="$ac_compile" |
| 8433 | case "(($ac_try" in |
| 8434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8435 | *) ac_try_echo=$ac_try;; |
| 8436 | esac |
| 8437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8438 | (eval "$ac_compile") 2>conftest.er1 |
| 8439 | ac_status=$? |
| 8440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8441 | rm -f conftest.er1 |
| 8442 | cat conftest.err >&5 |
| 8443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8444 | (exit $ac_status); } && |
| 8445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8446 | { (case "(($ac_try" in |
| 8447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8448 | *) ac_try_echo=$ac_try;; |
| 8449 | esac |
| 8450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8451 | (eval "$ac_try") 2>&5 |
| 8452 | ac_status=$? |
| 8453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8454 | (exit $ac_status); }; } && |
| 8455 | { ac_try='test -s conftest.$ac_objext' |
| 8456 | { (case "(($ac_try" in |
| 8457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8458 | *) ac_try_echo=$ac_try;; |
| 8459 | esac |
| 8460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8461 | (eval "$ac_try") 2>&5 |
| 8462 | ac_status=$? |
| 8463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8464 | (exit $ac_status); }; }; then |
| 8465 | eval "$as_ac_Header=yes" |
| 8466 | else |
| 8467 | echo "$as_me: failed program was:" >&5 |
| 8468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8469 | |
| 8470 | eval "$as_ac_Header=no" |
| 8471 | fi |
| 8472 | |
| 8473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8474 | fi |
| 8475 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8476 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8477 | echo "${ECHO_T}$ac_res" >&6; } |
| 8478 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8479 | cat >>confdefs.h <<_ACEOF |
| 8480 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8481 | _ACEOF |
| 8482 | |
| 8483 | fi |
| 8484 | |
| 8485 | done |
| 8486 | |
| 8487 | |
| 8488 | |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 8489 | for ac_header in linux/videodev.h |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8490 | do |
| 8491 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8492 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8494 | 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] | 8495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8496 | else |
| 8497 | cat >conftest.$ac_ext <<_ACEOF |
| 8498 | /* confdefs.h. */ |
| 8499 | _ACEOF |
| 8500 | cat confdefs.h >>conftest.$ac_ext |
| 8501 | cat >>conftest.$ac_ext <<_ACEOF |
| 8502 | /* end confdefs.h. */ |
| 8503 | #ifdef HAVE_SYS_TIME_H |
| 8504 | #include <sys/time.h> |
| 8505 | #endif |
| 8506 | #include <sys/types.h> |
| 8507 | #ifdef HAVE_ASM_TYPES_H |
| 8508 | #include <asm/types.h> |
| 8509 | #endif |
| 8510 | |
| 8511 | #include <$ac_header> |
| 8512 | _ACEOF |
| 8513 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8514 | if { (ac_try="$ac_compile" |
| 8515 | case "(($ac_try" in |
| 8516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8517 | *) ac_try_echo=$ac_try;; |
| 8518 | esac |
| 8519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8520 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8521 | ac_status=$? |
| 8522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8523 | rm -f conftest.er1 |
| 8524 | cat conftest.err >&5 |
| 8525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8526 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8528 | { (case "(($ac_try" in |
| 8529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8530 | *) ac_try_echo=$ac_try;; |
| 8531 | esac |
| 8532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8533 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8534 | ac_status=$? |
| 8535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8536 | (exit $ac_status); }; } && |
| 8537 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8538 | { (case "(($ac_try" in |
| 8539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8540 | *) ac_try_echo=$ac_try;; |
| 8541 | esac |
| 8542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8543 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8544 | ac_status=$? |
| 8545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8546 | (exit $ac_status); }; }; then |
| 8547 | eval "$as_ac_Header=yes" |
| 8548 | else |
| 8549 | echo "$as_me: failed program was:" >&5 |
| 8550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8551 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8552 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8553 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8554 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8556 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8557 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8558 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8559 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8560 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8561 | cat >>confdefs.h <<_ACEOF |
| 8562 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8563 | _ACEOF |
| 8564 | |
| 8565 | fi |
| 8566 | |
| 8567 | done |
| 8568 | |
| 8569 | |
| 8570 | |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 8571 | for ac_header in linux/capi.h |
| 8572 | do |
| 8573 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8574 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8576 | 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] | 8577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8578 | else |
| 8579 | cat >conftest.$ac_ext <<_ACEOF |
| 8580 | /* confdefs.h. */ |
| 8581 | _ACEOF |
| 8582 | cat confdefs.h >>conftest.$ac_ext |
| 8583 | cat >>conftest.$ac_ext <<_ACEOF |
| 8584 | /* end confdefs.h. */ |
| 8585 | #define __user |
| 8586 | |
| 8587 | #include <$ac_header> |
| 8588 | _ACEOF |
| 8589 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8590 | if { (ac_try="$ac_compile" |
| 8591 | case "(($ac_try" in |
| 8592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8593 | *) ac_try_echo=$ac_try;; |
| 8594 | esac |
| 8595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8596 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 8597 | ac_status=$? |
| 8598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8599 | rm -f conftest.er1 |
| 8600 | cat conftest.err >&5 |
| 8601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8602 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8604 | { (case "(($ac_try" in |
| 8605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8606 | *) ac_try_echo=$ac_try;; |
| 8607 | esac |
| 8608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8609 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 8610 | ac_status=$? |
| 8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8612 | (exit $ac_status); }; } && |
| 8613 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8614 | { (case "(($ac_try" in |
| 8615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8616 | *) ac_try_echo=$ac_try;; |
| 8617 | esac |
| 8618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8619 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 8620 | ac_status=$? |
| 8621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8622 | (exit $ac_status); }; }; then |
| 8623 | eval "$as_ac_Header=yes" |
| 8624 | else |
| 8625 | echo "$as_me: failed program was:" >&5 |
| 8626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8627 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8628 | eval "$as_ac_Header=no" |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 8629 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8630 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 8632 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8633 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8634 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8635 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 8636 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8637 | cat >>confdefs.h <<_ACEOF |
| 8638 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8639 | _ACEOF |
| 8640 | |
| 8641 | fi |
| 8642 | |
| 8643 | done |
| 8644 | |
| 8645 | |
| 8646 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8647 | if test "$have_x" = "yes" |
| 8648 | then |
| 8649 | XLIB="-lXext -lX11" |
| 8650 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 8651 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 8652 | |
| 8653 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8654 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8655 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8656 | |
| 8657 | |
| 8658 | |
| 8659 | |
| 8660 | |
| 8661 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8662 | for ac_header in X11/Xlib.h \ |
| 8663 | X11/XKBlib.h \ |
| 8664 | X11/Xutil.h \ |
| 8665 | X11/extensions/shape.h \ |
| 8666 | X11/extensions/XInput.h \ |
| 8667 | X11/extensions/XShm.h \ |
| 8668 | X11/extensions/Xrandr.h \ |
| 8669 | X11/extensions/Xrender.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8670 | X11/extensions/xf86vmode.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8671 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8672 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8673 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8674 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8675 | 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] | 8676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8677 | else |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 8678 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8679 | /* confdefs.h. */ |
| 8680 | _ACEOF |
| 8681 | cat confdefs.h >>conftest.$ac_ext |
| 8682 | cat >>conftest.$ac_ext <<_ACEOF |
| 8683 | /* end confdefs.h. */ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8684 | #ifdef HAVE_X11_XLIB_H |
| 8685 | # include <X11/Xlib.h> |
| 8686 | #endif |
| 8687 | #ifdef HAVE_X11_XUTIL_H |
| 8688 | # include <X11/Xutil.h> |
| 8689 | #endif |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 8690 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8691 | #include <$ac_header> |
| 8692 | _ACEOF |
| 8693 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8694 | if { (ac_try="$ac_compile" |
| 8695 | case "(($ac_try" in |
| 8696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8697 | *) ac_try_echo=$ac_try;; |
| 8698 | esac |
| 8699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8700 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8701 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8703 | rm -f conftest.er1 |
| 8704 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8706 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8707 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8708 | { (case "(($ac_try" in |
| 8709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8710 | *) ac_try_echo=$ac_try;; |
| 8711 | esac |
| 8712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8713 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8714 | ac_status=$? |
| 8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8716 | (exit $ac_status); }; } && |
| 8717 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8718 | { (case "(($ac_try" in |
| 8719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8720 | *) ac_try_echo=$ac_try;; |
| 8721 | esac |
| 8722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8723 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8724 | ac_status=$? |
| 8725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8726 | (exit $ac_status); }; }; then |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 8727 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8728 | else |
| 8729 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8731 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8732 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8733 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8734 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8736 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8737 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8738 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8739 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8740 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8741 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8742 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8743 | _ACEOF |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8744 | |
| 8745 | fi |
| 8746 | |
| 8747 | done |
| 8748 | |
| 8749 | |
| 8750 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" |
| 8751 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8752 | { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
| 8753 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8754 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 8755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8756 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8757 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8758 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8759 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8760 | /* confdefs.h. */ |
| 8761 | _ACEOF |
| 8762 | cat confdefs.h >>conftest.$ac_ext |
| 8763 | cat >>conftest.$ac_ext <<_ACEOF |
| 8764 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8765 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8766 | /* Override any GCC internal prototype to avoid an error. |
| 8767 | Use char because int might match the return type of a GCC |
| 8768 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8769 | #ifdef __cplusplus |
| 8770 | extern "C" |
| 8771 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8772 | char XkbQueryExtension (); |
| 8773 | int |
| 8774 | main () |
| 8775 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8776 | return XkbQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8777 | ; |
| 8778 | return 0; |
| 8779 | } |
| 8780 | _ACEOF |
| 8781 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8782 | if { (ac_try="$ac_link" |
| 8783 | case "(($ac_try" in |
| 8784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8785 | *) ac_try_echo=$ac_try;; |
| 8786 | esac |
| 8787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8788 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8789 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8791 | rm -f conftest.er1 |
| 8792 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8794 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8795 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8796 | { (case "(($ac_try" in |
| 8797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8798 | *) ac_try_echo=$ac_try;; |
| 8799 | esac |
| 8800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8801 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8802 | ac_status=$? |
| 8803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8804 | (exit $ac_status); }; } && |
| 8805 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8806 | { (case "(($ac_try" in |
| 8807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8808 | *) ac_try_echo=$ac_try;; |
| 8809 | esac |
| 8810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8811 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8812 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8814 | (exit $ac_status); }; }; then |
| 8815 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8816 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8817 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8819 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8820 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8821 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8822 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8823 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8824 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8825 | LIBS=$ac_check_lib_save_LIBS |
| 8826 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8827 | { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
| 8828 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8829 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8830 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8831 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8832 | #define HAVE_XKB 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8833 | _ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8834 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8835 | fi |
| 8836 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8837 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8838 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8839 | if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 8840 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8841 | { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
| 8842 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8843 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 8844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8845 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8846 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8847 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8848 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8849 | /* confdefs.h. */ |
| 8850 | _ACEOF |
| 8851 | cat confdefs.h >>conftest.$ac_ext |
| 8852 | cat >>conftest.$ac_ext <<_ACEOF |
| 8853 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8854 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8855 | /* Override any GCC internal prototype to avoid an error. |
| 8856 | Use char because int might match the return type of a GCC |
| 8857 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8858 | #ifdef __cplusplus |
| 8859 | extern "C" |
| 8860 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8861 | char XShmQueryExtension (); |
| 8862 | int |
| 8863 | main () |
| 8864 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8865 | return XShmQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8866 | ; |
| 8867 | return 0; |
| 8868 | } |
| 8869 | _ACEOF |
| 8870 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8871 | if { (ac_try="$ac_link" |
| 8872 | case "(($ac_try" in |
| 8873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8874 | *) ac_try_echo=$ac_try;; |
| 8875 | esac |
| 8876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8877 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8878 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8880 | rm -f conftest.er1 |
| 8881 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8883 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8885 | { (case "(($ac_try" in |
| 8886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8887 | *) ac_try_echo=$ac_try;; |
| 8888 | esac |
| 8889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8890 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8891 | ac_status=$? |
| 8892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8893 | (exit $ac_status); }; } && |
| 8894 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8895 | { (case "(($ac_try" in |
| 8896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8897 | *) ac_try_echo=$ac_try;; |
| 8898 | esac |
| 8899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8900 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8901 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8903 | (exit $ac_status); }; }; then |
| 8904 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8905 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8906 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8908 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8909 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8910 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8911 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8912 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8913 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8914 | LIBS=$ac_check_lib_save_LIBS |
| 8915 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8916 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
| 8917 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8918 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8919 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8920 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8921 | #define HAVE_LIBXXSHM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8922 | _ACEOF |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8923 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8924 | fi |
| 8925 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8926 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8927 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8928 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
| 8929 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8930 | { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 8931 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8932 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 8933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8934 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8935 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8936 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8937 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8938 | /* confdefs.h. */ |
| 8939 | _ACEOF |
| 8940 | cat confdefs.h >>conftest.$ac_ext |
| 8941 | cat >>conftest.$ac_ext <<_ACEOF |
| 8942 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8943 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8944 | /* Override any GCC internal prototype to avoid an error. |
| 8945 | Use char because int might match the return type of a GCC |
| 8946 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8947 | #ifdef __cplusplus |
| 8948 | extern "C" |
| 8949 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8950 | char XShapeQueryExtension (); |
| 8951 | int |
| 8952 | main () |
| 8953 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8954 | return XShapeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8955 | ; |
| 8956 | return 0; |
| 8957 | } |
| 8958 | _ACEOF |
| 8959 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8960 | if { (ac_try="$ac_link" |
| 8961 | case "(($ac_try" in |
| 8962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8963 | *) ac_try_echo=$ac_try;; |
| 8964 | esac |
| 8965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8966 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8967 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8969 | rm -f conftest.er1 |
| 8970 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8972 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8974 | { (case "(($ac_try" in |
| 8975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8976 | *) ac_try_echo=$ac_try;; |
| 8977 | esac |
| 8978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8979 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8980 | ac_status=$? |
| 8981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8982 | (exit $ac_status); }; } && |
| 8983 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8984 | { (case "(($ac_try" in |
| 8985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8986 | *) ac_try_echo=$ac_try;; |
| 8987 | esac |
| 8988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8989 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8990 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8992 | (exit $ac_status); }; }; then |
| 8993 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8994 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8995 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8997 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8998 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8999 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9000 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9001 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9002 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9003 | LIBS=$ac_check_lib_save_LIBS |
| 9004 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9005 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 9006 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9007 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9008 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9009 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9010 | #define HAVE_LIBXSHAPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9011 | _ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9012 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9013 | fi |
| 9014 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9015 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9016 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9017 | if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" |
| 9018 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9019 | { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
| 9020 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9021 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 9022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9023 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9024 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9025 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9026 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9027 | /* confdefs.h. */ |
| 9028 | _ACEOF |
| 9029 | cat confdefs.h >>conftest.$ac_ext |
| 9030 | cat >>conftest.$ac_ext <<_ACEOF |
| 9031 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9032 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9033 | /* Override any GCC internal prototype to avoid an error. |
| 9034 | Use char because int might match the return type of a GCC |
| 9035 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9036 | #ifdef __cplusplus |
| 9037 | extern "C" |
| 9038 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9039 | char XF86VidModeQueryExtension (); |
| 9040 | int |
| 9041 | main () |
| 9042 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9043 | return XF86VidModeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9044 | ; |
| 9045 | return 0; |
| 9046 | } |
| 9047 | _ACEOF |
| 9048 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9049 | if { (ac_try="$ac_link" |
| 9050 | case "(($ac_try" in |
| 9051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9052 | *) ac_try_echo=$ac_try;; |
| 9053 | esac |
| 9054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9055 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9056 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9058 | rm -f conftest.er1 |
| 9059 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9061 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9062 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9063 | { (case "(($ac_try" in |
| 9064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9065 | *) ac_try_echo=$ac_try;; |
| 9066 | esac |
| 9067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9068 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9069 | ac_status=$? |
| 9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9071 | (exit $ac_status); }; } && |
| 9072 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9073 | { (case "(($ac_try" in |
| 9074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9075 | *) ac_try_echo=$ac_try;; |
| 9076 | esac |
| 9077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9078 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9079 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9081 | (exit $ac_status); }; }; then |
| 9082 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9083 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9084 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9086 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9087 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9088 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9089 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9090 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9091 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9092 | LIBS=$ac_check_lib_save_LIBS |
| 9093 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9094 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
| 9095 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9096 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9097 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9098 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9099 | #define HAVE_LIBXXF86VM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9100 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 9101 | |
| 9102 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9103 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9104 | fi |
| 9105 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9106 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9107 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9108 | if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" |
| 9109 | then |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9110 | cat >conftest.$ac_ext <<_ACEOF |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9111 | /* confdefs.h. */ |
| 9112 | _ACEOF |
| 9113 | cat confdefs.h >>conftest.$ac_ext |
| 9114 | cat >>conftest.$ac_ext <<_ACEOF |
| 9115 | /* end confdefs.h. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9116 | #include <X11/Xlib.h> |
| 9117 | #include <X11/extensions/Xrandr.h> |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9118 | int |
| 9119 | main () |
| 9120 | { |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9121 | static typeof(XRRSetScreenConfigAndRate) * func; |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9122 | ; |
| 9123 | return 0; |
| 9124 | } |
| 9125 | _ACEOF |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9126 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9127 | if { (ac_try="$ac_compile" |
| 9128 | case "(($ac_try" in |
| 9129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9130 | *) ac_try_echo=$ac_try;; |
| 9131 | esac |
| 9132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9133 | (eval "$ac_compile") 2>conftest.er1 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9134 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9136 | rm -f conftest.er1 |
| 9137 | cat conftest.err >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9139 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9141 | { (case "(($ac_try" in |
| 9142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9143 | *) ac_try_echo=$ac_try;; |
| 9144 | esac |
| 9145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9146 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9147 | ac_status=$? |
| 9148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9149 | (exit $ac_status); }; } && |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9150 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9151 | { (case "(($ac_try" in |
| 9152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9153 | *) ac_try_echo=$ac_try;; |
| 9154 | esac |
| 9155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9156 | (eval "$ac_try") 2>&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9157 | ac_status=$? |
| 9158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9159 | (exit $ac_status); }; }; then |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9160 | |
| 9161 | cat >>confdefs.h <<\_ACEOF |
| 9162 | #define HAVE_LIBXRANDR 1 |
| 9163 | _ACEOF |
| 9164 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9165 | else |
| 9166 | echo "$as_me: failed program was:" >&5 |
| 9167 | sed 's/^/| /' conftest.$ac_ext >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9168 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9169 | |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9170 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9171 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9173 | fi |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9174 | |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9175 | if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" |
| 9176 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9177 | { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5 |
| 9178 | echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; } |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9179 | if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then |
| 9180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9181 | else |
| 9182 | ac_check_lib_save_LIBS=$LIBS |
| 9183 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 9184 | cat >conftest.$ac_ext <<_ACEOF |
| 9185 | /* confdefs.h. */ |
| 9186 | _ACEOF |
| 9187 | cat confdefs.h >>conftest.$ac_ext |
| 9188 | cat >>conftest.$ac_ext <<_ACEOF |
| 9189 | /* end confdefs.h. */ |
| 9190 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9191 | /* Override any GCC internal prototype to avoid an error. |
| 9192 | Use char because int might match the return type of a GCC |
| 9193 | builtin and then its argument prototype would still apply. */ |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9194 | #ifdef __cplusplus |
| 9195 | extern "C" |
| 9196 | #endif |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9197 | char XRenderSetPictureTransform (); |
| 9198 | int |
| 9199 | main () |
| 9200 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9201 | return XRenderSetPictureTransform (); |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9202 | ; |
| 9203 | return 0; |
| 9204 | } |
| 9205 | _ACEOF |
| 9206 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9207 | if { (ac_try="$ac_link" |
| 9208 | case "(($ac_try" in |
| 9209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9210 | *) ac_try_echo=$ac_try;; |
| 9211 | esac |
| 9212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9213 | (eval "$ac_link") 2>conftest.er1 |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9214 | ac_status=$? |
| 9215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9216 | rm -f conftest.er1 |
| 9217 | cat conftest.err >&5 |
| 9218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9219 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9221 | { (case "(($ac_try" in |
| 9222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9223 | *) ac_try_echo=$ac_try;; |
| 9224 | esac |
| 9225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9226 | (eval "$ac_try") 2>&5 |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9227 | ac_status=$? |
| 9228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9229 | (exit $ac_status); }; } && |
| 9230 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9231 | { (case "(($ac_try" in |
| 9232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9233 | *) ac_try_echo=$ac_try;; |
| 9234 | esac |
| 9235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9236 | (eval "$ac_try") 2>&5 |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9237 | ac_status=$? |
| 9238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9239 | (exit $ac_status); }; }; then |
| 9240 | ac_cv_lib_Xrender_XRenderSetPictureTransform=yes |
| 9241 | else |
| 9242 | echo "$as_me: failed program was:" >&5 |
| 9243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9244 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9245 | ac_cv_lib_Xrender_XRenderSetPictureTransform=no |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9246 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9247 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9248 | rm -f core conftest.err conftest.$ac_objext \ |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9249 | conftest$ac_exeext conftest.$ac_ext |
| 9250 | LIBS=$ac_check_lib_save_LIBS |
| 9251 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9252 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5 |
| 9253 | echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; } |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9254 | if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then |
| 9255 | |
| 9256 | cat >>confdefs.h <<\_ACEOF |
| 9257 | #define HAVE_XRENDERSETPICTURETRANSFORM 1 |
| 9258 | _ACEOF |
| 9259 | |
| 9260 | fi |
| 9261 | |
| 9262 | fi |
| 9263 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 9264 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9265 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9266 | |
| 9267 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9268 | |
Huw Davies | 4eb4546 | 2006-03-07 13:55:35 +0000 | [diff] [blame] | 9269 | |
| 9270 | 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] | 9271 | do |
| 9272 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9273 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9274 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9275 | 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] | 9276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9277 | else |
| 9278 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9279 | /* confdefs.h. */ |
| 9280 | _ACEOF |
| 9281 | cat confdefs.h >>conftest.$ac_ext |
| 9282 | cat >>conftest.$ac_ext <<_ACEOF |
| 9283 | /* end confdefs.h. */ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9284 | #ifdef HAVE_GL_GLX_H |
| 9285 | # include <GL/glx.h> |
| 9286 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9287 | |
| 9288 | #include <$ac_header> |
| 9289 | _ACEOF |
| 9290 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9291 | if { (ac_try="$ac_compile" |
| 9292 | case "(($ac_try" in |
| 9293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9294 | *) ac_try_echo=$ac_try;; |
| 9295 | esac |
| 9296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9297 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9298 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9300 | rm -f conftest.er1 |
| 9301 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9303 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9305 | { (case "(($ac_try" in |
| 9306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9307 | *) ac_try_echo=$ac_try;; |
| 9308 | esac |
| 9309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9310 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9311 | ac_status=$? |
| 9312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9313 | (exit $ac_status); }; } && |
| 9314 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9315 | { (case "(($ac_try" in |
| 9316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9317 | *) ac_try_echo=$ac_try;; |
| 9318 | esac |
| 9319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9320 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9321 | ac_status=$? |
| 9322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9323 | (exit $ac_status); }; }; then |
| 9324 | eval "$as_ac_Header=yes" |
| 9325 | else |
| 9326 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9328 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9329 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9330 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9331 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9333 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9334 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9335 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9336 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9337 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9338 | cat >>confdefs.h <<_ACEOF |
| 9339 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9340 | _ACEOF |
| 9341 | |
| 9342 | fi |
| 9343 | |
| 9344 | done |
| 9345 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9346 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
| 9347 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9348 | { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
| 9349 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; } |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 9350 | if test "${wine_cv_opengl_header_version_OK+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9352 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9353 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9354 | /* confdefs.h. */ |
| 9355 | _ACEOF |
| 9356 | cat confdefs.h >>conftest.$ac_ext |
| 9357 | cat >>conftest.$ac_ext <<_ACEOF |
| 9358 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9359 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9360 | int |
| 9361 | main () |
| 9362 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9363 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9364 | ; |
| 9365 | return 0; |
| 9366 | } |
| 9367 | _ACEOF |
| 9368 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9369 | if { (ac_try="$ac_compile" |
| 9370 | case "(($ac_try" in |
| 9371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9372 | *) ac_try_echo=$ac_try;; |
| 9373 | esac |
| 9374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9375 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9376 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9378 | rm -f conftest.er1 |
| 9379 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9381 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9382 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9383 | { (case "(($ac_try" in |
| 9384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9385 | *) ac_try_echo=$ac_try;; |
| 9386 | esac |
| 9387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9388 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9389 | ac_status=$? |
| 9390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9391 | (exit $ac_status); }; } && |
| 9392 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9393 | { (case "(($ac_try" in |
| 9394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9395 | *) ac_try_echo=$ac_try;; |
| 9396 | esac |
| 9397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9398 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9399 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9401 | (exit $ac_status); }; }; then |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 9402 | wine_cv_opengl_header_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9403 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9404 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9406 | |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 9407 | wine_cv_opengl_header_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9408 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9409 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9410 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9412 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9413 | fi |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 9414 | { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5 |
| 9415 | echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9416 | |
Alexandre Julliard | cc6a08c | 2006-08-24 14:34:22 +0200 | [diff] [blame] | 9417 | if test "$wine_cv_opengl_header_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9418 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9419 | { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
| 9420 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9421 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 9422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9423 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9424 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 9425 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9426 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9427 | /* confdefs.h. */ |
| 9428 | _ACEOF |
| 9429 | cat confdefs.h >>conftest.$ac_ext |
| 9430 | cat >>conftest.$ac_ext <<_ACEOF |
| 9431 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9432 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9433 | /* Override any GCC internal prototype to avoid an error. |
| 9434 | Use char because int might match the return type of a GCC |
| 9435 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9436 | #ifdef __cplusplus |
| 9437 | extern "C" |
| 9438 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9439 | char glXCreateContext (); |
| 9440 | int |
| 9441 | main () |
| 9442 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9443 | return glXCreateContext (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9444 | ; |
| 9445 | return 0; |
| 9446 | } |
| 9447 | _ACEOF |
| 9448 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9449 | if { (ac_try="$ac_link" |
| 9450 | case "(($ac_try" in |
| 9451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9452 | *) ac_try_echo=$ac_try;; |
| 9453 | esac |
| 9454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9455 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9456 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9458 | rm -f conftest.er1 |
| 9459 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9461 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9462 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9463 | { (case "(($ac_try" in |
| 9464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9465 | *) ac_try_echo=$ac_try;; |
| 9466 | esac |
| 9467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9468 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9469 | ac_status=$? |
| 9470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9471 | (exit $ac_status); }; } && |
| 9472 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9473 | { (case "(($ac_try" in |
| 9474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9475 | *) ac_try_echo=$ac_try;; |
| 9476 | esac |
| 9477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9478 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9479 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9481 | (exit $ac_status); }; }; then |
| 9482 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9483 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9484 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9486 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9487 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9488 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9489 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9490 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9491 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9492 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9493 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9494 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
| 9495 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9496 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 9497 | OPENGL_LIBS="-lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9498 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9499 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9500 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9501 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 9502 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 9503 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 9504 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9505 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9506 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 9507 | #define HAVE_OPENGL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9508 | _ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 9509 | |
Anderson Lizardo | 5a2da4e | 2005-07-25 11:12:11 +0000 | [diff] [blame] | 9510 | else |
| 9511 | if test -f /usr/X11R6/lib/libGL.a |
| 9512 | then |
| 9513 | { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 9514 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 9515 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 9516 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 9517 | { (exit 1); exit 1; }; } |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 9518 | else |
| 9519 | wine_cv_opengl_libs_found="no" |
Anderson Lizardo | 5a2da4e | 2005-07-25 11:12:11 +0000 | [diff] [blame] | 9520 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9521 | fi |
Anderson Lizardo | 5a2da4e | 2005-07-25 11:12:11 +0000 | [diff] [blame] | 9522 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9523 | { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
| 9524 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9525 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 9526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9527 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9528 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 9529 | 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] | 9530 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9531 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9532 | /* confdefs.h. */ |
| 9533 | _ACEOF |
| 9534 | cat confdefs.h >>conftest.$ac_ext |
| 9535 | cat >>conftest.$ac_ext <<_ACEOF |
| 9536 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9537 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9538 | /* Override any GCC internal prototype to avoid an error. |
| 9539 | Use char because int might match the return type of a GCC |
| 9540 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9541 | #ifdef __cplusplus |
| 9542 | extern "C" |
| 9543 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9544 | char gluLookAt (); |
| 9545 | int |
| 9546 | main () |
| 9547 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9548 | return gluLookAt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9549 | ; |
| 9550 | return 0; |
| 9551 | } |
| 9552 | _ACEOF |
| 9553 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9554 | if { (ac_try="$ac_link" |
| 9555 | case "(($ac_try" in |
| 9556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9557 | *) ac_try_echo=$ac_try;; |
| 9558 | esac |
| 9559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9560 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9561 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9563 | rm -f conftest.er1 |
| 9564 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9566 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9568 | { (case "(($ac_try" in |
| 9569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9570 | *) ac_try_echo=$ac_try;; |
| 9571 | esac |
| 9572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9573 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9574 | ac_status=$? |
| 9575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9576 | (exit $ac_status); }; } && |
| 9577 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9578 | { (case "(($ac_try" in |
| 9579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9580 | *) ac_try_echo=$ac_try;; |
| 9581 | esac |
| 9582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9583 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9584 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9586 | (exit $ac_status); }; }; then |
| 9587 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9588 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9589 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9591 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9592 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9593 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9594 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9595 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9596 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9597 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9598 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9599 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
| 9600 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9601 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 9602 | OPENGL_LIBS="$OPENGL_LIBS -lGLU" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9603 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9604 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9605 | fi |
| 9606 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9607 | fi |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9608 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9609 | { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5 |
| 9610 | echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; } |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9611 | if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then |
| 9612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9613 | else |
| 9614 | ac_check_lib_save_LIBS=$LIBS |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 9615 | 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] | 9616 | cat >conftest.$ac_ext <<_ACEOF |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9617 | /* confdefs.h. */ |
| 9618 | _ACEOF |
| 9619 | cat confdefs.h >>conftest.$ac_ext |
| 9620 | cat >>conftest.$ac_ext <<_ACEOF |
| 9621 | /* end confdefs.h. */ |
| 9622 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9623 | /* Override any GCC internal prototype to avoid an error. |
| 9624 | Use char because int might match the return type of a GCC |
| 9625 | builtin and then its argument prototype would still apply. */ |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9626 | #ifdef __cplusplus |
| 9627 | extern "C" |
| 9628 | #endif |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9629 | char glutMainLoop (); |
| 9630 | int |
| 9631 | main () |
| 9632 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9633 | return glutMainLoop (); |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9634 | ; |
| 9635 | return 0; |
| 9636 | } |
| 9637 | _ACEOF |
| 9638 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9639 | if { (ac_try="$ac_link" |
| 9640 | case "(($ac_try" in |
| 9641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9642 | *) ac_try_echo=$ac_try;; |
| 9643 | esac |
| 9644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9645 | (eval "$ac_link") 2>conftest.er1 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9646 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9648 | rm -f conftest.er1 |
| 9649 | cat conftest.err >&5 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9651 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9653 | { (case "(($ac_try" in |
| 9654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9655 | *) ac_try_echo=$ac_try;; |
| 9656 | esac |
| 9657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9658 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9659 | ac_status=$? |
| 9660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9661 | (exit $ac_status); }; } && |
| 9662 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9663 | { (case "(($ac_try" in |
| 9664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9665 | *) ac_try_echo=$ac_try;; |
| 9666 | esac |
| 9667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9668 | (eval "$ac_try") 2>&5 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9669 | ac_status=$? |
| 9670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9671 | (exit $ac_status); }; }; then |
| 9672 | ac_cv_lib_glut_glutMainLoop=yes |
| 9673 | else |
| 9674 | echo "$as_me: failed program was:" >&5 |
| 9675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9676 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9677 | ac_cv_lib_glut_glutMainLoop=no |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9678 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9679 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9680 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9681 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9682 | LIBS=$ac_check_lib_save_LIBS |
| 9683 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9684 | { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5 |
| 9685 | echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; } |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9686 | if test $ac_cv_lib_glut_glutMainLoop = yes; then |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 9687 | GLUT_LIBS="-lglut -lXmu -lXi" |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9688 | |
| 9689 | GLUT32FILES='$(GLUT32FILES)' |
| 9690 | |
| 9691 | fi |
| 9692 | |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 9693 | else |
| 9694 | wine_cv_opengl_headers_found="no" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9695 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9696 | fi |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9697 | NASLIBS="" |
| 9698 | |
| 9699 | |
| 9700 | for ac_header in audio/audiolib.h |
| 9701 | do |
| 9702 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9703 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9704 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9705 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9706 | 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] | 9707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9708 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9709 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9710 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9711 | echo "${ECHO_T}$ac_res" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9712 | else |
| 9713 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9714 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9715 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9716 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9717 | /* confdefs.h. */ |
| 9718 | _ACEOF |
| 9719 | cat confdefs.h >>conftest.$ac_ext |
| 9720 | cat >>conftest.$ac_ext <<_ACEOF |
| 9721 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9722 | $ac_includes_default |
| 9723 | #include <$ac_header> |
| 9724 | _ACEOF |
| 9725 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9726 | if { (ac_try="$ac_compile" |
| 9727 | case "(($ac_try" in |
| 9728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9729 | *) ac_try_echo=$ac_try;; |
| 9730 | esac |
| 9731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9732 | (eval "$ac_compile") 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9733 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9735 | rm -f conftest.er1 |
| 9736 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9738 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9740 | { (case "(($ac_try" in |
| 9741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9742 | *) ac_try_echo=$ac_try;; |
| 9743 | esac |
| 9744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9745 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9746 | ac_status=$? |
| 9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9748 | (exit $ac_status); }; } && |
| 9749 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9750 | { (case "(($ac_try" in |
| 9751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9752 | *) ac_try_echo=$ac_try;; |
| 9753 | esac |
| 9754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9755 | (eval "$ac_try") 2>&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9756 | ac_status=$? |
| 9757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9758 | (exit $ac_status); }; }; then |
| 9759 | ac_header_compiler=yes |
| 9760 | else |
| 9761 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9763 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9764 | ac_header_compiler=no |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9765 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9766 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9768 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9769 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9770 | |
| 9771 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9772 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9773 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9774 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9775 | /* confdefs.h. */ |
| 9776 | _ACEOF |
| 9777 | cat confdefs.h >>conftest.$ac_ext |
| 9778 | cat >>conftest.$ac_ext <<_ACEOF |
| 9779 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9780 | #include <$ac_header> |
| 9781 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9782 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9783 | case "(($ac_try" in |
| 9784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9785 | *) ac_try_echo=$ac_try;; |
| 9786 | esac |
| 9787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9788 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9789 | ac_status=$? |
| 9790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9791 | rm -f conftest.er1 |
| 9792 | cat conftest.err >&5 |
| 9793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9794 | (exit $ac_status); } >/dev/null; then |
| 9795 | if test -s conftest.err; then |
| 9796 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9797 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9798 | else |
| 9799 | ac_cpp_err= |
| 9800 | fi |
| 9801 | else |
| 9802 | ac_cpp_err=yes |
| 9803 | fi |
| 9804 | if test -z "$ac_cpp_err"; then |
| 9805 | ac_header_preproc=yes |
| 9806 | else |
| 9807 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9809 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9810 | ac_header_preproc=no |
| 9811 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9812 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9813 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9814 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9815 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9816 | |
| 9817 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9818 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9819 | yes:no: ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9820 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9821 | 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] | 9822 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9823 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9824 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9825 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9826 | no:yes:* ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9827 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9828 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9829 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9830 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9831 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9832 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9833 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9834 | 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] | 9835 | { 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] | 9836 | 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] | 9837 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9838 | 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] | 9839 | ( cat <<\_ASBOX |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9840 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9841 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9842 | ## ------------------------------------ ## |
| 9843 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9844 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9845 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9846 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9847 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9849 | 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] | 9850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9851 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9852 | eval "$as_ac_Header=\$ac_header_preproc" |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9853 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9854 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9855 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9856 | echo "${ECHO_T}$ac_res" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9857 | |
| 9858 | fi |
| 9859 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9860 | cat >>confdefs.h <<_ACEOF |
| 9861 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9862 | _ACEOF |
| 9863 | |
| 9864 | for ac_header in audio/soundlib.h |
| 9865 | do |
| 9866 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9867 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9869 | 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] | 9870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9871 | else |
| 9872 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9873 | /* confdefs.h. */ |
| 9874 | _ACEOF |
| 9875 | cat confdefs.h >>conftest.$ac_ext |
| 9876 | cat >>conftest.$ac_ext <<_ACEOF |
| 9877 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9878 | #include <audio/audiolib.h> |
| 9879 | |
| 9880 | #include <$ac_header> |
| 9881 | _ACEOF |
| 9882 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9883 | if { (ac_try="$ac_compile" |
| 9884 | case "(($ac_try" in |
| 9885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9886 | *) ac_try_echo=$ac_try;; |
| 9887 | esac |
| 9888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9889 | (eval "$ac_compile") 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9890 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9892 | rm -f conftest.er1 |
| 9893 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9895 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9896 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9897 | { (case "(($ac_try" in |
| 9898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9899 | *) ac_try_echo=$ac_try;; |
| 9900 | esac |
| 9901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9902 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9903 | ac_status=$? |
| 9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9905 | (exit $ac_status); }; } && |
| 9906 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9907 | { (case "(($ac_try" in |
| 9908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9909 | *) ac_try_echo=$ac_try;; |
| 9910 | esac |
| 9911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9912 | (eval "$ac_try") 2>&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9913 | ac_status=$? |
| 9914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9915 | (exit $ac_status); }; }; then |
| 9916 | eval "$as_ac_Header=yes" |
| 9917 | else |
| 9918 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9920 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9921 | eval "$as_ac_Header=no" |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9922 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9923 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9925 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9926 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9927 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9928 | echo "${ECHO_T}$ac_res" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9929 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9930 | cat >>confdefs.h <<_ACEOF |
| 9931 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9932 | _ACEOF |
| 9933 | |
| 9934 | fi |
| 9935 | |
| 9936 | done |
| 9937 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9938 | { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
| 9939 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9940 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
| 9941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9942 | else |
| 9943 | ac_check_lib_save_LIBS=$LIBS |
| 9944 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 9945 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9946 | /* confdefs.h. */ |
| 9947 | _ACEOF |
| 9948 | cat confdefs.h >>conftest.$ac_ext |
| 9949 | cat >>conftest.$ac_ext <<_ACEOF |
| 9950 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9951 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9952 | /* Override any GCC internal prototype to avoid an error. |
| 9953 | Use char because int might match the return type of a GCC |
| 9954 | builtin and then its argument prototype would still apply. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9955 | #ifdef __cplusplus |
| 9956 | extern "C" |
| 9957 | #endif |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9958 | char AuCreateFlow (); |
| 9959 | int |
| 9960 | main () |
| 9961 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9962 | return AuCreateFlow (); |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9963 | ; |
| 9964 | return 0; |
| 9965 | } |
| 9966 | _ACEOF |
| 9967 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9968 | if { (ac_try="$ac_link" |
| 9969 | case "(($ac_try" in |
| 9970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9971 | *) ac_try_echo=$ac_try;; |
| 9972 | esac |
| 9973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9974 | (eval "$ac_link") 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9975 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9977 | rm -f conftest.er1 |
| 9978 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9980 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9981 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9982 | { (case "(($ac_try" in |
| 9983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9984 | *) ac_try_echo=$ac_try;; |
| 9985 | esac |
| 9986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9987 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9988 | ac_status=$? |
| 9989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9990 | (exit $ac_status); }; } && |
| 9991 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9992 | { (case "(($ac_try" in |
| 9993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9994 | *) ac_try_echo=$ac_try;; |
| 9995 | esac |
| 9996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9997 | (eval "$ac_try") 2>&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9998 | ac_status=$? |
| 9999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10000 | (exit $ac_status); }; }; then |
| 10001 | ac_cv_lib_audio_AuCreateFlow=yes |
| 10002 | else |
| 10003 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10005 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10006 | ac_cv_lib_audio_AuCreateFlow=no |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10007 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10008 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10009 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10010 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10011 | LIBS=$ac_check_lib_save_LIBS |
| 10012 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10013 | { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
| 10014 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10015 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
| 10016 | |
| 10017 | cat >>confdefs.h <<\_ACEOF |
| 10018 | #define HAVE_NAS 1 |
| 10019 | _ACEOF |
| 10020 | |
| 10021 | NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS" |
| 10022 | fi |
| 10023 | |
| 10024 | fi |
| 10025 | |
| 10026 | done |
| 10027 | |
| 10028 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 10029 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 10030 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 10031 | else |
| 10032 | XLIB="" |
| 10033 | X_CFLAGS="" |
| 10034 | X_LIBS="" |
| 10035 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 10036 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10037 | |
| 10038 | XML2LIBS="" |
| 10039 | |
| 10040 | XML2INCL="" |
| 10041 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10042 | XSLTLIBS="" |
| 10043 | |
| 10044 | XSLTINCL="" |
| 10045 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10046 | if test "$PKG_CONFIG" != "false" |
| 10047 | then |
| 10048 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 10049 | ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`" |
| 10050 | ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`" |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10051 | CPPFLAGS="$CPPFLAGS $ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10052 | |
| 10053 | for ac_header in libxml/parser.h |
| 10054 | do |
| 10055 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10056 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10057 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10058 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10059 | 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] | 10060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10061 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10062 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10063 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10064 | echo "${ECHO_T}$ac_res" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10065 | else |
| 10066 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10067 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10068 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10069 | cat >conftest.$ac_ext <<_ACEOF |
| 10070 | /* confdefs.h. */ |
| 10071 | _ACEOF |
| 10072 | cat confdefs.h >>conftest.$ac_ext |
| 10073 | cat >>conftest.$ac_ext <<_ACEOF |
| 10074 | /* end confdefs.h. */ |
| 10075 | $ac_includes_default |
| 10076 | #include <$ac_header> |
| 10077 | _ACEOF |
| 10078 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10079 | if { (ac_try="$ac_compile" |
| 10080 | case "(($ac_try" in |
| 10081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10082 | *) ac_try_echo=$ac_try;; |
| 10083 | esac |
| 10084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10085 | (eval "$ac_compile") 2>conftest.er1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10086 | ac_status=$? |
| 10087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10088 | rm -f conftest.er1 |
| 10089 | cat conftest.err >&5 |
| 10090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10091 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10092 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10093 | { (case "(($ac_try" in |
| 10094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10095 | *) ac_try_echo=$ac_try;; |
| 10096 | esac |
| 10097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10098 | (eval "$ac_try") 2>&5 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10099 | ac_status=$? |
| 10100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10101 | (exit $ac_status); }; } && |
| 10102 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10103 | { (case "(($ac_try" in |
| 10104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10105 | *) ac_try_echo=$ac_try;; |
| 10106 | esac |
| 10107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10108 | (eval "$ac_try") 2>&5 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10109 | ac_status=$? |
| 10110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10111 | (exit $ac_status); }; }; then |
| 10112 | ac_header_compiler=yes |
| 10113 | else |
| 10114 | echo "$as_me: failed program was:" >&5 |
| 10115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10116 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10117 | ac_header_compiler=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10118 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10119 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10121 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10122 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10123 | |
| 10124 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10125 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10126 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10127 | cat >conftest.$ac_ext <<_ACEOF |
| 10128 | /* confdefs.h. */ |
| 10129 | _ACEOF |
| 10130 | cat confdefs.h >>conftest.$ac_ext |
| 10131 | cat >>conftest.$ac_ext <<_ACEOF |
| 10132 | /* end confdefs.h. */ |
| 10133 | #include <$ac_header> |
| 10134 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10135 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10136 | case "(($ac_try" in |
| 10137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10138 | *) ac_try_echo=$ac_try;; |
| 10139 | esac |
| 10140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10141 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10142 | ac_status=$? |
| 10143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10144 | rm -f conftest.er1 |
| 10145 | cat conftest.err >&5 |
| 10146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10147 | (exit $ac_status); } >/dev/null; then |
| 10148 | if test -s conftest.err; then |
| 10149 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10150 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10151 | else |
| 10152 | ac_cpp_err= |
| 10153 | fi |
| 10154 | else |
| 10155 | ac_cpp_err=yes |
| 10156 | fi |
| 10157 | if test -z "$ac_cpp_err"; then |
| 10158 | ac_header_preproc=yes |
| 10159 | else |
| 10160 | echo "$as_me: failed program was:" >&5 |
| 10161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10162 | |
| 10163 | ac_header_preproc=no |
| 10164 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10165 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10166 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10167 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10168 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10169 | |
| 10170 | # So? What about this header? |
| 10171 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10172 | yes:no: ) |
| 10173 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10174 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10176 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10177 | ac_header_preproc=yes |
| 10178 | ;; |
| 10179 | no:yes:* ) |
| 10180 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10181 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10182 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10183 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10184 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10185 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10186 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10187 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10188 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10189 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10190 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10191 | 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] | 10192 | ( cat <<\_ASBOX |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10193 | ## ------------------------------------ ## |
| 10194 | ## Report this to wine-devel@winehq.org ## |
| 10195 | ## ------------------------------------ ## |
| 10196 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10197 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10198 | ;; |
| 10199 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10200 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10201 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10202 | 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] | 10203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10204 | else |
| 10205 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10206 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10207 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10208 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10209 | echo "${ECHO_T}$ac_res" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10210 | |
| 10211 | fi |
| 10212 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10213 | cat >>confdefs.h <<_ACEOF |
| 10214 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10215 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10216 | { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5 |
| 10217 | echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10218 | if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10220 | else |
| 10221 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10222 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10223 | cat >conftest.$ac_ext <<_ACEOF |
| 10224 | /* confdefs.h. */ |
| 10225 | _ACEOF |
| 10226 | cat confdefs.h >>conftest.$ac_ext |
| 10227 | cat >>conftest.$ac_ext <<_ACEOF |
| 10228 | /* end confdefs.h. */ |
| 10229 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10230 | /* Override any GCC internal prototype to avoid an error. |
| 10231 | Use char because int might match the return type of a GCC |
| 10232 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10233 | #ifdef __cplusplus |
| 10234 | extern "C" |
| 10235 | #endif |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10236 | char xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10237 | int |
| 10238 | main () |
| 10239 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10240 | return xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10241 | ; |
| 10242 | return 0; |
| 10243 | } |
| 10244 | _ACEOF |
| 10245 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10246 | if { (ac_try="$ac_link" |
| 10247 | case "(($ac_try" in |
| 10248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10249 | *) ac_try_echo=$ac_try;; |
| 10250 | esac |
| 10251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10252 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10253 | ac_status=$? |
| 10254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10255 | rm -f conftest.er1 |
| 10256 | cat conftest.err >&5 |
| 10257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10258 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10259 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10260 | { (case "(($ac_try" in |
| 10261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10262 | *) ac_try_echo=$ac_try;; |
| 10263 | esac |
| 10264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10265 | (eval "$ac_try") 2>&5 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10266 | ac_status=$? |
| 10267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10268 | (exit $ac_status); }; } && |
| 10269 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10270 | { (case "(($ac_try" in |
| 10271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10272 | *) ac_try_echo=$ac_try;; |
| 10273 | esac |
| 10274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10275 | (eval "$ac_try") 2>&5 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10276 | ac_status=$? |
| 10277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10278 | (exit $ac_status); }; }; then |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10279 | ac_cv_lib_xml2_xmlParseMemory=yes |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10280 | else |
| 10281 | echo "$as_me: failed program was:" >&5 |
| 10282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10283 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10284 | ac_cv_lib_xml2_xmlParseMemory=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10285 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10286 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10287 | rm -f core conftest.err conftest.$ac_objext \ |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10288 | conftest$ac_exeext conftest.$ac_ext |
| 10289 | LIBS=$ac_check_lib_save_LIBS |
| 10290 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10291 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5 |
| 10292 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10293 | if test $ac_cv_lib_xml2_xmlParseMemory = yes; then |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10294 | |
| 10295 | cat >>confdefs.h <<\_ACEOF |
| 10296 | #define HAVE_LIBXML2 1 |
| 10297 | _ACEOF |
| 10298 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10299 | XML2LIBS="$ac_xml_libs" |
| 10300 | XML2INCL="$ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10301 | fi |
| 10302 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10303 | { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5 |
| 10304 | echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; } |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10305 | if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then |
| 10306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10307 | else |
| 10308 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10309 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10310 | cat >conftest.$ac_ext <<_ACEOF |
| 10311 | /* confdefs.h. */ |
| 10312 | _ACEOF |
| 10313 | cat confdefs.h >>conftest.$ac_ext |
| 10314 | cat >>conftest.$ac_ext <<_ACEOF |
| 10315 | /* end confdefs.h. */ |
| 10316 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10317 | /* Override any GCC internal prototype to avoid an error. |
| 10318 | Use char because int might match the return type of a GCC |
| 10319 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10320 | #ifdef __cplusplus |
| 10321 | extern "C" |
| 10322 | #endif |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10323 | char xmlReadMemory (); |
| 10324 | int |
| 10325 | main () |
| 10326 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10327 | return xmlReadMemory (); |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10328 | ; |
| 10329 | return 0; |
| 10330 | } |
| 10331 | _ACEOF |
| 10332 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10333 | if { (ac_try="$ac_link" |
| 10334 | case "(($ac_try" in |
| 10335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10336 | *) ac_try_echo=$ac_try;; |
| 10337 | esac |
| 10338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10339 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10340 | ac_status=$? |
| 10341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10342 | rm -f conftest.er1 |
| 10343 | cat conftest.err >&5 |
| 10344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10345 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10347 | { (case "(($ac_try" in |
| 10348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10349 | *) ac_try_echo=$ac_try;; |
| 10350 | esac |
| 10351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10352 | (eval "$ac_try") 2>&5 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10353 | ac_status=$? |
| 10354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10355 | (exit $ac_status); }; } && |
| 10356 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10357 | { (case "(($ac_try" in |
| 10358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10359 | *) ac_try_echo=$ac_try;; |
| 10360 | esac |
| 10361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10362 | (eval "$ac_try") 2>&5 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10363 | ac_status=$? |
| 10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10365 | (exit $ac_status); }; }; then |
| 10366 | ac_cv_lib_xml2_xmlReadMemory=yes |
| 10367 | else |
| 10368 | echo "$as_me: failed program was:" >&5 |
| 10369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10370 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10371 | ac_cv_lib_xml2_xmlReadMemory=no |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10372 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10373 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10374 | rm -f core conftest.err conftest.$ac_objext \ |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10375 | conftest$ac_exeext conftest.$ac_ext |
| 10376 | LIBS=$ac_check_lib_save_LIBS |
| 10377 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10378 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5 |
| 10379 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; } |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10380 | if test $ac_cv_lib_xml2_xmlReadMemory = yes; then |
| 10381 | |
| 10382 | cat >>confdefs.h <<\_ACEOF |
| 10383 | #define HAVE_XMLREADMEMORY 1 |
| 10384 | _ACEOF |
| 10385 | |
| 10386 | fi |
| 10387 | |
| 10388 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10389 | fi |
| 10390 | |
| 10391 | done |
| 10392 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10393 | CPPFLAGS="$ac_save_CPPFLAGS" |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 10394 | ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`" |
| 10395 | ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`" |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10396 | CPPFLAGS="$CPPFLAGS $ac_xslt_cflags" |
| 10397 | |
| 10398 | |
Vincent BĂ©ron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 10399 | for ac_header in libxslt/pattern.h libxslt/transform.h |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10400 | do |
| 10401 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10402 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10403 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10404 | 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] | 10405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10406 | else |
Vincent BĂ©ron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 10407 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10408 | /* confdefs.h. */ |
| 10409 | _ACEOF |
| 10410 | cat confdefs.h >>conftest.$ac_ext |
| 10411 | cat >>conftest.$ac_ext <<_ACEOF |
| 10412 | /* end confdefs.h. */ |
Vincent BĂ©ron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 10413 | #ifdef HAVE_LIBXSLT_PATTERN_H |
| 10414 | # include <libxslt/pattern.h> |
| 10415 | #endif |
| 10416 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10417 | #include <$ac_header> |
| 10418 | _ACEOF |
| 10419 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10420 | if { (ac_try="$ac_compile" |
| 10421 | case "(($ac_try" in |
| 10422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10423 | *) ac_try_echo=$ac_try;; |
| 10424 | esac |
| 10425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10426 | (eval "$ac_compile") 2>conftest.er1 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10427 | ac_status=$? |
| 10428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10429 | rm -f conftest.er1 |
| 10430 | cat conftest.err >&5 |
| 10431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10432 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10433 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10434 | { (case "(($ac_try" in |
| 10435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10436 | *) ac_try_echo=$ac_try;; |
| 10437 | esac |
| 10438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10439 | (eval "$ac_try") 2>&5 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10440 | ac_status=$? |
| 10441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10442 | (exit $ac_status); }; } && |
| 10443 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10444 | { (case "(($ac_try" in |
| 10445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10446 | *) ac_try_echo=$ac_try;; |
| 10447 | esac |
| 10448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10449 | (eval "$ac_try") 2>&5 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10450 | ac_status=$? |
| 10451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10452 | (exit $ac_status); }; }; then |
Vincent BĂ©ron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 10453 | eval "$as_ac_Header=yes" |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10454 | else |
| 10455 | echo "$as_me: failed program was:" >&5 |
| 10456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10457 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10458 | eval "$as_ac_Header=no" |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10459 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10460 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10462 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10463 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10464 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10465 | echo "${ECHO_T}$ac_res" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10466 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10467 | cat >>confdefs.h <<_ACEOF |
| 10468 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10469 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10470 | { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5 |
| 10471 | echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10472 | if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then |
| 10473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10474 | else |
| 10475 | ac_check_lib_save_LIBS=$LIBS |
| 10476 | LIBS="-lxslt $ac_xslt_libs $LIBS" |
| 10477 | cat >conftest.$ac_ext <<_ACEOF |
| 10478 | /* confdefs.h. */ |
| 10479 | _ACEOF |
| 10480 | cat confdefs.h >>conftest.$ac_ext |
| 10481 | cat >>conftest.$ac_ext <<_ACEOF |
| 10482 | /* end confdefs.h. */ |
| 10483 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10484 | /* Override any GCC internal prototype to avoid an error. |
| 10485 | Use char because int might match the return type of a GCC |
| 10486 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10487 | #ifdef __cplusplus |
| 10488 | extern "C" |
| 10489 | #endif |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10490 | char xsltCompilePattern (); |
| 10491 | int |
| 10492 | main () |
| 10493 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10494 | return xsltCompilePattern (); |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10495 | ; |
| 10496 | return 0; |
| 10497 | } |
| 10498 | _ACEOF |
| 10499 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10500 | if { (ac_try="$ac_link" |
| 10501 | case "(($ac_try" in |
| 10502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10503 | *) ac_try_echo=$ac_try;; |
| 10504 | esac |
| 10505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10506 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10507 | ac_status=$? |
| 10508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10509 | rm -f conftest.er1 |
| 10510 | cat conftest.err >&5 |
| 10511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10512 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10514 | { (case "(($ac_try" in |
| 10515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10516 | *) ac_try_echo=$ac_try;; |
| 10517 | esac |
| 10518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10519 | (eval "$ac_try") 2>&5 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10520 | ac_status=$? |
| 10521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10522 | (exit $ac_status); }; } && |
| 10523 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10524 | { (case "(($ac_try" in |
| 10525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10526 | *) ac_try_echo=$ac_try;; |
| 10527 | esac |
| 10528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10529 | (eval "$ac_try") 2>&5 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10530 | ac_status=$? |
| 10531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10532 | (exit $ac_status); }; }; then |
| 10533 | ac_cv_lib_xslt_xsltCompilePattern=yes |
| 10534 | else |
| 10535 | echo "$as_me: failed program was:" >&5 |
| 10536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10537 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10538 | ac_cv_lib_xslt_xsltCompilePattern=no |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10539 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10540 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10541 | rm -f core conftest.err conftest.$ac_objext \ |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10542 | conftest$ac_exeext conftest.$ac_ext |
| 10543 | LIBS=$ac_check_lib_save_LIBS |
| 10544 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10545 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5 |
| 10546 | echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10547 | if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then |
| 10548 | |
| 10549 | cat >>confdefs.h <<\_ACEOF |
| 10550 | #define HAVE_LIBXSLT 1 |
| 10551 | _ACEOF |
| 10552 | |
| 10553 | XSLTLIBS="$ac_xslt_libs" |
| 10554 | XSLTINCL="$ac_xslt_cflags" |
| 10555 | fi |
| 10556 | |
| 10557 | |
| 10558 | fi |
| 10559 | |
| 10560 | done |
| 10561 | |
| 10562 | CPPFLAGS="$ac_save_CPPFLAGS" |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10563 | fi |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10564 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10565 | HALINCL="" |
| 10566 | |
| 10567 | if test "$PKG_CONFIG" != "false" |
| 10568 | then |
| 10569 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 10570 | ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`" |
| 10571 | ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10572 | CPPFLAGS="$CPPFLAGS $ac_hal_cflags" |
| 10573 | |
| 10574 | |
| 10575 | for ac_header in dbus/dbus.h hal/libhal.h |
| 10576 | do |
| 10577 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10578 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10579 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10580 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10581 | 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] | 10582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10583 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10584 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10585 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10586 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10587 | else |
| 10588 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10589 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10590 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10591 | cat >conftest.$ac_ext <<_ACEOF |
| 10592 | /* confdefs.h. */ |
| 10593 | _ACEOF |
| 10594 | cat confdefs.h >>conftest.$ac_ext |
| 10595 | cat >>conftest.$ac_ext <<_ACEOF |
| 10596 | /* end confdefs.h. */ |
| 10597 | $ac_includes_default |
| 10598 | #include <$ac_header> |
| 10599 | _ACEOF |
| 10600 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10601 | if { (ac_try="$ac_compile" |
| 10602 | case "(($ac_try" in |
| 10603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10604 | *) ac_try_echo=$ac_try;; |
| 10605 | esac |
| 10606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10607 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10608 | ac_status=$? |
| 10609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10610 | rm -f conftest.er1 |
| 10611 | cat conftest.err >&5 |
| 10612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10613 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10615 | { (case "(($ac_try" in |
| 10616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10617 | *) ac_try_echo=$ac_try;; |
| 10618 | esac |
| 10619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10620 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10621 | ac_status=$? |
| 10622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10623 | (exit $ac_status); }; } && |
| 10624 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10625 | { (case "(($ac_try" in |
| 10626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10627 | *) ac_try_echo=$ac_try;; |
| 10628 | esac |
| 10629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10630 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10631 | ac_status=$? |
| 10632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10633 | (exit $ac_status); }; }; then |
| 10634 | ac_header_compiler=yes |
| 10635 | else |
| 10636 | echo "$as_me: failed program was:" >&5 |
| 10637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10638 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10639 | ac_header_compiler=no |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10640 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10641 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10643 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10644 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10645 | |
| 10646 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10647 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10648 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10649 | cat >conftest.$ac_ext <<_ACEOF |
| 10650 | /* confdefs.h. */ |
| 10651 | _ACEOF |
| 10652 | cat confdefs.h >>conftest.$ac_ext |
| 10653 | cat >>conftest.$ac_ext <<_ACEOF |
| 10654 | /* end confdefs.h. */ |
| 10655 | #include <$ac_header> |
| 10656 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10657 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10658 | case "(($ac_try" in |
| 10659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10660 | *) ac_try_echo=$ac_try;; |
| 10661 | esac |
| 10662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10663 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10664 | ac_status=$? |
| 10665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10666 | rm -f conftest.er1 |
| 10667 | cat conftest.err >&5 |
| 10668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10669 | (exit $ac_status); } >/dev/null; then |
| 10670 | if test -s conftest.err; then |
| 10671 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10672 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10673 | else |
| 10674 | ac_cpp_err= |
| 10675 | fi |
| 10676 | else |
| 10677 | ac_cpp_err=yes |
| 10678 | fi |
| 10679 | if test -z "$ac_cpp_err"; then |
| 10680 | ac_header_preproc=yes |
| 10681 | else |
| 10682 | echo "$as_me: failed program was:" >&5 |
| 10683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10684 | |
| 10685 | ac_header_preproc=no |
| 10686 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10687 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10688 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10689 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10690 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10691 | |
| 10692 | # So? What about this header? |
| 10693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10694 | yes:no: ) |
| 10695 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10696 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10697 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10698 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10699 | ac_header_preproc=yes |
| 10700 | ;; |
| 10701 | no:yes:* ) |
| 10702 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10703 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10704 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10705 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10706 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10707 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10708 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10709 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10710 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10711 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10712 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10713 | 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] | 10714 | ( cat <<\_ASBOX |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10715 | ## ------------------------------------ ## |
| 10716 | ## Report this to wine-devel@winehq.org ## |
| 10717 | ## ------------------------------------ ## |
| 10718 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10719 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10720 | ;; |
| 10721 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10722 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10723 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10724 | 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] | 10725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10726 | else |
| 10727 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10728 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10729 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10730 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10731 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10732 | |
| 10733 | fi |
| 10734 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10735 | cat >>confdefs.h <<_ACEOF |
| 10736 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10737 | _ACEOF |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10738 | |
| 10739 | fi |
| 10740 | |
| 10741 | done |
| 10742 | |
| 10743 | if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes" |
| 10744 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10745 | { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5 |
| 10746 | 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] | 10747 | if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then |
| 10748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10749 | else |
| 10750 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10751 | LIBS="-lhal $LIBS" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10752 | cat >conftest.$ac_ext <<_ACEOF |
| 10753 | /* confdefs.h. */ |
| 10754 | _ACEOF |
| 10755 | cat confdefs.h >>conftest.$ac_ext |
| 10756 | cat >>conftest.$ac_ext <<_ACEOF |
| 10757 | /* end confdefs.h. */ |
| 10758 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10759 | /* Override any GCC internal prototype to avoid an error. |
| 10760 | Use char because int might match the return type of a GCC |
| 10761 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10762 | #ifdef __cplusplus |
| 10763 | extern "C" |
| 10764 | #endif |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10765 | char libhal_ctx_new (); |
| 10766 | int |
| 10767 | main () |
| 10768 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10769 | return libhal_ctx_new (); |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10770 | ; |
| 10771 | return 0; |
| 10772 | } |
| 10773 | _ACEOF |
| 10774 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10775 | if { (ac_try="$ac_link" |
| 10776 | case "(($ac_try" in |
| 10777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10778 | *) ac_try_echo=$ac_try;; |
| 10779 | esac |
| 10780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10781 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10782 | ac_status=$? |
| 10783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10784 | rm -f conftest.er1 |
| 10785 | cat conftest.err >&5 |
| 10786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10787 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10788 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10789 | { (case "(($ac_try" in |
| 10790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10791 | *) ac_try_echo=$ac_try;; |
| 10792 | esac |
| 10793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10794 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10795 | ac_status=$? |
| 10796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10797 | (exit $ac_status); }; } && |
| 10798 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10799 | { (case "(($ac_try" in |
| 10800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10801 | *) ac_try_echo=$ac_try;; |
| 10802 | esac |
| 10803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10804 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10805 | ac_status=$? |
| 10806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10807 | (exit $ac_status); }; }; then |
| 10808 | ac_cv_lib_hal_libhal_ctx_new=yes |
| 10809 | else |
| 10810 | echo "$as_me: failed program was:" >&5 |
| 10811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10812 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10813 | ac_cv_lib_hal_libhal_ctx_new=no |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10814 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10815 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10816 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10817 | conftest$ac_exeext conftest.$ac_ext |
| 10818 | LIBS=$ac_check_lib_save_LIBS |
| 10819 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10820 | { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5 |
| 10821 | echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10822 | if test $ac_cv_lib_hal_libhal_ctx_new = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10823 | { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5 |
| 10824 | 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] | 10825 | if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then |
| 10826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10827 | else |
| 10828 | ac_check_lib_save_LIBS=$LIBS |
| 10829 | LIBS="-ldbus-1 $ac_hal_libs $LIBS" |
| 10830 | cat >conftest.$ac_ext <<_ACEOF |
| 10831 | /* confdefs.h. */ |
| 10832 | _ACEOF |
| 10833 | cat confdefs.h >>conftest.$ac_ext |
| 10834 | cat >>conftest.$ac_ext <<_ACEOF |
| 10835 | /* end confdefs.h. */ |
| 10836 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10837 | /* Override any GCC internal prototype to avoid an error. |
| 10838 | Use char because int might match the return type of a GCC |
| 10839 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10840 | #ifdef __cplusplus |
| 10841 | extern "C" |
| 10842 | #endif |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10843 | char dbus_connection_close (); |
| 10844 | int |
| 10845 | main () |
| 10846 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10847 | return dbus_connection_close (); |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10848 | ; |
| 10849 | return 0; |
| 10850 | } |
| 10851 | _ACEOF |
| 10852 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10853 | if { (ac_try="$ac_link" |
| 10854 | case "(($ac_try" in |
| 10855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10856 | *) ac_try_echo=$ac_try;; |
| 10857 | esac |
| 10858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10859 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10860 | ac_status=$? |
| 10861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10862 | rm -f conftest.er1 |
| 10863 | cat conftest.err >&5 |
| 10864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10865 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10867 | { (case "(($ac_try" in |
| 10868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10869 | *) ac_try_echo=$ac_try;; |
| 10870 | esac |
| 10871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10872 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10873 | ac_status=$? |
| 10874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10875 | (exit $ac_status); }; } && |
| 10876 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10877 | { (case "(($ac_try" in |
| 10878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10879 | *) ac_try_echo=$ac_try;; |
| 10880 | esac |
| 10881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10882 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10883 | ac_status=$? |
| 10884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10885 | (exit $ac_status); }; }; then |
| 10886 | ac_cv_lib_dbus_1_dbus_connection_close=yes |
| 10887 | else |
| 10888 | echo "$as_me: failed program was:" >&5 |
| 10889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10890 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10891 | ac_cv_lib_dbus_1_dbus_connection_close=no |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10892 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10893 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10894 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10895 | conftest$ac_exeext conftest.$ac_ext |
| 10896 | LIBS=$ac_check_lib_save_LIBS |
| 10897 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10898 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5 |
| 10899 | echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; } |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10900 | if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10901 | |
| 10902 | cat >>confdefs.h <<\_ACEOF |
| 10903 | #define HAVE_LIBHAL 1 |
| 10904 | _ACEOF |
| 10905 | |
| 10906 | HALINCL="$ac_hal_cflags" |
| 10907 | fi |
| 10908 | |
| 10909 | fi |
| 10910 | |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 10911 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 10912 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10913 | fi |
| 10914 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 10915 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10916 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 10917 | then |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 10918 | if test "$ac_cv_header_ncurses_h" = "yes" |
| 10919 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10920 | { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
| 10921 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10922 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 10923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10924 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10925 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10926 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10927 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10928 | /* confdefs.h. */ |
| 10929 | _ACEOF |
| 10930 | cat confdefs.h >>conftest.$ac_ext |
| 10931 | cat >>conftest.$ac_ext <<_ACEOF |
| 10932 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10933 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10934 | /* Override any GCC internal prototype to avoid an error. |
| 10935 | Use char because int might match the return type of a GCC |
| 10936 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10937 | #ifdef __cplusplus |
| 10938 | extern "C" |
| 10939 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10940 | char waddch (); |
| 10941 | int |
| 10942 | main () |
| 10943 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10944 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10945 | ; |
| 10946 | return 0; |
| 10947 | } |
| 10948 | _ACEOF |
| 10949 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10950 | if { (ac_try="$ac_link" |
| 10951 | case "(($ac_try" in |
| 10952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10953 | *) ac_try_echo=$ac_try;; |
| 10954 | esac |
| 10955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10956 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10957 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10959 | rm -f conftest.er1 |
| 10960 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10962 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10963 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10964 | { (case "(($ac_try" in |
| 10965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10966 | *) ac_try_echo=$ac_try;; |
| 10967 | esac |
| 10968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10969 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10970 | ac_status=$? |
| 10971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10972 | (exit $ac_status); }; } && |
| 10973 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10974 | { (case "(($ac_try" in |
| 10975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10976 | *) ac_try_echo=$ac_try;; |
| 10977 | esac |
| 10978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10979 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10980 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10982 | (exit $ac_status); }; }; then |
| 10983 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10984 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10985 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10987 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10988 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10989 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10990 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10991 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10992 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10993 | LIBS=$ac_check_lib_save_LIBS |
| 10994 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10995 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
| 10996 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10997 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 10998 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10999 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 11000 | #define HAVE_LIBNCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11001 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11002 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 11003 | CURSESLIBS="-lncurses" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11004 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11005 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 11006 | elif test "$ac_cv_header_curses_h" = "yes" |
| 11007 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11008 | { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
| 11009 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11010 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 11011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11012 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11013 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11014 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11015 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11016 | /* confdefs.h. */ |
| 11017 | _ACEOF |
| 11018 | cat confdefs.h >>conftest.$ac_ext |
| 11019 | cat >>conftest.$ac_ext <<_ACEOF |
| 11020 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11021 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11022 | /* Override any GCC internal prototype to avoid an error. |
| 11023 | Use char because int might match the return type of a GCC |
| 11024 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11025 | #ifdef __cplusplus |
| 11026 | extern "C" |
| 11027 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11028 | char waddch (); |
| 11029 | int |
| 11030 | main () |
| 11031 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11032 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11033 | ; |
| 11034 | return 0; |
| 11035 | } |
| 11036 | _ACEOF |
| 11037 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11038 | if { (ac_try="$ac_link" |
| 11039 | case "(($ac_try" in |
| 11040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11041 | *) ac_try_echo=$ac_try;; |
| 11042 | esac |
| 11043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11044 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11045 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11047 | rm -f conftest.er1 |
| 11048 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11050 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11052 | { (case "(($ac_try" in |
| 11053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11054 | *) ac_try_echo=$ac_try;; |
| 11055 | esac |
| 11056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11057 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11058 | ac_status=$? |
| 11059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11060 | (exit $ac_status); }; } && |
| 11061 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11062 | { (case "(($ac_try" in |
| 11063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11064 | *) ac_try_echo=$ac_try;; |
| 11065 | esac |
| 11066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11067 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11068 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11070 | (exit $ac_status); }; }; then |
| 11071 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11072 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11073 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11075 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11076 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11077 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11078 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11079 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11080 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11081 | LIBS=$ac_check_lib_save_LIBS |
| 11082 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11083 | { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
| 11084 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11085 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11086 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11087 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 11088 | #define HAVE_LIBCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11089 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11090 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 11091 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11092 | fi |
| 11093 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 11094 | fi |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 11095 | ac_save_LIBS="$LIBS" |
| 11096 | LIBS="$LIBS $CURSESLIBS" |
| 11097 | |
| 11098 | for ac_func in mousemask |
| 11099 | do |
| 11100 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11101 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11102 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11103 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11105 | else |
| 11106 | cat >conftest.$ac_ext <<_ACEOF |
| 11107 | /* confdefs.h. */ |
| 11108 | _ACEOF |
| 11109 | cat confdefs.h >>conftest.$ac_ext |
| 11110 | cat >>conftest.$ac_ext <<_ACEOF |
| 11111 | /* end confdefs.h. */ |
| 11112 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11113 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11114 | #define $ac_func innocuous_$ac_func |
| 11115 | |
| 11116 | /* System header to define __stub macros and hopefully few prototypes, |
| 11117 | which can conflict with char $ac_func (); below. |
| 11118 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11119 | <limits.h> exists even on freestanding compilers. */ |
| 11120 | |
| 11121 | #ifdef __STDC__ |
| 11122 | # include <limits.h> |
| 11123 | #else |
| 11124 | # include <assert.h> |
| 11125 | #endif |
| 11126 | |
| 11127 | #undef $ac_func |
| 11128 | |
| 11129 | /* Override any GCC internal prototype to avoid an error. |
| 11130 | Use char because int might match the return type of a GCC |
| 11131 | builtin and then its argument prototype would still apply. */ |
| 11132 | #ifdef __cplusplus |
| 11133 | extern "C" |
| 11134 | #endif |
| 11135 | char $ac_func (); |
| 11136 | /* The GNU C library defines this for functions which it implements |
| 11137 | to always fail with ENOSYS. Some functions are actually named |
| 11138 | something starting with __ and the normal name is an alias. */ |
| 11139 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11140 | choke me |
| 11141 | #endif |
| 11142 | |
| 11143 | int |
| 11144 | main () |
| 11145 | { |
| 11146 | return $ac_func (); |
| 11147 | ; |
| 11148 | return 0; |
| 11149 | } |
| 11150 | _ACEOF |
| 11151 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11152 | if { (ac_try="$ac_link" |
| 11153 | case "(($ac_try" in |
| 11154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11155 | *) ac_try_echo=$ac_try;; |
| 11156 | esac |
| 11157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11158 | (eval "$ac_link") 2>conftest.er1 |
| 11159 | ac_status=$? |
| 11160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11161 | rm -f conftest.er1 |
| 11162 | cat conftest.err >&5 |
| 11163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11164 | (exit $ac_status); } && |
| 11165 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11166 | { (case "(($ac_try" in |
| 11167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11168 | *) ac_try_echo=$ac_try;; |
| 11169 | esac |
| 11170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11171 | (eval "$ac_try") 2>&5 |
| 11172 | ac_status=$? |
| 11173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11174 | (exit $ac_status); }; } && |
| 11175 | { ac_try='test -s conftest$ac_exeext' |
| 11176 | { (case "(($ac_try" in |
| 11177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11178 | *) ac_try_echo=$ac_try;; |
| 11179 | esac |
| 11180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11181 | (eval "$ac_try") 2>&5 |
| 11182 | ac_status=$? |
| 11183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11184 | (exit $ac_status); }; }; then |
| 11185 | eval "$as_ac_var=yes" |
| 11186 | else |
| 11187 | echo "$as_me: failed program was:" >&5 |
| 11188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11189 | |
| 11190 | eval "$as_ac_var=no" |
| 11191 | fi |
| 11192 | |
| 11193 | rm -f core conftest.err conftest.$ac_objext \ |
| 11194 | conftest$ac_exeext conftest.$ac_ext |
| 11195 | fi |
| 11196 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11197 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11198 | echo "${ECHO_T}$ac_res" >&6; } |
| 11199 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11200 | cat >>confdefs.h <<_ACEOF |
| 11201 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11202 | _ACEOF |
| 11203 | |
| 11204 | fi |
| 11205 | done |
| 11206 | |
| 11207 | LIBS="$ac_save_LIBS" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11208 | fi |
| 11209 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11210 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11211 | # Extract the first word of "sane-config", so it can be a program name with args. |
| 11212 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11213 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11215 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
| 11216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11217 | else |
| 11218 | if test -n "$sane_devel"; then |
| 11219 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 11220 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11222 | for as_dir in $PATH |
| 11223 | do |
| 11224 | IFS=$as_save_IFS |
| 11225 | test -z "$as_dir" && as_dir=. |
| 11226 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11227 | 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] | 11228 | ac_cv_prog_sane_devel="sane-config" |
| 11229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11230 | break 2 |
| 11231 | fi |
| 11232 | done |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11233 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11234 | IFS=$as_save_IFS |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11235 | |
| 11236 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 11237 | fi |
| 11238 | fi |
| 11239 | sane_devel=$ac_cv_prog_sane_devel |
| 11240 | if test -n "$sane_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11241 | { echo "$as_me:$LINENO: result: $sane_devel" >&5 |
| 11242 | echo "${ECHO_T}$sane_devel" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11243 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11244 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11245 | echo "${ECHO_T}no" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11246 | fi |
| 11247 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11248 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 11249 | SANELIBS="" |
| 11250 | |
| 11251 | SANEINCL="" |
| 11252 | |
| 11253 | if test "$sane_devel" != "no" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11254 | then |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11255 | SANELIBS="`$sane_devel --libs`" |
| 11256 | SANEINCL="`$sane_devel --cflags`" |
| 11257 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11258 | ac_save_LIBS="$LIBS" |
| 11259 | CPPFLAGS="$CPPFLAGS $SANEINCL" |
| 11260 | LIBS="$LIBS $SANELIBS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11261 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11262 | { echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 11263 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11264 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 11265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11266 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11267 | { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 11268 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11269 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11270 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11271 | { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
| 11272 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11273 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11274 | /* confdefs.h. */ |
| 11275 | _ACEOF |
| 11276 | cat confdefs.h >>conftest.$ac_ext |
| 11277 | cat >>conftest.$ac_ext <<_ACEOF |
| 11278 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11279 | $ac_includes_default |
| 11280 | #include <sane/sane.h> |
| 11281 | _ACEOF |
| 11282 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11283 | if { (ac_try="$ac_compile" |
| 11284 | case "(($ac_try" in |
| 11285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11286 | *) ac_try_echo=$ac_try;; |
| 11287 | esac |
| 11288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11289 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11290 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11292 | rm -f conftest.er1 |
| 11293 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11295 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11297 | { (case "(($ac_try" in |
| 11298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11299 | *) ac_try_echo=$ac_try;; |
| 11300 | esac |
| 11301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11302 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11303 | ac_status=$? |
| 11304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11305 | (exit $ac_status); }; } && |
| 11306 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11307 | { (case "(($ac_try" in |
| 11308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11309 | *) ac_try_echo=$ac_try;; |
| 11310 | esac |
| 11311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11312 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11313 | ac_status=$? |
| 11314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11315 | (exit $ac_status); }; }; then |
| 11316 | ac_header_compiler=yes |
| 11317 | else |
| 11318 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11320 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11321 | ac_header_compiler=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11322 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11323 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11325 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11326 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11327 | |
| 11328 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11329 | { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
| 11330 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11331 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11332 | /* confdefs.h. */ |
| 11333 | _ACEOF |
| 11334 | cat confdefs.h >>conftest.$ac_ext |
| 11335 | cat >>conftest.$ac_ext <<_ACEOF |
| 11336 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11337 | #include <sane/sane.h> |
| 11338 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11339 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11340 | case "(($ac_try" in |
| 11341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11342 | *) ac_try_echo=$ac_try;; |
| 11343 | esac |
| 11344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11345 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11346 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11347 | grep -v '^ *+' conftest.er1 >conftest.err |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11348 | rm -f conftest.er1 |
| 11349 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11351 | (exit $ac_status); } >/dev/null; then |
| 11352 | if test -s conftest.err; then |
| 11353 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11354 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11355 | else |
| 11356 | ac_cpp_err= |
| 11357 | fi |
| 11358 | else |
| 11359 | ac_cpp_err=yes |
| 11360 | fi |
| 11361 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11362 | ac_header_preproc=yes |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11363 | else |
| 11364 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11366 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11367 | ac_header_preproc=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11368 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11369 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11370 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11371 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11372 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11373 | |
| 11374 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11375 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11376 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11377 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11378 | 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] | 11379 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5 |
| 11380 | echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;} |
| 11381 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11382 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11383 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11384 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
| 11385 | 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] | 11386 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 |
| 11387 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} |
| 11388 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5 |
| 11389 | echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;} |
| 11390 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11391 | 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] | 11392 | { 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] | 11393 | 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] | 11394 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5 |
| 11395 | 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] | 11396 | ( cat <<\_ASBOX |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11397 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11398 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11399 | ## ------------------------------------ ## |
| 11400 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11401 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11402 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11403 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11404 | { echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 11405 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11406 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 11407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11408 | else |
| 11409 | ac_cv_header_sane_sane_h=$ac_header_preproc |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11410 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11411 | { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 11412 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11413 | |
| 11414 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11415 | if test $ac_cv_header_sane_sane_h = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11416 | { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
| 11417 | 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] | 11418 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
| 11419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11420 | else |
| 11421 | ac_check_lib_save_LIBS=$LIBS |
| 11422 | LIBS="-lsane $LIBS" |
| 11423 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11424 | /* confdefs.h. */ |
| 11425 | _ACEOF |
| 11426 | cat confdefs.h >>conftest.$ac_ext |
| 11427 | cat >>conftest.$ac_ext <<_ACEOF |
| 11428 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11429 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11430 | /* Override any GCC internal prototype to avoid an error. |
| 11431 | Use char because int might match the return type of a GCC |
| 11432 | builtin and then its argument prototype would still apply. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11433 | #ifdef __cplusplus |
| 11434 | extern "C" |
| 11435 | #endif |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11436 | char sane_open (); |
| 11437 | int |
| 11438 | main () |
| 11439 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11440 | return sane_open (); |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11441 | ; |
| 11442 | return 0; |
| 11443 | } |
| 11444 | _ACEOF |
| 11445 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11446 | if { (ac_try="$ac_link" |
| 11447 | case "(($ac_try" in |
| 11448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11449 | *) ac_try_echo=$ac_try;; |
| 11450 | esac |
| 11451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11452 | (eval "$ac_link") 2>conftest.er1 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11453 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11455 | rm -f conftest.er1 |
| 11456 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11458 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11459 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11460 | { (case "(($ac_try" in |
| 11461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11462 | *) ac_try_echo=$ac_try;; |
| 11463 | esac |
| 11464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11465 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11466 | ac_status=$? |
| 11467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11468 | (exit $ac_status); }; } && |
| 11469 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11470 | { (case "(($ac_try" in |
| 11471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11472 | *) ac_try_echo=$ac_try;; |
| 11473 | esac |
| 11474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11475 | (eval "$ac_try") 2>&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11476 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11478 | (exit $ac_status); }; }; then |
| 11479 | ac_cv_lib_sane_sane_open=yes |
| 11480 | else |
| 11481 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11483 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11484 | ac_cv_lib_sane_sane_open=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11485 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11486 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11487 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11488 | conftest$ac_exeext conftest.$ac_ext |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11489 | LIBS=$ac_check_lib_save_LIBS |
| 11490 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11491 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5 |
| 11492 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11493 | if test $ac_cv_lib_sane_sane_open = yes; then |
| 11494 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11495 | cat >>confdefs.h <<\_ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11496 | #define HAVE_SANE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11497 | _ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11498 | |
| 11499 | else |
| 11500 | SANELIBS="" |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 11501 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11502 | fi |
| 11503 | |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 11504 | else |
| 11505 | SANELIBS="" |
| 11506 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11507 | fi |
| 11508 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11509 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11510 | LIBS="$ac_save_LIBS" |
| 11511 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11512 | fi |
| 11513 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11514 | # Extract the first word of "gphoto2-config", so it can be a program name with args. |
| 11515 | set dummy gphoto2-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11516 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11518 | if test "${ac_cv_prog_gphoto2_devel+set}" = set; then |
| 11519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11520 | else |
| 11521 | if test -n "$gphoto2_devel"; then |
| 11522 | ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test. |
| 11523 | else |
| 11524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11525 | for as_dir in $PATH |
| 11526 | do |
| 11527 | IFS=$as_save_IFS |
| 11528 | test -z "$as_dir" && as_dir=. |
| 11529 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11530 | 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] | 11531 | ac_cv_prog_gphoto2_devel="gphoto2-config" |
| 11532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11533 | break 2 |
| 11534 | fi |
| 11535 | done |
| 11536 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11537 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11538 | |
| 11539 | test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no" |
| 11540 | fi |
| 11541 | fi |
| 11542 | gphoto2_devel=$ac_cv_prog_gphoto2_devel |
| 11543 | if test -n "$gphoto2_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11544 | { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5 |
| 11545 | echo "${ECHO_T}$gphoto2_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11546 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11547 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11548 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11549 | fi |
| 11550 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11551 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11552 | # Extract the first word of "gphoto2-port-config", so it can be a program name with args. |
| 11553 | set dummy gphoto2-port-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11554 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11556 | if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then |
| 11557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11558 | else |
| 11559 | if test -n "$gphoto2port_devel"; then |
| 11560 | ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test. |
| 11561 | else |
| 11562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11563 | for as_dir in $PATH |
| 11564 | do |
| 11565 | IFS=$as_save_IFS |
| 11566 | test -z "$as_dir" && as_dir=. |
| 11567 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11568 | 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] | 11569 | ac_cv_prog_gphoto2port_devel="gphoto2-port-config" |
| 11570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11571 | break 2 |
| 11572 | fi |
| 11573 | done |
| 11574 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11575 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11576 | |
| 11577 | test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no" |
| 11578 | fi |
| 11579 | fi |
| 11580 | gphoto2port_devel=$ac_cv_prog_gphoto2port_devel |
| 11581 | if test -n "$gphoto2port_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11582 | { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5 |
| 11583 | echo "${ECHO_T}$gphoto2port_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11584 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11585 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11586 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11587 | fi |
| 11588 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11589 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11590 | GPHOTO2LIBS="" |
| 11591 | |
| 11592 | GPHOTO2INCL="" |
| 11593 | |
| 11594 | if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no" |
| 11595 | then |
| 11596 | GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`" |
| 11597 | GPHOTO2LIBS="" |
| 11598 | for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs` |
| 11599 | do |
| 11600 | case "$i" in |
| 11601 | -L/usr/lib|-L/usr/lib64) ;; |
| 11602 | -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";; |
| 11603 | esac |
| 11604 | done |
| 11605 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11606 | ac_save_LIBS="$LIBS" |
| 11607 | CPPFLAGS="$CPPFLAGS $GPHOTO2INCL" |
| 11608 | LIBS="$LIBS $GPHOTO2LIBS" |
| 11609 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11610 | { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5 |
| 11611 | echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11612 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
| 11613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11614 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11615 | { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5 |
| 11616 | echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11617 | else |
| 11618 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11619 | { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5 |
| 11620 | echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11621 | cat >conftest.$ac_ext <<_ACEOF |
| 11622 | /* confdefs.h. */ |
| 11623 | _ACEOF |
| 11624 | cat confdefs.h >>conftest.$ac_ext |
| 11625 | cat >>conftest.$ac_ext <<_ACEOF |
| 11626 | /* end confdefs.h. */ |
| 11627 | $ac_includes_default |
| 11628 | #include <gphoto2-camera.h> |
| 11629 | _ACEOF |
| 11630 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11631 | if { (ac_try="$ac_compile" |
| 11632 | case "(($ac_try" in |
| 11633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11634 | *) ac_try_echo=$ac_try;; |
| 11635 | esac |
| 11636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11637 | (eval "$ac_compile") 2>conftest.er1 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11638 | ac_status=$? |
| 11639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11640 | rm -f conftest.er1 |
| 11641 | cat conftest.err >&5 |
| 11642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11643 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11644 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11645 | { (case "(($ac_try" in |
| 11646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11647 | *) ac_try_echo=$ac_try;; |
| 11648 | esac |
| 11649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11650 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11651 | ac_status=$? |
| 11652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11653 | (exit $ac_status); }; } && |
| 11654 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11655 | { (case "(($ac_try" in |
| 11656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11657 | *) ac_try_echo=$ac_try;; |
| 11658 | esac |
| 11659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11660 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11661 | ac_status=$? |
| 11662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11663 | (exit $ac_status); }; }; then |
| 11664 | ac_header_compiler=yes |
| 11665 | else |
| 11666 | echo "$as_me: failed program was:" >&5 |
| 11667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11668 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11669 | ac_header_compiler=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11670 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11671 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11673 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11674 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11675 | |
| 11676 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11677 | { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5 |
| 11678 | echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11679 | cat >conftest.$ac_ext <<_ACEOF |
| 11680 | /* confdefs.h. */ |
| 11681 | _ACEOF |
| 11682 | cat confdefs.h >>conftest.$ac_ext |
| 11683 | cat >>conftest.$ac_ext <<_ACEOF |
| 11684 | /* end confdefs.h. */ |
| 11685 | #include <gphoto2-camera.h> |
| 11686 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11687 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11688 | case "(($ac_try" in |
| 11689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11690 | *) ac_try_echo=$ac_try;; |
| 11691 | esac |
| 11692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11693 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11694 | ac_status=$? |
| 11695 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11696 | rm -f conftest.er1 |
| 11697 | cat conftest.err >&5 |
| 11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11699 | (exit $ac_status); } >/dev/null; then |
| 11700 | if test -s conftest.err; then |
| 11701 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11702 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11703 | else |
| 11704 | ac_cpp_err= |
| 11705 | fi |
| 11706 | else |
| 11707 | ac_cpp_err=yes |
| 11708 | fi |
| 11709 | if test -z "$ac_cpp_err"; then |
| 11710 | ac_header_preproc=yes |
| 11711 | else |
| 11712 | echo "$as_me: failed program was:" >&5 |
| 11713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11714 | |
| 11715 | ac_header_preproc=no |
| 11716 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11717 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11718 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11719 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11720 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11721 | |
| 11722 | # So? What about this header? |
| 11723 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11724 | yes:no: ) |
| 11725 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11726 | echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11727 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5 |
| 11728 | echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;} |
| 11729 | ac_header_preproc=yes |
| 11730 | ;; |
| 11731 | no:yes:* ) |
| 11732 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5 |
| 11733 | echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;} |
| 11734 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5 |
| 11735 | echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;} |
| 11736 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5 |
| 11737 | echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;} |
| 11738 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11739 | echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11740 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5 |
| 11741 | echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;} |
| 11742 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5 |
| 11743 | 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] | 11744 | ( cat <<\_ASBOX |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11745 | ## ------------------------------------ ## |
| 11746 | ## Report this to wine-devel@winehq.org ## |
| 11747 | ## ------------------------------------ ## |
| 11748 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11749 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11750 | ;; |
| 11751 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11752 | { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5 |
| 11753 | echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11754 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
| 11755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11756 | else |
| 11757 | ac_cv_header_gphoto2_camera_h=$ac_header_preproc |
| 11758 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11759 | { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5 |
| 11760 | echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11761 | |
| 11762 | fi |
| 11763 | if test $ac_cv_header_gphoto2_camera_h = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11764 | { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5 |
| 11765 | 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] | 11766 | if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then |
| 11767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11768 | else |
| 11769 | ac_check_lib_save_LIBS=$LIBS |
| 11770 | LIBS="-lgphoto2 $LIBS" |
| 11771 | cat >conftest.$ac_ext <<_ACEOF |
| 11772 | /* confdefs.h. */ |
| 11773 | _ACEOF |
| 11774 | cat confdefs.h >>conftest.$ac_ext |
| 11775 | cat >>conftest.$ac_ext <<_ACEOF |
| 11776 | /* end confdefs.h. */ |
| 11777 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11778 | /* Override any GCC internal prototype to avoid an error. |
| 11779 | Use char because int might match the return type of a GCC |
| 11780 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11781 | #ifdef __cplusplus |
| 11782 | extern "C" |
| 11783 | #endif |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11784 | char gp_camera_new (); |
| 11785 | int |
| 11786 | main () |
| 11787 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11788 | return gp_camera_new (); |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11789 | ; |
| 11790 | return 0; |
| 11791 | } |
| 11792 | _ACEOF |
| 11793 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11794 | if { (ac_try="$ac_link" |
| 11795 | case "(($ac_try" in |
| 11796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11797 | *) ac_try_echo=$ac_try;; |
| 11798 | esac |
| 11799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11800 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11801 | ac_status=$? |
| 11802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11803 | rm -f conftest.er1 |
| 11804 | cat conftest.err >&5 |
| 11805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11806 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11807 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11808 | { (case "(($ac_try" in |
| 11809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11810 | *) ac_try_echo=$ac_try;; |
| 11811 | esac |
| 11812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11813 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11814 | ac_status=$? |
| 11815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11816 | (exit $ac_status); }; } && |
| 11817 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11818 | { (case "(($ac_try" in |
| 11819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11820 | *) ac_try_echo=$ac_try;; |
| 11821 | esac |
| 11822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11823 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11824 | ac_status=$? |
| 11825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11826 | (exit $ac_status); }; }; then |
| 11827 | ac_cv_lib_gphoto2_gp_camera_new=yes |
| 11828 | else |
| 11829 | echo "$as_me: failed program was:" >&5 |
| 11830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11831 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11832 | ac_cv_lib_gphoto2_gp_camera_new=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11833 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11834 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11835 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11836 | conftest$ac_exeext conftest.$ac_ext |
| 11837 | LIBS=$ac_check_lib_save_LIBS |
| 11838 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11839 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5 |
| 11840 | echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 11841 | if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then |
| 11842 | |
| 11843 | cat >>confdefs.h <<\_ACEOF |
| 11844 | #define HAVE_GPHOTO2 1 |
| 11845 | _ACEOF |
| 11846 | |
| 11847 | else |
| 11848 | GPHOTO2LIBS="" |
| 11849 | GPHOTO2INCL="" |
| 11850 | fi |
| 11851 | |
| 11852 | else |
| 11853 | GPHOTO2LIBS="" |
| 11854 | GPHOTO2INCL="" |
| 11855 | fi |
| 11856 | |
| 11857 | |
| 11858 | LIBS="$ac_save_LIBS" |
| 11859 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11860 | fi |
| 11861 | |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11862 | if test "$ac_cv_header_unicode_ubidi_h" = "yes" |
| 11863 | then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11864 | saved_libs="$LIBS" |
Scott Bambrough | ee112fc | 2006-06-16 10:42:20 -0400 | [diff] [blame] | 11865 | for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu |
| 11866 | do |
| 11867 | TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}" |
| 11868 | TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}" |
| 11869 | { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5 |
| 11870 | echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; } |
| 11871 | LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s" |
| 11872 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11873 | /* confdefs.h. */ |
| 11874 | _ACEOF |
| 11875 | cat confdefs.h >>conftest.$ac_ext |
| 11876 | cat >>conftest.$ac_ext <<_ACEOF |
| 11877 | /* end confdefs.h. */ |
| 11878 | #include <unicode/ubidi.h> |
| 11879 | int |
| 11880 | main () |
| 11881 | { |
| 11882 | ubidi_open() |
| 11883 | ; |
| 11884 | return 0; |
| 11885 | } |
| 11886 | _ACEOF |
| 11887 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11888 | if { (ac_try="$ac_link" |
| 11889 | case "(($ac_try" in |
| 11890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11891 | *) ac_try_echo=$ac_try;; |
| 11892 | esac |
| 11893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11894 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11895 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11897 | rm -f conftest.er1 |
| 11898 | cat conftest.err >&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11900 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11902 | { (case "(($ac_try" in |
| 11903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11904 | *) ac_try_echo=$ac_try;; |
| 11905 | esac |
| 11906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11907 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11908 | ac_status=$? |
| 11909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11910 | (exit $ac_status); }; } && |
| 11911 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11912 | { (case "(($ac_try" in |
| 11913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11914 | *) ac_try_echo=$ac_try;; |
| 11915 | esac |
| 11916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11917 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11918 | ac_status=$? |
| 11919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11920 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11921 | |
| 11922 | cat >>confdefs.h <<\_ACEOF |
| 11923 | #define HAVE_ICU 1 |
| 11924 | _ACEOF |
| 11925 | |
Scott Bambrough | ee112fc | 2006-06-16 10:42:20 -0400 | [diff] [blame] | 11926 | ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11927 | |
Scott Bambrough | ee112fc | 2006-06-16 10:42:20 -0400 | [diff] [blame] | 11928 | { echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11929 | echo "${ECHO_T}yes" >&6; } |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11930 | else |
| 11931 | echo "$as_me: failed program was:" >&5 |
| 11932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11933 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11934 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11935 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11936 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11937 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11938 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11939 | conftest$ac_exeext conftest.$ac_ext |
Scott Bambrough | ee112fc | 2006-06-16 10:42:20 -0400 | [diff] [blame] | 11940 | done |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11941 | LIBS="$saved_libs" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 11942 | fi |
| 11943 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11944 | RESOLVLIBS="" |
| 11945 | |
| 11946 | if test "$ac_cv_header_resolv_h" = "yes" |
| 11947 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11948 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 |
| 11949 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11950 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then |
| 11951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11952 | else |
| 11953 | ac_check_lib_save_LIBS=$LIBS |
| 11954 | LIBS="-lresolv $LIBS" |
| 11955 | cat >conftest.$ac_ext <<_ACEOF |
| 11956 | /* confdefs.h. */ |
| 11957 | _ACEOF |
| 11958 | cat confdefs.h >>conftest.$ac_ext |
| 11959 | cat >>conftest.$ac_ext <<_ACEOF |
| 11960 | /* end confdefs.h. */ |
| 11961 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11962 | /* Override any GCC internal prototype to avoid an error. |
| 11963 | Use char because int might match the return type of a GCC |
| 11964 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11965 | #ifdef __cplusplus |
| 11966 | extern "C" |
| 11967 | #endif |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11968 | char res_query (); |
| 11969 | int |
| 11970 | main () |
| 11971 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11972 | return res_query (); |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11973 | ; |
| 11974 | return 0; |
| 11975 | } |
| 11976 | _ACEOF |
| 11977 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11978 | if { (ac_try="$ac_link" |
| 11979 | case "(($ac_try" in |
| 11980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11981 | *) ac_try_echo=$ac_try;; |
| 11982 | esac |
| 11983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11984 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11985 | ac_status=$? |
| 11986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11987 | rm -f conftest.er1 |
| 11988 | cat conftest.err >&5 |
| 11989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11990 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11991 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11992 | { (case "(($ac_try" in |
| 11993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11994 | *) ac_try_echo=$ac_try;; |
| 11995 | esac |
| 11996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11997 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 11998 | ac_status=$? |
| 11999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12000 | (exit $ac_status); }; } && |
| 12001 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12002 | { (case "(($ac_try" in |
| 12003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12004 | *) ac_try_echo=$ac_try;; |
| 12005 | esac |
| 12006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12007 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12008 | ac_status=$? |
| 12009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12010 | (exit $ac_status); }; }; then |
| 12011 | ac_cv_lib_resolv_res_query=yes |
| 12012 | else |
| 12013 | echo "$as_me: failed program was:" >&5 |
| 12014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12015 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12016 | ac_cv_lib_resolv_res_query=no |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12017 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12018 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12019 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12020 | conftest$ac_exeext conftest.$ac_ext |
| 12021 | LIBS=$ac_check_lib_save_LIBS |
| 12022 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12023 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 |
| 12024 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12025 | if test $ac_cv_lib_resolv_res_query = yes; then |
| 12026 | |
| 12027 | cat >>confdefs.h <<\_ACEOF |
| 12028 | #define HAVE_RESOLV 1 |
| 12029 | _ACEOF |
| 12030 | |
| 12031 | RESOLVLIBS="-lresolv" |
| 12032 | fi |
| 12033 | |
| 12034 | fi |
| 12035 | |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12036 | LCMSLIBS="" |
| 12037 | |
| 12038 | if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes" |
| 12039 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12040 | { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5 |
| 12041 | echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; } |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12042 | if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then |
| 12043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12044 | else |
| 12045 | ac_check_lib_save_LIBS=$LIBS |
| 12046 | LIBS="-llcms $LIBS" |
| 12047 | cat >conftest.$ac_ext <<_ACEOF |
| 12048 | /* confdefs.h. */ |
| 12049 | _ACEOF |
| 12050 | cat confdefs.h >>conftest.$ac_ext |
| 12051 | cat >>conftest.$ac_ext <<_ACEOF |
| 12052 | /* end confdefs.h. */ |
| 12053 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12054 | /* Override any GCC internal prototype to avoid an error. |
| 12055 | Use char because int might match the return type of a GCC |
| 12056 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12057 | #ifdef __cplusplus |
| 12058 | extern "C" |
| 12059 | #endif |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12060 | char cmsOpenProfileFromFile (); |
| 12061 | int |
| 12062 | main () |
| 12063 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12064 | return cmsOpenProfileFromFile (); |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12065 | ; |
| 12066 | return 0; |
| 12067 | } |
| 12068 | _ACEOF |
| 12069 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12070 | if { (ac_try="$ac_link" |
| 12071 | case "(($ac_try" in |
| 12072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12073 | *) ac_try_echo=$ac_try;; |
| 12074 | esac |
| 12075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12076 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12077 | ac_status=$? |
| 12078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12079 | rm -f conftest.er1 |
| 12080 | cat conftest.err >&5 |
| 12081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12082 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12084 | { (case "(($ac_try" in |
| 12085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12086 | *) ac_try_echo=$ac_try;; |
| 12087 | esac |
| 12088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12089 | (eval "$ac_try") 2>&5 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12090 | ac_status=$? |
| 12091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12092 | (exit $ac_status); }; } && |
| 12093 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12094 | { (case "(($ac_try" in |
| 12095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12096 | *) ac_try_echo=$ac_try;; |
| 12097 | esac |
| 12098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12099 | (eval "$ac_try") 2>&5 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12100 | ac_status=$? |
| 12101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12102 | (exit $ac_status); }; }; then |
| 12103 | ac_cv_lib_lcms_cmsOpenProfileFromFile=yes |
| 12104 | else |
| 12105 | echo "$as_me: failed program was:" >&5 |
| 12106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12107 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12108 | ac_cv_lib_lcms_cmsOpenProfileFromFile=no |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12109 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12110 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12111 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12112 | conftest$ac_exeext conftest.$ac_ext |
| 12113 | LIBS=$ac_check_lib_save_LIBS |
| 12114 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12115 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5 |
| 12116 | echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; } |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12117 | if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then |
| 12118 | |
| 12119 | cat >>confdefs.h <<\_ACEOF |
| 12120 | #define HAVE_LCMS 1 |
| 12121 | _ACEOF |
| 12122 | |
| 12123 | LCMSLIBS="-llcms" |
| 12124 | fi |
| 12125 | |
| 12126 | fi |
| 12127 | |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12128 | LDAPLIBS="" |
| 12129 | |
| 12130 | if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes" |
| 12131 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12132 | { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5 |
| 12133 | 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] | 12134 | if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12136 | else |
| 12137 | ac_check_lib_save_LIBS=$LIBS |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12138 | LIBS="-lldap_r $LIBPTHREAD $LIBS" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12139 | cat >conftest.$ac_ext <<_ACEOF |
| 12140 | /* confdefs.h. */ |
| 12141 | _ACEOF |
| 12142 | cat confdefs.h >>conftest.$ac_ext |
| 12143 | cat >>conftest.$ac_ext <<_ACEOF |
| 12144 | /* end confdefs.h. */ |
| 12145 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12146 | /* Override any GCC internal prototype to avoid an error. |
| 12147 | Use char because int might match the return type of a GCC |
| 12148 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12149 | #ifdef __cplusplus |
| 12150 | extern "C" |
| 12151 | #endif |
Hans Leidekker | 20d0e80 | 2005-11-18 16:56:44 +0000 | [diff] [blame] | 12152 | char ldap_initialize (); |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12153 | int |
| 12154 | main () |
| 12155 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12156 | return ldap_initialize (); |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12157 | ; |
| 12158 | return 0; |
| 12159 | } |
| 12160 | _ACEOF |
| 12161 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12162 | if { (ac_try="$ac_link" |
| 12163 | case "(($ac_try" in |
| 12164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12165 | *) ac_try_echo=$ac_try;; |
| 12166 | esac |
| 12167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12168 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12169 | ac_status=$? |
| 12170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12171 | rm -f conftest.er1 |
| 12172 | cat conftest.err >&5 |
| 12173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12174 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12175 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12176 | { (case "(($ac_try" in |
| 12177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12178 | *) ac_try_echo=$ac_try;; |
| 12179 | esac |
| 12180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12181 | (eval "$ac_try") 2>&5 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12182 | ac_status=$? |
| 12183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12184 | (exit $ac_status); }; } && |
| 12185 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12186 | { (case "(($ac_try" in |
| 12187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12188 | *) ac_try_echo=$ac_try;; |
| 12189 | esac |
| 12190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12191 | (eval "$ac_try") 2>&5 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12192 | ac_status=$? |
| 12193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12194 | (exit $ac_status); }; }; then |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12195 | ac_cv_lib_ldap_r_ldap_initialize=yes |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12196 | else |
| 12197 | echo "$as_me: failed program was:" >&5 |
| 12198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12199 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12200 | ac_cv_lib_ldap_r_ldap_initialize=no |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12201 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12202 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12203 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12204 | conftest$ac_exeext conftest.$ac_ext |
| 12205 | LIBS=$ac_check_lib_save_LIBS |
| 12206 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12207 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5 |
| 12208 | echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; } |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12209 | if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12210 | { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5 |
| 12211 | echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; } |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12212 | if test "${ac_cv_lib_lber_ber_init+set}" = set; then |
| 12213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12214 | else |
| 12215 | ac_check_lib_save_LIBS=$LIBS |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12216 | LIBS="-llber $LIBPTHREAD $LIBS" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12217 | cat >conftest.$ac_ext <<_ACEOF |
| 12218 | /* confdefs.h. */ |
| 12219 | _ACEOF |
| 12220 | cat confdefs.h >>conftest.$ac_ext |
| 12221 | cat >>conftest.$ac_ext <<_ACEOF |
| 12222 | /* end confdefs.h. */ |
| 12223 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12224 | /* Override any GCC internal prototype to avoid an error. |
| 12225 | Use char because int might match the return type of a GCC |
| 12226 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12227 | #ifdef __cplusplus |
| 12228 | extern "C" |
| 12229 | #endif |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12230 | char ber_init (); |
| 12231 | int |
| 12232 | main () |
| 12233 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12234 | return ber_init (); |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12235 | ; |
| 12236 | return 0; |
| 12237 | } |
| 12238 | _ACEOF |
| 12239 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12240 | if { (ac_try="$ac_link" |
| 12241 | case "(($ac_try" in |
| 12242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12243 | *) ac_try_echo=$ac_try;; |
| 12244 | esac |
| 12245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12246 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12247 | ac_status=$? |
| 12248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12249 | rm -f conftest.er1 |
| 12250 | cat conftest.err >&5 |
| 12251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12252 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12253 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12254 | { (case "(($ac_try" in |
| 12255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12256 | *) ac_try_echo=$ac_try;; |
| 12257 | esac |
| 12258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12259 | (eval "$ac_try") 2>&5 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12260 | ac_status=$? |
| 12261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12262 | (exit $ac_status); }; } && |
| 12263 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12264 | { (case "(($ac_try" in |
| 12265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12266 | *) ac_try_echo=$ac_try;; |
| 12267 | esac |
| 12268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12269 | (eval "$ac_try") 2>&5 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12270 | ac_status=$? |
| 12271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12272 | (exit $ac_status); }; }; then |
| 12273 | ac_cv_lib_lber_ber_init=yes |
| 12274 | else |
| 12275 | echo "$as_me: failed program was:" >&5 |
| 12276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12277 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12278 | ac_cv_lib_lber_ber_init=no |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12279 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12280 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12281 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12282 | conftest$ac_exeext conftest.$ac_ext |
| 12283 | LIBS=$ac_check_lib_save_LIBS |
| 12284 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12285 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5 |
| 12286 | echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; } |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12287 | if test $ac_cv_lib_lber_ber_init = yes; then |
| 12288 | |
| 12289 | cat >>confdefs.h <<\_ACEOF |
| 12290 | #define HAVE_LDAP 1 |
| 12291 | _ACEOF |
| 12292 | |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12293 | LDAPLIBS="-lldap_r -llber" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12294 | fi |
| 12295 | |
| 12296 | fi |
| 12297 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 12298 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 12299 | LIBS="$LIBS $LDAPLIBS $LIBPTHREAD" |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12300 | |
| 12301 | |
| 12302 | |
| 12303 | |
| 12304 | for ac_func in \ |
| 12305 | ldap_count_references \ |
| 12306 | ldap_first_reference \ |
| 12307 | ldap_next_reference \ |
| 12308 | ldap_parse_reference |
| 12309 | do |
| 12310 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12311 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12312 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12313 | 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] | 12314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12315 | else |
| 12316 | cat >conftest.$ac_ext <<_ACEOF |
| 12317 | /* confdefs.h. */ |
| 12318 | _ACEOF |
| 12319 | cat confdefs.h >>conftest.$ac_ext |
| 12320 | cat >>conftest.$ac_ext <<_ACEOF |
| 12321 | /* end confdefs.h. */ |
| 12322 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12323 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12324 | #define $ac_func innocuous_$ac_func |
| 12325 | |
| 12326 | /* System header to define __stub macros and hopefully few prototypes, |
| 12327 | which can conflict with char $ac_func (); below. |
| 12328 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12329 | <limits.h> exists even on freestanding compilers. */ |
| 12330 | |
| 12331 | #ifdef __STDC__ |
| 12332 | # include <limits.h> |
| 12333 | #else |
| 12334 | # include <assert.h> |
| 12335 | #endif |
| 12336 | |
| 12337 | #undef $ac_func |
| 12338 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12339 | /* Override any GCC internal prototype to avoid an error. |
| 12340 | Use char because int might match the return type of a GCC |
| 12341 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12342 | #ifdef __cplusplus |
| 12343 | extern "C" |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12344 | #endif |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12345 | char $ac_func (); |
| 12346 | /* The GNU C library defines this for functions which it implements |
| 12347 | to always fail with ENOSYS. Some functions are actually named |
| 12348 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12349 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12350 | choke me |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12351 | #endif |
| 12352 | |
| 12353 | int |
| 12354 | main () |
| 12355 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12356 | return $ac_func (); |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12357 | ; |
| 12358 | return 0; |
| 12359 | } |
| 12360 | _ACEOF |
| 12361 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12362 | if { (ac_try="$ac_link" |
| 12363 | case "(($ac_try" in |
| 12364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12365 | *) ac_try_echo=$ac_try;; |
| 12366 | esac |
| 12367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12368 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12369 | ac_status=$? |
| 12370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12371 | rm -f conftest.er1 |
| 12372 | cat conftest.err >&5 |
| 12373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12374 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12376 | { (case "(($ac_try" in |
| 12377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12378 | *) ac_try_echo=$ac_try;; |
| 12379 | esac |
| 12380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12381 | (eval "$ac_try") 2>&5 |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12382 | ac_status=$? |
| 12383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12384 | (exit $ac_status); }; } && |
| 12385 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12386 | { (case "(($ac_try" in |
| 12387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12388 | *) ac_try_echo=$ac_try;; |
| 12389 | esac |
| 12390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12391 | (eval "$ac_try") 2>&5 |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12392 | ac_status=$? |
| 12393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12394 | (exit $ac_status); }; }; then |
| 12395 | eval "$as_ac_var=yes" |
| 12396 | else |
| 12397 | echo "$as_me: failed program was:" >&5 |
| 12398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12399 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12400 | eval "$as_ac_var=no" |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12401 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12402 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12403 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12404 | conftest$ac_exeext conftest.$ac_ext |
| 12405 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12406 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12407 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12408 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12409 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12410 | cat >>confdefs.h <<_ACEOF |
| 12411 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12412 | _ACEOF |
| 12413 | |
| 12414 | fi |
| 12415 | done |
| 12416 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 12417 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12418 | fi |
| 12419 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 12420 | FREETYPELIBS="" |
| 12421 | |
| 12422 | FREETYPEINCL="" |
| 12423 | |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 12424 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 12425 | set dummy freetype-config; ac_word=$2 |
| 12426 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12428 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 12429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12430 | else |
| 12431 | if test -n "$ft_devel"; then |
| 12432 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 12433 | else |
| 12434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12435 | for as_dir in $PATH |
| 12436 | do |
| 12437 | IFS=$as_save_IFS |
| 12438 | test -z "$as_dir" && as_dir=. |
| 12439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12441 | ac_cv_prog_ft_devel="freetype-config" |
| 12442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12443 | break 2 |
| 12444 | fi |
| 12445 | done |
| 12446 | done |
| 12447 | IFS=$as_save_IFS |
| 12448 | |
| 12449 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 12450 | fi |
| 12451 | fi |
| 12452 | ft_devel=$ac_cv_prog_ft_devel |
| 12453 | if test -n "$ft_devel"; then |
| 12454 | { echo "$as_me:$LINENO: result: $ft_devel" >&5 |
| 12455 | echo "${ECHO_T}$ft_devel" >&6; } |
| 12456 | else |
| 12457 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12458 | echo "${ECHO_T}no" >&6; } |
| 12459 | fi |
| 12460 | |
| 12461 | |
| 12462 | if test "$ft_devel" = "no" |
| 12463 | then |
| 12464 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 12465 | set dummy freetype2-config; ac_word=$2 |
| 12466 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12468 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 12469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12470 | else |
| 12471 | if test -n "$ft_devel2"; then |
| 12472 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 12473 | else |
| 12474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12475 | for as_dir in $PATH |
| 12476 | do |
| 12477 | IFS=$as_save_IFS |
| 12478 | test -z "$as_dir" && as_dir=. |
| 12479 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12481 | ac_cv_prog_ft_devel2="freetype2-config" |
| 12482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12483 | break 2 |
| 12484 | fi |
| 12485 | done |
| 12486 | done |
| 12487 | IFS=$as_save_IFS |
| 12488 | |
| 12489 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 12490 | fi |
| 12491 | fi |
| 12492 | ft_devel2=$ac_cv_prog_ft_devel2 |
| 12493 | if test -n "$ft_devel2"; then |
| 12494 | { echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
| 12495 | echo "${ECHO_T}$ft_devel2" >&6; } |
| 12496 | else |
| 12497 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12498 | echo "${ECHO_T}no" >&6; } |
| 12499 | fi |
| 12500 | |
| 12501 | |
| 12502 | if test "$ft_devel2" = "freetype2-config" |
| 12503 | then |
| 12504 | ft_devel=$ft_devel2 |
| 12505 | fi |
| 12506 | fi |
| 12507 | |
| 12508 | if test "$ft_devel" = "no" |
| 12509 | then |
| 12510 | wine_cv_msg_freetype=yes |
| 12511 | else |
| 12512 | FREETYPELIBS=`$ft_devel --libs` |
| 12513 | FREETYPEINCL=`$ft_devel --cflags` |
| 12514 | { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12515 | 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] | 12516 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 12517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 12518 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12519 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 12520 | LIBS="-lfreetype $FREETYPELIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12521 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12522 | /* confdefs.h. */ |
| 12523 | _ACEOF |
| 12524 | cat confdefs.h >>conftest.$ac_ext |
| 12525 | cat >>conftest.$ac_ext <<_ACEOF |
| 12526 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12527 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12528 | /* Override any GCC internal prototype to avoid an error. |
| 12529 | Use char because int might match the return type of a GCC |
| 12530 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12531 | #ifdef __cplusplus |
| 12532 | extern "C" |
| 12533 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12534 | char FT_Init_FreeType (); |
| 12535 | int |
| 12536 | main () |
| 12537 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12538 | return FT_Init_FreeType (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12539 | ; |
| 12540 | return 0; |
| 12541 | } |
| 12542 | _ACEOF |
| 12543 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12544 | if { (ac_try="$ac_link" |
| 12545 | case "(($ac_try" in |
| 12546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12547 | *) ac_try_echo=$ac_try;; |
| 12548 | esac |
| 12549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12550 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12551 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12553 | rm -f conftest.er1 |
| 12554 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12556 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12557 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12558 | { (case "(($ac_try" in |
| 12559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12560 | *) ac_try_echo=$ac_try;; |
| 12561 | esac |
| 12562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12563 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12564 | ac_status=$? |
| 12565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12566 | (exit $ac_status); }; } && |
| 12567 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12568 | { (case "(($ac_try" in |
| 12569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12570 | *) ac_try_echo=$ac_try;; |
| 12571 | esac |
| 12572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12573 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12574 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12576 | (exit $ac_status); }; }; then |
| 12577 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 12578 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12579 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12581 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12582 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 12583 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12584 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12585 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12586 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12587 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 12588 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12589 | { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
| 12590 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12591 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 12592 | ft_lib=yes |
| 12593 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12594 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 12595 | fi |
| 12596 | |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 12597 | if test "$ft_lib" = "no" |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 12598 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 12599 | wine_cv_msg_freetype=yes |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 12600 | FREETYPELIBS="" |
| 12601 | FREETYPEINCL="" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 12602 | else |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 12603 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 12604 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12605 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12606 | |
| 12607 | |
| 12608 | |
| 12609 | |
| 12610 | |
| 12611 | |
| 12612 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 12613 | |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 12614 | |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 12615 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 12616 | for ac_header in ft2build.h \ |
| 12617 | freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 12618 | freetype/ftglyph.h \ |
| 12619 | freetype/tttables.h \ |
| 12620 | freetype/ftnames.h \ |
| 12621 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 12622 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 12623 | freetype/ftoutln.h \ |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 12624 | freetype/ftwinfnt.h \ |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 12625 | freetype/ftmodapi.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 12626 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 12627 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12628 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12629 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12631 | 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] | 12632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12633 | else |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 12634 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12635 | /* confdefs.h. */ |
| 12636 | _ACEOF |
| 12637 | cat confdefs.h >>conftest.$ac_ext |
| 12638 | cat >>conftest.$ac_ext <<_ACEOF |
| 12639 | /* end confdefs.h. */ |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 12640 | #if HAVE_FT2BUILD_H |
| 12641 | #include <ft2build.h> |
| 12642 | #endif |
| 12643 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12644 | #include <$ac_header> |
| 12645 | _ACEOF |
| 12646 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12647 | if { (ac_try="$ac_compile" |
| 12648 | case "(($ac_try" in |
| 12649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12650 | *) ac_try_echo=$ac_try;; |
| 12651 | esac |
| 12652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12653 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12654 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12656 | rm -f conftest.er1 |
| 12657 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12659 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12660 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12661 | { (case "(($ac_try" in |
| 12662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12663 | *) ac_try_echo=$ac_try;; |
| 12664 | esac |
| 12665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12666 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12667 | ac_status=$? |
| 12668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12669 | (exit $ac_status); }; } && |
| 12670 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12671 | { (case "(($ac_try" in |
| 12672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12673 | *) ac_try_echo=$ac_try;; |
| 12674 | esac |
| 12675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12676 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12677 | ac_status=$? |
| 12678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12679 | (exit $ac_status); }; }; then |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 12680 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12681 | else |
| 12682 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12684 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12685 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12686 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12687 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12689 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12690 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12691 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12692 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12693 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12694 | cat >>confdefs.h <<_ACEOF |
| 12695 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12696 | _ACEOF |
| 12697 | |
| 12698 | fi |
| 12699 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 12700 | done |
| 12701 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12702 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12703 | /* confdefs.h. */ |
| 12704 | _ACEOF |
| 12705 | cat confdefs.h >>conftest.$ac_ext |
| 12706 | cat >>conftest.$ac_ext <<_ACEOF |
| 12707 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 12708 | #include <ft2build.h> |
| 12709 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12710 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12711 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12712 | case "(($ac_try" in |
| 12713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12714 | *) ac_try_echo=$ac_try;; |
| 12715 | esac |
| 12716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12717 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12718 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12719 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12720 | rm -f conftest.er1 |
| 12721 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12723 | (exit $ac_status); } >/dev/null; then |
| 12724 | if test -s conftest.err; then |
| 12725 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12726 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12727 | else |
| 12728 | ac_cpp_err= |
| 12729 | fi |
| 12730 | else |
| 12731 | ac_cpp_err=yes |
| 12732 | fi |
| 12733 | if test -z "$ac_cpp_err"; then |
| 12734 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12735 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 12736 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12737 | _ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 12738 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 12739 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 12740 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12741 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12743 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 12744 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 12745 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12746 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12747 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12748 | { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5 |
| 12749 | echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; } |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12750 | if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then |
| 12751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12752 | else |
| 12753 | cat >conftest.$ac_ext <<_ACEOF |
| 12754 | /* confdefs.h. */ |
| 12755 | _ACEOF |
| 12756 | cat confdefs.h >>conftest.$ac_ext |
| 12757 | cat >>conftest.$ac_ext <<_ACEOF |
| 12758 | /* end confdefs.h. */ |
| 12759 | #include <freetype/ftmodapi.h> |
| 12760 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12761 | typedef FT_TrueTypeEngineType ac__type_new_; |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12762 | int |
| 12763 | main () |
| 12764 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12765 | if ((ac__type_new_ *) 0) |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12766 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12767 | if (sizeof (ac__type_new_)) |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12768 | return 0; |
| 12769 | ; |
| 12770 | return 0; |
| 12771 | } |
| 12772 | _ACEOF |
| 12773 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12774 | if { (ac_try="$ac_compile" |
| 12775 | case "(($ac_try" in |
| 12776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12777 | *) ac_try_echo=$ac_try;; |
| 12778 | esac |
| 12779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12780 | (eval "$ac_compile") 2>conftest.er1 |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12781 | ac_status=$? |
| 12782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12783 | rm -f conftest.er1 |
| 12784 | cat conftest.err >&5 |
| 12785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12786 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12787 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12788 | { (case "(($ac_try" in |
| 12789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12790 | *) ac_try_echo=$ac_try;; |
| 12791 | esac |
| 12792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12793 | (eval "$ac_try") 2>&5 |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12794 | ac_status=$? |
| 12795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12796 | (exit $ac_status); }; } && |
| 12797 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12798 | { (case "(($ac_try" in |
| 12799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12800 | *) ac_try_echo=$ac_try;; |
| 12801 | esac |
| 12802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12803 | (eval "$ac_try") 2>&5 |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12804 | ac_status=$? |
| 12805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12806 | (exit $ac_status); }; }; then |
| 12807 | ac_cv_type_FT_TrueTypeEngineType=yes |
| 12808 | else |
| 12809 | echo "$as_me: failed program was:" >&5 |
| 12810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12811 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12812 | ac_cv_type_FT_TrueTypeEngineType=no |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12813 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12814 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12816 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12817 | { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5 |
| 12818 | echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; } |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 12819 | if test $ac_cv_type_FT_TrueTypeEngineType = yes; then |
| 12820 | |
| 12821 | cat >>confdefs.h <<_ACEOF |
| 12822 | #define HAVE_FT_TRUETYPEENGINETYPE 1 |
| 12823 | _ACEOF |
| 12824 | |
| 12825 | |
| 12826 | fi |
| 12827 | |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12828 | ac_save_CFLAGS="$CFLAGS" |
| 12829 | CFLAGS="$CFLAGS $FREETYPELIBS" |
| 12830 | |
| 12831 | for ac_func in FT_Load_Sfnt_Table |
| 12832 | do |
| 12833 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12834 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12835 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12836 | 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] | 12837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12838 | else |
| 12839 | cat >conftest.$ac_ext <<_ACEOF |
| 12840 | /* confdefs.h. */ |
| 12841 | _ACEOF |
| 12842 | cat confdefs.h >>conftest.$ac_ext |
| 12843 | cat >>conftest.$ac_ext <<_ACEOF |
| 12844 | /* end confdefs.h. */ |
| 12845 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12846 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12847 | #define $ac_func innocuous_$ac_func |
| 12848 | |
| 12849 | /* System header to define __stub macros and hopefully few prototypes, |
| 12850 | which can conflict with char $ac_func (); below. |
| 12851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12852 | <limits.h> exists even on freestanding compilers. */ |
| 12853 | |
| 12854 | #ifdef __STDC__ |
| 12855 | # include <limits.h> |
| 12856 | #else |
| 12857 | # include <assert.h> |
| 12858 | #endif |
| 12859 | |
| 12860 | #undef $ac_func |
| 12861 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12862 | /* Override any GCC internal prototype to avoid an error. |
| 12863 | Use char because int might match the return type of a GCC |
| 12864 | builtin and then its argument prototype would still apply. */ |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12865 | #ifdef __cplusplus |
| 12866 | extern "C" |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12867 | #endif |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12868 | char $ac_func (); |
| 12869 | /* The GNU C library defines this for functions which it implements |
| 12870 | to always fail with ENOSYS. Some functions are actually named |
| 12871 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12872 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12873 | choke me |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12874 | #endif |
| 12875 | |
| 12876 | int |
| 12877 | main () |
| 12878 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12879 | return $ac_func (); |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12880 | ; |
| 12881 | return 0; |
| 12882 | } |
| 12883 | _ACEOF |
| 12884 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12885 | if { (ac_try="$ac_link" |
| 12886 | case "(($ac_try" in |
| 12887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12888 | *) ac_try_echo=$ac_try;; |
| 12889 | esac |
| 12890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12891 | (eval "$ac_link") 2>conftest.er1 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12892 | ac_status=$? |
| 12893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12894 | rm -f conftest.er1 |
| 12895 | cat conftest.err >&5 |
| 12896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12897 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12899 | { (case "(($ac_try" in |
| 12900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12901 | *) ac_try_echo=$ac_try;; |
| 12902 | esac |
| 12903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12904 | (eval "$ac_try") 2>&5 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12905 | ac_status=$? |
| 12906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12907 | (exit $ac_status); }; } && |
| 12908 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12909 | { (case "(($ac_try" in |
| 12910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12911 | *) ac_try_echo=$ac_try;; |
| 12912 | esac |
| 12913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12914 | (eval "$ac_try") 2>&5 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12915 | ac_status=$? |
| 12916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12917 | (exit $ac_status); }; }; then |
| 12918 | eval "$as_ac_var=yes" |
| 12919 | else |
| 12920 | echo "$as_me: failed program was:" >&5 |
| 12921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12922 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12923 | eval "$as_ac_var=no" |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12924 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12925 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12926 | rm -f core conftest.err conftest.$ac_objext \ |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12927 | conftest$ac_exeext conftest.$ac_ext |
| 12928 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12929 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12930 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12931 | echo "${ECHO_T}$ac_res" >&6; } |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 12932 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12933 | cat >>confdefs.h <<_ACEOF |
| 12934 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12935 | _ACEOF |
| 12936 | |
| 12937 | fi |
| 12938 | done |
| 12939 | |
| 12940 | CFLAGS="$ac_save_CFLAGS" |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 12941 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 12942 | 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] | 12943 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12944 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12945 | cat >>confdefs.h <<\_ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 12946 | #define HAVE_FREETYPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12947 | _ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 12948 | |
| 12949 | wine_cv_msg_freetype=no |
| 12950 | else |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 12951 | FREETYPELIBS="" |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 12952 | FREETYPEINCL="" |
| 12953 | wine_cv_msg_freetype=yes |
| 12954 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 12955 | fi |
| 12956 | fi |
| 12957 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 12958 | if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS" |
| 12959 | then |
| 12960 | FONTSSUBDIRS="fonts" |
| 12961 | |
| 12962 | fi |
| 12963 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12964 | { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
| 12965 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12966 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 12967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 12968 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12969 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12970 | /* confdefs.h. */ |
| 12971 | _ACEOF |
| 12972 | cat confdefs.h >>conftest.$ac_ext |
| 12973 | cat >>conftest.$ac_ext <<_ACEOF |
| 12974 | /* end confdefs.h. */ |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 12975 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12976 | int |
| 12977 | main () |
| 12978 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 12979 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12980 | ; |
| 12981 | return 0; |
| 12982 | } |
| 12983 | _ACEOF |
| 12984 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12985 | if { (ac_try="$ac_compile" |
| 12986 | case "(($ac_try" in |
| 12987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12988 | *) ac_try_echo=$ac_try;; |
| 12989 | esac |
| 12990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12991 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12992 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12994 | rm -f conftest.er1 |
| 12995 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12997 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12999 | { (case "(($ac_try" in |
| 13000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13001 | *) ac_try_echo=$ac_try;; |
| 13002 | esac |
| 13003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13004 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13005 | ac_status=$? |
| 13006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13007 | (exit $ac_status); }; } && |
| 13008 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13009 | { (case "(($ac_try" in |
| 13010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13011 | *) ac_try_echo=$ac_try;; |
| 13012 | esac |
| 13013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13014 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13015 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13017 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13018 | ac_cv_c_ppdev="yes" |
| 13019 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13020 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13022 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13023 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13024 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13025 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13027 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13028 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13029 | { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
| 13030 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6; } |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13031 | if test "$ac_cv_c_ppdev" = "yes" |
| 13032 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13033 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13034 | cat >>confdefs.h <<\_ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13035 | #define HAVE_PPDEV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13036 | _ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13037 | |
| 13038 | fi |
| 13039 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13040 | { echo "$as_me:$LINENO: checking for va_copy" >&5 |
| 13041 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13042 | if test "${ac_cv_c_va_copy+set}" = set; then |
| 13043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13044 | else |
| 13045 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13046 | /* confdefs.h. */ |
| 13047 | _ACEOF |
| 13048 | cat confdefs.h >>conftest.$ac_ext |
| 13049 | cat >>conftest.$ac_ext <<_ACEOF |
| 13050 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13051 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13052 | int |
| 13053 | main () |
| 13054 | { |
| 13055 | va_list ap1, ap2; |
| 13056 | va_copy(ap1,ap2); |
| 13057 | |
| 13058 | ; |
| 13059 | return 0; |
| 13060 | } |
| 13061 | _ACEOF |
| 13062 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13063 | if { (ac_try="$ac_link" |
| 13064 | case "(($ac_try" in |
| 13065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13066 | *) ac_try_echo=$ac_try;; |
| 13067 | esac |
| 13068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13069 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13070 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13072 | rm -f conftest.er1 |
| 13073 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13075 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13077 | { (case "(($ac_try" in |
| 13078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13079 | *) ac_try_echo=$ac_try;; |
| 13080 | esac |
| 13081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13082 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13083 | ac_status=$? |
| 13084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13085 | (exit $ac_status); }; } && |
| 13086 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13087 | { (case "(($ac_try" in |
| 13088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13089 | *) ac_try_echo=$ac_try;; |
| 13090 | esac |
| 13091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13092 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13093 | ac_status=$? |
| 13094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13095 | (exit $ac_status); }; }; then |
| 13096 | ac_cv_c_va_copy="yes" |
| 13097 | else |
| 13098 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13100 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13101 | ac_cv_c_va_copy="no" |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13102 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13103 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13104 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13105 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13106 | |
| 13107 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13108 | { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
| 13109 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13110 | if test "$ac_cv_c_va_copy" = "yes" |
| 13111 | then |
| 13112 | |
| 13113 | cat >>confdefs.h <<\_ACEOF |
| 13114 | #define HAVE_VA_COPY 1 |
| 13115 | _ACEOF |
| 13116 | |
| 13117 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13118 | { echo "$as_me:$LINENO: checking for __va_copy" >&5 |
| 13119 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13120 | if test "${ac_cv_c___va_copy+set}" = set; then |
| 13121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13122 | else |
| 13123 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13124 | /* confdefs.h. */ |
| 13125 | _ACEOF |
| 13126 | cat confdefs.h >>conftest.$ac_ext |
| 13127 | cat >>conftest.$ac_ext <<_ACEOF |
| 13128 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13129 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13130 | int |
| 13131 | main () |
| 13132 | { |
| 13133 | va_list ap1, ap2; |
| 13134 | __va_copy(ap1,ap2); |
| 13135 | |
| 13136 | ; |
| 13137 | return 0; |
| 13138 | } |
| 13139 | _ACEOF |
| 13140 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13141 | if { (ac_try="$ac_link" |
| 13142 | case "(($ac_try" in |
| 13143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13144 | *) ac_try_echo=$ac_try;; |
| 13145 | esac |
| 13146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13147 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13148 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13150 | rm -f conftest.er1 |
| 13151 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13153 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13154 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13155 | { (case "(($ac_try" in |
| 13156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13157 | *) ac_try_echo=$ac_try;; |
| 13158 | esac |
| 13159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13160 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13161 | ac_status=$? |
| 13162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13163 | (exit $ac_status); }; } && |
| 13164 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13165 | { (case "(($ac_try" in |
| 13166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13167 | *) ac_try_echo=$ac_try;; |
| 13168 | esac |
| 13169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13170 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13171 | ac_status=$? |
| 13172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13173 | (exit $ac_status); }; }; then |
| 13174 | ac_cv_c___va_copy="yes" |
| 13175 | else |
| 13176 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13178 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13179 | ac_cv_c___va_copy="no" |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13180 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13181 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13182 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13183 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13184 | |
| 13185 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13186 | { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
| 13187 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13188 | if test "$ac_cv_c___va_copy" = "yes" |
| 13189 | then |
| 13190 | |
| 13191 | cat >>confdefs.h <<\_ACEOF |
| 13192 | #define HAVE___VA_COPY 1 |
| 13193 | _ACEOF |
| 13194 | |
| 13195 | fi |
| 13196 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13197 | { echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
| 13198 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; } |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13199 | if test "${ac_cv_c_sigsetjmp+set}" = set; then |
| 13200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13201 | else |
| 13202 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13203 | /* confdefs.h. */ |
| 13204 | _ACEOF |
| 13205 | cat confdefs.h >>conftest.$ac_ext |
| 13206 | cat >>conftest.$ac_ext <<_ACEOF |
| 13207 | /* end confdefs.h. */ |
| 13208 | #include <setjmp.h> |
| 13209 | int |
| 13210 | main () |
| 13211 | { |
| 13212 | sigjmp_buf buf; |
| 13213 | sigsetjmp( buf, 1 ); |
| 13214 | siglongjmp( buf, 1 ); |
| 13215 | ; |
| 13216 | return 0; |
| 13217 | } |
| 13218 | _ACEOF |
| 13219 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13220 | if { (ac_try="$ac_link" |
| 13221 | case "(($ac_try" in |
| 13222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13223 | *) ac_try_echo=$ac_try;; |
| 13224 | esac |
| 13225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13226 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13227 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13229 | rm -f conftest.er1 |
| 13230 | cat conftest.err >&5 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13232 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13234 | { (case "(($ac_try" in |
| 13235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13236 | *) ac_try_echo=$ac_try;; |
| 13237 | esac |
| 13238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13239 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13240 | ac_status=$? |
| 13241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13242 | (exit $ac_status); }; } && |
| 13243 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13244 | { (case "(($ac_try" in |
| 13245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13246 | *) ac_try_echo=$ac_try;; |
| 13247 | esac |
| 13248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13249 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13250 | ac_status=$? |
| 13251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13252 | (exit $ac_status); }; }; then |
| 13253 | ac_cv_c_sigsetjmp="yes" |
| 13254 | else |
| 13255 | echo "$as_me: failed program was:" >&5 |
| 13256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13257 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13258 | ac_cv_c_sigsetjmp="no" |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13259 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13260 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13261 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13262 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13263 | |
| 13264 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13265 | { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5 |
| 13266 | echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; } |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13267 | if test "$ac_cv_c_sigsetjmp" = "yes" |
| 13268 | then |
| 13269 | |
| 13270 | cat >>confdefs.h <<\_ACEOF |
| 13271 | #define HAVE_SIGSETJMP 1 |
| 13272 | _ACEOF |
| 13273 | |
| 13274 | fi |
| 13275 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13276 | { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 |
| 13277 | echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13278 | if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then |
| 13279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13280 | else |
| 13281 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13282 | /* confdefs.h. */ |
| 13283 | _ACEOF |
| 13284 | cat confdefs.h >>conftest.$ac_ext |
| 13285 | cat >>conftest.$ac_ext <<_ACEOF |
| 13286 | /* end confdefs.h. */ |
| 13287 | #define _GNU_SOURCE |
| 13288 | #include <pthread.h> |
| 13289 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13290 | typedef pthread_rwlock_t ac__type_new_; |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13291 | int |
| 13292 | main () |
| 13293 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13294 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13295 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13296 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13297 | return 0; |
| 13298 | ; |
| 13299 | return 0; |
| 13300 | } |
| 13301 | _ACEOF |
| 13302 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13303 | if { (ac_try="$ac_compile" |
| 13304 | case "(($ac_try" in |
| 13305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13306 | *) ac_try_echo=$ac_try;; |
| 13307 | esac |
| 13308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13309 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13310 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13312 | rm -f conftest.er1 |
| 13313 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13315 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13316 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13317 | { (case "(($ac_try" in |
| 13318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13319 | *) ac_try_echo=$ac_try;; |
| 13320 | esac |
| 13321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13322 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13323 | ac_status=$? |
| 13324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13325 | (exit $ac_status); }; } && |
| 13326 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13327 | { (case "(($ac_try" in |
| 13328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13329 | *) ac_try_echo=$ac_try;; |
| 13330 | esac |
| 13331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13332 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13333 | ac_status=$? |
| 13334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13335 | (exit $ac_status); }; }; then |
| 13336 | ac_cv_type_pthread_rwlock_t=yes |
| 13337 | else |
| 13338 | echo "$as_me: failed program was:" >&5 |
| 13339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13340 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13341 | ac_cv_type_pthread_rwlock_t=no |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13342 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13343 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13345 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13346 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5 |
| 13347 | echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13348 | if test $ac_cv_type_pthread_rwlock_t = yes; then |
| 13349 | |
| 13350 | cat >>confdefs.h <<_ACEOF |
| 13351 | #define HAVE_PTHREAD_RWLOCK_T 1 |
| 13352 | _ACEOF |
| 13353 | |
| 13354 | |
| 13355 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13356 | { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5 |
| 13357 | echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13358 | if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then |
| 13359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13360 | else |
| 13361 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13362 | /* confdefs.h. */ |
| 13363 | _ACEOF |
| 13364 | cat confdefs.h >>conftest.$ac_ext |
| 13365 | cat >>conftest.$ac_ext <<_ACEOF |
| 13366 | /* end confdefs.h. */ |
| 13367 | #define _GNU_SOURCE |
| 13368 | #include <pthread.h> |
| 13369 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13370 | typedef pthread_rwlockattr_t ac__type_new_; |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13371 | int |
| 13372 | main () |
| 13373 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13374 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13375 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13376 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13377 | return 0; |
| 13378 | ; |
| 13379 | return 0; |
| 13380 | } |
| 13381 | _ACEOF |
| 13382 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13383 | if { (ac_try="$ac_compile" |
| 13384 | case "(($ac_try" in |
| 13385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13386 | *) ac_try_echo=$ac_try;; |
| 13387 | esac |
| 13388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13389 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13390 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13392 | rm -f conftest.er1 |
| 13393 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13395 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13397 | { (case "(($ac_try" in |
| 13398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13399 | *) ac_try_echo=$ac_try;; |
| 13400 | esac |
| 13401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13402 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13403 | ac_status=$? |
| 13404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13405 | (exit $ac_status); }; } && |
| 13406 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13407 | { (case "(($ac_try" in |
| 13408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13409 | *) ac_try_echo=$ac_try;; |
| 13410 | esac |
| 13411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13412 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13413 | ac_status=$? |
| 13414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13415 | (exit $ac_status); }; }; then |
| 13416 | ac_cv_type_pthread_rwlockattr_t=yes |
| 13417 | else |
| 13418 | echo "$as_me: failed program was:" >&5 |
| 13419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13420 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13421 | ac_cv_type_pthread_rwlockattr_t=no |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13422 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13423 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13425 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13426 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5 |
| 13427 | echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13428 | if test $ac_cv_type_pthread_rwlockattr_t = yes; then |
| 13429 | |
| 13430 | cat >>confdefs.h <<_ACEOF |
| 13431 | #define HAVE_PTHREAD_RWLOCKATTR_T 1 |
| 13432 | _ACEOF |
| 13433 | |
| 13434 | |
| 13435 | fi |
| 13436 | |
| 13437 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 13438 | ac_wine_check_funcs_save_LIBS="$LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13439 | LIBS="$LIBS $LIBPTHREAD" |
| 13440 | |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 13441 | |
| 13442 | |
Tijl Coosemans | fc8172f | 2006-08-05 23:31:07 +0200 | [diff] [blame] | 13443 | |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 13444 | for ac_func in \ |
Tijl Coosemans | fc8172f | 2006-08-05 23:31:07 +0200 | [diff] [blame] | 13445 | pthread_attr_get_np \ |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 13446 | pthread_getattr_np \ |
| 13447 | pthread_get_stackaddr_np \ |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 13448 | pthread_get_stacksize_np |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13449 | do |
| 13450 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13451 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13452 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 13453 | 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] | 13454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13455 | else |
| 13456 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13457 | /* confdefs.h. */ |
| 13458 | _ACEOF |
| 13459 | cat confdefs.h >>conftest.$ac_ext |
| 13460 | cat >>conftest.$ac_ext <<_ACEOF |
| 13461 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13462 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13463 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13464 | #define $ac_func innocuous_$ac_func |
| 13465 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13466 | /* System header to define __stub macros and hopefully few prototypes, |
| 13467 | which can conflict with char $ac_func (); below. |
| 13468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13469 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13470 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13471 | #ifdef __STDC__ |
| 13472 | # include <limits.h> |
| 13473 | #else |
| 13474 | # include <assert.h> |
| 13475 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13476 | |
| 13477 | #undef $ac_func |
| 13478 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13479 | /* Override any GCC internal prototype to avoid an error. |
| 13480 | Use char because int might match the return type of a GCC |
| 13481 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13482 | #ifdef __cplusplus |
| 13483 | extern "C" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13484 | #endif |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13485 | char $ac_func (); |
| 13486 | /* The GNU C library defines this for functions which it implements |
| 13487 | to always fail with ENOSYS. Some functions are actually named |
| 13488 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13489 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13490 | choke me |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13491 | #endif |
| 13492 | |
| 13493 | int |
| 13494 | main () |
| 13495 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13496 | return $ac_func (); |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13497 | ; |
| 13498 | return 0; |
| 13499 | } |
| 13500 | _ACEOF |
| 13501 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13502 | if { (ac_try="$ac_link" |
| 13503 | case "(($ac_try" in |
| 13504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13505 | *) ac_try_echo=$ac_try;; |
| 13506 | esac |
| 13507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13508 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13509 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13511 | rm -f conftest.er1 |
| 13512 | cat conftest.err >&5 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13514 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13516 | { (case "(($ac_try" in |
| 13517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13518 | *) ac_try_echo=$ac_try;; |
| 13519 | esac |
| 13520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13521 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13522 | ac_status=$? |
| 13523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13524 | (exit $ac_status); }; } && |
| 13525 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13526 | { (case "(($ac_try" in |
| 13527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13528 | *) ac_try_echo=$ac_try;; |
| 13529 | esac |
| 13530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13531 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13532 | ac_status=$? |
| 13533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13534 | (exit $ac_status); }; }; then |
| 13535 | eval "$as_ac_var=yes" |
| 13536 | else |
| 13537 | echo "$as_me: failed program was:" >&5 |
| 13538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13539 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13540 | eval "$as_ac_var=no" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13541 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13542 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13543 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13544 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13545 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13546 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13547 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13548 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13549 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13550 | cat >>confdefs.h <<_ACEOF |
| 13551 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13552 | _ACEOF |
| 13553 | |
| 13554 | fi |
| 13555 | done |
| 13556 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 13557 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 13558 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13559 | # Extract the first word of "artsc-config", so it can be a program name with args. |
| 13560 | set dummy artsc-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13561 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13563 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
| 13564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13565 | else |
| 13566 | case $ARTSCCONFIG in |
| 13567 | [\\/]* | ?:[\\/]*) |
| 13568 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. |
| 13569 | ;; |
| 13570 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13572 | for as_dir in $PATH |
| 13573 | do |
| 13574 | IFS=$as_save_IFS |
| 13575 | test -z "$as_dir" && as_dir=. |
| 13576 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13577 | 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] | 13578 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 13579 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13580 | break 2 |
| 13581 | fi |
| 13582 | done |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13583 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13584 | IFS=$as_save_IFS |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13585 | |
| 13586 | ;; |
| 13587 | esac |
| 13588 | fi |
| 13589 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13590 | if test -n "$ARTSCCONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13591 | { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
| 13592 | echo "${ECHO_T}$ARTSCCONFIG" >&6; } |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13593 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13594 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13595 | echo "${ECHO_T}no" >&6; } |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13596 | fi |
| 13597 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13598 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 13599 | if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"'; |
| 13600 | then |
Alexandre Julliard | b3b12cf | 2004-02-24 01:24:20 +0000 | [diff] [blame] | 13601 | ARTSC_CFLAGS="" |
| 13602 | for i in `$ARTSCCONFIG --cflags` |
| 13603 | do |
| 13604 | case "$i" in |
| 13605 | -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";; |
| 13606 | esac |
| 13607 | done |
Alexandre Julliard | 197a7d0 | 2006-04-04 12:08:30 +0200 | [diff] [blame] | 13608 | ARTSC_LIBS="" |
| 13609 | for i in `$ARTSCCONFIG --libs` |
| 13610 | do |
| 13611 | case "$i" in |
| 13612 | -L/usr/lib|-L/usr/lib64) ;; |
| 13613 | -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";; |
| 13614 | esac |
| 13615 | done |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 13616 | save_CFLAGS="$CFLAGS" |
| 13617 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13618 | { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5 |
| 13619 | echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; } |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13620 | if test "${ac_cv_lib_artsc_arts_init+set}" = set; then |
| 13621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13622 | else |
| 13623 | ac_check_lib_save_LIBS=$LIBS |
Vitaliy Margolen | 80816e9 | 2005-06-30 20:46:59 +0000 | [diff] [blame] | 13624 | LIBS="-lartsc $ARTSC_LIBS $LIBS" |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13625 | cat >conftest.$ac_ext <<_ACEOF |
| 13626 | /* confdefs.h. */ |
| 13627 | _ACEOF |
| 13628 | cat confdefs.h >>conftest.$ac_ext |
| 13629 | cat >>conftest.$ac_ext <<_ACEOF |
| 13630 | /* end confdefs.h. */ |
| 13631 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13632 | /* Override any GCC internal prototype to avoid an error. |
| 13633 | Use char because int might match the return type of a GCC |
| 13634 | builtin and then its argument prototype would still apply. */ |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13635 | #ifdef __cplusplus |
| 13636 | extern "C" |
| 13637 | #endif |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13638 | char arts_init (); |
| 13639 | int |
| 13640 | main () |
| 13641 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13642 | return arts_init (); |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13643 | ; |
| 13644 | return 0; |
| 13645 | } |
| 13646 | _ACEOF |
| 13647 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13648 | if { (ac_try="$ac_link" |
| 13649 | case "(($ac_try" in |
| 13650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13651 | *) ac_try_echo=$ac_try;; |
| 13652 | esac |
| 13653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13654 | (eval "$ac_link") 2>conftest.er1 |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13655 | ac_status=$? |
| 13656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13657 | rm -f conftest.er1 |
| 13658 | cat conftest.err >&5 |
| 13659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13660 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13661 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13662 | { (case "(($ac_try" in |
| 13663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13664 | *) ac_try_echo=$ac_try;; |
| 13665 | esac |
| 13666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13667 | (eval "$ac_try") 2>&5 |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13668 | ac_status=$? |
| 13669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13670 | (exit $ac_status); }; } && |
| 13671 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13672 | { (case "(($ac_try" in |
| 13673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13674 | *) ac_try_echo=$ac_try;; |
| 13675 | esac |
| 13676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13677 | (eval "$ac_try") 2>&5 |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13678 | ac_status=$? |
| 13679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13680 | (exit $ac_status); }; }; then |
| 13681 | ac_cv_lib_artsc_arts_init=yes |
| 13682 | else |
| 13683 | echo "$as_me: failed program was:" >&5 |
| 13684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13685 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13686 | ac_cv_lib_artsc_arts_init=no |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13687 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13688 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13689 | rm -f core conftest.err conftest.$ac_objext \ |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13690 | conftest$ac_exeext conftest.$ac_ext |
| 13691 | LIBS=$ac_check_lib_save_LIBS |
| 13692 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13693 | { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5 |
| 13694 | echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; } |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13695 | if test $ac_cv_lib_artsc_arts_init = yes; then |
| 13696 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13697 | /* confdefs.h. */ |
| 13698 | _ACEOF |
| 13699 | cat confdefs.h >>conftest.$ac_ext |
| 13700 | cat >>conftest.$ac_ext <<_ACEOF |
| 13701 | /* end confdefs.h. */ |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 13702 | #include <artsc.h> |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13703 | int |
| 13704 | main () |
| 13705 | { |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 13706 | arts_stream_t stream; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13707 | ; |
| 13708 | return 0; |
| 13709 | } |
| 13710 | _ACEOF |
| 13711 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13712 | if { (ac_try="$ac_compile" |
| 13713 | case "(($ac_try" in |
| 13714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13715 | *) ac_try_echo=$ac_try;; |
| 13716 | esac |
| 13717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13718 | (eval "$ac_compile") 2>conftest.er1 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13719 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13721 | rm -f conftest.er1 |
| 13722 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13724 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13726 | { (case "(($ac_try" in |
| 13727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13728 | *) ac_try_echo=$ac_try;; |
| 13729 | esac |
| 13730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13731 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13732 | ac_status=$? |
| 13733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13734 | (exit $ac_status); }; } && |
| 13735 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13736 | { (case "(($ac_try" in |
| 13737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13738 | *) ac_try_echo=$ac_try;; |
| 13739 | esac |
| 13740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13741 | (eval "$ac_try") 2>&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13742 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13744 | (exit $ac_status); }; }; then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 13745 | ARTSLIBS=$ARTSC_LIBS |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13746 | |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13747 | ARTSINCL=$ARTSC_CFLAGS |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 13748 | |
| 13749 | |
| 13750 | cat >>confdefs.h <<\_ACEOF |
| 13751 | #define HAVE_ARTS 1 |
| 13752 | _ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13753 | |
| 13754 | else |
| 13755 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13757 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13758 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13759 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13760 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 13762 | fi |
| 13763 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 13764 | CFLAGS="$save_CFLAGS" |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 13765 | fi |
| 13766 | |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13767 | # Extract the first word of "esd-config", so it can be a program name with args. |
| 13768 | set dummy esd-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13769 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13771 | if test "${ac_cv_path_ESDCONFIG+set}" = set; then |
| 13772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13773 | else |
| 13774 | case $ESDCONFIG in |
| 13775 | [\\/]* | ?:[\\/]*) |
| 13776 | ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path. |
| 13777 | ;; |
| 13778 | *) |
| 13779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13780 | for as_dir in $PATH |
| 13781 | do |
| 13782 | IFS=$as_save_IFS |
| 13783 | test -z "$as_dir" && as_dir=. |
| 13784 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13785 | 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] | 13786 | ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 13787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13788 | break 2 |
| 13789 | fi |
| 13790 | done |
| 13791 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13792 | IFS=$as_save_IFS |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13793 | |
| 13794 | ;; |
| 13795 | esac |
| 13796 | fi |
| 13797 | ESDCONFIG=$ac_cv_path_ESDCONFIG |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13798 | if test -n "$ESDCONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13799 | { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5 |
| 13800 | echo "${ECHO_T}$ESDCONFIG" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13801 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13802 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13803 | echo "${ECHO_T}no" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13804 | fi |
| 13805 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13806 | |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13807 | if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"'; |
| 13808 | then |
| 13809 | ESD_CFLAGS="" |
| 13810 | for i in `$ESDCONFIG --cflags` |
| 13811 | do |
| 13812 | case "$i" in |
| 13813 | -I*) ESD_CFLAGS="$ESD_CFLAGS $i";; |
| 13814 | esac |
| 13815 | done |
| 13816 | ESD_LIBS=`$ESDCONFIG --libs` |
| 13817 | save_CFLAGS="$CFLAGS" |
| 13818 | CFLAGS="$CFLAGS $ESD_CFLAGS" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13819 | { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5 |
| 13820 | 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] | 13821 | if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then |
| 13822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13823 | else |
| 13824 | ac_check_lib_save_LIBS=$LIBS |
| 13825 | LIBS="-lesd $LIBS" |
| 13826 | cat >conftest.$ac_ext <<_ACEOF |
| 13827 | /* confdefs.h. */ |
| 13828 | _ACEOF |
| 13829 | cat confdefs.h >>conftest.$ac_ext |
| 13830 | cat >>conftest.$ac_ext <<_ACEOF |
| 13831 | /* end confdefs.h. */ |
| 13832 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13833 | /* Override any GCC internal prototype to avoid an error. |
| 13834 | Use char because int might match the return type of a GCC |
| 13835 | builtin and then its argument prototype would still apply. */ |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13836 | #ifdef __cplusplus |
| 13837 | extern "C" |
| 13838 | #endif |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13839 | char esd_open_sound (); |
| 13840 | int |
| 13841 | main () |
| 13842 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13843 | return esd_open_sound (); |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13844 | ; |
| 13845 | return 0; |
| 13846 | } |
| 13847 | _ACEOF |
| 13848 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13849 | if { (ac_try="$ac_link" |
| 13850 | case "(($ac_try" in |
| 13851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13852 | *) ac_try_echo=$ac_try;; |
| 13853 | esac |
| 13854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13855 | (eval "$ac_link") 2>conftest.er1 |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13856 | ac_status=$? |
| 13857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13858 | rm -f conftest.er1 |
| 13859 | cat conftest.err >&5 |
| 13860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13861 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13863 | { (case "(($ac_try" in |
| 13864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13865 | *) ac_try_echo=$ac_try;; |
| 13866 | esac |
| 13867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13868 | (eval "$ac_try") 2>&5 |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13869 | ac_status=$? |
| 13870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13871 | (exit $ac_status); }; } && |
| 13872 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13873 | { (case "(($ac_try" in |
| 13874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13875 | *) ac_try_echo=$ac_try;; |
| 13876 | esac |
| 13877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13878 | (eval "$ac_try") 2>&5 |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13879 | ac_status=$? |
| 13880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13881 | (exit $ac_status); }; }; then |
| 13882 | ac_cv_lib_esd_esd_open_sound=yes |
| 13883 | else |
| 13884 | echo "$as_me: failed program was:" >&5 |
| 13885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13886 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13887 | ac_cv_lib_esd_esd_open_sound=no |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13888 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13889 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13890 | rm -f core conftest.err conftest.$ac_objext \ |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13891 | conftest$ac_exeext conftest.$ac_ext |
| 13892 | LIBS=$ac_check_lib_save_LIBS |
| 13893 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13894 | { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5 |
| 13895 | echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 13896 | if test $ac_cv_lib_esd_esd_open_sound = yes; then |
| 13897 | ESDLIBS=$ESD_LIBS |
| 13898 | |
| 13899 | ESDINCL=$ESD_CFLAGS |
| 13900 | |
| 13901 | |
| 13902 | cat >>confdefs.h <<\_ACEOF |
| 13903 | #define HAVE_ESD 1 |
| 13904 | _ACEOF |
| 13905 | |
| 13906 | fi |
| 13907 | |
| 13908 | CFLAGS="$save_CFLAGS" |
| 13909 | fi |
| 13910 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13911 | ALSALIBS="" |
| 13912 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 13913 | 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] | 13914 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13915 | { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5 |
| 13916 | 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] | 13917 | 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] | 13918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13919 | else |
| 13920 | ac_check_lib_save_LIBS=$LIBS |
| 13921 | LIBS="-lasound $LIBS" |
| 13922 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13923 | /* confdefs.h. */ |
| 13924 | _ACEOF |
| 13925 | cat confdefs.h >>conftest.$ac_ext |
| 13926 | cat >>conftest.$ac_ext <<_ACEOF |
| 13927 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13928 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13929 | /* Override any GCC internal prototype to avoid an error. |
| 13930 | Use char because int might match the return type of a GCC |
| 13931 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13932 | #ifdef __cplusplus |
| 13933 | extern "C" |
| 13934 | #endif |
Vincent BĂ©ron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 13935 | char snd_pcm_hw_params_get_access (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13936 | int |
| 13937 | main () |
| 13938 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13939 | return snd_pcm_hw_params_get_access (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13940 | ; |
| 13941 | return 0; |
| 13942 | } |
| 13943 | _ACEOF |
| 13944 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13945 | if { (ac_try="$ac_link" |
| 13946 | case "(($ac_try" in |
| 13947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13948 | *) ac_try_echo=$ac_try;; |
| 13949 | esac |
| 13950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13951 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13952 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13954 | rm -f conftest.er1 |
| 13955 | cat conftest.err >&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13957 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13959 | { (case "(($ac_try" in |
| 13960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13961 | *) ac_try_echo=$ac_try;; |
| 13962 | esac |
| 13963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13964 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13965 | ac_status=$? |
| 13966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13967 | (exit $ac_status); }; } && |
| 13968 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13969 | { (case "(($ac_try" in |
| 13970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13971 | *) ac_try_echo=$ac_try;; |
| 13972 | esac |
| 13973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13974 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13975 | ac_status=$? |
| 13976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13977 | (exit $ac_status); }; }; then |
Vincent BĂ©ron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 13978 | ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13979 | else |
| 13980 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13982 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13983 | ac_cv_lib_asound_snd_pcm_hw_params_get_access=no |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13984 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13985 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13986 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13987 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 13988 | LIBS=$ac_check_lib_save_LIBS |
| 13989 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13990 | { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5 |
| 13991 | 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] | 13992 | if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then |
| 13993 | cat >conftest.$ac_ext <<_ACEOF |
| 13994 | /* confdefs.h. */ |
| 13995 | _ACEOF |
| 13996 | cat confdefs.h >>conftest.$ac_ext |
| 13997 | cat >>conftest.$ac_ext <<_ACEOF |
| 13998 | /* end confdefs.h. */ |
| 13999 | #ifdef HAVE_ALSA_ASOUNDLIB_H |
| 14000 | #include <alsa/asoundlib.h> |
| 14001 | #elif defined(HAVE_SYS_ASOUNDLIB_H) |
| 14002 | #include <sys/asoundlib.h> |
| 14003 | #endif |
| 14004 | int |
| 14005 | main () |
| 14006 | { |
| 14007 | int ret = snd_pcm_hw_params_get_access(NULL, NULL) |
| 14008 | ; |
| 14009 | return 0; |
| 14010 | } |
| 14011 | _ACEOF |
| 14012 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14013 | if { (ac_try="$ac_compile" |
| 14014 | case "(($ac_try" in |
| 14015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14016 | *) ac_try_echo=$ac_try;; |
| 14017 | esac |
| 14018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14019 | (eval "$ac_compile") 2>conftest.er1 |
Vincent BĂ©ron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14020 | ac_status=$? |
| 14021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14022 | rm -f conftest.er1 |
| 14023 | cat conftest.err >&5 |
| 14024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14025 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14027 | { (case "(($ac_try" in |
| 14028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14029 | *) ac_try_echo=$ac_try;; |
| 14030 | esac |
| 14031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14032 | (eval "$ac_try") 2>&5 |
Vincent BĂ©ron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14033 | ac_status=$? |
| 14034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14035 | (exit $ac_status); }; } && |
| 14036 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14037 | { (case "(($ac_try" in |
| 14038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14039 | *) ac_try_echo=$ac_try;; |
| 14040 | esac |
| 14041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14042 | (eval "$ac_try") 2>&5 |
Vincent BĂ©ron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14043 | ac_status=$? |
| 14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14045 | (exit $ac_status); }; }; then |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14046 | |
| 14047 | cat >>confdefs.h <<\_ACEOF |
| 14048 | #define HAVE_ALSA 1 |
| 14049 | _ACEOF |
| 14050 | |
Vincent BĂ©ron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14051 | ALSALIBS="-lasound" |
| 14052 | else |
| 14053 | echo "$as_me: failed program was:" >&5 |
| 14054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14055 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14056 | |
Vincent BĂ©ron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14057 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14058 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14060 | fi |
| 14061 | |
| 14062 | fi |
| 14063 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14064 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14065 | AUDIOIOLIBS="" |
| 14066 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 14067 | if test "$ac_cv_header_libaudioio_h" = "yes" |
| 14068 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14069 | { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
| 14070 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; } |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14071 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
| 14072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14073 | else |
| 14074 | ac_check_lib_save_LIBS=$LIBS |
| 14075 | LIBS="-laudioio $LIBS" |
| 14076 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14077 | /* confdefs.h. */ |
| 14078 | _ACEOF |
| 14079 | cat confdefs.h >>conftest.$ac_ext |
| 14080 | cat >>conftest.$ac_ext <<_ACEOF |
| 14081 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14082 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14083 | /* Override any GCC internal prototype to avoid an error. |
| 14084 | Use char because int might match the return type of a GCC |
| 14085 | builtin and then its argument prototype would still apply. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14086 | #ifdef __cplusplus |
| 14087 | extern "C" |
| 14088 | #endif |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14089 | char AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14090 | int |
| 14091 | main () |
| 14092 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14093 | return AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14094 | ; |
| 14095 | return 0; |
| 14096 | } |
| 14097 | _ACEOF |
| 14098 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14099 | if { (ac_try="$ac_link" |
| 14100 | case "(($ac_try" in |
| 14101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14102 | *) ac_try_echo=$ac_try;; |
| 14103 | esac |
| 14104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14105 | (eval "$ac_link") 2>conftest.er1 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14106 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14108 | rm -f conftest.er1 |
| 14109 | cat conftest.err >&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14111 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14113 | { (case "(($ac_try" in |
| 14114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14115 | *) ac_try_echo=$ac_try;; |
| 14116 | esac |
| 14117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14118 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14119 | ac_status=$? |
| 14120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14121 | (exit $ac_status); }; } && |
| 14122 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14123 | { (case "(($ac_try" in |
| 14124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14125 | *) ac_try_echo=$ac_try;; |
| 14126 | esac |
| 14127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14128 | (eval "$ac_try") 2>&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14129 | ac_status=$? |
| 14130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14131 | (exit $ac_status); }; }; then |
| 14132 | ac_cv_lib_audioio_AudioIOGetVersion=yes |
| 14133 | else |
| 14134 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14136 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14137 | ac_cv_lib_audioio_AudioIOGetVersion=no |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14138 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14139 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14140 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14141 | conftest$ac_exeext conftest.$ac_ext |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14142 | LIBS=$ac_check_lib_save_LIBS |
| 14143 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14144 | { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
| 14145 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; } |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14146 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
| 14147 | AUDIOIOLIBS="-laudioio" |
| 14148 | |
| 14149 | cat >>confdefs.h <<\_ACEOF |
| 14150 | #define HAVE_LIBAUDIOIO 1 |
| 14151 | _ACEOF |
| 14152 | |
| 14153 | fi |
| 14154 | |
| 14155 | fi |
| 14156 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14157 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 14158 | if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes" |
| 14159 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14160 | { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5 |
| 14161 | echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14162 | if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then |
| 14163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14164 | else |
| 14165 | ac_check_lib_save_LIBS=$LIBS |
| 14166 | LIBS="-lcapi20 $LIBS" |
| 14167 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14168 | /* confdefs.h. */ |
| 14169 | _ACEOF |
| 14170 | cat confdefs.h >>conftest.$ac_ext |
| 14171 | cat >>conftest.$ac_ext <<_ACEOF |
| 14172 | /* end confdefs.h. */ |
| 14173 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14174 | /* Override any GCC internal prototype to avoid an error. |
| 14175 | Use char because int might match the return type of a GCC |
| 14176 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14177 | #ifdef __cplusplus |
| 14178 | extern "C" |
| 14179 | #endif |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14180 | char capi20_register (); |
| 14181 | int |
| 14182 | main () |
| 14183 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14184 | return capi20_register (); |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14185 | ; |
| 14186 | return 0; |
| 14187 | } |
| 14188 | _ACEOF |
| 14189 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14190 | if { (ac_try="$ac_link" |
| 14191 | case "(($ac_try" in |
| 14192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14193 | *) ac_try_echo=$ac_try;; |
| 14194 | esac |
| 14195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14196 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14197 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14199 | rm -f conftest.er1 |
| 14200 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14202 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14204 | { (case "(($ac_try" in |
| 14205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14206 | *) ac_try_echo=$ac_try;; |
| 14207 | esac |
| 14208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14209 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14210 | ac_status=$? |
| 14211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14212 | (exit $ac_status); }; } && |
| 14213 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14214 | { (case "(($ac_try" in |
| 14215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14216 | *) ac_try_echo=$ac_try;; |
| 14217 | esac |
| 14218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14219 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14220 | ac_status=$? |
| 14221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14222 | (exit $ac_status); }; }; then |
| 14223 | ac_cv_lib_capi20_capi20_register=yes |
| 14224 | else |
| 14225 | echo "$as_me: failed program was:" >&5 |
| 14226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14227 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14228 | ac_cv_lib_capi20_capi20_register=no |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14229 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14230 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14231 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14232 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14233 | LIBS=$ac_check_lib_save_LIBS |
| 14234 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14235 | { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5 |
| 14236 | echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14237 | if test $ac_cv_lib_capi20_capi20_register = yes; then |
| 14238 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14239 | cat >>confdefs.h <<\_ACEOF |
| 14240 | #define HAVE_CAPI4LINUX 1 |
| 14241 | _ACEOF |
| 14242 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14243 | fi |
| 14244 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14245 | fi |
| 14246 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14247 | |
Robert Shearman | 68249c1 | 2006-07-25 10:36:06 +0100 | [diff] [blame] | 14248 | if test "$ac_cv_header_gif_lib_h" = "yes" |
| 14249 | then |
| 14250 | cat >conftest.$ac_ext <<_ACEOF |
| 14251 | /* confdefs.h. */ |
| 14252 | _ACEOF |
| 14253 | cat confdefs.h >>conftest.$ac_ext |
| 14254 | cat >>conftest.$ac_ext <<_ACEOF |
| 14255 | /* end confdefs.h. */ |
| 14256 | #include <gif_lib.h> |
| 14257 | int |
| 14258 | main () |
| 14259 | { |
| 14260 | static typeof(DGifOpen) * func; |
| 14261 | ; |
| 14262 | return 0; |
| 14263 | } |
| 14264 | _ACEOF |
| 14265 | rm -f conftest.$ac_objext |
| 14266 | if { (ac_try="$ac_compile" |
| 14267 | case "(($ac_try" in |
| 14268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14269 | *) ac_try_echo=$ac_try;; |
| 14270 | esac |
| 14271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14272 | (eval "$ac_compile") 2>conftest.er1 |
| 14273 | ac_status=$? |
| 14274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14275 | rm -f conftest.er1 |
| 14276 | cat conftest.err >&5 |
| 14277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14278 | (exit $ac_status); } && |
| 14279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14280 | { (case "(($ac_try" in |
| 14281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14282 | *) ac_try_echo=$ac_try;; |
| 14283 | esac |
| 14284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14285 | (eval "$ac_try") 2>&5 |
| 14286 | ac_status=$? |
| 14287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14288 | (exit $ac_status); }; } && |
| 14289 | { ac_try='test -s conftest.$ac_objext' |
| 14290 | { (case "(($ac_try" in |
| 14291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14292 | *) ac_try_echo=$ac_try;; |
| 14293 | esac |
| 14294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14295 | (eval "$ac_try") 2>&5 |
| 14296 | ac_status=$? |
| 14297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14298 | (exit $ac_status); }; }; then |
| 14299 | |
| 14300 | cat >>confdefs.h <<\_ACEOF |
| 14301 | #define HAVE_GIF 1 |
| 14302 | _ACEOF |
| 14303 | |
| 14304 | else |
| 14305 | echo "$as_me: failed program was:" >&5 |
| 14306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14307 | |
| 14308 | |
| 14309 | fi |
| 14310 | |
| 14311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14312 | fi |
| 14313 | |
| 14314 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 14315 | EXTRACFLAGS="" |
| 14316 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14317 | if test "x${GCC}" = "xyes" |
| 14318 | then |
Hans Leidekker | d17b232 | 2004-01-06 21:37:44 +0000 | [diff] [blame] | 14319 | EXTRACFLAGS="-Wall -pipe" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14320 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14321 | { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
| 14322 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14323 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 14324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14325 | else |
| 14326 | if test "$cross_compiling" = yes; then |
| 14327 | ac_cv_c_gcc_strength_bug="yes" |
| 14328 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14329 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14330 | /* confdefs.h. */ |
| 14331 | _ACEOF |
| 14332 | cat confdefs.h >>conftest.$ac_ext |
| 14333 | cat >>conftest.$ac_ext <<_ACEOF |
| 14334 | /* end confdefs.h. */ |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14335 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 14336 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14337 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 14338 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14339 | unsigned int B = 3; |
| 14340 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 14341 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 14342 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 14343 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14344 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 14345 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14346 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14347 | _ACEOF |
| 14348 | rm -f conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14349 | if { (ac_try="$ac_link" |
| 14350 | case "(($ac_try" in |
| 14351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14352 | *) ac_try_echo=$ac_try;; |
| 14353 | esac |
| 14354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14355 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14356 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14358 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14359 | { (case "(($ac_try" in |
| 14360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14361 | *) ac_try_echo=$ac_try;; |
| 14362 | esac |
| 14363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14364 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14365 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14367 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14368 | ac_cv_c_gcc_strength_bug="no" |
| 14369 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14370 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14371 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14373 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14374 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14375 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14376 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14377 | 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] | 14378 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14379 | |
| 14380 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14381 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14382 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
| 14383 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; } |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14384 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 14385 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 14386 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14387 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 14388 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14389 | |
| 14390 | { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5 |
| 14391 | echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; } |
| 14392 | if test "${ac_cv_cflags__fshort_wchar+set}" = set; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14394 | else |
| 14395 | ac_wine_try_cflags_saved=$CFLAGS |
| 14396 | CFLAGS="$CFLAGS -fshort-wchar" |
| 14397 | cat >conftest.$ac_ext <<_ACEOF |
| 14398 | /* confdefs.h. */ |
| 14399 | _ACEOF |
| 14400 | cat confdefs.h >>conftest.$ac_ext |
| 14401 | cat >>conftest.$ac_ext <<_ACEOF |
| 14402 | /* end confdefs.h. */ |
| 14403 | |
| 14404 | int |
| 14405 | main () |
| 14406 | { |
| 14407 | |
| 14408 | ; |
| 14409 | return 0; |
| 14410 | } |
| 14411 | _ACEOF |
| 14412 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14413 | if { (ac_try="$ac_link" |
| 14414 | case "(($ac_try" in |
| 14415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14416 | *) ac_try_echo=$ac_try;; |
| 14417 | esac |
| 14418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14419 | (eval "$ac_link") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14420 | ac_status=$? |
| 14421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14422 | rm -f conftest.er1 |
| 14423 | cat conftest.err >&5 |
| 14424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14425 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14426 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14427 | { (case "(($ac_try" in |
| 14428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14429 | *) ac_try_echo=$ac_try;; |
| 14430 | esac |
| 14431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14432 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14433 | ac_status=$? |
| 14434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14435 | (exit $ac_status); }; } && |
| 14436 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14437 | { (case "(($ac_try" in |
| 14438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14439 | *) ac_try_echo=$ac_try;; |
| 14440 | esac |
| 14441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14442 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14443 | ac_status=$? |
| 14444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14445 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14446 | ac_cv_cflags__fshort_wchar=yes |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14447 | else |
| 14448 | echo "$as_me: failed program was:" >&5 |
| 14449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14450 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14451 | ac_cv_cflags__fshort_wchar=no |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14452 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14453 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14454 | rm -f core conftest.err conftest.$ac_objext \ |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14455 | conftest$ac_exeext conftest.$ac_ext |
| 14456 | CFLAGS=$ac_wine_try_cflags_saved |
| 14457 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14458 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5 |
| 14459 | echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; } |
| 14460 | if test $ac_cv_cflags__fshort_wchar = yes; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14461 | |
| 14462 | cat >>confdefs.h <<\_ACEOF |
| 14463 | #define CC_FLAG_SHORT_WCHAR "-fshort-wchar" |
| 14464 | _ACEOF |
| 14465 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14466 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14467 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14468 | { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5 |
| 14469 | echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; } |
| 14470 | if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 14471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14472 | else |
| 14473 | ac_wine_try_cflags_saved=$CFLAGS |
| 14474 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
| 14475 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 14476 | /* confdefs.h. */ |
| 14477 | _ACEOF |
| 14478 | cat confdefs.h >>conftest.$ac_ext |
| 14479 | cat >>conftest.$ac_ext <<_ACEOF |
| 14480 | /* end confdefs.h. */ |
| 14481 | |
| 14482 | int |
| 14483 | main () |
| 14484 | { |
| 14485 | |
| 14486 | ; |
| 14487 | return 0; |
| 14488 | } |
| 14489 | _ACEOF |
| 14490 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14491 | if { (ac_try="$ac_link" |
| 14492 | case "(($ac_try" in |
| 14493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14494 | *) ac_try_echo=$ac_try;; |
| 14495 | esac |
| 14496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14497 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 14498 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14500 | rm -f conftest.er1 |
| 14501 | cat conftest.err >&5 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 14502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14503 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14505 | { (case "(($ac_try" in |
| 14506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14507 | *) ac_try_echo=$ac_try;; |
| 14508 | esac |
| 14509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14510 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14511 | ac_status=$? |
| 14512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14513 | (exit $ac_status); }; } && |
| 14514 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14515 | { (case "(($ac_try" in |
| 14516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14517 | *) ac_try_echo=$ac_try;; |
| 14518 | esac |
| 14519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14520 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 14521 | ac_status=$? |
| 14522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14523 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14524 | ac_cv_cflags__fno_strict_aliasing=yes |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 14525 | else |
| 14526 | echo "$as_me: failed program was:" >&5 |
| 14527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14528 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14529 | ac_cv_cflags__fno_strict_aliasing=no |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 14530 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14531 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14532 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14533 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 14534 | CFLAGS=$ac_wine_try_cflags_saved |
| 14535 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14536 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5 |
| 14537 | echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; } |
| 14538 | if test $ac_cv_cflags__fno_strict_aliasing = yes; then |
| 14539 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 14540 | fi |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 14541 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14542 | { echo "$as_me:$LINENO: checking whether the compiler supports -gstabs+" >&5 |
| 14543 | echo $ECHO_N "checking whether the compiler supports -gstabs+... $ECHO_C" >&6; } |
| 14544 | if test "${ac_cv_cflags__gstabsp+set}" = set; then |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 14545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14546 | else |
| 14547 | ac_wine_try_cflags_saved=$CFLAGS |
| 14548 | CFLAGS="$CFLAGS -gstabs+" |
| 14549 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 14550 | /* confdefs.h. */ |
| 14551 | _ACEOF |
| 14552 | cat confdefs.h >>conftest.$ac_ext |
| 14553 | cat >>conftest.$ac_ext <<_ACEOF |
| 14554 | /* end confdefs.h. */ |
| 14555 | |
| 14556 | int |
| 14557 | main () |
| 14558 | { |
| 14559 | |
| 14560 | ; |
| 14561 | return 0; |
| 14562 | } |
| 14563 | _ACEOF |
| 14564 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14565 | if { (ac_try="$ac_link" |
| 14566 | case "(($ac_try" in |
| 14567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14568 | *) ac_try_echo=$ac_try;; |
| 14569 | esac |
| 14570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14571 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 14572 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14574 | rm -f conftest.er1 |
| 14575 | cat conftest.err >&5 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 14576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14577 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14578 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14579 | { (case "(($ac_try" in |
| 14580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14581 | *) ac_try_echo=$ac_try;; |
| 14582 | esac |
| 14583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14584 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14585 | ac_status=$? |
| 14586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14587 | (exit $ac_status); }; } && |
| 14588 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14589 | { (case "(($ac_try" in |
| 14590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14591 | *) ac_try_echo=$ac_try;; |
| 14592 | esac |
| 14593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14594 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 14595 | ac_status=$? |
| 14596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14597 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14598 | ac_cv_cflags__gstabsp=yes |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 14599 | else |
| 14600 | echo "$as_me: failed program was:" >&5 |
| 14601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14602 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14603 | ac_cv_cflags__gstabsp=no |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 14604 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14605 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14606 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14607 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 14608 | CFLAGS=$ac_wine_try_cflags_saved |
| 14609 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14610 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__gstabsp" >&5 |
| 14611 | echo "${ECHO_T}$ac_cv_cflags__gstabsp" >&6; } |
| 14612 | if test $ac_cv_cflags__gstabsp = yes; then |
| 14613 | EXTRACFLAGS="$EXTRACFLAGS -gstabs+" |
| 14614 | fi |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14615 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14616 | { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5 |
| 14617 | echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; } |
| 14618 | if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 14619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14620 | else |
| 14621 | ac_wine_try_cflags_saved=$CFLAGS |
| 14622 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
| 14623 | cat >conftest.$ac_ext <<_ACEOF |
| 14624 | /* confdefs.h. */ |
| 14625 | _ACEOF |
| 14626 | cat confdefs.h >>conftest.$ac_ext |
| 14627 | cat >>conftest.$ac_ext <<_ACEOF |
| 14628 | /* end confdefs.h. */ |
| 14629 | |
| 14630 | int |
| 14631 | main () |
| 14632 | { |
| 14633 | |
| 14634 | ; |
| 14635 | return 0; |
| 14636 | } |
| 14637 | _ACEOF |
| 14638 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14639 | if { (ac_try="$ac_link" |
| 14640 | case "(($ac_try" in |
| 14641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14642 | *) ac_try_echo=$ac_try;; |
| 14643 | esac |
| 14644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14645 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 14646 | ac_status=$? |
| 14647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14648 | rm -f conftest.er1 |
| 14649 | cat conftest.err >&5 |
| 14650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14651 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14653 | { (case "(($ac_try" in |
| 14654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14655 | *) ac_try_echo=$ac_try;; |
| 14656 | esac |
| 14657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14658 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 14659 | ac_status=$? |
| 14660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14661 | (exit $ac_status); }; } && |
| 14662 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14663 | { (case "(($ac_try" in |
| 14664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14665 | *) ac_try_echo=$ac_try;; |
| 14666 | esac |
| 14667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14668 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 14669 | ac_status=$? |
| 14670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14671 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14672 | ac_cv_cflags__Wdeclaration_after_statement=yes |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 14673 | else |
| 14674 | echo "$as_me: failed program was:" >&5 |
| 14675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14676 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14677 | ac_cv_cflags__Wdeclaration_after_statement=no |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 14678 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14679 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14680 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 14681 | conftest$ac_exeext conftest.$ac_ext |
| 14682 | CFLAGS=$ac_wine_try_cflags_saved |
| 14683 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14684 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5 |
| 14685 | echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; } |
| 14686 | if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then |
| 14687 | EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement" |
| 14688 | fi |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 14689 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14690 | { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5 |
| 14691 | echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; } |
| 14692 | if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then |
Alexandre Julliard | d75cc5a | 2006-08-25 12:07:34 +0200 | [diff] [blame] | 14693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14694 | else |
| 14695 | ac_wine_try_cflags_saved=$CFLAGS |
| 14696 | CFLAGS="$CFLAGS -Wwrite-strings" |
| 14697 | cat >conftest.$ac_ext <<_ACEOF |
| 14698 | /* confdefs.h. */ |
| 14699 | _ACEOF |
| 14700 | cat confdefs.h >>conftest.$ac_ext |
| 14701 | cat >>conftest.$ac_ext <<_ACEOF |
| 14702 | /* end confdefs.h. */ |
| 14703 | |
| 14704 | int |
| 14705 | main () |
| 14706 | { |
| 14707 | |
| 14708 | ; |
| 14709 | return 0; |
| 14710 | } |
| 14711 | _ACEOF |
| 14712 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14713 | if { (ac_try="$ac_link" |
| 14714 | case "(($ac_try" in |
| 14715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14716 | *) ac_try_echo=$ac_try;; |
| 14717 | esac |
| 14718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14719 | (eval "$ac_link") 2>conftest.er1 |
| 14720 | ac_status=$? |
| 14721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14722 | rm -f conftest.er1 |
| 14723 | cat conftest.err >&5 |
| 14724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14725 | (exit $ac_status); } && |
| 14726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14727 | { (case "(($ac_try" in |
| 14728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14729 | *) ac_try_echo=$ac_try;; |
| 14730 | esac |
| 14731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14732 | (eval "$ac_try") 2>&5 |
| 14733 | ac_status=$? |
| 14734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14735 | (exit $ac_status); }; } && |
| 14736 | { ac_try='test -s conftest$ac_exeext' |
| 14737 | { (case "(($ac_try" in |
| 14738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14739 | *) ac_try_echo=$ac_try;; |
| 14740 | esac |
| 14741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14742 | (eval "$ac_try") 2>&5 |
| 14743 | ac_status=$? |
| 14744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14745 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14746 | ac_cv_cflags__Wwrite_strings=yes |
Alexandre Julliard | d75cc5a | 2006-08-25 12:07:34 +0200 | [diff] [blame] | 14747 | else |
| 14748 | echo "$as_me: failed program was:" >&5 |
| 14749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14750 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14751 | ac_cv_cflags__Wwrite_strings=no |
Alexandre Julliard | d75cc5a | 2006-08-25 12:07:34 +0200 | [diff] [blame] | 14752 | fi |
| 14753 | |
| 14754 | rm -f core conftest.err conftest.$ac_objext \ |
| 14755 | conftest$ac_exeext conftest.$ac_ext |
| 14756 | CFLAGS=$ac_wine_try_cflags_saved |
| 14757 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 14758 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5 |
| 14759 | echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; } |
| 14760 | if test $ac_cv_cflags__Wwrite_strings = yes; then |
| 14761 | EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings" |
| 14762 | fi |
| 14763 | |
Alexandre Julliard | d75cc5a | 2006-08-25 12:07:34 +0200 | [diff] [blame] | 14764 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 14765 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14766 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14767 | { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5 |
| 14768 | 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] | 14769 | if test "${ac_cv_c_string_h_warnings+set}" = set; then |
| 14770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14771 | else |
| 14772 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14773 | /* confdefs.h. */ |
| 14774 | _ACEOF |
| 14775 | cat confdefs.h >>conftest.$ac_ext |
| 14776 | cat >>conftest.$ac_ext <<_ACEOF |
| 14777 | /* end confdefs.h. */ |
| 14778 | #include <string.h> |
| 14779 | int |
| 14780 | main () |
| 14781 | { |
| 14782 | |
| 14783 | ; |
| 14784 | return 0; |
| 14785 | } |
| 14786 | _ACEOF |
| 14787 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14788 | if { (ac_try="$ac_compile" |
| 14789 | case "(($ac_try" in |
| 14790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14791 | *) ac_try_echo=$ac_try;; |
| 14792 | esac |
| 14793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14794 | (eval "$ac_compile") 2>conftest.er1 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14795 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14797 | rm -f conftest.er1 |
| 14798 | cat conftest.err >&5 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14800 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14802 | { (case "(($ac_try" in |
| 14803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14804 | *) ac_try_echo=$ac_try;; |
| 14805 | esac |
| 14806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14807 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14808 | ac_status=$? |
| 14809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14810 | (exit $ac_status); }; } && |
| 14811 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14812 | { (case "(($ac_try" in |
| 14813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14814 | *) ac_try_echo=$ac_try;; |
| 14815 | esac |
| 14816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14817 | (eval "$ac_try") 2>&5 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14818 | ac_status=$? |
| 14819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14820 | (exit $ac_status); }; }; then |
| 14821 | ac_cv_c_string_h_warnings=no |
| 14822 | else |
| 14823 | echo "$as_me: failed program was:" >&5 |
| 14824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14825 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14826 | ac_cv_c_string_h_warnings=yes |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14827 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14828 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14830 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14831 | { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5 |
| 14832 | echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; } |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 14833 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14834 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 14835 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 14836 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14837 | fi |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 14838 | |
| 14839 | BUILTINFLAG="" |
| 14840 | |
| 14841 | saved_CFLAGS="$CFLAGS" |
| 14842 | CFLAGS="$CFLAGS -Werror" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14843 | { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5 |
| 14844 | echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; } |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 14845 | if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then |
| 14846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14847 | else |
| 14848 | cat >conftest.$ac_ext <<_ACEOF |
| 14849 | /* confdefs.h. */ |
| 14850 | _ACEOF |
| 14851 | cat confdefs.h >>conftest.$ac_ext |
| 14852 | cat >>conftest.$ac_ext <<_ACEOF |
| 14853 | /* end confdefs.h. */ |
| 14854 | |
| 14855 | int |
| 14856 | main () |
| 14857 | { |
| 14858 | int iswlower(unsigned short); |
| 14859 | ; |
| 14860 | return 0; |
| 14861 | } |
| 14862 | _ACEOF |
| 14863 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14864 | if { (ac_try="$ac_compile" |
| 14865 | case "(($ac_try" in |
| 14866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14867 | *) ac_try_echo=$ac_try;; |
| 14868 | esac |
| 14869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14870 | (eval "$ac_compile") 2>conftest.er1 |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 14871 | ac_status=$? |
| 14872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14873 | rm -f conftest.er1 |
| 14874 | cat conftest.err >&5 |
| 14875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14876 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14877 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14878 | { (case "(($ac_try" in |
| 14879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14880 | *) ac_try_echo=$ac_try;; |
| 14881 | esac |
| 14882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14883 | (eval "$ac_try") 2>&5 |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 14884 | ac_status=$? |
| 14885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14886 | (exit $ac_status); }; } && |
| 14887 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14888 | { (case "(($ac_try" in |
| 14889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14890 | *) ac_try_echo=$ac_try;; |
| 14891 | esac |
| 14892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14893 | (eval "$ac_try") 2>&5 |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 14894 | ac_status=$? |
| 14895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14896 | (exit $ac_status); }; }; then |
| 14897 | ac_cv_c_builtin_wchar_ctype=no |
| 14898 | else |
| 14899 | echo "$as_me: failed program was:" >&5 |
| 14900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14901 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14902 | ac_cv_c_builtin_wchar_ctype=yes |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 14903 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14904 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 14906 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14907 | { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5 |
| 14908 | echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; } |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 14909 | CFLAGS="$saved_CFLAGS" |
| 14910 | if test "$ac_cv_c_builtin_wchar_ctype" = "yes" |
| 14911 | then |
Mike McCormack | a26dabe | 2006-07-19 19:16:59 +0900 | [diff] [blame] | 14912 | BUILTINFLAG="-fno-builtin" |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 14913 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14914 | fi |
| 14915 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14916 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14917 | { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
| 14918 | 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] | 14919 | if test "${ac_cv_asm_func_def+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 14921 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 14922 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14923 | /* confdefs.h. */ |
| 14924 | _ACEOF |
| 14925 | cat confdefs.h >>conftest.$ac_ext |
| 14926 | cat >>conftest.$ac_ext <<_ACEOF |
| 14927 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 14928 | 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] | 14929 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14930 | int |
| 14931 | main () |
| 14932 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 14933 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14934 | ; |
| 14935 | return 0; |
| 14936 | } |
| 14937 | _ACEOF |
| 14938 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14939 | if { (ac_try="$ac_link" |
| 14940 | case "(($ac_try" in |
| 14941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14942 | *) ac_try_echo=$ac_try;; |
| 14943 | esac |
| 14944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14945 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14946 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14948 | rm -f conftest.er1 |
| 14949 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14951 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14952 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14953 | { (case "(($ac_try" in |
| 14954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14955 | *) ac_try_echo=$ac_try;; |
| 14956 | esac |
| 14957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14958 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14959 | ac_status=$? |
| 14960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14961 | (exit $ac_status); }; } && |
| 14962 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14963 | { (case "(($ac_try" in |
| 14964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14965 | *) ac_try_echo=$ac_try;; |
| 14966 | esac |
| 14967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14968 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14969 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14971 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 14972 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 14973 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14974 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14976 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14977 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14978 | /* confdefs.h. */ |
| 14979 | _ACEOF |
| 14980 | cat confdefs.h >>conftest.$ac_ext |
| 14981 | cat >>conftest.$ac_ext <<_ACEOF |
| 14982 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 14983 | 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] | 14984 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14985 | int |
| 14986 | main () |
| 14987 | { |
| 14988 | |
| 14989 | ; |
| 14990 | return 0; |
| 14991 | } |
| 14992 | _ACEOF |
| 14993 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14994 | if { (ac_try="$ac_link" |
| 14995 | case "(($ac_try" in |
| 14996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14997 | *) ac_try_echo=$ac_try;; |
| 14998 | esac |
| 14999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15000 | (eval "$ac_link") 2>conftest.er1 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15001 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15003 | rm -f conftest.er1 |
| 15004 | cat conftest.err >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15006 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15008 | { (case "(($ac_try" in |
| 15009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15010 | *) ac_try_echo=$ac_try;; |
| 15011 | esac |
| 15012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15013 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15014 | ac_status=$? |
| 15015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15016 | (exit $ac_status); }; } && |
| 15017 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15018 | { (case "(($ac_try" in |
| 15019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15020 | *) ac_try_echo=$ac_try;; |
| 15021 | esac |
| 15022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15023 | (eval "$ac_try") 2>&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15024 | ac_status=$? |
| 15025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15026 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15027 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15028 | else |
| 15029 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15031 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15032 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15033 | /* confdefs.h. */ |
| 15034 | _ACEOF |
| 15035 | cat confdefs.h >>conftest.$ac_ext |
| 15036 | cat >>conftest.$ac_ext <<_ACEOF |
| 15037 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 15038 | 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] | 15039 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15040 | int |
| 15041 | main () |
| 15042 | { |
| 15043 | |
| 15044 | ; |
| 15045 | return 0; |
| 15046 | } |
| 15047 | _ACEOF |
| 15048 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15049 | if { (ac_try="$ac_link" |
| 15050 | case "(($ac_try" in |
| 15051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15052 | *) ac_try_echo=$ac_try;; |
| 15053 | esac |
| 15054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15055 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15056 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15058 | rm -f conftest.er1 |
| 15059 | cat conftest.err >&5 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15061 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15062 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15063 | { (case "(($ac_try" in |
| 15064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15065 | *) ac_try_echo=$ac_try;; |
| 15066 | esac |
| 15067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15068 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15069 | ac_status=$? |
| 15070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15071 | (exit $ac_status); }; } && |
| 15072 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15073 | { (case "(($ac_try" in |
| 15074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15075 | *) ac_try_echo=$ac_try;; |
| 15076 | esac |
| 15077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15078 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15079 | ac_status=$? |
| 15080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15081 | (exit $ac_status); }; }; then |
| 15082 | ac_cv_asm_func_def=".type 2" |
| 15083 | else |
| 15084 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15086 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15087 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15088 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15089 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15090 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15091 | conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15092 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15093 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15094 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15095 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15096 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15097 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15098 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15099 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15100 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15101 | { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
| 15102 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6; } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15103 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15104 | |
| 15105 | |
| 15106 | case "$ac_cv_asm_func_def" in |
| 15107 | ".def") |
| 15108 | cat >>confdefs.h <<\_ACEOF |
| 15109 | #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] | 15110 | _ACEOF |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15111 | ;; |
| 15112 | ".type @function") |
| 15113 | cat >>confdefs.h <<\_ACEOF |
| 15114 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" |
| 15115 | _ACEOF |
| 15116 | ;; |
| 15117 | ".type 2") |
| 15118 | cat >>confdefs.h <<\_ACEOF |
| 15119 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" |
| 15120 | _ACEOF |
| 15121 | ;; |
| 15122 | *) |
| 15123 | cat >>confdefs.h <<\_ACEOF |
| 15124 | #define __ASM_FUNC(name) "" |
| 15125 | _ACEOF |
| 15126 | ;; |
| 15127 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15128 | |
| 15129 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15130 | { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5 |
| 15131 | 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] | 15132 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 15133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15134 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15135 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15136 | /* confdefs.h. */ |
| 15137 | _ACEOF |
| 15138 | cat confdefs.h >>conftest.$ac_ext |
| 15139 | cat >>conftest.$ac_ext <<_ACEOF |
| 15140 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 15141 | 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] | 15142 | extern int ac_test; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15143 | int |
| 15144 | main () |
| 15145 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15146 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15147 | ; |
| 15148 | return 0; |
| 15149 | } |
| 15150 | _ACEOF |
| 15151 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15152 | if { (ac_try="$ac_link" |
| 15153 | case "(($ac_try" in |
| 15154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15155 | *) ac_try_echo=$ac_try;; |
| 15156 | esac |
| 15157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15158 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15159 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15161 | rm -f conftest.er1 |
| 15162 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15164 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15165 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15166 | { (case "(($ac_try" in |
| 15167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15168 | *) ac_try_echo=$ac_try;; |
| 15169 | esac |
| 15170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15171 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15172 | ac_status=$? |
| 15173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15174 | (exit $ac_status); }; } && |
| 15175 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15176 | { (case "(($ac_try" in |
| 15177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15178 | *) ac_try_echo=$ac_try;; |
| 15179 | esac |
| 15180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15181 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15182 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15184 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15185 | ac_cv_c_extern_prefix="yes" |
| 15186 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15187 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15189 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15190 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15191 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15192 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15193 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15194 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15195 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15196 | { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
| 15197 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15198 | |
| 15199 | |
| 15200 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15201 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 15202 | then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15203 | cat >>confdefs.h <<\_ACEOF |
| 15204 | #define __ASM_NAME(name) "_" name |
| 15205 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15206 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15207 | else |
| 15208 | cat >>confdefs.h <<\_ACEOF |
| 15209 | #define __ASM_NAME(name) name |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15210 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15211 | |
| 15212 | fi |
| 15213 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15214 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15215 | DLLEXT="" |
| 15216 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 15217 | DLLFLAGS="-D_REENTRANT" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15218 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15219 | LDSHARED="" |
| 15220 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 15221 | LDDLLFLAGS="" |
Alexandre Julliard | 6ac34ac | 2003-10-11 01:05:18 +0000 | [diff] [blame] | 15222 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15223 | LIBEXT="so" |
| 15224 | |
| 15225 | IMPLIBEXT="def" |
| 15226 | |
Alexandre Julliard | 13a93b4 | 2006-08-25 17:23:44 +0200 | [diff] [blame] | 15227 | LIBWINE_LDFLAGS="" |
| 15228 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15229 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15230 | case $host_os in |
| 15231 | cygwin*|mingw32*) |
| 15232 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15233 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 15234 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15235 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15236 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15237 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 15238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15239 | else |
| 15240 | if test -n "$DLLTOOL"; then |
| 15241 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 15242 | else |
| 15243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15244 | for as_dir in $PATH |
| 15245 | do |
| 15246 | IFS=$as_save_IFS |
| 15247 | test -z "$as_dir" && as_dir=. |
| 15248 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15249 | 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] | 15250 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 15251 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15252 | break 2 |
| 15253 | fi |
| 15254 | done |
| 15255 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15256 | IFS=$as_save_IFS |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15257 | |
| 15258 | fi |
| 15259 | fi |
| 15260 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 15261 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15262 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 15263 | echo "${ECHO_T}$DLLTOOL" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15264 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15265 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15266 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15267 | fi |
| 15268 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15269 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15270 | fi |
| 15271 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 15272 | ac_ct_DLLTOOL=$DLLTOOL |
| 15273 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 15274 | set dummy dlltool; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15275 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15277 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 15278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15279 | else |
| 15280 | if test -n "$ac_ct_DLLTOOL"; then |
| 15281 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 15282 | else |
| 15283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15284 | for as_dir in $PATH |
| 15285 | do |
| 15286 | IFS=$as_save_IFS |
| 15287 | test -z "$as_dir" && as_dir=. |
| 15288 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15289 | 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] | 15290 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 15291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15292 | break 2 |
| 15293 | fi |
| 15294 | done |
| 15295 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15296 | IFS=$as_save_IFS |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15297 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15298 | fi |
| 15299 | fi |
| 15300 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 15301 | if test -n "$ac_ct_DLLTOOL"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15302 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 15303 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15304 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15305 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15306 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15307 | fi |
| 15308 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15309 | if test "x$ac_ct_DLLTOOL" = x; then |
| 15310 | DLLTOOL="false" |
| 15311 | else |
| 15312 | case $cross_compiling:$ac_tool_warned in |
| 15313 | yes:) |
| 15314 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 15315 | whose name does not start with the host triplet. If you think this |
| 15316 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 15317 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 15318 | whose name does not start with the host triplet. If you think this |
| 15319 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 15320 | ac_tool_warned=yes ;; |
| 15321 | esac |
| 15322 | DLLTOOL=$ac_ct_DLLTOOL |
| 15323 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15324 | else |
| 15325 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 15326 | fi |
| 15327 | |
| 15328 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15329 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 15330 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15331 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15333 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 15334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15335 | else |
| 15336 | if test -n "$DLLWRAP"; then |
| 15337 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 15338 | else |
| 15339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15340 | for as_dir in $PATH |
| 15341 | do |
| 15342 | IFS=$as_save_IFS |
| 15343 | test -z "$as_dir" && as_dir=. |
| 15344 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15345 | 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] | 15346 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15348 | break 2 |
| 15349 | fi |
| 15350 | done |
| 15351 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15352 | IFS=$as_save_IFS |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15353 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15354 | fi |
| 15355 | fi |
| 15356 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 15357 | if test -n "$DLLWRAP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15358 | { echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
| 15359 | echo "${ECHO_T}$DLLWRAP" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15360 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15361 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15362 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15363 | fi |
| 15364 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15365 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15366 | fi |
| 15367 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 15368 | ac_ct_DLLWRAP=$DLLWRAP |
| 15369 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 15370 | set dummy dllwrap; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15371 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15373 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
| 15374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15375 | else |
| 15376 | if test -n "$ac_ct_DLLWRAP"; then |
| 15377 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 15378 | else |
| 15379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15380 | for as_dir in $PATH |
| 15381 | do |
| 15382 | IFS=$as_save_IFS |
| 15383 | test -z "$as_dir" && as_dir=. |
| 15384 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15385 | 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] | 15386 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 15387 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15388 | break 2 |
| 15389 | fi |
| 15390 | done |
| 15391 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15392 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15393 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15394 | fi |
| 15395 | fi |
| 15396 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 15397 | if test -n "$ac_ct_DLLWRAP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15398 | { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
| 15399 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15400 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15401 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15402 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15403 | fi |
| 15404 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15405 | if test "x$ac_ct_DLLWRAP" = x; then |
| 15406 | DLLWRAP="false" |
| 15407 | else |
| 15408 | case $cross_compiling:$ac_tool_warned in |
| 15409 | yes:) |
| 15410 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 15411 | whose name does not start with the host triplet. If you think this |
| 15412 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 15413 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 15414 | whose name does not start with the host triplet. If you think this |
| 15415 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 15416 | ac_tool_warned=yes ;; |
| 15417 | esac |
| 15418 | DLLWRAP=$ac_ct_DLLWRAP |
| 15419 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15420 | else |
| 15421 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 15422 | fi |
| 15423 | |
| 15424 | if test "$DLLWRAP" = "false"; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15425 | LIBEXT="a" |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15426 | else |
| 15427 | LIBEXT="dll" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15428 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15429 | IMPLIBEXT="a" |
Alexandre Julliard | 56a4a76 | 2004-08-12 03:27:50 +0000 | [diff] [blame] | 15430 | WIN16_FILES="" |
| 15431 | WIN16_INSTALL="" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15432 | ;; |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 15433 | darwin*|macosx*) |
| 15434 | DLLEXT=".so" |
| 15435 | LIBEXT="dylib" |
| 15436 | DLLFLAGS="$DLLFLAGS -fPIC" |
| 15437 | LDDLLFLAGS="-bundle -multiply_defined suppress" |
Alexandre Julliard | 13a93b4 | 2006-08-25 17:23:44 +0200 | [diff] [blame] | 15438 | LIBWINE_LDFLAGS="-multiply_defined suppress" |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 15439 | LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)" |
| 15440 | STRIP="$STRIP -u -r" |
| 15441 | COREFOUNDATIONLIB="-framework CoreFoundation" |
| 15442 | |
| 15443 | IOKITLIB="-framework IOKit -framework CoreFoundation" |
| 15444 | |
| 15445 | LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000" |
| 15446 | |
| 15447 | if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes" |
| 15448 | then |
| 15449 | COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices" |
| 15450 | |
| 15451 | fi |
| 15452 | case $host_cpu in |
| 15453 | *powerpc*) |
| 15454 | LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;; |
| 15455 | esac |
| 15456 | ;; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15457 | *) |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 15458 | DLLFLAGS="$DLLFLAGS -fPIC" |
| 15459 | DLLEXT=".so" |
| 15460 | { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15461 | 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] | 15462 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 15463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 15464 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15465 | ac_wine_try_cflags_saved=$CFLAGS |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15466 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15467 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 15468 | void myfunc() {} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15469 | _ACEOF |
| 15470 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15471 | if { (ac_try="$ac_link" |
| 15472 | case "(($ac_try" in |
| 15473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15474 | *) ac_try_echo=$ac_try;; |
| 15475 | esac |
| 15476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15477 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15478 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15480 | rm -f conftest.er1 |
| 15481 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15483 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15484 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15485 | { (case "(($ac_try" in |
| 15486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15487 | *) ac_try_echo=$ac_try;; |
| 15488 | esac |
| 15489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15490 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15491 | ac_status=$? |
| 15492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15493 | (exit $ac_status); }; } && |
| 15494 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15495 | { (case "(($ac_try" in |
| 15496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15497 | *) ac_try_echo=$ac_try;; |
| 15498 | esac |
| 15499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15500 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15501 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15503 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 15504 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 15505 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15506 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15508 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15509 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 15510 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15511 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15512 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15513 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15514 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15515 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15516 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
| 15517 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; } |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 15518 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 15519 | then |
| 15520 | LDSHARED="\$(CC) -shared" |
| 15521 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15522 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5 |
| 15523 | echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; } |
| 15524 | if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15526 | else |
| 15527 | ac_wine_try_cflags_saved=$CFLAGS |
| 15528 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1" |
| 15529 | cat >conftest.$ac_ext <<_ACEOF |
| 15530 | /* confdefs.h. */ |
| 15531 | _ACEOF |
| 15532 | cat confdefs.h >>conftest.$ac_ext |
| 15533 | cat >>conftest.$ac_ext <<_ACEOF |
| 15534 | /* end confdefs.h. */ |
| 15535 | |
| 15536 | int |
| 15537 | main () |
| 15538 | { |
| 15539 | |
| 15540 | ; |
| 15541 | return 0; |
| 15542 | } |
| 15543 | _ACEOF |
| 15544 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15545 | if { (ac_try="$ac_link" |
| 15546 | case "(($ac_try" in |
| 15547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15548 | *) ac_try_echo=$ac_try;; |
| 15549 | esac |
| 15550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15551 | (eval "$ac_link") 2>conftest.er1 |
| 15552 | ac_status=$? |
| 15553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15554 | rm -f conftest.er1 |
| 15555 | cat conftest.err >&5 |
| 15556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15557 | (exit $ac_status); } && |
| 15558 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15559 | { (case "(($ac_try" in |
| 15560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15561 | *) ac_try_echo=$ac_try;; |
| 15562 | esac |
| 15563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15564 | (eval "$ac_try") 2>&5 |
| 15565 | ac_status=$? |
| 15566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15567 | (exit $ac_status); }; } && |
| 15568 | { ac_try='test -s conftest$ac_exeext' |
| 15569 | { (case "(($ac_try" in |
| 15570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15571 | *) ac_try_echo=$ac_try;; |
| 15572 | esac |
| 15573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15574 | (eval "$ac_try") 2>&5 |
| 15575 | ac_status=$? |
| 15576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15577 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15578 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15579 | else |
| 15580 | echo "$as_me: failed program was:" >&5 |
| 15581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15582 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15583 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15584 | fi |
| 15585 | |
| 15586 | rm -f core conftest.err conftest.$ac_objext \ |
| 15587 | conftest$ac_exeext conftest.$ac_ext |
| 15588 | CFLAGS=$ac_wine_try_cflags_saved |
| 15589 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15590 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5 |
| 15591 | echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; } |
| 15592 | if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then |
| 15593 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 15594 | else |
| 15595 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5 |
| 15596 | echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; } |
| 15597 | if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15599 | else |
| 15600 | ac_wine_try_cflags_saved=$CFLAGS |
| 15601 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1" |
| 15602 | cat >conftest.$ac_ext <<_ACEOF |
| 15603 | /* confdefs.h. */ |
| 15604 | _ACEOF |
| 15605 | cat confdefs.h >>conftest.$ac_ext |
| 15606 | cat >>conftest.$ac_ext <<_ACEOF |
| 15607 | /* end confdefs.h. */ |
| 15608 | |
| 15609 | int |
| 15610 | main () |
| 15611 | { |
| 15612 | |
| 15613 | ; |
| 15614 | return 0; |
| 15615 | } |
| 15616 | _ACEOF |
| 15617 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15618 | if { (ac_try="$ac_link" |
| 15619 | case "(($ac_try" in |
| 15620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15621 | *) ac_try_echo=$ac_try;; |
| 15622 | esac |
| 15623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15624 | (eval "$ac_link") 2>conftest.er1 |
| 15625 | ac_status=$? |
| 15626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15627 | rm -f conftest.er1 |
| 15628 | cat conftest.err >&5 |
| 15629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15630 | (exit $ac_status); } && |
| 15631 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15632 | { (case "(($ac_try" in |
| 15633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15634 | *) ac_try_echo=$ac_try;; |
| 15635 | esac |
| 15636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15637 | (eval "$ac_try") 2>&5 |
| 15638 | ac_status=$? |
| 15639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15640 | (exit $ac_status); }; } && |
| 15641 | { ac_try='test -s conftest$ac_exeext' |
| 15642 | { (case "(($ac_try" in |
| 15643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15644 | *) ac_try_echo=$ac_try;; |
| 15645 | esac |
| 15646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15647 | (eval "$ac_try") 2>&5 |
| 15648 | ac_status=$? |
| 15649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15650 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15651 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15652 | else |
| 15653 | echo "$as_me: failed program was:" >&5 |
| 15654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15655 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15656 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15657 | fi |
| 15658 | |
| 15659 | rm -f core conftest.err conftest.$ac_objext \ |
| 15660 | conftest$ac_exeext conftest.$ac_ext |
| 15661 | CFLAGS=$ac_wine_try_cflags_saved |
| 15662 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15663 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5 |
| 15664 | echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; } |
| 15665 | if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then |
| 15666 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)" |
| 15667 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15668 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15669 | fi |
| 15670 | |
| 15671 | |
| 15672 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5 |
| 15673 | echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; } |
| 15674 | if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 15675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15676 | else |
| 15677 | ac_wine_try_cflags_saved=$CFLAGS |
| 15678 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
| 15679 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15680 | /* confdefs.h. */ |
| 15681 | _ACEOF |
| 15682 | cat confdefs.h >>conftest.$ac_ext |
| 15683 | cat >>conftest.$ac_ext <<_ACEOF |
| 15684 | /* end confdefs.h. */ |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 15685 | |
| 15686 | int |
| 15687 | main () |
| 15688 | { |
| 15689 | |
| 15690 | ; |
| 15691 | return 0; |
| 15692 | } |
| 15693 | _ACEOF |
| 15694 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15695 | if { (ac_try="$ac_link" |
| 15696 | case "(($ac_try" in |
| 15697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15698 | *) ac_try_echo=$ac_try;; |
| 15699 | esac |
| 15700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15701 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 15702 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15704 | rm -f conftest.er1 |
| 15705 | cat conftest.err >&5 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 15706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15707 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15708 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15709 | { (case "(($ac_try" in |
| 15710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15711 | *) ac_try_echo=$ac_try;; |
| 15712 | esac |
| 15713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15714 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15715 | ac_status=$? |
| 15716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15717 | (exit $ac_status); }; } && |
| 15718 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15719 | { (case "(($ac_try" in |
| 15720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15721 | *) ac_try_echo=$ac_try;; |
| 15722 | esac |
| 15723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15724 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 15725 | ac_status=$? |
| 15726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15727 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15728 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 15729 | else |
| 15730 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15732 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15733 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 15734 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15735 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15736 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15737 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 15738 | CFLAGS=$ac_wine_try_cflags_saved |
| 15739 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15740 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5 |
| 15741 | echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; } |
| 15742 | if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then |
| 15743 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
| 15744 | fi |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 15745 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15746 | |
| 15747 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5 |
| 15748 | echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; } |
| 15749 | if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 15750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15751 | else |
| 15752 | ac_wine_try_cflags_saved=$CFLAGS |
| 15753 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 15754 | cat >conftest.$ac_ext <<_ACEOF |
| 15755 | /* confdefs.h. */ |
| 15756 | _ACEOF |
| 15757 | cat confdefs.h >>conftest.$ac_ext |
| 15758 | cat >>conftest.$ac_ext <<_ACEOF |
| 15759 | /* end confdefs.h. */ |
| 15760 | |
| 15761 | int |
| 15762 | main () |
| 15763 | { |
| 15764 | |
| 15765 | ; |
| 15766 | return 0; |
| 15767 | } |
| 15768 | _ACEOF |
| 15769 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15770 | if { (ac_try="$ac_link" |
| 15771 | case "(($ac_try" in |
| 15772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15773 | *) ac_try_echo=$ac_try;; |
| 15774 | esac |
| 15775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15776 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 15777 | ac_status=$? |
| 15778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15779 | rm -f conftest.er1 |
| 15780 | cat conftest.err >&5 |
| 15781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15782 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15783 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15784 | { (case "(($ac_try" in |
| 15785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15786 | *) ac_try_echo=$ac_try;; |
| 15787 | esac |
| 15788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15789 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 15790 | ac_status=$? |
| 15791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15792 | (exit $ac_status); }; } && |
| 15793 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15794 | { (case "(($ac_try" in |
| 15795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15796 | *) ac_try_echo=$ac_try;; |
| 15797 | esac |
| 15798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15799 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 15800 | ac_status=$? |
| 15801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15802 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15803 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 15804 | else |
| 15805 | echo "$as_me: failed program was:" >&5 |
| 15806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15807 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15808 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 15809 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15810 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15811 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 15812 | conftest$ac_exeext conftest.$ac_ext |
| 15813 | CFLAGS=$ac_wine_try_cflags_saved |
| 15814 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15815 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5 |
| 15816 | echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; } |
| 15817 | if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then |
| 15818 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 15819 | fi |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 15820 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15821 | |
| 15822 | echo '{ global: *; };' >conftest.map |
| 15823 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5 |
| 15824 | echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; } |
| 15825 | if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 15826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15827 | else |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15828 | ac_wine_try_cflags_saved=$CFLAGS |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 15829 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
| 15830 | cat >conftest.$ac_ext <<_ACEOF |
| 15831 | /* confdefs.h. */ |
| 15832 | _ACEOF |
| 15833 | cat confdefs.h >>conftest.$ac_ext |
| 15834 | cat >>conftest.$ac_ext <<_ACEOF |
| 15835 | /* end confdefs.h. */ |
| 15836 | |
| 15837 | int |
| 15838 | main () |
| 15839 | { |
| 15840 | |
| 15841 | ; |
| 15842 | return 0; |
| 15843 | } |
| 15844 | _ACEOF |
| 15845 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15846 | if { (ac_try="$ac_link" |
| 15847 | case "(($ac_try" in |
| 15848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15849 | *) ac_try_echo=$ac_try;; |
| 15850 | esac |
| 15851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15852 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 15853 | ac_status=$? |
| 15854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15855 | rm -f conftest.er1 |
| 15856 | cat conftest.err >&5 |
| 15857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15858 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15860 | { (case "(($ac_try" in |
| 15861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15862 | *) ac_try_echo=$ac_try;; |
| 15863 | esac |
| 15864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15865 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 15866 | ac_status=$? |
| 15867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15868 | (exit $ac_status); }; } && |
| 15869 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15870 | { (case "(($ac_try" in |
| 15871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15872 | *) ac_try_echo=$ac_try;; |
| 15873 | esac |
| 15874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15875 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 15876 | ac_status=$? |
| 15877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15878 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15879 | ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 15880 | else |
| 15881 | echo "$as_me: failed program was:" >&5 |
| 15882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15883 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15884 | ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 15885 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15886 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15887 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 15888 | conftest$ac_exeext conftest.$ac_ext |
| 15889 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 15890 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15891 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5 |
| 15892 | echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; } |
| 15893 | if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then |
| 15894 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" |
| 15895 | fi |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 15896 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15897 | rm -f conftest.map |
| 15898 | |
| 15899 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5 |
| 15900 | echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; } |
| 15901 | if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 15902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15903 | else |
| 15904 | ac_wine_try_cflags_saved=$CFLAGS |
| 15905 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
| 15906 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 15907 | /* confdefs.h. */ |
| 15908 | _ACEOF |
| 15909 | cat confdefs.h >>conftest.$ac_ext |
| 15910 | cat >>conftest.$ac_ext <<_ACEOF |
| 15911 | /* end confdefs.h. */ |
| 15912 | |
| 15913 | int |
| 15914 | main () |
| 15915 | { |
| 15916 | |
| 15917 | ; |
| 15918 | return 0; |
| 15919 | } |
| 15920 | _ACEOF |
| 15921 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15922 | if { (ac_try="$ac_link" |
| 15923 | case "(($ac_try" in |
| 15924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15925 | *) ac_try_echo=$ac_try;; |
| 15926 | esac |
| 15927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15928 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 15929 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15931 | rm -f conftest.er1 |
| 15932 | cat conftest.err >&5 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 15933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15934 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15935 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15936 | { (case "(($ac_try" in |
| 15937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15938 | *) ac_try_echo=$ac_try;; |
| 15939 | esac |
| 15940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15941 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15942 | ac_status=$? |
| 15943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15944 | (exit $ac_status); }; } && |
| 15945 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15946 | { (case "(($ac_try" in |
| 15947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15948 | *) ac_try_echo=$ac_try;; |
| 15949 | esac |
| 15950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15951 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 15952 | ac_status=$? |
| 15953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15954 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15955 | ac_cv_cflags__fPIC__Wl___export_dynamic=yes |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 15956 | else |
| 15957 | echo "$as_me: failed program was:" >&5 |
| 15958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15959 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15960 | ac_cv_cflags__fPIC__Wl___export_dynamic=no |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 15961 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15962 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15963 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15964 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 15965 | CFLAGS=$ac_wine_try_cflags_saved |
| 15966 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15967 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5 |
| 15968 | echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; } |
| 15969 | if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then |
| 15970 | LDEXECFLAGS="-Wl,--export-dynamic" |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 15971 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15972 | fi |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 15973 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 15974 | |
| 15975 | as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh` |
| 15976 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5 |
| 15977 | echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; } |
| 15978 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 15979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15980 | else |
| 15981 | ac_wine_try_cflags_saved=$CFLAGS |
| 15982 | CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib" |
| 15983 | cat >conftest.$ac_ext <<_ACEOF |
| 15984 | /* confdefs.h. */ |
| 15985 | _ACEOF |
| 15986 | cat confdefs.h >>conftest.$ac_ext |
| 15987 | cat >>conftest.$ac_ext <<_ACEOF |
| 15988 | /* end confdefs.h. */ |
| 15989 | |
| 15990 | int |
| 15991 | main () |
| 15992 | { |
| 15993 | |
| 15994 | ; |
| 15995 | return 0; |
| 15996 | } |
| 15997 | _ACEOF |
| 15998 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15999 | if { (ac_try="$ac_link" |
| 16000 | case "(($ac_try" in |
| 16001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16002 | *) ac_try_echo=$ac_try;; |
| 16003 | esac |
| 16004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16005 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16006 | ac_status=$? |
| 16007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16008 | rm -f conftest.er1 |
| 16009 | cat conftest.err >&5 |
| 16010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16011 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16012 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16013 | { (case "(($ac_try" in |
| 16014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16015 | *) ac_try_echo=$ac_try;; |
| 16016 | esac |
| 16017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16018 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16019 | ac_status=$? |
| 16020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16021 | (exit $ac_status); }; } && |
| 16022 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16023 | { (case "(($ac_try" in |
| 16024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16025 | *) ac_try_echo=$ac_try;; |
| 16026 | esac |
| 16027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16028 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16029 | ac_status=$? |
| 16030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16031 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 16032 | eval "$as_ac_var=yes" |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16033 | else |
| 16034 | echo "$as_me: failed program was:" >&5 |
| 16035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16036 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 16037 | eval "$as_ac_var=no" |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16038 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16039 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16040 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16041 | conftest$ac_exeext conftest.$ac_ext |
| 16042 | CFLAGS=$ac_wine_try_cflags_saved |
| 16043 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 16044 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16045 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16046 | echo "${ECHO_T}$ac_res" >&6; } |
| 16047 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | 13a93b4 | 2006-08-25 17:23:44 +0200 | [diff] [blame] | 16048 | LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 16049 | fi |
| 16050 | |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16051 | |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 16052 | case $host_cpu in |
| 16053 | *i[3456789]86* | x86_64) |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 16054 | { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5 |
| 16055 | echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; } |
| 16056 | if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16058 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16059 | ac_wine_try_cflags_saved=$CFLAGS |
Alexandre Julliard | 5729f58 | 2005-06-17 10:22:46 +0000 | [diff] [blame] | 16060 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400" |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16061 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16062 | /* confdefs.h. */ |
| 16063 | _ACEOF |
| 16064 | cat confdefs.h >>conftest.$ac_ext |
| 16065 | cat >>conftest.$ac_ext <<_ACEOF |
| 16066 | /* end confdefs.h. */ |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16067 | |
| 16068 | int |
| 16069 | main () |
| 16070 | { |
| 16071 | |
| 16072 | ; |
| 16073 | return 0; |
| 16074 | } |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16075 | _ACEOF |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16076 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16077 | if { (ac_try="$ac_link" |
| 16078 | case "(($ac_try" in |
| 16079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16080 | *) ac_try_echo=$ac_try;; |
| 16081 | esac |
| 16082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16083 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16084 | ac_status=$? |
| 16085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16086 | rm -f conftest.er1 |
| 16087 | cat conftest.err >&5 |
| 16088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16089 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16090 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16091 | { (case "(($ac_try" in |
| 16092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16093 | *) ac_try_echo=$ac_try;; |
| 16094 | esac |
| 16095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16096 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16097 | ac_status=$? |
| 16098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16099 | (exit $ac_status); }; } && |
| 16100 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16101 | { (case "(($ac_try" in |
| 16102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16103 | *) ac_try_echo=$ac_try;; |
| 16104 | esac |
| 16105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16106 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16107 | ac_status=$? |
| 16108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16109 | (exit $ac_status); }; }; then |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 16110 | ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16111 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16112 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16114 | |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 16115 | ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16116 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16117 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16118 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16119 | conftest$ac_exeext conftest.$ac_ext |
| 16120 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16121 | fi |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 16122 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5 |
| 16123 | echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; } |
| 16124 | if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then |
| 16125 | LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" |
| 16126 | fi |
| 16127 | |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 16128 | ;; |
| 16129 | esac |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16130 | |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 16131 | else |
| 16132 | { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16133 | 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] | 16134 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 16135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 16136 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16137 | ac_wine_try_cflags_saved=$CFLAGS |
| 16138 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
| 16139 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 16140 | void myfunc() {} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16141 | _ACEOF |
| 16142 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16143 | if { (ac_try="$ac_link" |
| 16144 | case "(($ac_try" in |
| 16145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16146 | *) ac_try_echo=$ac_try;; |
| 16147 | esac |
| 16148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16149 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16150 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16152 | rm -f conftest.er1 |
| 16153 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16155 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16157 | { (case "(($ac_try" in |
| 16158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16159 | *) ac_try_echo=$ac_try;; |
| 16160 | esac |
| 16161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16162 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16163 | ac_status=$? |
| 16164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16165 | (exit $ac_status); }; } && |
| 16166 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16167 | { (case "(($ac_try" in |
| 16168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16169 | *) ac_try_echo=$ac_try;; |
| 16170 | esac |
| 16171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16172 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16173 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16175 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 16176 | ac_cv_c_dll_unixware="yes" |
| 16177 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16178 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16180 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16181 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 16182 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16183 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16184 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16185 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16186 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16187 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16188 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
| 16189 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; } |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 16190 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 16191 | then |
| 16192 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
| 16193 | LDDLLFLAGS="-Wl,-G,-B,symbolic" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 16194 | |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 16195 | else |
| 16196 | { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16197 | 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] | 16198 | if test "${ac_cv_c_dll_hpux+set}" = set; then |
| 16199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16200 | else |
| 16201 | ac_wine_try_cflags_saved=$CFLAGS |
| 16202 | CFLAGS="$CFLAGS -shared" |
| 16203 | cat >conftest.$ac_ext <<_ACEOF |
| 16204 | void myfunc() {} |
| 16205 | _ACEOF |
| 16206 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16207 | if { (ac_try="$ac_link" |
| 16208 | case "(($ac_try" in |
| 16209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16210 | *) ac_try_echo=$ac_try;; |
| 16211 | esac |
| 16212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16213 | (eval "$ac_link") 2>conftest.er1 |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 16214 | ac_status=$? |
| 16215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16216 | rm -f conftest.er1 |
| 16217 | cat conftest.err >&5 |
| 16218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16219 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16221 | { (case "(($ac_try" in |
| 16222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16223 | *) ac_try_echo=$ac_try;; |
| 16224 | esac |
| 16225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16226 | (eval "$ac_try") 2>&5 |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 16227 | ac_status=$? |
| 16228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16229 | (exit $ac_status); }; } && |
| 16230 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16231 | { (case "(($ac_try" in |
| 16232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16233 | *) ac_try_echo=$ac_try;; |
| 16234 | esac |
| 16235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16236 | (eval "$ac_try") 2>&5 |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 16237 | ac_status=$? |
| 16238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16239 | (exit $ac_status); }; }; then |
| 16240 | ac_cv_c_dll_hpux="yes" |
| 16241 | else |
| 16242 | echo "$as_me: failed program was:" >&5 |
| 16243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16244 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16245 | ac_cv_c_dll_hpux="no" |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 16246 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16247 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16248 | rm -f core conftest.err conftest.$ac_objext \ |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 16249 | conftest$ac_exeext conftest.$ac_ext |
| 16250 | CFLAGS=$ac_wine_try_cflags_saved |
| 16251 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16252 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5 |
| 16253 | echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; } |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 16254 | if test "$ac_cv_c_dll_hpux" = "yes" |
| 16255 | then |
| 16256 | LIBEXT="sl" |
| 16257 | DLLEXT=".sl" |
| 16258 | LDDLLFLAGS="-shared -fPIC" |
| 16259 | LDSHARED="\$(CC) -shared" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 16260 | fi |
| 16261 | fi |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 16262 | fi |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16263 | |
| 16264 | CROSSTEST="" |
| 16265 | |
| 16266 | if test "$cross_compiling" = "no" |
| 16267 | then |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 16268 | 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] | 16269 | do |
| 16270 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 16271 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16272 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 16273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16274 | if test "${ac_cv_prog_CROSSCC+set}" = set; then |
| 16275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16276 | else |
| 16277 | if test -n "$CROSSCC"; then |
| 16278 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 16279 | else |
| 16280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16281 | for as_dir in $PATH |
| 16282 | do |
| 16283 | IFS=$as_save_IFS |
| 16284 | test -z "$as_dir" && as_dir=. |
| 16285 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16286 | 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] | 16287 | ac_cv_prog_CROSSCC="$ac_prog" |
| 16288 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16289 | break 2 |
| 16290 | fi |
| 16291 | done |
| 16292 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16293 | IFS=$as_save_IFS |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16294 | |
| 16295 | fi |
| 16296 | fi |
| 16297 | CROSSCC=$ac_cv_prog_CROSSCC |
| 16298 | if test -n "$CROSSCC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16299 | { echo "$as_me:$LINENO: result: $CROSSCC" >&5 |
| 16300 | echo "${ECHO_T}$CROSSCC" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16301 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16302 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16303 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16304 | fi |
| 16305 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16306 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16307 | test -n "$CROSSCC" && break |
| 16308 | done |
| 16309 | test -n "$CROSSCC" || CROSSCC="false" |
| 16310 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 16311 | 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] | 16312 | do |
| 16313 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 16314 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16315 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 16316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16317 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 16318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16319 | else |
| 16320 | if test -n "$DLLTOOL"; then |
| 16321 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 16322 | else |
| 16323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16324 | for as_dir in $PATH |
| 16325 | do |
| 16326 | IFS=$as_save_IFS |
| 16327 | test -z "$as_dir" && as_dir=. |
| 16328 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16329 | 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] | 16330 | ac_cv_prog_DLLTOOL="$ac_prog" |
| 16331 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16332 | break 2 |
| 16333 | fi |
| 16334 | done |
| 16335 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16336 | IFS=$as_save_IFS |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16337 | |
| 16338 | fi |
| 16339 | fi |
| 16340 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 16341 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16342 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 16343 | echo "${ECHO_T}$DLLTOOL" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16344 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16345 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16346 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16347 | fi |
| 16348 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16349 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16350 | test -n "$DLLTOOL" && break |
| 16351 | done |
| 16352 | test -n "$DLLTOOL" || DLLTOOL="false" |
| 16353 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 16354 | 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] | 16355 | do |
| 16356 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 16357 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16358 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 16359 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 16360 | if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then |
| 16361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16362 | else |
| 16363 | if test -n "$CROSSWINDRES"; then |
| 16364 | ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test. |
| 16365 | else |
| 16366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16367 | for as_dir in $PATH |
| 16368 | do |
| 16369 | IFS=$as_save_IFS |
| 16370 | test -z "$as_dir" && as_dir=. |
| 16371 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16372 | 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] | 16373 | ac_cv_prog_CROSSWINDRES="$ac_prog" |
| 16374 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16375 | break 2 |
| 16376 | fi |
| 16377 | done |
| 16378 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16379 | IFS=$as_save_IFS |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 16380 | |
| 16381 | fi |
| 16382 | fi |
| 16383 | CROSSWINDRES=$ac_cv_prog_CROSSWINDRES |
| 16384 | if test -n "$CROSSWINDRES"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16385 | { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5 |
| 16386 | echo "${ECHO_T}$CROSSWINDRES" >&6; } |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 16387 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16388 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16389 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 16390 | fi |
| 16391 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16392 | |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 16393 | test -n "$CROSSWINDRES" && break |
| 16394 | done |
| 16395 | test -n "$CROSSWINDRES" || CROSSWINDRES="false" |
| 16396 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16397 | if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi |
| 16398 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16399 | ;; |
| 16400 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16401 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 16402 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16403 | { { 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] | 16404 | It is currently not possible to build Wine without shared library |
| 16405 | (.so) support to allow transparent switch between .so and .dll files. |
| 16406 | If you are using Linux, you will need a newer binutils. |
| 16407 | " >&5 |
| 16408 | echo "$as_me: error: could not find a way to build shared libraries. |
| 16409 | It is currently not possible to build Wine without shared library |
| 16410 | (.so) support to allow transparent switch between .so and .dll files. |
| 16411 | If you are using Linux, you will need a newer binutils. |
| 16412 | " >&2;} |
| 16413 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 16414 | fi |
| 16415 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 16416 | case $build_os in |
| 16417 | cygwin*|mingw32*) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 16418 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 16419 | ;; |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 16420 | darwin*|macosx*) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 16421 | LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\"" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 16422 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 16423 | *) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 16424 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 16425 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 16426 | esac |
| 16427 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 16428 | case $host_os in |
| 16429 | mingw32*) |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 16430 | CRTLIBS="-lmsvcrt" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 16431 | |
| 16432 | SOCKETLIBS="-lws2_32" |
| 16433 | |
| 16434 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 16435 | esac |
| 16436 | |
Alexandre Julliard | 40bbcfb | 2006-06-20 13:44:19 +0200 | [diff] [blame] | 16437 | MAIN_BINARY="wine-pthread" |
| 16438 | case $host_cpu in |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 16439 | *i[3456789]86*) |
| 16440 | case $host_os in |
| 16441 | linux* | k*bsd*-gnu) |
| 16442 | MAIN_BINARY="wine-glibc" |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 16443 | |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 16444 | EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader" |
| 16445 | ;; |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 16446 | esac |
Emmanuel Maillard | 3bc8d2e | 2004-07-19 20:11:10 +0000 | [diff] [blame] | 16447 | ;; |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 16448 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16449 | |
| 16450 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16451 | if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16452 | then |
| 16453 | # Extract the first word of "ldd", so it can be a program name with args. |
| 16454 | set dummy ldd; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16455 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 16456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16457 | if test "${ac_cv_path_LDD+set}" = set; then |
| 16458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16459 | else |
| 16460 | case $LDD in |
| 16461 | [\\/]* | ?:[\\/]*) |
| 16462 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 16463 | ;; |
| 16464 | *) |
| 16465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16466 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 16467 | for as_dir in $as_dummy |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16468 | do |
| 16469 | IFS=$as_save_IFS |
| 16470 | test -z "$as_dir" && as_dir=. |
| 16471 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16472 | 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] | 16473 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
| 16474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16475 | break 2 |
| 16476 | fi |
| 16477 | done |
| 16478 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16479 | IFS=$as_save_IFS |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16480 | |
| 16481 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 16482 | ;; |
| 16483 | esac |
| 16484 | fi |
| 16485 | LDD=$ac_cv_path_LDD |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16486 | if test -n "$LDD"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16487 | { echo "$as_me:$LINENO: result: $LDD" >&5 |
| 16488 | echo "${ECHO_T}$LDD" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16489 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16490 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16491 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16492 | fi |
| 16493 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16494 | |
| 16495 | { echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
| 16496 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16497 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 16498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16499 | else |
| 16500 | ac_get_soname_save_LIBS=$LIBS |
| 16501 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 16502 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16503 | /* confdefs.h. */ |
| 16504 | _ACEOF |
| 16505 | cat confdefs.h >>conftest.$ac_ext |
| 16506 | cat >>conftest.$ac_ext <<_ACEOF |
| 16507 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16508 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16509 | /* Override any GCC internal prototype to avoid an error. |
| 16510 | Use char because int might match the return type of a GCC |
| 16511 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16512 | #ifdef __cplusplus |
| 16513 | extern "C" |
| 16514 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16515 | char XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16516 | int |
| 16517 | main () |
| 16518 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16519 | return XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16520 | ; |
| 16521 | return 0; |
| 16522 | } |
| 16523 | _ACEOF |
| 16524 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16525 | if { (ac_try="$ac_link" |
| 16526 | case "(($ac_try" in |
| 16527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16528 | *) ac_try_echo=$ac_try;; |
| 16529 | esac |
| 16530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16531 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16532 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16534 | rm -f conftest.er1 |
| 16535 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16537 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16538 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16539 | { (case "(($ac_try" in |
| 16540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16541 | *) ac_try_echo=$ac_try;; |
| 16542 | esac |
| 16543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16544 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16545 | ac_status=$? |
| 16546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16547 | (exit $ac_status); }; } && |
| 16548 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16549 | { (case "(($ac_try" in |
| 16550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16551 | *) ac_try_echo=$ac_try;; |
| 16552 | esac |
| 16553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16554 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16555 | ac_status=$? |
| 16556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16557 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 16558 | case "$LIBEXT" in |
| 16559 | dylib) ac_cv_lib_soname_X11=`otool -L conftest$ac_exeext | grep libX11\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libX11\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 16560 | so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 16561 | esac |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16562 | if test "x$ac_cv_lib_soname_X11" = "x" |
| 16563 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16564 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16565 | fi |
| 16566 | else |
| 16567 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16569 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16570 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16571 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16572 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16573 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16574 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16575 | LIBS=$ac_get_soname_save_LIBS |
| 16576 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16577 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
| 16578 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16579 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 16580 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16581 | cat >>confdefs.h <<_ACEOF |
| 16582 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 16583 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16584 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16585 | fi |
| 16586 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16587 | { echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
| 16588 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16589 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 16590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16591 | else |
| 16592 | ac_get_soname_save_LIBS=$LIBS |
| 16593 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 16594 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16595 | /* confdefs.h. */ |
| 16596 | _ACEOF |
| 16597 | cat confdefs.h >>conftest.$ac_ext |
| 16598 | cat >>conftest.$ac_ext <<_ACEOF |
| 16599 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16600 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16601 | /* Override any GCC internal prototype to avoid an error. |
| 16602 | Use char because int might match the return type of a GCC |
| 16603 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16604 | #ifdef __cplusplus |
| 16605 | extern "C" |
| 16606 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16607 | char XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16608 | int |
| 16609 | main () |
| 16610 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16611 | return XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16612 | ; |
| 16613 | return 0; |
| 16614 | } |
| 16615 | _ACEOF |
| 16616 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16617 | if { (ac_try="$ac_link" |
| 16618 | case "(($ac_try" in |
| 16619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16620 | *) ac_try_echo=$ac_try;; |
| 16621 | esac |
| 16622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16623 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16624 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16626 | rm -f conftest.er1 |
| 16627 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16629 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16630 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16631 | { (case "(($ac_try" in |
| 16632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16633 | *) ac_try_echo=$ac_try;; |
| 16634 | esac |
| 16635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16636 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16637 | ac_status=$? |
| 16638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16639 | (exit $ac_status); }; } && |
| 16640 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16641 | { (case "(($ac_try" in |
| 16642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16643 | *) ac_try_echo=$ac_try;; |
| 16644 | esac |
| 16645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16646 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16647 | ac_status=$? |
| 16648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16649 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 16650 | case "$LIBEXT" in |
| 16651 | dylib) ac_cv_lib_soname_Xext=`otool -L conftest$ac_exeext | grep libXext\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXext\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 16652 | so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 16653 | esac |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16654 | if test "x$ac_cv_lib_soname_Xext" = "x" |
| 16655 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16656 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16657 | fi |
| 16658 | else |
| 16659 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 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_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16663 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16664 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16665 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16666 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +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_Xext" >&5 |
| 16670 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16671 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 16672 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16673 | cat >>confdefs.h <<_ACEOF |
| 16674 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 16675 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16676 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16677 | fi |
| 16678 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16679 | { echo "$as_me:$LINENO: checking for -lXi soname" >&5 |
| 16680 | echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; } |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16681 | if test "${ac_cv_lib_soname_Xi+set}" = set; then |
| 16682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16683 | else |
| 16684 | ac_get_soname_save_LIBS=$LIBS |
| 16685 | LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $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. */ |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16696 | #ifdef __cplusplus |
| 16697 | extern "C" |
| 16698 | #endif |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16699 | char XOpenDevice (); |
| 16700 | int |
| 16701 | main () |
| 16702 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16703 | return XOpenDevice (); |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16704 | ; |
| 16705 | return 0; |
| 16706 | } |
| 16707 | _ACEOF |
| 16708 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16709 | if { (ac_try="$ac_link" |
| 16710 | case "(($ac_try" in |
| 16711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16712 | *) ac_try_echo=$ac_try;; |
| 16713 | esac |
| 16714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16715 | (eval "$ac_link") 2>conftest.er1 |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16716 | ac_status=$? |
| 16717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16718 | rm -f conftest.er1 |
| 16719 | cat conftest.err >&5 |
| 16720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16721 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16723 | { (case "(($ac_try" in |
| 16724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16725 | *) ac_try_echo=$ac_try;; |
| 16726 | esac |
| 16727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16728 | (eval "$ac_try") 2>&5 |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16729 | ac_status=$? |
| 16730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16731 | (exit $ac_status); }; } && |
| 16732 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16733 | { (case "(($ac_try" in |
| 16734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16735 | *) ac_try_echo=$ac_try;; |
| 16736 | esac |
| 16737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16738 | (eval "$ac_try") 2>&5 |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16739 | ac_status=$? |
| 16740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16741 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 16742 | case "$LIBEXT" in |
| 16743 | dylib) ac_cv_lib_soname_Xi=`otool -L conftest$ac_exeext | grep libXi\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 16744 | so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 16745 | esac |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16746 | if test "x$ac_cv_lib_soname_Xi" = "x" |
| 16747 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16748 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16749 | fi |
| 16750 | else |
| 16751 | echo "$as_me: failed program was:" >&5 |
| 16752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16753 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16754 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16755 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16756 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16757 | rm -f core conftest.err conftest.$ac_objext \ |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16758 | conftest$ac_exeext conftest.$ac_ext |
| 16759 | LIBS=$ac_get_soname_save_LIBS |
| 16760 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16761 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5 |
| 16762 | echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16763 | if test "${ac_cv_lib_soname_Xi+set}" = set; then |
| 16764 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16765 | cat >>confdefs.h <<_ACEOF |
| 16766 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" |
| 16767 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16768 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 16769 | fi |
| 16770 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16771 | { echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
| 16772 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16773 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 16774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16775 | else |
| 16776 | ac_get_soname_save_LIBS=$LIBS |
| 16777 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 16778 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16779 | /* confdefs.h. */ |
| 16780 | _ACEOF |
| 16781 | cat confdefs.h >>conftest.$ac_ext |
| 16782 | cat >>conftest.$ac_ext <<_ACEOF |
| 16783 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16784 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16785 | /* Override any GCC internal prototype to avoid an error. |
| 16786 | Use char because int might match the return type of a GCC |
| 16787 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16788 | #ifdef __cplusplus |
| 16789 | extern "C" |
| 16790 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16791 | char XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16792 | int |
| 16793 | main () |
| 16794 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16795 | return XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16796 | ; |
| 16797 | return 0; |
| 16798 | } |
| 16799 | _ACEOF |
| 16800 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16801 | if { (ac_try="$ac_link" |
| 16802 | case "(($ac_try" in |
| 16803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16804 | *) ac_try_echo=$ac_try;; |
| 16805 | esac |
| 16806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16807 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16808 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16810 | rm -f conftest.er1 |
| 16811 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16813 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16814 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16815 | { (case "(($ac_try" in |
| 16816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16817 | *) ac_try_echo=$ac_try;; |
| 16818 | esac |
| 16819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16820 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16821 | ac_status=$? |
| 16822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16823 | (exit $ac_status); }; } && |
| 16824 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16825 | { (case "(($ac_try" in |
| 16826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16827 | *) ac_try_echo=$ac_try;; |
| 16828 | esac |
| 16829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16830 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16831 | ac_status=$? |
| 16832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16833 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 16834 | case "$LIBEXT" in |
| 16835 | dylib) ac_cv_lib_soname_Xrender=`otool -L conftest$ac_exeext | grep libXrender\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXrender\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 16836 | so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 16837 | esac |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16838 | if test "x$ac_cv_lib_soname_Xrender" = "x" |
| 16839 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16840 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16841 | fi |
| 16842 | else |
| 16843 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16845 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16846 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16847 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16848 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16849 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16850 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16851 | LIBS=$ac_get_soname_save_LIBS |
| 16852 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16853 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 |
| 16854 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16855 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 16856 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16857 | cat >>confdefs.h <<_ACEOF |
| 16858 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 16859 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16860 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16861 | fi |
| 16862 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16863 | { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5 |
| 16864 | echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; } |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16865 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then |
| 16866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16867 | else |
| 16868 | ac_get_soname_save_LIBS=$LIBS |
| 16869 | LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 16870 | cat >conftest.$ac_ext <<_ACEOF |
| 16871 | /* confdefs.h. */ |
| 16872 | _ACEOF |
| 16873 | cat confdefs.h >>conftest.$ac_ext |
| 16874 | cat >>conftest.$ac_ext <<_ACEOF |
| 16875 | /* end confdefs.h. */ |
| 16876 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16877 | /* Override any GCC internal prototype to avoid an error. |
| 16878 | Use char because int might match the return type of a GCC |
| 16879 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16880 | #ifdef __cplusplus |
| 16881 | extern "C" |
| 16882 | #endif |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16883 | char XRRQueryExtension (); |
| 16884 | int |
| 16885 | main () |
| 16886 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16887 | return XRRQueryExtension (); |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16888 | ; |
| 16889 | return 0; |
| 16890 | } |
| 16891 | _ACEOF |
| 16892 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16893 | if { (ac_try="$ac_link" |
| 16894 | case "(($ac_try" in |
| 16895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16896 | *) ac_try_echo=$ac_try;; |
| 16897 | esac |
| 16898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16899 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16900 | ac_status=$? |
| 16901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16902 | rm -f conftest.er1 |
| 16903 | cat conftest.err >&5 |
| 16904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16905 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16907 | { (case "(($ac_try" in |
| 16908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16909 | *) ac_try_echo=$ac_try;; |
| 16910 | esac |
| 16911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16912 | (eval "$ac_try") 2>&5 |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16913 | ac_status=$? |
| 16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16915 | (exit $ac_status); }; } && |
| 16916 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16917 | { (case "(($ac_try" in |
| 16918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16919 | *) ac_try_echo=$ac_try;; |
| 16920 | esac |
| 16921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16922 | (eval "$ac_try") 2>&5 |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16923 | ac_status=$? |
| 16924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16925 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 16926 | case "$LIBEXT" in |
| 16927 | dylib) ac_cv_lib_soname_Xrandr=`otool -L conftest$ac_exeext | grep libXrandr\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXrandr\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 16928 | so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 16929 | esac |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16930 | if test "x$ac_cv_lib_soname_Xrandr" = "x" |
| 16931 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 16932 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16933 | fi |
| 16934 | else |
| 16935 | echo "$as_me: failed program was:" >&5 |
| 16936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16937 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16938 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16939 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16940 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16941 | rm -f core conftest.err conftest.$ac_objext \ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16942 | conftest$ac_exeext conftest.$ac_ext |
| 16943 | LIBS=$ac_get_soname_save_LIBS |
| 16944 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16945 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5 |
| 16946 | echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16947 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then |
| 16948 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16949 | cat >>confdefs.h <<_ACEOF |
| 16950 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" |
| 16951 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 16952 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 16953 | fi |
| 16954 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16955 | { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
| 16956 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16957 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 16958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16959 | else |
| 16960 | ac_get_soname_save_LIBS=$LIBS |
| 16961 | LIBS="-lfreetype $X_LIBS $LIBS" |
| 16962 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16963 | /* confdefs.h. */ |
| 16964 | _ACEOF |
| 16965 | cat confdefs.h >>conftest.$ac_ext |
| 16966 | cat >>conftest.$ac_ext <<_ACEOF |
| 16967 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16968 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16969 | /* Override any GCC internal prototype to avoid an error. |
| 16970 | Use char because int might match the return type of a GCC |
| 16971 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16972 | #ifdef __cplusplus |
| 16973 | extern "C" |
| 16974 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16975 | char FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16976 | int |
| 16977 | main () |
| 16978 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16979 | return FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16980 | ; |
| 16981 | return 0; |
| 16982 | } |
| 16983 | _ACEOF |
| 16984 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16985 | if { (ac_try="$ac_link" |
| 16986 | case "(($ac_try" in |
| 16987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16988 | *) ac_try_echo=$ac_try;; |
| 16989 | esac |
| 16990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16991 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16992 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16994 | rm -f conftest.er1 |
| 16995 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16997 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16999 | { (case "(($ac_try" in |
| 17000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17001 | *) ac_try_echo=$ac_try;; |
| 17002 | esac |
| 17003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17004 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17005 | ac_status=$? |
| 17006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17007 | (exit $ac_status); }; } && |
| 17008 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17009 | { (case "(($ac_try" in |
| 17010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17011 | *) ac_try_echo=$ac_try;; |
| 17012 | esac |
| 17013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17014 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17015 | ac_status=$? |
| 17016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17017 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 17018 | case "$LIBEXT" in |
| 17019 | dylib) ac_cv_lib_soname_freetype=`otool -L conftest$ac_exeext | grep libfreetype\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libfreetype\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 17020 | so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 17021 | esac |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17022 | if test "x$ac_cv_lib_soname_freetype" = "x" |
| 17023 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17024 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17025 | fi |
| 17026 | else |
| 17027 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17029 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17030 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17031 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17032 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17033 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17034 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17035 | LIBS=$ac_get_soname_save_LIBS |
| 17036 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17037 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
| 17038 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17039 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 17040 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17041 | cat >>confdefs.h <<_ACEOF |
| 17042 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 17043 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17044 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17045 | fi |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17046 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17047 | { echo "$as_me:$LINENO: checking for -lGL soname" >&5 |
| 17048 | echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; } |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17049 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 17050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17051 | else |
| 17052 | ac_get_soname_save_LIBS=$LIBS |
| 17053 | LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 17054 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17055 | /* confdefs.h. */ |
| 17056 | _ACEOF |
| 17057 | cat confdefs.h >>conftest.$ac_ext |
| 17058 | cat >>conftest.$ac_ext <<_ACEOF |
| 17059 | /* end confdefs.h. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17060 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17061 | /* Override any GCC internal prototype to avoid an error. |
| 17062 | Use char because int might match the return type of a GCC |
| 17063 | builtin and then its argument prototype would still apply. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17064 | #ifdef __cplusplus |
| 17065 | extern "C" |
| 17066 | #endif |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17067 | char glXQueryExtension (); |
| 17068 | int |
| 17069 | main () |
| 17070 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17071 | return glXQueryExtension (); |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17072 | ; |
| 17073 | return 0; |
| 17074 | } |
| 17075 | _ACEOF |
| 17076 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17077 | if { (ac_try="$ac_link" |
| 17078 | case "(($ac_try" in |
| 17079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17080 | *) ac_try_echo=$ac_try;; |
| 17081 | esac |
| 17082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17083 | (eval "$ac_link") 2>conftest.er1 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17084 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17086 | rm -f conftest.er1 |
| 17087 | cat conftest.err >&5 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17089 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17090 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17091 | { (case "(($ac_try" in |
| 17092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17093 | *) ac_try_echo=$ac_try;; |
| 17094 | esac |
| 17095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17096 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17097 | ac_status=$? |
| 17098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17099 | (exit $ac_status); }; } && |
| 17100 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17101 | { (case "(($ac_try" in |
| 17102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17103 | *) ac_try_echo=$ac_try;; |
| 17104 | esac |
| 17105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17106 | (eval "$ac_try") 2>&5 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17107 | ac_status=$? |
| 17108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17109 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 17110 | case "$LIBEXT" in |
| 17111 | dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep libGL\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 17112 | so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 17113 | esac |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17114 | if test "x$ac_cv_lib_soname_GL" = "x" |
| 17115 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17116 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17117 | fi |
| 17118 | else |
| 17119 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17121 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17122 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17123 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17124 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17125 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17126 | conftest$ac_exeext conftest.$ac_ext |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17127 | LIBS=$ac_get_soname_save_LIBS |
| 17128 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17129 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5 |
| 17130 | echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17131 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 17132 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17133 | cat >>confdefs.h <<_ACEOF |
| 17134 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 17135 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17136 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17137 | fi |
| 17138 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17139 | { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5 |
| 17140 | echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17141 | if test "${ac_cv_lib_soname_dbus_1+set}" = set; then |
| 17142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17143 | else |
| 17144 | ac_get_soname_save_LIBS=$LIBS |
| 17145 | LIBS="-ldbus-1 $LIBS" |
| 17146 | cat >conftest.$ac_ext <<_ACEOF |
| 17147 | /* confdefs.h. */ |
| 17148 | _ACEOF |
| 17149 | cat confdefs.h >>conftest.$ac_ext |
| 17150 | cat >>conftest.$ac_ext <<_ACEOF |
| 17151 | /* end confdefs.h. */ |
| 17152 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17153 | /* Override any GCC internal prototype to avoid an error. |
| 17154 | Use char because int might match the return type of a GCC |
| 17155 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17156 | #ifdef __cplusplus |
| 17157 | extern "C" |
| 17158 | #endif |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17159 | char dbus_error_init (); |
| 17160 | int |
| 17161 | main () |
| 17162 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17163 | return dbus_error_init (); |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17164 | ; |
| 17165 | return 0; |
| 17166 | } |
| 17167 | _ACEOF |
| 17168 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17169 | if { (ac_try="$ac_link" |
| 17170 | case "(($ac_try" in |
| 17171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17172 | *) ac_try_echo=$ac_try;; |
| 17173 | esac |
| 17174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17175 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17176 | ac_status=$? |
| 17177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17178 | rm -f conftest.er1 |
| 17179 | cat conftest.err >&5 |
| 17180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17181 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17183 | { (case "(($ac_try" in |
| 17184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17185 | *) ac_try_echo=$ac_try;; |
| 17186 | esac |
| 17187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17188 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17189 | ac_status=$? |
| 17190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17191 | (exit $ac_status); }; } && |
| 17192 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17193 | { (case "(($ac_try" in |
| 17194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17195 | *) ac_try_echo=$ac_try;; |
| 17196 | esac |
| 17197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17198 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17199 | ac_status=$? |
| 17200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17201 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 17202 | case "$LIBEXT" in |
| 17203 | dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep libdbus-1\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 17204 | so) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.so | sed -e "s/^.*\(libdbus-1\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 17205 | esac |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17206 | if test "x$ac_cv_lib_soname_dbus_1" = "x" |
| 17207 | then |
| 17208 | ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT" |
| 17209 | fi |
| 17210 | else |
| 17211 | echo "$as_me: failed program was:" >&5 |
| 17212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17213 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17214 | ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17215 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17216 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17217 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17218 | conftest$ac_exeext conftest.$ac_ext |
| 17219 | LIBS=$ac_get_soname_save_LIBS |
| 17220 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17221 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5 |
| 17222 | echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17223 | if test "${ac_cv_lib_soname_dbus_1+set}" = set; then |
| 17224 | |
| 17225 | cat >>confdefs.h <<_ACEOF |
| 17226 | #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1" |
| 17227 | _ACEOF |
| 17228 | |
| 17229 | fi |
| 17230 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17231 | { echo "$as_me:$LINENO: checking for -lhal soname" >&5 |
| 17232 | echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17233 | if test "${ac_cv_lib_soname_hal+set}" = set; then |
| 17234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17235 | else |
| 17236 | ac_get_soname_save_LIBS=$LIBS |
| 17237 | LIBS="-lhal $LIBS" |
| 17238 | cat >conftest.$ac_ext <<_ACEOF |
| 17239 | /* confdefs.h. */ |
| 17240 | _ACEOF |
| 17241 | cat confdefs.h >>conftest.$ac_ext |
| 17242 | cat >>conftest.$ac_ext <<_ACEOF |
| 17243 | /* end confdefs.h. */ |
| 17244 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17245 | /* Override any GCC internal prototype to avoid an error. |
| 17246 | Use char because int might match the return type of a GCC |
| 17247 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17248 | #ifdef __cplusplus |
| 17249 | extern "C" |
| 17250 | #endif |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17251 | char libhal_ctx_new (); |
| 17252 | int |
| 17253 | main () |
| 17254 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17255 | return libhal_ctx_new (); |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17256 | ; |
| 17257 | return 0; |
| 17258 | } |
| 17259 | _ACEOF |
| 17260 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17261 | if { (ac_try="$ac_link" |
| 17262 | case "(($ac_try" in |
| 17263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17264 | *) ac_try_echo=$ac_try;; |
| 17265 | esac |
| 17266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17267 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17268 | ac_status=$? |
| 17269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17270 | rm -f conftest.er1 |
| 17271 | cat conftest.err >&5 |
| 17272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17273 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17275 | { (case "(($ac_try" in |
| 17276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17277 | *) ac_try_echo=$ac_try;; |
| 17278 | esac |
| 17279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17280 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17281 | ac_status=$? |
| 17282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17283 | (exit $ac_status); }; } && |
| 17284 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17285 | { (case "(($ac_try" in |
| 17286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17287 | *) ac_try_echo=$ac_try;; |
| 17288 | esac |
| 17289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17290 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17291 | ac_status=$? |
| 17292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17293 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 17294 | case "$LIBEXT" in |
| 17295 | dylib) ac_cv_lib_soname_hal=`otool -L conftest$ac_exeext | grep libhal\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libhal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 17296 | so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 17297 | esac |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17298 | if test "x$ac_cv_lib_soname_hal" = "x" |
| 17299 | then |
| 17300 | ac_cv_lib_soname_hal="libhal.$LIBEXT" |
| 17301 | fi |
| 17302 | else |
| 17303 | echo "$as_me: failed program was:" >&5 |
| 17304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17305 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17306 | ac_cv_lib_soname_hal="libhal.$LIBEXT" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17307 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17308 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17309 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17310 | conftest$ac_exeext conftest.$ac_ext |
| 17311 | LIBS=$ac_get_soname_save_LIBS |
| 17312 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17313 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5 |
| 17314 | echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 17315 | if test "${ac_cv_lib_soname_hal+set}" = set; then |
| 17316 | |
| 17317 | cat >>confdefs.h <<_ACEOF |
| 17318 | #define SONAME_LIBHAL "$ac_cv_lib_soname_hal" |
| 17319 | _ACEOF |
| 17320 | |
| 17321 | fi |
| 17322 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17323 | { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5 |
| 17324 | echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; } |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 17325 | if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then |
| 17326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17327 | else |
| 17328 | ac_get_soname_save_LIBS=$LIBS |
| 17329 | LIBS="-ltxc_dxtn $LIBS" |
| 17330 | cat >conftest.$ac_ext <<_ACEOF |
| 17331 | /* confdefs.h. */ |
| 17332 | _ACEOF |
| 17333 | cat confdefs.h >>conftest.$ac_ext |
| 17334 | cat >>conftest.$ac_ext <<_ACEOF |
| 17335 | /* end confdefs.h. */ |
| 17336 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17337 | /* Override any GCC internal prototype to avoid an error. |
| 17338 | Use char because int might match the return type of a GCC |
| 17339 | builtin and then its argument prototype would still apply. */ |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 17340 | #ifdef __cplusplus |
| 17341 | extern "C" |
| 17342 | #endif |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 17343 | char fetch_2d_texel_rgba_dxt1 (); |
| 17344 | int |
| 17345 | main () |
| 17346 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17347 | return fetch_2d_texel_rgba_dxt1 (); |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 17348 | ; |
| 17349 | return 0; |
| 17350 | } |
| 17351 | _ACEOF |
| 17352 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17353 | if { (ac_try="$ac_link" |
| 17354 | case "(($ac_try" in |
| 17355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17356 | *) ac_try_echo=$ac_try;; |
| 17357 | esac |
| 17358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17359 | (eval "$ac_link") 2>conftest.er1 |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 17360 | ac_status=$? |
| 17361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17362 | rm -f conftest.er1 |
| 17363 | cat conftest.err >&5 |
| 17364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17365 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17366 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17367 | { (case "(($ac_try" in |
| 17368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17369 | *) ac_try_echo=$ac_try;; |
| 17370 | esac |
| 17371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17372 | (eval "$ac_try") 2>&5 |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 17373 | ac_status=$? |
| 17374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17375 | (exit $ac_status); }; } && |
| 17376 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17377 | { (case "(($ac_try" in |
| 17378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17379 | *) ac_try_echo=$ac_try;; |
| 17380 | esac |
| 17381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17382 | (eval "$ac_try") 2>&5 |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 17383 | ac_status=$? |
| 17384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17385 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 17386 | case "$LIBEXT" in |
| 17387 | dylib) ac_cv_lib_soname_txc_dxtn=`otool -L conftest$ac_exeext | grep libtxc_dxtn\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libtxc_dxtn\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 17388 | so) ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.so | sed -e "s/^.*\(libtxc_dxtn\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 17389 | esac |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 17390 | if test "x$ac_cv_lib_soname_txc_dxtn" = "x" |
| 17391 | then |
| 17392 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
| 17393 | fi |
| 17394 | else |
| 17395 | echo "$as_me: failed program was:" >&5 |
| 17396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17397 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17398 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 17399 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17400 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17401 | rm -f core conftest.err conftest.$ac_objext \ |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 17402 | conftest$ac_exeext conftest.$ac_ext |
| 17403 | LIBS=$ac_get_soname_save_LIBS |
| 17404 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17405 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5 |
| 17406 | echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17407 | if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then |
| 17408 | |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 17409 | cat >>confdefs.h <<_ACEOF |
| 17410 | #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn" |
| 17411 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17412 | |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 17413 | fi |
| 17414 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17415 | { echo "$as_me:$LINENO: checking for -lcups soname" >&5 |
| 17416 | echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; } |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17417 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 17418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17419 | else |
| 17420 | ac_get_soname_save_LIBS=$LIBS |
| 17421 | LIBS="-lcups $LIBS" |
| 17422 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17423 | /* confdefs.h. */ |
| 17424 | _ACEOF |
| 17425 | cat confdefs.h >>conftest.$ac_ext |
| 17426 | cat >>conftest.$ac_ext <<_ACEOF |
| 17427 | /* end confdefs.h. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17428 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17429 | /* Override any GCC internal prototype to avoid an error. |
| 17430 | Use char because int might match the return type of a GCC |
| 17431 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17432 | #ifdef __cplusplus |
| 17433 | extern "C" |
| 17434 | #endif |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17435 | char cupsGetDefault (); |
| 17436 | int |
| 17437 | main () |
| 17438 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17439 | return cupsGetDefault (); |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17440 | ; |
| 17441 | return 0; |
| 17442 | } |
| 17443 | _ACEOF |
| 17444 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17445 | if { (ac_try="$ac_link" |
| 17446 | case "(($ac_try" in |
| 17447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17448 | *) ac_try_echo=$ac_try;; |
| 17449 | esac |
| 17450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17451 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17452 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17454 | rm -f conftest.er1 |
| 17455 | cat conftest.err >&5 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17457 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17458 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17459 | { (case "(($ac_try" in |
| 17460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17461 | *) ac_try_echo=$ac_try;; |
| 17462 | esac |
| 17463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17464 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17465 | ac_status=$? |
| 17466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17467 | (exit $ac_status); }; } && |
| 17468 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17469 | { (case "(($ac_try" in |
| 17470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17471 | *) ac_try_echo=$ac_try;; |
| 17472 | esac |
| 17473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17474 | (eval "$ac_try") 2>&5 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17475 | ac_status=$? |
| 17476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17477 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 17478 | case "$LIBEXT" in |
| 17479 | dylib) ac_cv_lib_soname_cups=`otool -L conftest$ac_exeext | grep libcups\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcups\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 17480 | so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 17481 | esac |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17482 | if test "x$ac_cv_lib_soname_cups" = "x" |
| 17483 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17484 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17485 | fi |
| 17486 | else |
| 17487 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17489 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17490 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17491 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17492 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17493 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17494 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17495 | LIBS=$ac_get_soname_save_LIBS |
| 17496 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17497 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5 |
| 17498 | echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17499 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 17500 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17501 | cat >>confdefs.h <<_ACEOF |
| 17502 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 17503 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17504 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17505 | fi |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17506 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17507 | { echo "$as_me:$LINENO: checking for -ljack soname" >&5 |
| 17508 | echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; } |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17509 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 17510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17511 | else |
| 17512 | ac_get_soname_save_LIBS=$LIBS |
| 17513 | LIBS="-ljack $LIBS" |
| 17514 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17515 | /* confdefs.h. */ |
| 17516 | _ACEOF |
| 17517 | cat confdefs.h >>conftest.$ac_ext |
| 17518 | cat >>conftest.$ac_ext <<_ACEOF |
| 17519 | /* end confdefs.h. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17520 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17521 | /* Override any GCC internal prototype to avoid an error. |
| 17522 | Use char because int might match the return type of a GCC |
| 17523 | builtin and then its argument prototype would still apply. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17524 | #ifdef __cplusplus |
| 17525 | extern "C" |
| 17526 | #endif |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17527 | char jack_client_new (); |
| 17528 | int |
| 17529 | main () |
| 17530 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17531 | return jack_client_new (); |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17532 | ; |
| 17533 | return 0; |
| 17534 | } |
| 17535 | _ACEOF |
| 17536 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17537 | if { (ac_try="$ac_link" |
| 17538 | case "(($ac_try" in |
| 17539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17540 | *) ac_try_echo=$ac_try;; |
| 17541 | esac |
| 17542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17543 | (eval "$ac_link") 2>conftest.er1 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17544 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17546 | rm -f conftest.er1 |
| 17547 | cat conftest.err >&5 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17549 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17551 | { (case "(($ac_try" in |
| 17552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17553 | *) ac_try_echo=$ac_try;; |
| 17554 | esac |
| 17555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17556 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17557 | ac_status=$? |
| 17558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17559 | (exit $ac_status); }; } && |
| 17560 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17561 | { (case "(($ac_try" in |
| 17562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17563 | *) ac_try_echo=$ac_try;; |
| 17564 | esac |
| 17565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17566 | (eval "$ac_try") 2>&5 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17567 | ac_status=$? |
| 17568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17569 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 17570 | case "$LIBEXT" in |
| 17571 | dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep libjack\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libjack\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 17572 | so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 17573 | esac |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17574 | if test "x$ac_cv_lib_soname_jack" = "x" |
| 17575 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17576 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17577 | fi |
| 17578 | else |
| 17579 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17581 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17582 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17583 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17584 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17585 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17586 | conftest$ac_exeext conftest.$ac_ext |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17587 | LIBS=$ac_get_soname_save_LIBS |
| 17588 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17589 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5 |
| 17590 | echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17591 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 17592 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17593 | cat >>confdefs.h <<_ACEOF |
| 17594 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 17595 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17596 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17597 | fi |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17598 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17599 | { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5 |
| 17600 | echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; } |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17601 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then |
| 17602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17603 | else |
| 17604 | ac_get_soname_save_LIBS=$LIBS |
| 17605 | LIBS="-lfontconfig $LIBS" |
| 17606 | cat >conftest.$ac_ext <<_ACEOF |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17607 | /* confdefs.h. */ |
| 17608 | _ACEOF |
| 17609 | cat confdefs.h >>conftest.$ac_ext |
| 17610 | cat >>conftest.$ac_ext <<_ACEOF |
| 17611 | /* end confdefs.h. */ |
| 17612 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17613 | /* Override any GCC internal prototype to avoid an error. |
| 17614 | Use char because int might match the return type of a GCC |
| 17615 | builtin and then its argument prototype would still apply. */ |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17616 | #ifdef __cplusplus |
| 17617 | extern "C" |
| 17618 | #endif |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17619 | char FcInit (); |
| 17620 | int |
| 17621 | main () |
| 17622 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17623 | return FcInit (); |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17624 | ; |
| 17625 | return 0; |
| 17626 | } |
| 17627 | _ACEOF |
| 17628 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17629 | if { (ac_try="$ac_link" |
| 17630 | case "(($ac_try" in |
| 17631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17632 | *) ac_try_echo=$ac_try;; |
| 17633 | esac |
| 17634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17635 | (eval "$ac_link") 2>conftest.er1 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17636 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17638 | rm -f conftest.er1 |
| 17639 | cat conftest.err >&5 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17641 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17643 | { (case "(($ac_try" in |
| 17644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17645 | *) ac_try_echo=$ac_try;; |
| 17646 | esac |
| 17647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17648 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17649 | ac_status=$? |
| 17650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17651 | (exit $ac_status); }; } && |
| 17652 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17653 | { (case "(($ac_try" in |
| 17654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17655 | *) ac_try_echo=$ac_try;; |
| 17656 | esac |
| 17657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17658 | (eval "$ac_try") 2>&5 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17659 | ac_status=$? |
| 17660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17661 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 17662 | case "$LIBEXT" in |
| 17663 | dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep libfontconfig\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 17664 | so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 17665 | esac |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17666 | if test "x$ac_cv_lib_soname_fontconfig" = "x" |
| 17667 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17668 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17669 | fi |
| 17670 | else |
| 17671 | echo "$as_me: failed program was:" >&5 |
| 17672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17673 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17674 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17675 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17676 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17677 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17678 | conftest$ac_exeext conftest.$ac_ext |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17679 | LIBS=$ac_get_soname_save_LIBS |
| 17680 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17681 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5 |
| 17682 | echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17683 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then |
| 17684 | |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17685 | cat >>confdefs.h <<_ACEOF |
| 17686 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 17687 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17688 | |
Alexandre Julliard | 7999469 | 2003-11-13 20:58:55 +0000 | [diff] [blame] | 17689 | fi |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 17690 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17691 | { echo "$as_me:$LINENO: checking for -lssl soname" >&5 |
| 17692 | echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; } |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17693 | if test "${ac_cv_lib_soname_ssl+set}" = set; then |
| 17694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17695 | else |
| 17696 | ac_get_soname_save_LIBS=$LIBS |
| 17697 | LIBS="-lssl $LIBS" |
| 17698 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17699 | /* confdefs.h. */ |
| 17700 | _ACEOF |
| 17701 | cat confdefs.h >>conftest.$ac_ext |
| 17702 | cat >>conftest.$ac_ext <<_ACEOF |
| 17703 | /* end confdefs.h. */ |
| 17704 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17705 | /* Override any GCC internal prototype to avoid an error. |
| 17706 | Use char because int might match the return type of a GCC |
| 17707 | builtin and then its argument prototype would still apply. */ |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17708 | #ifdef __cplusplus |
| 17709 | extern "C" |
| 17710 | #endif |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17711 | char SSL_library_init (); |
| 17712 | int |
| 17713 | main () |
| 17714 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17715 | return SSL_library_init (); |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17716 | ; |
| 17717 | return 0; |
| 17718 | } |
| 17719 | _ACEOF |
| 17720 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17721 | if { (ac_try="$ac_link" |
| 17722 | case "(($ac_try" in |
| 17723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17724 | *) ac_try_echo=$ac_try;; |
| 17725 | esac |
| 17726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17727 | (eval "$ac_link") 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17728 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17730 | rm -f conftest.er1 |
| 17731 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17733 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17734 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17735 | { (case "(($ac_try" in |
| 17736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17737 | *) ac_try_echo=$ac_try;; |
| 17738 | esac |
| 17739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17740 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17741 | ac_status=$? |
| 17742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17743 | (exit $ac_status); }; } && |
| 17744 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17745 | { (case "(($ac_try" in |
| 17746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17747 | *) ac_try_echo=$ac_try;; |
| 17748 | esac |
| 17749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17750 | (eval "$ac_try") 2>&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17751 | ac_status=$? |
| 17752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17753 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 17754 | case "$LIBEXT" in |
| 17755 | dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep libssl\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 17756 | so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 17757 | esac |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17758 | if test "x$ac_cv_lib_soname_ssl" = "x" |
| 17759 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17760 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17761 | fi |
| 17762 | else |
| 17763 | echo "$as_me: failed program was:" >&5 |
| 17764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17765 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17766 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17767 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17768 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17769 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17770 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17771 | LIBS=$ac_get_soname_save_LIBS |
| 17772 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17773 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5 |
| 17774 | echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17775 | if test "${ac_cv_lib_soname_ssl+set}" = set; then |
| 17776 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17777 | cat >>confdefs.h <<_ACEOF |
| 17778 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 17779 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17780 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17781 | fi |
| 17782 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17783 | { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5 |
| 17784 | echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; } |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17785 | if test "${ac_cv_lib_soname_crypto+set}" = set; then |
| 17786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17787 | else |
| 17788 | ac_get_soname_save_LIBS=$LIBS |
| 17789 | LIBS="-lcrypto $LIBS" |
| 17790 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17791 | /* confdefs.h. */ |
| 17792 | _ACEOF |
| 17793 | cat confdefs.h >>conftest.$ac_ext |
| 17794 | cat >>conftest.$ac_ext <<_ACEOF |
| 17795 | /* end confdefs.h. */ |
| 17796 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17797 | /* Override any GCC internal prototype to avoid an error. |
| 17798 | Use char because int might match the return type of a GCC |
| 17799 | builtin and then its argument prototype would still apply. */ |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17800 | #ifdef __cplusplus |
| 17801 | extern "C" |
| 17802 | #endif |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17803 | char BIO_new_socket (); |
| 17804 | int |
| 17805 | main () |
| 17806 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17807 | return BIO_new_socket (); |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17808 | ; |
| 17809 | return 0; |
| 17810 | } |
| 17811 | _ACEOF |
| 17812 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17813 | if { (ac_try="$ac_link" |
| 17814 | case "(($ac_try" in |
| 17815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17816 | *) ac_try_echo=$ac_try;; |
| 17817 | esac |
| 17818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17819 | (eval "$ac_link") 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17820 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17822 | rm -f conftest.er1 |
| 17823 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17825 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17827 | { (case "(($ac_try" in |
| 17828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17829 | *) ac_try_echo=$ac_try;; |
| 17830 | esac |
| 17831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17832 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17833 | ac_status=$? |
| 17834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17835 | (exit $ac_status); }; } && |
| 17836 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17837 | { (case "(($ac_try" in |
| 17838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17839 | *) ac_try_echo=$ac_try;; |
| 17840 | esac |
| 17841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17842 | (eval "$ac_try") 2>&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17843 | ac_status=$? |
| 17844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17845 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 17846 | case "$LIBEXT" in |
| 17847 | dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep libcrypto\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 17848 | so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 17849 | esac |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17850 | if test "x$ac_cv_lib_soname_crypto" = "x" |
| 17851 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17852 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17853 | fi |
| 17854 | else |
| 17855 | echo "$as_me: failed program was:" >&5 |
| 17856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17857 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17858 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17859 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17860 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17861 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17862 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17863 | LIBS=$ac_get_soname_save_LIBS |
| 17864 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17865 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5 |
| 17866 | echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17867 | if test "${ac_cv_lib_soname_crypto+set}" = set; then |
| 17868 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17869 | cat >>confdefs.h <<_ACEOF |
| 17870 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 17871 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17872 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 17873 | fi |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17874 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17875 | { echo "$as_me:$LINENO: checking for -lncurses soname" >&5 |
| 17876 | echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; } |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17877 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then |
| 17878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17879 | else |
| 17880 | ac_get_soname_save_LIBS=$LIBS |
| 17881 | LIBS="-lncurses $LIBS" |
| 17882 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17883 | /* confdefs.h. */ |
| 17884 | _ACEOF |
| 17885 | cat confdefs.h >>conftest.$ac_ext |
| 17886 | cat >>conftest.$ac_ext <<_ACEOF |
| 17887 | /* end confdefs.h. */ |
| 17888 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17889 | /* Override any GCC internal prototype to avoid an error. |
| 17890 | Use char because int might match the return type of a GCC |
| 17891 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17892 | #ifdef __cplusplus |
| 17893 | extern "C" |
| 17894 | #endif |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17895 | char waddch (); |
| 17896 | int |
| 17897 | main () |
| 17898 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17899 | return waddch (); |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17900 | ; |
| 17901 | return 0; |
| 17902 | } |
| 17903 | _ACEOF |
| 17904 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17905 | if { (ac_try="$ac_link" |
| 17906 | case "(($ac_try" in |
| 17907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17908 | *) ac_try_echo=$ac_try;; |
| 17909 | esac |
| 17910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17911 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17912 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17914 | rm -f conftest.er1 |
| 17915 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17917 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17919 | { (case "(($ac_try" in |
| 17920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17921 | *) ac_try_echo=$ac_try;; |
| 17922 | esac |
| 17923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17924 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17925 | ac_status=$? |
| 17926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17927 | (exit $ac_status); }; } && |
| 17928 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17929 | { (case "(($ac_try" in |
| 17930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17931 | *) ac_try_echo=$ac_try;; |
| 17932 | esac |
| 17933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17934 | (eval "$ac_try") 2>&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17935 | ac_status=$? |
| 17936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17937 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 17938 | case "$LIBEXT" in |
| 17939 | dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep libncurses\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 17940 | so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 17941 | esac |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17942 | if test "x$ac_cv_lib_soname_ncurses" = "x" |
| 17943 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17944 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17945 | fi |
| 17946 | else |
| 17947 | echo "$as_me: failed program was:" >&5 |
| 17948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17949 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17950 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17951 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17952 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17953 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17954 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17955 | LIBS=$ac_get_soname_save_LIBS |
| 17956 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17957 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5 |
| 17958 | echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17959 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then |
| 17960 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17961 | cat >>confdefs.h <<_ACEOF |
| 17962 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
| 17963 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17964 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17965 | fi |
| 17966 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17967 | { echo "$as_me:$LINENO: checking for -lcurses soname" >&5 |
| 17968 | echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; } |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17969 | if test "${ac_cv_lib_soname_curses+set}" = set; then |
| 17970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17971 | else |
| 17972 | ac_get_soname_save_LIBS=$LIBS |
| 17973 | LIBS="-lcurses $LIBS" |
| 17974 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17975 | /* confdefs.h. */ |
| 17976 | _ACEOF |
| 17977 | cat confdefs.h >>conftest.$ac_ext |
| 17978 | cat >>conftest.$ac_ext <<_ACEOF |
| 17979 | /* end confdefs.h. */ |
| 17980 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17981 | /* Override any GCC internal prototype to avoid an error. |
| 17982 | Use char because int might match the return type of a GCC |
| 17983 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17984 | #ifdef __cplusplus |
| 17985 | extern "C" |
| 17986 | #endif |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17987 | char waddch (); |
| 17988 | int |
| 17989 | main () |
| 17990 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17991 | return waddch (); |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 17992 | ; |
| 17993 | return 0; |
| 17994 | } |
| 17995 | _ACEOF |
| 17996 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17997 | if { (ac_try="$ac_link" |
| 17998 | case "(($ac_try" in |
| 17999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18000 | *) ac_try_echo=$ac_try;; |
| 18001 | esac |
| 18002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18003 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18004 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18006 | rm -f conftest.er1 |
| 18007 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18009 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18011 | { (case "(($ac_try" in |
| 18012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18013 | *) ac_try_echo=$ac_try;; |
| 18014 | esac |
| 18015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18016 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18017 | ac_status=$? |
| 18018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18019 | (exit $ac_status); }; } && |
| 18020 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18021 | { (case "(($ac_try" in |
| 18022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18023 | *) ac_try_echo=$ac_try;; |
| 18024 | esac |
| 18025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18026 | (eval "$ac_try") 2>&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18027 | ac_status=$? |
| 18028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18029 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 18030 | case "$LIBEXT" in |
| 18031 | dylib) ac_cv_lib_soname_curses=`otool -L conftest$ac_exeext | grep libcurses\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 18032 | so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 18033 | esac |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18034 | if test "x$ac_cv_lib_soname_curses" = "x" |
| 18035 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18036 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18037 | fi |
| 18038 | else |
| 18039 | echo "$as_me: failed program was:" >&5 |
| 18040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18041 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18042 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18043 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18044 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18045 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18046 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18047 | LIBS=$ac_get_soname_save_LIBS |
| 18048 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18049 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5 |
| 18050 | echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18051 | if test "${ac_cv_lib_soname_curses+set}" = set; then |
| 18052 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18053 | cat >>confdefs.h <<_ACEOF |
| 18054 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
| 18055 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18056 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18057 | fi |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18058 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18059 | { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5 |
| 18060 | echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; } |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18061 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then |
| 18062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18063 | else |
| 18064 | ac_get_soname_save_LIBS=$LIBS |
| 18065 | LIBS="-ljpeg $LIBS" |
| 18066 | cat >conftest.$ac_ext <<_ACEOF |
| 18067 | /* confdefs.h. */ |
| 18068 | _ACEOF |
| 18069 | cat confdefs.h >>conftest.$ac_ext |
| 18070 | cat >>conftest.$ac_ext <<_ACEOF |
| 18071 | /* end confdefs.h. */ |
| 18072 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18073 | /* Override any GCC internal prototype to avoid an error. |
| 18074 | Use char because int might match the return type of a GCC |
| 18075 | builtin and then its argument prototype would still apply. */ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18076 | #ifdef __cplusplus |
| 18077 | extern "C" |
| 18078 | #endif |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18079 | char jpeg_start_decompress (); |
| 18080 | int |
| 18081 | main () |
| 18082 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18083 | return jpeg_start_decompress (); |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18084 | ; |
| 18085 | return 0; |
| 18086 | } |
| 18087 | _ACEOF |
| 18088 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18089 | if { (ac_try="$ac_link" |
| 18090 | case "(($ac_try" in |
| 18091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18092 | *) ac_try_echo=$ac_try;; |
| 18093 | esac |
| 18094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18095 | (eval "$ac_link") 2>conftest.er1 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18096 | ac_status=$? |
| 18097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18098 | rm -f conftest.er1 |
| 18099 | cat conftest.err >&5 |
| 18100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18101 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18102 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18103 | { (case "(($ac_try" in |
| 18104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18105 | *) ac_try_echo=$ac_try;; |
| 18106 | esac |
| 18107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18108 | (eval "$ac_try") 2>&5 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18109 | ac_status=$? |
| 18110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18111 | (exit $ac_status); }; } && |
| 18112 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18113 | { (case "(($ac_try" in |
| 18114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18115 | *) ac_try_echo=$ac_try;; |
| 18116 | esac |
| 18117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18118 | (eval "$ac_try") 2>&5 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18119 | ac_status=$? |
| 18120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18121 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 18122 | case "$LIBEXT" in |
| 18123 | dylib) ac_cv_lib_soname_jpeg=`otool -L conftest$ac_exeext | grep libjpeg\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libjpeg\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 18124 | so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 18125 | esac |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18126 | if test "x$ac_cv_lib_soname_jpeg" = "x" |
| 18127 | then |
| 18128 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
| 18129 | fi |
| 18130 | else |
| 18131 | echo "$as_me: failed program was:" >&5 |
| 18132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18133 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18134 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18135 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18136 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18137 | rm -f core conftest.err conftest.$ac_objext \ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18138 | conftest$ac_exeext conftest.$ac_ext |
| 18139 | LIBS=$ac_get_soname_save_LIBS |
| 18140 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18141 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5 |
| 18142 | echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18143 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then |
| 18144 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18145 | cat >>confdefs.h <<_ACEOF |
| 18146 | #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg" |
| 18147 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18148 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18149 | fi |
| 18150 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18151 | { echo "$as_me:$LINENO: checking for -lungif soname" >&5 |
| 18152 | echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; } |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18153 | if test "${ac_cv_lib_soname_ungif+set}" = set; then |
| 18154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18155 | else |
| 18156 | ac_get_soname_save_LIBS=$LIBS |
| 18157 | LIBS="-lungif $LIBS" |
| 18158 | cat >conftest.$ac_ext <<_ACEOF |
| 18159 | /* confdefs.h. */ |
| 18160 | _ACEOF |
| 18161 | cat confdefs.h >>conftest.$ac_ext |
| 18162 | cat >>conftest.$ac_ext <<_ACEOF |
| 18163 | /* end confdefs.h. */ |
| 18164 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18165 | /* Override any GCC internal prototype to avoid an error. |
| 18166 | Use char because int might match the return type of a GCC |
| 18167 | builtin and then its argument prototype would still apply. */ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18168 | #ifdef __cplusplus |
| 18169 | extern "C" |
| 18170 | #endif |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18171 | char DGifOpen (); |
| 18172 | int |
| 18173 | main () |
| 18174 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18175 | return DGifOpen (); |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18176 | ; |
| 18177 | return 0; |
| 18178 | } |
| 18179 | _ACEOF |
| 18180 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18181 | if { (ac_try="$ac_link" |
| 18182 | case "(($ac_try" in |
| 18183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18184 | *) ac_try_echo=$ac_try;; |
| 18185 | esac |
| 18186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18187 | (eval "$ac_link") 2>conftest.er1 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18188 | ac_status=$? |
| 18189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18190 | rm -f conftest.er1 |
| 18191 | cat conftest.err >&5 |
| 18192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18193 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18195 | { (case "(($ac_try" in |
| 18196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18197 | *) ac_try_echo=$ac_try;; |
| 18198 | esac |
| 18199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18200 | (eval "$ac_try") 2>&5 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18201 | ac_status=$? |
| 18202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18203 | (exit $ac_status); }; } && |
| 18204 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18205 | { (case "(($ac_try" in |
| 18206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18207 | *) ac_try_echo=$ac_try;; |
| 18208 | esac |
| 18209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18210 | (eval "$ac_try") 2>&5 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18211 | ac_status=$? |
| 18212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18213 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 18214 | case "$LIBEXT" in |
| 18215 | dylib) ac_cv_lib_soname_ungif=`otool -L conftest$ac_exeext | grep libungif\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libungif\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 18216 | so) ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.so | sed -e "s/^.*\(libungif\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 18217 | esac |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18218 | if test "x$ac_cv_lib_soname_ungif" = "x" |
| 18219 | then |
| 18220 | ac_cv_lib_soname_ungif="libungif.$LIBEXT" |
| 18221 | fi |
| 18222 | else |
| 18223 | echo "$as_me: failed program was:" >&5 |
| 18224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18225 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18226 | ac_cv_lib_soname_ungif="libungif.$LIBEXT" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18227 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18228 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18229 | rm -f core conftest.err conftest.$ac_objext \ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18230 | conftest$ac_exeext conftest.$ac_ext |
| 18231 | LIBS=$ac_get_soname_save_LIBS |
| 18232 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18233 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5 |
| 18234 | echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18235 | if test "${ac_cv_lib_soname_ungif+set}" = set; then |
| 18236 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18237 | cat >>confdefs.h <<_ACEOF |
| 18238 | #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif" |
| 18239 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18240 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18241 | fi |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18242 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18243 | { echo "$as_me:$LINENO: checking for -lgif soname" >&5 |
| 18244 | echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; } |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18245 | if test "${ac_cv_lib_soname_gif+set}" = set; then |
| 18246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18247 | else |
| 18248 | ac_get_soname_save_LIBS=$LIBS |
| 18249 | LIBS="-lgif $LIBS" |
| 18250 | cat >conftest.$ac_ext <<_ACEOF |
| 18251 | /* confdefs.h. */ |
| 18252 | _ACEOF |
| 18253 | cat confdefs.h >>conftest.$ac_ext |
| 18254 | cat >>conftest.$ac_ext <<_ACEOF |
| 18255 | /* end confdefs.h. */ |
| 18256 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18257 | /* Override any GCC internal prototype to avoid an error. |
| 18258 | Use char because int might match the return type of a GCC |
| 18259 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18260 | #ifdef __cplusplus |
| 18261 | extern "C" |
| 18262 | #endif |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18263 | char DGifOpen (); |
| 18264 | int |
| 18265 | main () |
| 18266 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18267 | return DGifOpen (); |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18268 | ; |
| 18269 | return 0; |
| 18270 | } |
| 18271 | _ACEOF |
| 18272 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18273 | if { (ac_try="$ac_link" |
| 18274 | case "(($ac_try" in |
| 18275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18276 | *) ac_try_echo=$ac_try;; |
| 18277 | esac |
| 18278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18279 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18280 | ac_status=$? |
| 18281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18282 | rm -f conftest.er1 |
| 18283 | cat conftest.err >&5 |
| 18284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18285 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18286 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18287 | { (case "(($ac_try" in |
| 18288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18289 | *) ac_try_echo=$ac_try;; |
| 18290 | esac |
| 18291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18292 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18293 | ac_status=$? |
| 18294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18295 | (exit $ac_status); }; } && |
| 18296 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18297 | { (case "(($ac_try" in |
| 18298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18299 | *) ac_try_echo=$ac_try;; |
| 18300 | esac |
| 18301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18302 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18303 | ac_status=$? |
| 18304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18305 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 18306 | case "$LIBEXT" in |
| 18307 | dylib) ac_cv_lib_soname_gif=`otool -L conftest$ac_exeext | grep libgif\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libgif\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 18308 | so) ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.so | sed -e "s/^.*\(libgif\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 18309 | esac |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18310 | if test "x$ac_cv_lib_soname_gif" = "x" |
| 18311 | then |
| 18312 | ac_cv_lib_soname_gif="libgif.$LIBEXT" |
| 18313 | fi |
| 18314 | else |
| 18315 | echo "$as_me: failed program was:" >&5 |
| 18316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18317 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18318 | ac_cv_lib_soname_gif="libgif.$LIBEXT" |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18319 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18320 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18321 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18322 | conftest$ac_exeext conftest.$ac_ext |
| 18323 | LIBS=$ac_get_soname_save_LIBS |
| 18324 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18325 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5 |
| 18326 | echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18327 | if test "${ac_cv_lib_soname_gif+set}" = set; then |
| 18328 | |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18329 | cat >>confdefs.h <<_ACEOF |
| 18330 | #define SONAME_LIBGIF "$ac_cv_lib_soname_gif" |
| 18331 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18332 | |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 18333 | fi |
Hans Leidekker | 081b250 | 2004-10-07 19:12:41 +0000 | [diff] [blame] | 18334 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18335 | { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5 |
| 18336 | echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; } |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 18337 | if test "${ac_cv_lib_soname_capi20+set}" = set; then |
| 18338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18339 | else |
| 18340 | ac_get_soname_save_LIBS=$LIBS |
| 18341 | LIBS="-lcapi20 $LIBS" |
| 18342 | cat >conftest.$ac_ext <<_ACEOF |
| 18343 | /* confdefs.h. */ |
| 18344 | _ACEOF |
| 18345 | cat confdefs.h >>conftest.$ac_ext |
| 18346 | cat >>conftest.$ac_ext <<_ACEOF |
| 18347 | /* end confdefs.h. */ |
| 18348 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18349 | /* Override any GCC internal prototype to avoid an error. |
| 18350 | Use char because int might match the return type of a GCC |
| 18351 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 18352 | #ifdef __cplusplus |
| 18353 | extern "C" |
| 18354 | #endif |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 18355 | char capi20_isinstalled (); |
| 18356 | int |
| 18357 | main () |
| 18358 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18359 | return capi20_isinstalled (); |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 18360 | ; |
| 18361 | return 0; |
| 18362 | } |
| 18363 | _ACEOF |
| 18364 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18365 | if { (ac_try="$ac_link" |
| 18366 | case "(($ac_try" in |
| 18367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18368 | *) ac_try_echo=$ac_try;; |
| 18369 | esac |
| 18370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18371 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 18372 | ac_status=$? |
| 18373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18374 | rm -f conftest.er1 |
| 18375 | cat conftest.err >&5 |
| 18376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18377 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18379 | { (case "(($ac_try" in |
| 18380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18381 | *) ac_try_echo=$ac_try;; |
| 18382 | esac |
| 18383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18384 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 18385 | ac_status=$? |
| 18386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18387 | (exit $ac_status); }; } && |
| 18388 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18389 | { (case "(($ac_try" in |
| 18390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18391 | *) ac_try_echo=$ac_try;; |
| 18392 | esac |
| 18393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18394 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 18395 | ac_status=$? |
| 18396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18397 | (exit $ac_status); }; }; then |
Alexandre Julliard | bdbffd9 | 2006-08-07 21:41:55 +0200 | [diff] [blame] | 18398 | case "$LIBEXT" in |
| 18399 | dylib) ac_cv_lib_soname_capi20=`otool -L conftest$ac_exeext | grep libcapi20\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcapi20\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 18400 | so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^ ]*\).*$/\1/"';2,$d'` ;; |
| 18401 | esac |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 18402 | if test "x$ac_cv_lib_soname_capi20" = "x" |
| 18403 | then |
| 18404 | ac_cv_lib_soname_capi20="libcapi20.$LIBEXT" |
| 18405 | fi |
| 18406 | else |
| 18407 | echo "$as_me: failed program was:" >&5 |
| 18408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18409 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18410 | ac_cv_lib_soname_capi20="libcapi20.$LIBEXT" |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 18411 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18412 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18413 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 18414 | conftest$ac_exeext conftest.$ac_ext |
| 18415 | LIBS=$ac_get_soname_save_LIBS |
| 18416 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18417 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5 |
| 18418 | echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18419 | if test "${ac_cv_lib_soname_capi20+set}" = set; then |
| 18420 | |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 18421 | cat >>confdefs.h <<_ACEOF |
| 18422 | #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20" |
| 18423 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18424 | |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 18425 | fi |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18426 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 18427 | fi |
| 18428 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18429 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 18430 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18431 | |
| 18432 | |
| 18433 | |
| 18434 | |
| 18435 | |
| 18436 | |
| 18437 | |
| 18438 | |
| 18439 | |
| 18440 | |
| 18441 | |
| 18442 | |
| 18443 | |
| 18444 | |
| 18445 | |
| 18446 | |
| 18447 | |
| 18448 | |
| 18449 | |
| 18450 | |
| 18451 | |
| 18452 | |
| 18453 | |
| 18454 | |
| 18455 | |
| 18456 | |
| 18457 | |
| 18458 | |
| 18459 | |
| 18460 | |
| 18461 | |
| 18462 | |
| 18463 | |
| 18464 | |
| 18465 | |
| 18466 | |
| 18467 | |
| 18468 | |
| 18469 | |
| 18470 | |
| 18471 | |
| 18472 | |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 18473 | |
| 18474 | |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 18475 | |
| 18476 | |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 18477 | |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 18478 | |
| 18479 | |
| 18480 | |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 18481 | |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 18482 | |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 18483 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18484 | |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 18485 | |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 18486 | |
| 18487 | |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 18488 | |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 18489 | |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 18490 | |
Marcus Meissner | 7a6fdea | 2005-11-17 12:58:35 +0000 | [diff] [blame] | 18491 | |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 18492 | |
Hans Leidekker | c0e6bb2 | 2006-02-20 14:16:38 +0100 | [diff] [blame] | 18493 | |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 18494 | |
Paul Millar | df10b7d | 2006-07-16 15:06:28 +0100 | [diff] [blame] | 18495 | |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 18496 | |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 18497 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 18498 | |
| 18499 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18500 | for ac_func in \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 18501 | _pclose \ |
| 18502 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 18503 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 18504 | _spawnvp \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 18505 | _stricmp \ |
| 18506 | _strnicmp \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 18507 | _vsnprintf \ |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 18508 | asctime_r \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 18509 | chsize \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18510 | clone \ |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 18511 | connect \ |
| 18512 | dlopen \ |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 18513 | epoll_create \ |
Hans Leidekker | c3de6ef | 2004-10-19 23:53:26 +0000 | [diff] [blame] | 18514 | ffs \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 18515 | finite \ |
Hans Leidekker | bed3842 | 2004-10-14 03:08:57 +0000 | [diff] [blame] | 18516 | fork \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 18517 | fpclass \ |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 18518 | fstatfs \ |
| 18519 | fstatvfs \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 18520 | ftruncate \ |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 18521 | futimes \ |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 18522 | futimesat \ |
Marcus Meissner | 7a6fdea | 2005-11-17 12:58:35 +0000 | [diff] [blame] | 18523 | getaddrinfo \ |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 18524 | gethostbyname \ |
Hans Leidekker | c0e6bb2 | 2006-02-20 14:16:38 +0100 | [diff] [blame] | 18525 | getnameinfo \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 18526 | getnetbyname \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 18527 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18528 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 18529 | getprotobyname \ |
| 18530 | getprotobynumber \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 18531 | getpwuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 18532 | getservbyport \ |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 18533 | gettid \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 18534 | gettimeofday \ |
Steven Edwards | e7c3ab1 | 2004-10-04 20:45:49 +0000 | [diff] [blame] | 18535 | getuid \ |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 18536 | inet_aton \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 18537 | inet_network \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 18538 | kqueue \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 18539 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18540 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 18541 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 18542 | pclose \ |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 18543 | poll \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 18544 | popen \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 18545 | prctl \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 18546 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 18547 | pwrite \ |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 18548 | readlink \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18549 | rfork \ |
Jeremy White | 08c0f69 | 2004-10-09 02:26:29 +0000 | [diff] [blame] | 18550 | sched_yield \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 18551 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18552 | sendmsg \ |
Paul Millar | df10b7d | 2006-07-16 15:06:28 +0100 | [diff] [blame] | 18553 | setrlimit \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 18554 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18555 | sigaltstack \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 18556 | sigprocmask \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 18557 | snprintf \ |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 18558 | spawnvp \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 18559 | statfs \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18560 | statvfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 18561 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18562 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 18563 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18564 | tcgetattr \ |
| 18565 | timegm \ |
| 18566 | usleep \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 18567 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18568 | wait4 \ |
| 18569 | waitpid \ |
| 18570 | |
| 18571 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18572 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18573 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18574 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18575 | 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] | 18576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18577 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18578 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18579 | /* confdefs.h. */ |
| 18580 | _ACEOF |
| 18581 | cat confdefs.h >>conftest.$ac_ext |
| 18582 | cat >>conftest.$ac_ext <<_ACEOF |
| 18583 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18584 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18585 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18586 | #define $ac_func innocuous_$ac_func |
| 18587 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18588 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18589 | which can conflict with char $ac_func (); below. |
| 18590 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18591 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18592 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18593 | #ifdef __STDC__ |
| 18594 | # include <limits.h> |
| 18595 | #else |
| 18596 | # include <assert.h> |
| 18597 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18598 | |
| 18599 | #undef $ac_func |
| 18600 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18601 | /* Override any GCC internal prototype to avoid an error. |
| 18602 | Use char because int might match the return type of a GCC |
| 18603 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18604 | #ifdef __cplusplus |
| 18605 | extern "C" |
| 18606 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18607 | char $ac_func (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18608 | /* The GNU C library defines this for functions which it implements |
| 18609 | to always fail with ENOSYS. Some functions are actually named |
| 18610 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18611 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18612 | choke me |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 18613 | #endif |
| 18614 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18615 | int |
| 18616 | main () |
| 18617 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18618 | return $ac_func (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18619 | ; |
| 18620 | return 0; |
| 18621 | } |
| 18622 | _ACEOF |
| 18623 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18624 | if { (ac_try="$ac_link" |
| 18625 | case "(($ac_try" in |
| 18626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18627 | *) ac_try_echo=$ac_try;; |
| 18628 | esac |
| 18629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18630 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18631 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18633 | rm -f conftest.er1 |
| 18634 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18636 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18638 | { (case "(($ac_try" in |
| 18639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18640 | *) ac_try_echo=$ac_try;; |
| 18641 | esac |
| 18642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18643 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18644 | ac_status=$? |
| 18645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18646 | (exit $ac_status); }; } && |
| 18647 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18648 | { (case "(($ac_try" in |
| 18649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18650 | *) ac_try_echo=$ac_try;; |
| 18651 | esac |
| 18652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18653 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18654 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18656 | (exit $ac_status); }; }; then |
| 18657 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 18658 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18659 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18661 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18662 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 18663 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18664 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18665 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18666 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 18667 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18668 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18669 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18670 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18671 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18672 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18673 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18674 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 18675 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 18676 | fi |
| 18677 | done |
| 18678 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18679 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 18680 | if test "$ac_cv_func_dlopen" = no |
| 18681 | then |
| 18682 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 18683 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 18684 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 18685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18686 | else |
| 18687 | ac_check_lib_save_LIBS=$LIBS |
| 18688 | LIBS="-ldl $LIBS" |
| 18689 | cat >conftest.$ac_ext <<_ACEOF |
| 18690 | /* confdefs.h. */ |
| 18691 | _ACEOF |
| 18692 | cat confdefs.h >>conftest.$ac_ext |
| 18693 | cat >>conftest.$ac_ext <<_ACEOF |
| 18694 | /* end confdefs.h. */ |
| 18695 | |
| 18696 | /* Override any GCC internal prototype to avoid an error. |
| 18697 | Use char because int might match the return type of a GCC |
| 18698 | builtin and then its argument prototype would still apply. */ |
| 18699 | #ifdef __cplusplus |
| 18700 | extern "C" |
| 18701 | #endif |
| 18702 | char dlopen (); |
| 18703 | int |
| 18704 | main () |
| 18705 | { |
| 18706 | return dlopen (); |
| 18707 | ; |
| 18708 | return 0; |
| 18709 | } |
| 18710 | _ACEOF |
| 18711 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18712 | if { (ac_try="$ac_link" |
| 18713 | case "(($ac_try" in |
| 18714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18715 | *) ac_try_echo=$ac_try;; |
| 18716 | esac |
| 18717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18718 | (eval "$ac_link") 2>conftest.er1 |
| 18719 | ac_status=$? |
| 18720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18721 | rm -f conftest.er1 |
| 18722 | cat conftest.err >&5 |
| 18723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18724 | (exit $ac_status); } && |
| 18725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18726 | { (case "(($ac_try" in |
| 18727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18728 | *) ac_try_echo=$ac_try;; |
| 18729 | esac |
| 18730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18731 | (eval "$ac_try") 2>&5 |
| 18732 | ac_status=$? |
| 18733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18734 | (exit $ac_status); }; } && |
| 18735 | { ac_try='test -s conftest$ac_exeext' |
| 18736 | { (case "(($ac_try" in |
| 18737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18738 | *) ac_try_echo=$ac_try;; |
| 18739 | esac |
| 18740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18741 | (eval "$ac_try") 2>&5 |
| 18742 | ac_status=$? |
| 18743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18744 | (exit $ac_status); }; }; then |
| 18745 | ac_cv_lib_dl_dlopen=yes |
| 18746 | else |
| 18747 | echo "$as_me: failed program was:" >&5 |
| 18748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18749 | |
| 18750 | ac_cv_lib_dl_dlopen=no |
| 18751 | fi |
| 18752 | |
| 18753 | rm -f core conftest.err conftest.$ac_objext \ |
| 18754 | conftest$ac_exeext conftest.$ac_ext |
| 18755 | LIBS=$ac_check_lib_save_LIBS |
| 18756 | fi |
| 18757 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 18758 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 18759 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 18760 | cat >>confdefs.h <<\_ACEOF |
| 18761 | #define HAVE_DLOPEN 1 |
| 18762 | _ACEOF |
| 18763 | LIBDL="-ldl" |
| 18764 | |
| 18765 | fi |
| 18766 | |
| 18767 | fi |
| 18768 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 18769 | LIBS="$LIBS $LIBDL" |
| 18770 | |
| 18771 | for ac_func in dladdr |
| 18772 | do |
| 18773 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18774 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18775 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18776 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18778 | else |
| 18779 | cat >conftest.$ac_ext <<_ACEOF |
| 18780 | /* confdefs.h. */ |
| 18781 | _ACEOF |
| 18782 | cat confdefs.h >>conftest.$ac_ext |
| 18783 | cat >>conftest.$ac_ext <<_ACEOF |
| 18784 | /* end confdefs.h. */ |
| 18785 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18786 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18787 | #define $ac_func innocuous_$ac_func |
| 18788 | |
| 18789 | /* System header to define __stub macros and hopefully few prototypes, |
| 18790 | which can conflict with char $ac_func (); below. |
| 18791 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18792 | <limits.h> exists even on freestanding compilers. */ |
| 18793 | |
| 18794 | #ifdef __STDC__ |
| 18795 | # include <limits.h> |
| 18796 | #else |
| 18797 | # include <assert.h> |
| 18798 | #endif |
| 18799 | |
| 18800 | #undef $ac_func |
| 18801 | |
| 18802 | /* Override any GCC internal prototype to avoid an error. |
| 18803 | Use char because int might match the return type of a GCC |
| 18804 | builtin and then its argument prototype would still apply. */ |
| 18805 | #ifdef __cplusplus |
| 18806 | extern "C" |
| 18807 | #endif |
| 18808 | char $ac_func (); |
| 18809 | /* The GNU C library defines this for functions which it implements |
| 18810 | to always fail with ENOSYS. Some functions are actually named |
| 18811 | something starting with __ and the normal name is an alias. */ |
| 18812 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18813 | choke me |
| 18814 | #endif |
| 18815 | |
| 18816 | int |
| 18817 | main () |
| 18818 | { |
| 18819 | return $ac_func (); |
| 18820 | ; |
| 18821 | return 0; |
| 18822 | } |
| 18823 | _ACEOF |
| 18824 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18825 | if { (ac_try="$ac_link" |
| 18826 | case "(($ac_try" in |
| 18827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18828 | *) ac_try_echo=$ac_try;; |
| 18829 | esac |
| 18830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18831 | (eval "$ac_link") 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 | { (case "(($ac_try" in |
| 18840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18841 | *) ac_try_echo=$ac_try;; |
| 18842 | esac |
| 18843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18844 | (eval "$ac_try") 2>&5 |
| 18845 | ac_status=$? |
| 18846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18847 | (exit $ac_status); }; } && |
| 18848 | { ac_try='test -s conftest$ac_exeext' |
| 18849 | { (case "(($ac_try" in |
| 18850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18851 | *) ac_try_echo=$ac_try;; |
| 18852 | esac |
| 18853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18854 | (eval "$ac_try") 2>&5 |
| 18855 | ac_status=$? |
| 18856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18857 | (exit $ac_status); }; }; then |
| 18858 | eval "$as_ac_var=yes" |
| 18859 | else |
| 18860 | echo "$as_me: failed program was:" >&5 |
| 18861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18862 | |
| 18863 | eval "$as_ac_var=no" |
| 18864 | fi |
| 18865 | |
| 18866 | rm -f core conftest.err conftest.$ac_objext \ |
| 18867 | conftest$ac_exeext conftest.$ac_ext |
| 18868 | fi |
| 18869 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18870 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18871 | echo "${ECHO_T}$ac_res" >&6; } |
| 18872 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18873 | cat >>confdefs.h <<_ACEOF |
| 18874 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18875 | _ACEOF |
| 18876 | |
| 18877 | fi |
| 18878 | done |
| 18879 | |
| 18880 | LIBS="$ac_wine_check_funcs_save_LIBS" |
| 18881 | |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 18882 | if test "$ac_cv_func_poll" = no |
| 18883 | then |
| 18884 | { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5 |
| 18885 | echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; } |
| 18886 | if test "${ac_cv_lib_poll_poll+set}" = set; then |
| 18887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18888 | else |
| 18889 | ac_check_lib_save_LIBS=$LIBS |
| 18890 | LIBS="-lpoll $LIBS" |
| 18891 | cat >conftest.$ac_ext <<_ACEOF |
| 18892 | /* confdefs.h. */ |
| 18893 | _ACEOF |
| 18894 | cat confdefs.h >>conftest.$ac_ext |
| 18895 | cat >>conftest.$ac_ext <<_ACEOF |
| 18896 | /* end confdefs.h. */ |
| 18897 | |
| 18898 | /* Override any GCC internal prototype to avoid an error. |
| 18899 | Use char because int might match the return type of a GCC |
| 18900 | builtin and then its argument prototype would still apply. */ |
| 18901 | #ifdef __cplusplus |
| 18902 | extern "C" |
| 18903 | #endif |
| 18904 | char poll (); |
| 18905 | int |
| 18906 | main () |
| 18907 | { |
| 18908 | return poll (); |
| 18909 | ; |
| 18910 | return 0; |
| 18911 | } |
| 18912 | _ACEOF |
| 18913 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18914 | if { (ac_try="$ac_link" |
| 18915 | case "(($ac_try" in |
| 18916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18917 | *) ac_try_echo=$ac_try;; |
| 18918 | esac |
| 18919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18920 | (eval "$ac_link") 2>conftest.er1 |
| 18921 | ac_status=$? |
| 18922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18923 | rm -f conftest.er1 |
| 18924 | cat conftest.err >&5 |
| 18925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18926 | (exit $ac_status); } && |
| 18927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18928 | { (case "(($ac_try" in |
| 18929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18930 | *) ac_try_echo=$ac_try;; |
| 18931 | esac |
| 18932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18933 | (eval "$ac_try") 2>&5 |
| 18934 | ac_status=$? |
| 18935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18936 | (exit $ac_status); }; } && |
| 18937 | { ac_try='test -s conftest$ac_exeext' |
| 18938 | { (case "(($ac_try" in |
| 18939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18940 | *) ac_try_echo=$ac_try;; |
| 18941 | esac |
| 18942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18943 | (eval "$ac_try") 2>&5 |
| 18944 | ac_status=$? |
| 18945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18946 | (exit $ac_status); }; }; then |
| 18947 | ac_cv_lib_poll_poll=yes |
| 18948 | else |
| 18949 | echo "$as_me: failed program was:" >&5 |
| 18950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18951 | |
| 18952 | ac_cv_lib_poll_poll=no |
| 18953 | fi |
| 18954 | |
| 18955 | rm -f core conftest.err conftest.$ac_objext \ |
| 18956 | conftest$ac_exeext conftest.$ac_ext |
| 18957 | LIBS=$ac_check_lib_save_LIBS |
| 18958 | fi |
| 18959 | { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5 |
| 18960 | echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; } |
| 18961 | if test $ac_cv_lib_poll_poll = yes; then |
| 18962 | cat >>confdefs.h <<\_ACEOF |
| 18963 | #define HAVE_POLL 1 |
| 18964 | _ACEOF |
| 18965 | LIBPOLL="-lpoll" |
| 18966 | |
| 18967 | fi |
| 18968 | |
| 18969 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18970 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 18971 | if test "$ac_cv_func_gethostbyname" = no |
| 18972 | then |
| 18973 | |
| 18974 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 18975 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
| 18976 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 18977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18978 | else |
| 18979 | ac_check_lib_save_LIBS=$LIBS |
| 18980 | LIBS="-lnsl $LIBS" |
| 18981 | cat >conftest.$ac_ext <<_ACEOF |
| 18982 | /* confdefs.h. */ |
| 18983 | _ACEOF |
| 18984 | cat confdefs.h >>conftest.$ac_ext |
| 18985 | cat >>conftest.$ac_ext <<_ACEOF |
| 18986 | /* end confdefs.h. */ |
| 18987 | |
| 18988 | /* Override any GCC internal prototype to avoid an error. |
| 18989 | Use char because int might match the return type of a GCC |
| 18990 | builtin and then its argument prototype would still apply. */ |
| 18991 | #ifdef __cplusplus |
| 18992 | extern "C" |
| 18993 | #endif |
| 18994 | char gethostbyname (); |
| 18995 | int |
| 18996 | main () |
| 18997 | { |
| 18998 | return gethostbyname (); |
| 18999 | ; |
| 19000 | return 0; |
| 19001 | } |
| 19002 | _ACEOF |
| 19003 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19004 | if { (ac_try="$ac_link" |
| 19005 | case "(($ac_try" in |
| 19006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19007 | *) ac_try_echo=$ac_try;; |
| 19008 | esac |
| 19009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19010 | (eval "$ac_link") 2>conftest.er1 |
| 19011 | ac_status=$? |
| 19012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19013 | rm -f conftest.er1 |
| 19014 | cat conftest.err >&5 |
| 19015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19016 | (exit $ac_status); } && |
| 19017 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19018 | { (case "(($ac_try" in |
| 19019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19020 | *) ac_try_echo=$ac_try;; |
| 19021 | esac |
| 19022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19023 | (eval "$ac_try") 2>&5 |
| 19024 | ac_status=$? |
| 19025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19026 | (exit $ac_status); }; } && |
| 19027 | { ac_try='test -s conftest$ac_exeext' |
| 19028 | { (case "(($ac_try" in |
| 19029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19030 | *) ac_try_echo=$ac_try;; |
| 19031 | esac |
| 19032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19033 | (eval "$ac_try") 2>&5 |
| 19034 | ac_status=$? |
| 19035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19036 | (exit $ac_status); }; }; then |
| 19037 | ac_cv_lib_nsl_gethostbyname=yes |
| 19038 | else |
| 19039 | echo "$as_me: failed program was:" >&5 |
| 19040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19041 | |
| 19042 | ac_cv_lib_nsl_gethostbyname=no |
| 19043 | fi |
| 19044 | |
| 19045 | rm -f core conftest.err conftest.$ac_objext \ |
| 19046 | conftest$ac_exeext conftest.$ac_ext |
| 19047 | LIBS=$ac_check_lib_save_LIBS |
| 19048 | fi |
| 19049 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 19050 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 19051 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 19052 | cat >>confdefs.h <<_ACEOF |
| 19053 | #define HAVE_LIBNSL 1 |
| 19054 | _ACEOF |
| 19055 | |
| 19056 | LIBS="-lnsl $LIBS" |
| 19057 | |
| 19058 | fi |
| 19059 | |
| 19060 | fi |
| 19061 | |
| 19062 | if test "$ac_cv_func_connect" = no |
| 19063 | then |
| 19064 | |
| 19065 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 19066 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
| 19067 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 19068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19069 | else |
| 19070 | ac_check_lib_save_LIBS=$LIBS |
| 19071 | LIBS="-lsocket $LIBS" |
| 19072 | cat >conftest.$ac_ext <<_ACEOF |
| 19073 | /* confdefs.h. */ |
| 19074 | _ACEOF |
| 19075 | cat confdefs.h >>conftest.$ac_ext |
| 19076 | cat >>conftest.$ac_ext <<_ACEOF |
| 19077 | /* end confdefs.h. */ |
| 19078 | |
| 19079 | /* Override any GCC internal prototype to avoid an error. |
| 19080 | Use char because int might match the return type of a GCC |
| 19081 | builtin and then its argument prototype would still apply. */ |
| 19082 | #ifdef __cplusplus |
| 19083 | extern "C" |
| 19084 | #endif |
| 19085 | char connect (); |
| 19086 | int |
| 19087 | main () |
| 19088 | { |
| 19089 | return connect (); |
| 19090 | ; |
| 19091 | return 0; |
| 19092 | } |
| 19093 | _ACEOF |
| 19094 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19095 | if { (ac_try="$ac_link" |
| 19096 | case "(($ac_try" in |
| 19097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19098 | *) ac_try_echo=$ac_try;; |
| 19099 | esac |
| 19100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19101 | (eval "$ac_link") 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 | { (case "(($ac_try" in |
| 19110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19111 | *) ac_try_echo=$ac_try;; |
| 19112 | esac |
| 19113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19114 | (eval "$ac_try") 2>&5 |
| 19115 | ac_status=$? |
| 19116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19117 | (exit $ac_status); }; } && |
| 19118 | { ac_try='test -s conftest$ac_exeext' |
| 19119 | { (case "(($ac_try" in |
| 19120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19121 | *) ac_try_echo=$ac_try;; |
| 19122 | esac |
| 19123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19124 | (eval "$ac_try") 2>&5 |
| 19125 | ac_status=$? |
| 19126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19127 | (exit $ac_status); }; }; then |
| 19128 | ac_cv_lib_socket_connect=yes |
| 19129 | else |
| 19130 | echo "$as_me: failed program was:" >&5 |
| 19131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19132 | |
| 19133 | ac_cv_lib_socket_connect=no |
| 19134 | fi |
| 19135 | |
| 19136 | rm -f core conftest.err conftest.$ac_objext \ |
| 19137 | conftest$ac_exeext conftest.$ac_ext |
| 19138 | LIBS=$ac_check_lib_save_LIBS |
| 19139 | fi |
| 19140 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 19141 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
| 19142 | if test $ac_cv_lib_socket_connect = yes; then |
| 19143 | cat >>confdefs.h <<_ACEOF |
| 19144 | #define HAVE_LIBSOCKET 1 |
| 19145 | _ACEOF |
| 19146 | |
| 19147 | LIBS="-lsocket $LIBS" |
| 19148 | |
| 19149 | fi |
| 19150 | |
| 19151 | fi |
| 19152 | |
| 19153 | if test "$ac_cv_func_inet_aton" = no |
| 19154 | then |
| 19155 | |
| 19156 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 19157 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; } |
| 19158 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 19159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19160 | else |
| 19161 | ac_check_lib_save_LIBS=$LIBS |
| 19162 | LIBS="-lresolv $LIBS" |
| 19163 | cat >conftest.$ac_ext <<_ACEOF |
| 19164 | /* confdefs.h. */ |
| 19165 | _ACEOF |
| 19166 | cat confdefs.h >>conftest.$ac_ext |
| 19167 | cat >>conftest.$ac_ext <<_ACEOF |
| 19168 | /* end confdefs.h. */ |
| 19169 | |
| 19170 | /* Override any GCC internal prototype to avoid an error. |
| 19171 | Use char because int might match the return type of a GCC |
| 19172 | builtin and then its argument prototype would still apply. */ |
| 19173 | #ifdef __cplusplus |
| 19174 | extern "C" |
| 19175 | #endif |
| 19176 | char inet_aton (); |
| 19177 | int |
| 19178 | main () |
| 19179 | { |
| 19180 | return inet_aton (); |
| 19181 | ; |
| 19182 | return 0; |
| 19183 | } |
| 19184 | _ACEOF |
| 19185 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19186 | if { (ac_try="$ac_link" |
| 19187 | case "(($ac_try" in |
| 19188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19189 | *) ac_try_echo=$ac_try;; |
| 19190 | esac |
| 19191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19192 | (eval "$ac_link") 2>conftest.er1 |
| 19193 | ac_status=$? |
| 19194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19195 | rm -f conftest.er1 |
| 19196 | cat conftest.err >&5 |
| 19197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19198 | (exit $ac_status); } && |
| 19199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19200 | { (case "(($ac_try" in |
| 19201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19202 | *) ac_try_echo=$ac_try;; |
| 19203 | esac |
| 19204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19205 | (eval "$ac_try") 2>&5 |
| 19206 | ac_status=$? |
| 19207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19208 | (exit $ac_status); }; } && |
| 19209 | { ac_try='test -s conftest$ac_exeext' |
| 19210 | { (case "(($ac_try" in |
| 19211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19212 | *) ac_try_echo=$ac_try;; |
| 19213 | esac |
| 19214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19215 | (eval "$ac_try") 2>&5 |
| 19216 | ac_status=$? |
| 19217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19218 | (exit $ac_status); }; }; then |
| 19219 | ac_cv_lib_resolv_inet_aton=yes |
| 19220 | else |
| 19221 | echo "$as_me: failed program was:" >&5 |
| 19222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19223 | |
| 19224 | ac_cv_lib_resolv_inet_aton=no |
| 19225 | fi |
| 19226 | |
| 19227 | rm -f core conftest.err conftest.$ac_objext \ |
| 19228 | conftest$ac_exeext conftest.$ac_ext |
| 19229 | LIBS=$ac_check_lib_save_LIBS |
| 19230 | fi |
| 19231 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 19232 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 19233 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 19234 | cat >>confdefs.h <<_ACEOF |
| 19235 | #define HAVE_LIBRESOLV 1 |
| 19236 | _ACEOF |
| 19237 | |
| 19238 | LIBS="-lresolv $LIBS" |
| 19239 | |
| 19240 | fi |
| 19241 | |
| 19242 | fi |
| 19243 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19244 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19245 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 19246 | 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] | 19247 | if test "${ac_cv_c_const+set}" = set; then |
| 19248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19249 | else |
| 19250 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19251 | /* confdefs.h. */ |
| 19252 | _ACEOF |
| 19253 | cat confdefs.h >>conftest.$ac_ext |
| 19254 | cat >>conftest.$ac_ext <<_ACEOF |
| 19255 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19256 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19257 | int |
| 19258 | main () |
| 19259 | { |
| 19260 | /* FIXME: Include the comments suggested by Paul. */ |
| 19261 | #ifndef __cplusplus |
| 19262 | /* Ultrix mips cc rejects this. */ |
| 19263 | typedef int charset[2]; |
| 19264 | const charset x; |
| 19265 | /* SunOS 4.1.1 cc rejects this. */ |
| 19266 | char const *const *ccp; |
| 19267 | char **p; |
| 19268 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 19269 | struct point {int x, y;}; |
| 19270 | static struct point const zero = {0,0}; |
| 19271 | /* AIX XL C 1.02.0.0 rejects this. |
| 19272 | It does not let you subtract one const X* pointer from another in |
| 19273 | an arm of an if-expression whose if-part is not a constant |
| 19274 | expression */ |
| 19275 | const char *g = "string"; |
| 19276 | ccp = &g + (g ? g-g : 0); |
| 19277 | /* HPUX 7.0 cc rejects these. */ |
| 19278 | ++ccp; |
| 19279 | p = (char**) ccp; |
| 19280 | ccp = (char const *const *) p; |
| 19281 | { /* SCO 3.2v4 cc rejects this. */ |
| 19282 | char *t; |
| 19283 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19284 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19285 | *t++ = 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19286 | if (s) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19287 | } |
| 19288 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 19289 | int x[] = {25, 17}; |
| 19290 | const int *foo = &x[0]; |
| 19291 | ++foo; |
| 19292 | } |
| 19293 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 19294 | typedef const int *iptr; |
| 19295 | iptr p = 0; |
| 19296 | ++p; |
| 19297 | } |
| 19298 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 19299 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 19300 | struct s { int j; const int *ap[3]; }; |
| 19301 | struct s *b; b->j = 5; |
| 19302 | } |
| 19303 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 19304 | const int foo = 10; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19305 | if (!foo) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19306 | } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19307 | return !x[0] && !zero.x; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19308 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19309 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19310 | ; |
| 19311 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19312 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19313 | _ACEOF |
| 19314 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19315 | if { (ac_try="$ac_compile" |
| 19316 | case "(($ac_try" in |
| 19317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19318 | *) ac_try_echo=$ac_try;; |
| 19319 | esac |
| 19320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19321 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19322 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19324 | rm -f conftest.er1 |
| 19325 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19327 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19328 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19329 | { (case "(($ac_try" in |
| 19330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19331 | *) ac_try_echo=$ac_try;; |
| 19332 | esac |
| 19333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19334 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19335 | ac_status=$? |
| 19336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19337 | (exit $ac_status); }; } && |
| 19338 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19339 | { (case "(($ac_try" in |
| 19340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19341 | *) ac_try_echo=$ac_try;; |
| 19342 | esac |
| 19343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19344 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19345 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19347 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19348 | ac_cv_c_const=yes |
| 19349 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19350 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19352 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19353 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19354 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19355 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19357 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19358 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 19359 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19360 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19361 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19362 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19363 | #define const |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19364 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19365 | |
| 19366 | fi |
| 19367 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19368 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 19369 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19370 | if test "${ac_cv_c_inline+set}" = set; then |
| 19371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19372 | else |
| 19373 | ac_cv_c_inline=no |
| 19374 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19375 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19376 | /* confdefs.h. */ |
| 19377 | _ACEOF |
| 19378 | cat confdefs.h >>conftest.$ac_ext |
| 19379 | cat >>conftest.$ac_ext <<_ACEOF |
| 19380 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19381 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19382 | typedef int foo_t; |
| 19383 | static $ac_kw foo_t static_foo () {return 0; } |
| 19384 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19385 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19386 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19387 | _ACEOF |
| 19388 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19389 | if { (ac_try="$ac_compile" |
| 19390 | case "(($ac_try" in |
| 19391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19392 | *) ac_try_echo=$ac_try;; |
| 19393 | esac |
| 19394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19395 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19396 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19398 | rm -f conftest.er1 |
| 19399 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19401 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19403 | { (case "(($ac_try" in |
| 19404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19405 | *) ac_try_echo=$ac_try;; |
| 19406 | esac |
| 19407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19408 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19409 | ac_status=$? |
| 19410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19411 | (exit $ac_status); }; } && |
| 19412 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19413 | { (case "(($ac_try" in |
| 19414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19415 | *) ac_try_echo=$ac_try;; |
| 19416 | esac |
| 19417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19418 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19419 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19421 | (exit $ac_status); }; }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19422 | ac_cv_c_inline=$ac_kw |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19423 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19424 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19426 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19427 | |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19428 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19429 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19431 | test "$ac_cv_c_inline" != no && break |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19432 | done |
| 19433 | |
| 19434 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19435 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 19436 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19437 | |
| 19438 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19439 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19440 | inline | yes) ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19441 | *) |
| 19442 | case $ac_cv_c_inline in |
| 19443 | no) ac_val=;; |
| 19444 | *) ac_val=$ac_cv_c_inline;; |
| 19445 | esac |
| 19446 | cat >>confdefs.h <<_ACEOF |
| 19447 | #ifndef __cplusplus |
| 19448 | #define inline $ac_val |
| 19449 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19450 | _ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19451 | ;; |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19452 | esac |
| 19453 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19454 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 19455 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19456 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 19457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19458 | else |
| 19459 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19460 | /* confdefs.h. */ |
| 19461 | _ACEOF |
| 19462 | cat confdefs.h >>conftest.$ac_ext |
| 19463 | cat >>conftest.$ac_ext <<_ACEOF |
| 19464 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19465 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19466 | typedef mode_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19467 | int |
| 19468 | main () |
| 19469 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19470 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19471 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19472 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19473 | return 0; |
| 19474 | ; |
| 19475 | return 0; |
| 19476 | } |
| 19477 | _ACEOF |
| 19478 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19479 | if { (ac_try="$ac_compile" |
| 19480 | case "(($ac_try" in |
| 19481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19482 | *) ac_try_echo=$ac_try;; |
| 19483 | esac |
| 19484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19485 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19486 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19488 | rm -f conftest.er1 |
| 19489 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19491 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19492 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19493 | { (case "(($ac_try" in |
| 19494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19495 | *) ac_try_echo=$ac_try;; |
| 19496 | esac |
| 19497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19498 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19499 | ac_status=$? |
| 19500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19501 | (exit $ac_status); }; } && |
| 19502 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19503 | { (case "(($ac_try" in |
| 19504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19505 | *) ac_try_echo=$ac_try;; |
| 19506 | esac |
| 19507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19508 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19509 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19511 | (exit $ac_status); }; }; then |
| 19512 | ac_cv_type_mode_t=yes |
| 19513 | else |
| 19514 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19516 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19517 | ac_cv_type_mode_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19518 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19519 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19521 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19522 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 19523 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19524 | if test $ac_cv_type_mode_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19525 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19526 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19527 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19528 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19529 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19530 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19531 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19532 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 19533 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19534 | if test "${ac_cv_type_off_t+set}" = set; then |
| 19535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19536 | else |
| 19537 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19538 | /* confdefs.h. */ |
| 19539 | _ACEOF |
| 19540 | cat confdefs.h >>conftest.$ac_ext |
| 19541 | cat >>conftest.$ac_ext <<_ACEOF |
| 19542 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19543 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19544 | typedef off_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19545 | int |
| 19546 | main () |
| 19547 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19548 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19549 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19550 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19551 | return 0; |
| 19552 | ; |
| 19553 | return 0; |
| 19554 | } |
| 19555 | _ACEOF |
| 19556 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19557 | if { (ac_try="$ac_compile" |
| 19558 | case "(($ac_try" in |
| 19559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19560 | *) ac_try_echo=$ac_try;; |
| 19561 | esac |
| 19562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19563 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19564 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19566 | rm -f conftest.er1 |
| 19567 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19569 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19571 | { (case "(($ac_try" in |
| 19572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19573 | *) ac_try_echo=$ac_try;; |
| 19574 | esac |
| 19575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19576 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19577 | ac_status=$? |
| 19578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19579 | (exit $ac_status); }; } && |
| 19580 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19581 | { (case "(($ac_try" in |
| 19582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19583 | *) ac_try_echo=$ac_try;; |
| 19584 | esac |
| 19585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19586 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19587 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19589 | (exit $ac_status); }; }; then |
| 19590 | ac_cv_type_off_t=yes |
| 19591 | else |
| 19592 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19594 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19595 | ac_cv_type_off_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19596 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19597 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19599 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19600 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 19601 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19602 | if test $ac_cv_type_off_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19603 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19604 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19605 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19606 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19607 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19608 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19609 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19610 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 19611 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19612 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 19613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19614 | else |
| 19615 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19616 | /* confdefs.h. */ |
| 19617 | _ACEOF |
| 19618 | cat confdefs.h >>conftest.$ac_ext |
| 19619 | cat >>conftest.$ac_ext <<_ACEOF |
| 19620 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19621 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19622 | typedef pid_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19623 | int |
| 19624 | main () |
| 19625 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19626 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19627 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19628 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19629 | return 0; |
| 19630 | ; |
| 19631 | return 0; |
| 19632 | } |
| 19633 | _ACEOF |
| 19634 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19635 | if { (ac_try="$ac_compile" |
| 19636 | case "(($ac_try" in |
| 19637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19638 | *) ac_try_echo=$ac_try;; |
| 19639 | esac |
| 19640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19641 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19642 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19644 | rm -f conftest.er1 |
| 19645 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19647 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19648 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19649 | { (case "(($ac_try" in |
| 19650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19651 | *) ac_try_echo=$ac_try;; |
| 19652 | esac |
| 19653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19654 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19655 | ac_status=$? |
| 19656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19657 | (exit $ac_status); }; } && |
| 19658 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19659 | { (case "(($ac_try" in |
| 19660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19661 | *) ac_try_echo=$ac_try;; |
| 19662 | esac |
| 19663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19664 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19665 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19667 | (exit $ac_status); }; }; then |
| 19668 | ac_cv_type_pid_t=yes |
| 19669 | else |
| 19670 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19672 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19673 | ac_cv_type_pid_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19674 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19675 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19677 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19678 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 19679 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19680 | if test $ac_cv_type_pid_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19681 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19682 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19683 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19684 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19685 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19686 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19687 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19688 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 19689 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19690 | if test "${ac_cv_type_size_t+set}" = set; then |
| 19691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19692 | else |
| 19693 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19694 | /* confdefs.h. */ |
| 19695 | _ACEOF |
| 19696 | cat confdefs.h >>conftest.$ac_ext |
| 19697 | cat >>conftest.$ac_ext <<_ACEOF |
| 19698 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19699 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19700 | typedef size_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19701 | int |
| 19702 | main () |
| 19703 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19704 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19705 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19706 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19707 | return 0; |
| 19708 | ; |
| 19709 | return 0; |
| 19710 | } |
| 19711 | _ACEOF |
| 19712 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19713 | if { (ac_try="$ac_compile" |
| 19714 | case "(($ac_try" in |
| 19715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19716 | *) ac_try_echo=$ac_try;; |
| 19717 | esac |
| 19718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19719 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19720 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19722 | rm -f conftest.er1 |
| 19723 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19725 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19727 | { (case "(($ac_try" in |
| 19728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19729 | *) ac_try_echo=$ac_try;; |
| 19730 | esac |
| 19731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19732 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19733 | ac_status=$? |
| 19734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19735 | (exit $ac_status); }; } && |
| 19736 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19737 | { (case "(($ac_try" in |
| 19738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19739 | *) ac_try_echo=$ac_try;; |
| 19740 | esac |
| 19741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19742 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19743 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19745 | (exit $ac_status); }; }; then |
| 19746 | ac_cv_type_size_t=yes |
| 19747 | else |
| 19748 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19750 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19751 | ac_cv_type_size_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19752 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19753 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19755 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19756 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 19757 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19758 | if test $ac_cv_type_size_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19759 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19760 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19761 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19762 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19763 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19764 | |
| 19765 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19766 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 19767 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19768 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 19769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19770 | else |
| 19771 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19772 | /* confdefs.h. */ |
| 19773 | _ACEOF |
| 19774 | cat confdefs.h >>conftest.$ac_ext |
| 19775 | cat >>conftest.$ac_ext <<_ACEOF |
| 19776 | /* end confdefs.h. */ |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19777 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19778 | typedef ssize_t ac__type_new_; |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19779 | int |
| 19780 | main () |
| 19781 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19782 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19783 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19784 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19785 | return 0; |
| 19786 | ; |
| 19787 | return 0; |
| 19788 | } |
| 19789 | _ACEOF |
| 19790 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19791 | if { (ac_try="$ac_compile" |
| 19792 | case "(($ac_try" in |
| 19793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19794 | *) ac_try_echo=$ac_try;; |
| 19795 | esac |
| 19796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19797 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19798 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19800 | rm -f conftest.er1 |
| 19801 | cat conftest.err >&5 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19803 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19804 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19805 | { (case "(($ac_try" in |
| 19806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19807 | *) ac_try_echo=$ac_try;; |
| 19808 | esac |
| 19809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19810 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19811 | ac_status=$? |
| 19812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19813 | (exit $ac_status); }; } && |
| 19814 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19815 | { (case "(($ac_try" in |
| 19816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19817 | *) ac_try_echo=$ac_try;; |
| 19818 | esac |
| 19819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19820 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19821 | ac_status=$? |
| 19822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19823 | (exit $ac_status); }; }; then |
| 19824 | ac_cv_type_ssize_t=yes |
| 19825 | else |
| 19826 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19828 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19829 | ac_cv_type_ssize_t=no |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19830 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19831 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19833 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19834 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 19835 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19836 | if test $ac_cv_type_ssize_t = yes; then |
| 19837 | |
| 19838 | cat >>confdefs.h <<_ACEOF |
| 19839 | #define HAVE_SSIZE_T 1 |
| 19840 | _ACEOF |
| 19841 | |
| 19842 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19843 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19844 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 19845 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19846 | if test "${ac_cv_type_long_long+set}" = set; then |
| 19847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19848 | else |
| 19849 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19850 | /* confdefs.h. */ |
| 19851 | _ACEOF |
| 19852 | cat confdefs.h >>conftest.$ac_ext |
| 19853 | cat >>conftest.$ac_ext <<_ACEOF |
| 19854 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19855 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19856 | typedef long long ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19857 | int |
| 19858 | main () |
| 19859 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19860 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19861 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19862 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19863 | return 0; |
| 19864 | ; |
| 19865 | return 0; |
| 19866 | } |
| 19867 | _ACEOF |
| 19868 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19869 | if { (ac_try="$ac_compile" |
| 19870 | case "(($ac_try" in |
| 19871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19872 | *) ac_try_echo=$ac_try;; |
| 19873 | esac |
| 19874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19875 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19876 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19878 | rm -f conftest.er1 |
| 19879 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19881 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19883 | { (case "(($ac_try" in |
| 19884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19885 | *) ac_try_echo=$ac_try;; |
| 19886 | esac |
| 19887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19888 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19889 | ac_status=$? |
| 19890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19891 | (exit $ac_status); }; } && |
| 19892 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19893 | { (case "(($ac_try" in |
| 19894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19895 | *) ac_try_echo=$ac_try;; |
| 19896 | esac |
| 19897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19898 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19899 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19901 | (exit $ac_status); }; }; then |
| 19902 | ac_cv_type_long_long=yes |
| 19903 | else |
| 19904 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19906 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19907 | ac_cv_type_long_long=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19908 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19909 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19911 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19912 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 19913 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 19914 | if test $ac_cv_type_long_long = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19915 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19916 | cat >>confdefs.h <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 19917 | #define HAVE_LONG_LONG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19918 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 19919 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19920 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 19921 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19922 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 |
| 19923 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19924 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then |
| 19925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19926 | else |
| 19927 | cat >conftest.$ac_ext <<_ACEOF |
| 19928 | /* confdefs.h. */ |
| 19929 | _ACEOF |
| 19930 | cat confdefs.h >>conftest.$ac_ext |
| 19931 | cat >>conftest.$ac_ext <<_ACEOF |
| 19932 | /* end confdefs.h. */ |
| 19933 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19934 | typedef fsblkcnt_t ac__type_new_; |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19935 | int |
| 19936 | main () |
| 19937 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19938 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19939 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19940 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19941 | return 0; |
| 19942 | ; |
| 19943 | return 0; |
| 19944 | } |
| 19945 | _ACEOF |
| 19946 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19947 | if { (ac_try="$ac_compile" |
| 19948 | case "(($ac_try" in |
| 19949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19950 | *) ac_try_echo=$ac_try;; |
| 19951 | esac |
| 19952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19953 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19954 | ac_status=$? |
| 19955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19956 | rm -f conftest.er1 |
| 19957 | cat conftest.err >&5 |
| 19958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19959 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19961 | { (case "(($ac_try" in |
| 19962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19963 | *) ac_try_echo=$ac_try;; |
| 19964 | esac |
| 19965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19966 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19967 | ac_status=$? |
| 19968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19969 | (exit $ac_status); }; } && |
| 19970 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19971 | { (case "(($ac_try" in |
| 19972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19973 | *) ac_try_echo=$ac_try;; |
| 19974 | esac |
| 19975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19976 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19977 | ac_status=$? |
| 19978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19979 | (exit $ac_status); }; }; then |
| 19980 | ac_cv_type_fsblkcnt_t=yes |
| 19981 | else |
| 19982 | echo "$as_me: failed program was:" >&5 |
| 19983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19984 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19985 | ac_cv_type_fsblkcnt_t=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19986 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19987 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19989 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19990 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 |
| 19991 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19992 | if test $ac_cv_type_fsblkcnt_t = yes; then |
| 19993 | |
| 19994 | cat >>confdefs.h <<_ACEOF |
| 19995 | #define HAVE_FSBLKCNT_T 1 |
| 19996 | _ACEOF |
| 19997 | |
| 19998 | |
| 19999 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20000 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 |
| 20001 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20002 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then |
| 20003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20004 | else |
| 20005 | cat >conftest.$ac_ext <<_ACEOF |
| 20006 | /* confdefs.h. */ |
| 20007 | _ACEOF |
| 20008 | cat confdefs.h >>conftest.$ac_ext |
| 20009 | cat >>conftest.$ac_ext <<_ACEOF |
| 20010 | /* end confdefs.h. */ |
| 20011 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20012 | typedef fsfilcnt_t ac__type_new_; |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20013 | int |
| 20014 | main () |
| 20015 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20016 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20017 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20018 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20019 | return 0; |
| 20020 | ; |
| 20021 | return 0; |
| 20022 | } |
| 20023 | _ACEOF |
| 20024 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20025 | if { (ac_try="$ac_compile" |
| 20026 | case "(($ac_try" in |
| 20027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20028 | *) ac_try_echo=$ac_try;; |
| 20029 | esac |
| 20030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20031 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20032 | ac_status=$? |
| 20033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20034 | rm -f conftest.er1 |
| 20035 | cat conftest.err >&5 |
| 20036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20037 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20038 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20039 | { (case "(($ac_try" in |
| 20040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20041 | *) ac_try_echo=$ac_try;; |
| 20042 | esac |
| 20043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20044 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20045 | ac_status=$? |
| 20046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20047 | (exit $ac_status); }; } && |
| 20048 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20049 | { (case "(($ac_try" in |
| 20050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20051 | *) ac_try_echo=$ac_try;; |
| 20052 | esac |
| 20053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20054 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20055 | ac_status=$? |
| 20056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20057 | (exit $ac_status); }; }; then |
| 20058 | ac_cv_type_fsfilcnt_t=yes |
| 20059 | else |
| 20060 | echo "$as_me: failed program was:" >&5 |
| 20061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20062 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20063 | ac_cv_type_fsfilcnt_t=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20064 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20065 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20067 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20068 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 |
| 20069 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20070 | if test $ac_cv_type_fsfilcnt_t = yes; then |
| 20071 | |
| 20072 | cat >>confdefs.h <<_ACEOF |
| 20073 | #define HAVE_FSFILCNT_T 1 |
| 20074 | _ACEOF |
| 20075 | |
| 20076 | |
| 20077 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 20078 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20079 | { echo "$as_me:$LINENO: checking for sigset_t" >&5 |
| 20080 | echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20081 | if test "${ac_cv_type_sigset_t+set}" = set; then |
| 20082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20083 | else |
| 20084 | cat >conftest.$ac_ext <<_ACEOF |
| 20085 | /* confdefs.h. */ |
| 20086 | _ACEOF |
| 20087 | cat confdefs.h >>conftest.$ac_ext |
| 20088 | cat >>conftest.$ac_ext <<_ACEOF |
| 20089 | /* end confdefs.h. */ |
| 20090 | #include <signal.h> |
| 20091 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20092 | typedef sigset_t ac__type_new_; |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20093 | int |
| 20094 | main () |
| 20095 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20096 | if ((ac__type_new_ *) 0) |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20097 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20098 | if (sizeof (ac__type_new_)) |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20099 | return 0; |
| 20100 | ; |
| 20101 | return 0; |
| 20102 | } |
| 20103 | _ACEOF |
| 20104 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20105 | if { (ac_try="$ac_compile" |
| 20106 | case "(($ac_try" in |
| 20107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20108 | *) ac_try_echo=$ac_try;; |
| 20109 | esac |
| 20110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20111 | (eval "$ac_compile") 2>conftest.er1 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20112 | ac_status=$? |
| 20113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20114 | rm -f conftest.er1 |
| 20115 | cat conftest.err >&5 |
| 20116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20117 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20119 | { (case "(($ac_try" in |
| 20120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20121 | *) ac_try_echo=$ac_try;; |
| 20122 | esac |
| 20123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20124 | (eval "$ac_try") 2>&5 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20125 | ac_status=$? |
| 20126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20127 | (exit $ac_status); }; } && |
| 20128 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20129 | { (case "(($ac_try" in |
| 20130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20131 | *) ac_try_echo=$ac_try;; |
| 20132 | esac |
| 20133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20134 | (eval "$ac_try") 2>&5 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20135 | ac_status=$? |
| 20136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20137 | (exit $ac_status); }; }; then |
| 20138 | ac_cv_type_sigset_t=yes |
| 20139 | else |
| 20140 | echo "$as_me: failed program was:" >&5 |
| 20141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20142 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20143 | ac_cv_type_sigset_t=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20144 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20145 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20147 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20148 | { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5 |
| 20149 | echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20150 | if test $ac_cv_type_sigset_t = yes; then |
| 20151 | |
| 20152 | cat >>confdefs.h <<_ACEOF |
| 20153 | #define HAVE_SIGSET_T 1 |
| 20154 | _ACEOF |
| 20155 | |
| 20156 | |
| 20157 | fi |
| 20158 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20159 | { echo "$as_me:$LINENO: checking for request_sense" >&5 |
| 20160 | echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; } |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20161 | if test "${ac_cv_type_request_sense+set}" = set; then |
| 20162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20163 | else |
| 20164 | cat >conftest.$ac_ext <<_ACEOF |
| 20165 | /* confdefs.h. */ |
| 20166 | _ACEOF |
| 20167 | cat confdefs.h >>conftest.$ac_ext |
| 20168 | cat >>conftest.$ac_ext <<_ACEOF |
| 20169 | /* end confdefs.h. */ |
| 20170 | #include <linux/cdrom.h> |
| 20171 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20172 | typedef request_sense ac__type_new_; |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20173 | int |
| 20174 | main () |
| 20175 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20176 | if ((ac__type_new_ *) 0) |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20177 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20178 | if (sizeof (ac__type_new_)) |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20179 | return 0; |
| 20180 | ; |
| 20181 | return 0; |
| 20182 | } |
| 20183 | _ACEOF |
| 20184 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20185 | if { (ac_try="$ac_compile" |
| 20186 | case "(($ac_try" in |
| 20187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20188 | *) ac_try_echo=$ac_try;; |
| 20189 | esac |
| 20190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20191 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20192 | ac_status=$? |
| 20193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20194 | rm -f conftest.er1 |
| 20195 | cat conftest.err >&5 |
| 20196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20197 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20199 | { (case "(($ac_try" in |
| 20200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20201 | *) ac_try_echo=$ac_try;; |
| 20202 | esac |
| 20203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20204 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20205 | ac_status=$? |
| 20206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20207 | (exit $ac_status); }; } && |
| 20208 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20209 | { (case "(($ac_try" in |
| 20210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20211 | *) ac_try_echo=$ac_try;; |
| 20212 | esac |
| 20213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20214 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20215 | ac_status=$? |
| 20216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20217 | (exit $ac_status); }; }; then |
| 20218 | ac_cv_type_request_sense=yes |
| 20219 | else |
| 20220 | echo "$as_me: failed program was:" >&5 |
| 20221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20222 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20223 | ac_cv_type_request_sense=no |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20224 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20225 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20227 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20228 | { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5 |
| 20229 | echo "${ECHO_T}$ac_cv_type_request_sense" >&6; } |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20230 | if test $ac_cv_type_request_sense = yes; then |
| 20231 | |
| 20232 | cat >>confdefs.h <<_ACEOF |
| 20233 | #define HAVE_REQUEST_SENSE 1 |
| 20234 | _ACEOF |
| 20235 | |
| 20236 | |
| 20237 | fi |
| 20238 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20239 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20240 | { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5 |
| 20241 | echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; } |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20242 | if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then |
| 20243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20244 | else |
| 20245 | cat >conftest.$ac_ext <<_ACEOF |
| 20246 | /* confdefs.h. */ |
| 20247 | _ACEOF |
| 20248 | cat confdefs.h >>conftest.$ac_ext |
| 20249 | cat >>conftest.$ac_ext <<_ACEOF |
| 20250 | /* end confdefs.h. */ |
| 20251 | #ifdef HAVE_LINUX_INPUT_H |
| 20252 | #include <linux/input.h> |
| 20253 | #endif |
| 20254 | |
| 20255 | int |
| 20256 | main () |
| 20257 | { |
| 20258 | static struct ff_effect ac_aggr; |
| 20259 | if (ac_aggr.direction) |
| 20260 | return 0; |
| 20261 | ; |
| 20262 | return 0; |
| 20263 | } |
| 20264 | _ACEOF |
| 20265 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20266 | if { (ac_try="$ac_compile" |
| 20267 | case "(($ac_try" in |
| 20268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20269 | *) ac_try_echo=$ac_try;; |
| 20270 | esac |
| 20271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20272 | (eval "$ac_compile") 2>conftest.er1 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20273 | ac_status=$? |
| 20274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20275 | rm -f conftest.er1 |
| 20276 | cat conftest.err >&5 |
| 20277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20278 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20280 | { (case "(($ac_try" in |
| 20281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20282 | *) ac_try_echo=$ac_try;; |
| 20283 | esac |
| 20284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20285 | (eval "$ac_try") 2>&5 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20286 | ac_status=$? |
| 20287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20288 | (exit $ac_status); }; } && |
| 20289 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20290 | { (case "(($ac_try" in |
| 20291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20292 | *) ac_try_echo=$ac_try;; |
| 20293 | esac |
| 20294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20295 | (eval "$ac_try") 2>&5 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20296 | ac_status=$? |
| 20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20298 | (exit $ac_status); }; }; then |
| 20299 | ac_cv_member_struct_ff_effect_direction=yes |
| 20300 | else |
| 20301 | echo "$as_me: failed program was:" >&5 |
| 20302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20303 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20304 | cat >conftest.$ac_ext <<_ACEOF |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20305 | /* confdefs.h. */ |
| 20306 | _ACEOF |
| 20307 | cat confdefs.h >>conftest.$ac_ext |
| 20308 | cat >>conftest.$ac_ext <<_ACEOF |
| 20309 | /* end confdefs.h. */ |
| 20310 | #ifdef HAVE_LINUX_INPUT_H |
| 20311 | #include <linux/input.h> |
| 20312 | #endif |
| 20313 | |
| 20314 | int |
| 20315 | main () |
| 20316 | { |
| 20317 | static struct ff_effect ac_aggr; |
| 20318 | if (sizeof ac_aggr.direction) |
| 20319 | return 0; |
| 20320 | ; |
| 20321 | return 0; |
| 20322 | } |
| 20323 | _ACEOF |
| 20324 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20325 | if { (ac_try="$ac_compile" |
| 20326 | case "(($ac_try" in |
| 20327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20328 | *) ac_try_echo=$ac_try;; |
| 20329 | esac |
| 20330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20331 | (eval "$ac_compile") 2>conftest.er1 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20332 | ac_status=$? |
| 20333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20334 | rm -f conftest.er1 |
| 20335 | cat conftest.err >&5 |
| 20336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20337 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20339 | { (case "(($ac_try" in |
| 20340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20341 | *) ac_try_echo=$ac_try;; |
| 20342 | esac |
| 20343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20344 | (eval "$ac_try") 2>&5 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20345 | ac_status=$? |
| 20346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20347 | (exit $ac_status); }; } && |
| 20348 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20349 | { (case "(($ac_try" in |
| 20350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20351 | *) ac_try_echo=$ac_try;; |
| 20352 | esac |
| 20353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20354 | (eval "$ac_try") 2>&5 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20355 | ac_status=$? |
| 20356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20357 | (exit $ac_status); }; }; then |
| 20358 | ac_cv_member_struct_ff_effect_direction=yes |
| 20359 | else |
| 20360 | echo "$as_me: failed program was:" >&5 |
| 20361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20362 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20363 | ac_cv_member_struct_ff_effect_direction=no |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20364 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20365 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20367 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20368 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20370 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20371 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5 |
| 20372 | echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; } |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20373 | if test $ac_cv_member_struct_ff_effect_direction = yes; then |
| 20374 | |
| 20375 | cat >>confdefs.h <<_ACEOF |
| 20376 | #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1 |
| 20377 | _ACEOF |
| 20378 | |
| 20379 | |
| 20380 | fi |
| 20381 | |
| 20382 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20383 | { echo "$as_me:$LINENO: checking for sigaddset" >&5 |
| 20384 | echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20385 | if test "${wine_cv_have_sigaddset+set}" = set; then |
| 20386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20387 | else |
| 20388 | cat >conftest.$ac_ext <<_ACEOF |
| 20389 | /* confdefs.h. */ |
| 20390 | _ACEOF |
| 20391 | cat confdefs.h >>conftest.$ac_ext |
| 20392 | cat >>conftest.$ac_ext <<_ACEOF |
| 20393 | /* end confdefs.h. */ |
| 20394 | #include <signal.h> |
| 20395 | int |
| 20396 | main () |
| 20397 | { |
| 20398 | sigset_t set; sigaddset(&set,SIGTERM); |
| 20399 | ; |
| 20400 | return 0; |
| 20401 | } |
| 20402 | _ACEOF |
| 20403 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20404 | if { (ac_try="$ac_link" |
| 20405 | case "(($ac_try" in |
| 20406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20407 | *) ac_try_echo=$ac_try;; |
| 20408 | esac |
| 20409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20410 | (eval "$ac_link") 2>conftest.er1 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20411 | ac_status=$? |
| 20412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20413 | rm -f conftest.er1 |
| 20414 | cat conftest.err >&5 |
| 20415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20416 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20418 | { (case "(($ac_try" in |
| 20419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20420 | *) ac_try_echo=$ac_try;; |
| 20421 | esac |
| 20422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20423 | (eval "$ac_try") 2>&5 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20424 | ac_status=$? |
| 20425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20426 | (exit $ac_status); }; } && |
| 20427 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20428 | { (case "(($ac_try" in |
| 20429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20430 | *) ac_try_echo=$ac_try;; |
| 20431 | esac |
| 20432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20433 | (eval "$ac_try") 2>&5 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20434 | ac_status=$? |
| 20435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20436 | (exit $ac_status); }; }; then |
| 20437 | wine_cv_have_sigaddset=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 | wine_cv_have_sigaddset=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20443 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20444 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20445 | rm -f core conftest.err conftest.$ac_objext \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20446 | conftest$ac_exeext conftest.$ac_ext |
| 20447 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20448 | { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5 |
| 20449 | echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20450 | if test "$wine_cv_have_sigaddset" = "yes" |
| 20451 | then |
| 20452 | |
| 20453 | cat >>confdefs.h <<\_ACEOF |
| 20454 | #define HAVE_SIGADDSET 1 |
| 20455 | _ACEOF |
| 20456 | |
| 20457 | fi |
| 20458 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20459 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20460 | { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5 |
| 20461 | 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] | 20462 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 20463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20464 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20465 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20466 | /* confdefs.h. */ |
| 20467 | _ACEOF |
| 20468 | cat confdefs.h >>conftest.$ac_ext |
| 20469 | cat >>conftest.$ac_ext <<_ACEOF |
| 20470 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20471 | |
| 20472 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20473 | |
| 20474 | int |
| 20475 | main () |
| 20476 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20477 | |
| 20478 | char *name=NULL; |
| 20479 | struct hostent he; |
| 20480 | struct hostent *result; |
| 20481 | char *buf=NULL; |
| 20482 | int bufsize=0; |
| 20483 | int res,errnr; |
| 20484 | char *addr=NULL; |
| 20485 | int addrlen=0; |
| 20486 | int addrtype=0; |
| 20487 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 20488 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20489 | |
| 20490 | ; |
| 20491 | return 0; |
| 20492 | } |
| 20493 | _ACEOF |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 20494 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20495 | if { (ac_try="$ac_link" |
| 20496 | case "(($ac_try" in |
| 20497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20498 | *) ac_try_echo=$ac_try;; |
| 20499 | esac |
| 20500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20501 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20502 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20504 | rm -f conftest.er1 |
| 20505 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20507 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20509 | { (case "(($ac_try" in |
| 20510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20511 | *) ac_try_echo=$ac_try;; |
| 20512 | esac |
| 20513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20514 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20515 | ac_status=$? |
| 20516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20517 | (exit $ac_status); }; } && |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 20518 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20519 | { (case "(($ac_try" in |
| 20520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20521 | *) ac_try_echo=$ac_try;; |
| 20522 | esac |
| 20523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20524 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20525 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20527 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20528 | wine_cv_linux_gethostbyname_r_6=yes |
| 20529 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20530 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20532 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20533 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20534 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20535 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20536 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20537 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 20538 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20539 | |
| 20540 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20541 | { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
| 20542 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; } |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20543 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 20544 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20545 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20546 | cat >>confdefs.h <<\_ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20547 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20548 | _ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20549 | |
| 20550 | fi |
| 20551 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20552 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20553 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20554 | { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5 |
| 20555 | 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] | 20556 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 20557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20558 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20559 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20560 | /* confdefs.h. */ |
| 20561 | _ACEOF |
| 20562 | cat confdefs.h >>conftest.$ac_ext |
| 20563 | cat >>conftest.$ac_ext <<_ACEOF |
| 20564 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20565 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20566 | #include <sys/ioctl.h> |
| 20567 | #include <linux/joystick.h> |
| 20568 | |
| 20569 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 20570 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 20571 | #error "no 2.2 header" |
| 20572 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20573 | |
| 20574 | int |
| 20575 | main () |
| 20576 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20577 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20578 | ; |
| 20579 | return 0; |
| 20580 | } |
| 20581 | _ACEOF |
| 20582 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20583 | if { (ac_try="$ac_compile" |
| 20584 | case "(($ac_try" in |
| 20585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20586 | *) ac_try_echo=$ac_try;; |
| 20587 | esac |
| 20588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20589 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20590 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20592 | rm -f conftest.er1 |
| 20593 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20595 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20596 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20597 | { (case "(($ac_try" in |
| 20598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20599 | *) ac_try_echo=$ac_try;; |
| 20600 | esac |
| 20601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20602 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20603 | ac_status=$? |
| 20604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20605 | (exit $ac_status); }; } && |
| 20606 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20607 | { (case "(($ac_try" in |
| 20608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20609 | *) ac_try_echo=$ac_try;; |
| 20610 | esac |
| 20611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20612 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20613 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20615 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20616 | wine_cv_linux_joystick_22_api=yes |
| 20617 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20618 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20620 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20621 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20622 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20623 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20625 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20626 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20627 | { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
| 20628 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; } |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 20629 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20630 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20631 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20632 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20633 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20634 | _ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20635 | |
| 20636 | fi |
| 20637 | fi |
| 20638 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20639 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20640 | { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5 |
| 20641 | echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20642 | if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20644 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20645 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20646 | /* confdefs.h. */ |
| 20647 | _ACEOF |
| 20648 | cat confdefs.h >>conftest.$ac_ext |
| 20649 | cat >>conftest.$ac_ext <<_ACEOF |
| 20650 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20651 | #include <sys/types.h> |
| 20652 | #ifdef HAVE_SYS_PARAM_H |
| 20653 | # include <sys/param.h> |
| 20654 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20655 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20656 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20657 | #endif |
| 20658 | #ifdef HAVE_SYS_VFS_H |
| 20659 | # include <sys/vfs.h> |
| 20660 | #endif |
| 20661 | #ifdef HAVE_SYS_STATFS_H |
| 20662 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20663 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20664 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20665 | int |
| 20666 | main () |
| 20667 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20668 | static struct statfs ac_aggr; |
| 20669 | if (ac_aggr.f_bfree) |
| 20670 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20671 | ; |
| 20672 | return 0; |
| 20673 | } |
| 20674 | _ACEOF |
| 20675 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20676 | if { (ac_try="$ac_compile" |
| 20677 | case "(($ac_try" in |
| 20678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20679 | *) ac_try_echo=$ac_try;; |
| 20680 | esac |
| 20681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20682 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20683 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20685 | rm -f conftest.er1 |
| 20686 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20688 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20690 | { (case "(($ac_try" in |
| 20691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20692 | *) ac_try_echo=$ac_try;; |
| 20693 | esac |
| 20694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20695 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20696 | ac_status=$? |
| 20697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20698 | (exit $ac_status); }; } && |
| 20699 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20700 | { (case "(($ac_try" in |
| 20701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20702 | *) ac_try_echo=$ac_try;; |
| 20703 | esac |
| 20704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20705 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20706 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20708 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20709 | ac_cv_member_struct_statfs_f_bfree=yes |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20710 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20711 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20713 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20714 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20715 | /* confdefs.h. */ |
| 20716 | _ACEOF |
| 20717 | cat confdefs.h >>conftest.$ac_ext |
| 20718 | cat >>conftest.$ac_ext <<_ACEOF |
| 20719 | /* end confdefs.h. */ |
| 20720 | #include <sys/types.h> |
| 20721 | #ifdef HAVE_SYS_PARAM_H |
| 20722 | # include <sys/param.h> |
| 20723 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20724 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20725 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20726 | #endif |
| 20727 | #ifdef HAVE_SYS_VFS_H |
| 20728 | # include <sys/vfs.h> |
| 20729 | #endif |
| 20730 | #ifdef HAVE_SYS_STATFS_H |
| 20731 | # include <sys/statfs.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20732 | #endif |
| 20733 | |
| 20734 | int |
| 20735 | main () |
| 20736 | { |
| 20737 | static struct statfs ac_aggr; |
| 20738 | if (sizeof ac_aggr.f_bfree) |
| 20739 | return 0; |
| 20740 | ; |
| 20741 | return 0; |
| 20742 | } |
| 20743 | _ACEOF |
| 20744 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20745 | if { (ac_try="$ac_compile" |
| 20746 | case "(($ac_try" in |
| 20747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20748 | *) ac_try_echo=$ac_try;; |
| 20749 | esac |
| 20750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20751 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20752 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20754 | rm -f conftest.er1 |
| 20755 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20757 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20759 | { (case "(($ac_try" in |
| 20760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20761 | *) ac_try_echo=$ac_try;; |
| 20762 | esac |
| 20763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20764 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20765 | ac_status=$? |
| 20766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20767 | (exit $ac_status); }; } && |
| 20768 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20769 | { (case "(($ac_try" in |
| 20770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20771 | *) ac_try_echo=$ac_try;; |
| 20772 | esac |
| 20773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20774 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20775 | ac_status=$? |
| 20776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20777 | (exit $ac_status); }; }; then |
| 20778 | ac_cv_member_struct_statfs_f_bfree=yes |
| 20779 | else |
| 20780 | echo "$as_me: failed program was:" >&5 |
| 20781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20782 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20783 | ac_cv_member_struct_statfs_f_bfree=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20784 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20785 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20787 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20788 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20790 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20791 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5 |
| 20792 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20793 | if test $ac_cv_member_struct_statfs_f_bfree = yes; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20794 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20795 | cat >>confdefs.h <<_ACEOF |
| 20796 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20797 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20798 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20799 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20800 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20801 | { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5 |
| 20802 | echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20803 | if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 20805 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20806 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20807 | /* confdefs.h. */ |
| 20808 | _ACEOF |
| 20809 | cat confdefs.h >>conftest.$ac_ext |
| 20810 | cat >>conftest.$ac_ext <<_ACEOF |
| 20811 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20812 | #include <sys/types.h> |
| 20813 | #ifdef HAVE_SYS_PARAM_H |
| 20814 | # include <sys/param.h> |
| 20815 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20816 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20817 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20818 | #endif |
| 20819 | #ifdef HAVE_SYS_VFS_H |
| 20820 | # include <sys/vfs.h> |
| 20821 | #endif |
| 20822 | #ifdef HAVE_SYS_STATFS_H |
| 20823 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20824 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20825 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20826 | int |
| 20827 | main () |
| 20828 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20829 | static struct statfs ac_aggr; |
| 20830 | if (ac_aggr.f_bavail) |
| 20831 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20832 | ; |
| 20833 | return 0; |
| 20834 | } |
| 20835 | _ACEOF |
| 20836 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20837 | if { (ac_try="$ac_compile" |
| 20838 | case "(($ac_try" in |
| 20839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20840 | *) ac_try_echo=$ac_try;; |
| 20841 | esac |
| 20842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20843 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20844 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20846 | rm -f conftest.er1 |
| 20847 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20849 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20851 | { (case "(($ac_try" in |
| 20852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20853 | *) ac_try_echo=$ac_try;; |
| 20854 | esac |
| 20855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20856 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20857 | ac_status=$? |
| 20858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20859 | (exit $ac_status); }; } && |
| 20860 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20861 | { (case "(($ac_try" in |
| 20862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20863 | *) ac_try_echo=$ac_try;; |
| 20864 | esac |
| 20865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20866 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20867 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20869 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20870 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 20871 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20872 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20874 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20875 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20876 | /* confdefs.h. */ |
| 20877 | _ACEOF |
| 20878 | cat confdefs.h >>conftest.$ac_ext |
| 20879 | cat >>conftest.$ac_ext <<_ACEOF |
| 20880 | /* end confdefs.h. */ |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 20881 | #include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20882 | #ifdef HAVE_SYS_PARAM_H |
| 20883 | # include <sys/param.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 20884 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20885 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20886 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20887 | #endif |
| 20888 | #ifdef HAVE_SYS_VFS_H |
| 20889 | # include <sys/vfs.h> |
| 20890 | #endif |
| 20891 | #ifdef HAVE_SYS_STATFS_H |
| 20892 | # include <sys/statfs.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20893 | #endif |
| 20894 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20895 | int |
| 20896 | main () |
| 20897 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20898 | static struct statfs ac_aggr; |
| 20899 | if (sizeof ac_aggr.f_bavail) |
| 20900 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20901 | ; |
| 20902 | return 0; |
| 20903 | } |
| 20904 | _ACEOF |
| 20905 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20906 | if { (ac_try="$ac_compile" |
| 20907 | case "(($ac_try" in |
| 20908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20909 | *) ac_try_echo=$ac_try;; |
| 20910 | esac |
| 20911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20912 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20913 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20915 | rm -f conftest.er1 |
| 20916 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20918 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20920 | { (case "(($ac_try" in |
| 20921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20922 | *) ac_try_echo=$ac_try;; |
| 20923 | esac |
| 20924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20925 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20926 | ac_status=$? |
| 20927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20928 | (exit $ac_status); }; } && |
| 20929 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20930 | { (case "(($ac_try" in |
| 20931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20932 | *) ac_try_echo=$ac_try;; |
| 20933 | esac |
| 20934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20935 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20936 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20938 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20939 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 20940 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20941 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20943 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20944 | ac_cv_member_struct_statfs_f_bavail=no |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 20945 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20946 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 20948 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20949 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 20951 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20952 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5 |
| 20953 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20954 | if test $ac_cv_member_struct_statfs_f_bavail = yes; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 20955 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20956 | cat >>confdefs.h <<_ACEOF |
| 20957 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20958 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 20959 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20960 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 20961 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20962 | { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5 |
| 20963 | echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20964 | if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then |
| 20965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20966 | else |
| 20967 | cat >conftest.$ac_ext <<_ACEOF |
| 20968 | /* confdefs.h. */ |
| 20969 | _ACEOF |
| 20970 | cat confdefs.h >>conftest.$ac_ext |
| 20971 | cat >>conftest.$ac_ext <<_ACEOF |
| 20972 | /* end confdefs.h. */ |
| 20973 | #include <sys/types.h> |
| 20974 | #ifdef HAVE_SYS_PARAM_H |
| 20975 | # include <sys/param.h> |
| 20976 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20977 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20978 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20979 | #endif |
| 20980 | #ifdef HAVE_SYS_VFS_H |
| 20981 | # include <sys/vfs.h> |
| 20982 | #endif |
| 20983 | #ifdef HAVE_SYS_STATFS_H |
| 20984 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20985 | #endif |
| 20986 | |
| 20987 | int |
| 20988 | main () |
| 20989 | { |
| 20990 | static struct statfs ac_aggr; |
| 20991 | if (ac_aggr.f_frsize) |
| 20992 | return 0; |
| 20993 | ; |
| 20994 | return 0; |
| 20995 | } |
| 20996 | _ACEOF |
| 20997 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20998 | if { (ac_try="$ac_compile" |
| 20999 | case "(($ac_try" in |
| 21000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21001 | *) ac_try_echo=$ac_try;; |
| 21002 | esac |
| 21003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21004 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21005 | ac_status=$? |
| 21006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21007 | rm -f conftest.er1 |
| 21008 | cat conftest.err >&5 |
| 21009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21010 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21012 | { (case "(($ac_try" in |
| 21013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21014 | *) ac_try_echo=$ac_try;; |
| 21015 | esac |
| 21016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21017 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21018 | ac_status=$? |
| 21019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21020 | (exit $ac_status); }; } && |
| 21021 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21022 | { (case "(($ac_try" in |
| 21023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21024 | *) ac_try_echo=$ac_try;; |
| 21025 | esac |
| 21026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21027 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21028 | ac_status=$? |
| 21029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21030 | (exit $ac_status); }; }; then |
| 21031 | ac_cv_member_struct_statfs_f_frsize=yes |
| 21032 | else |
| 21033 | echo "$as_me: failed program was:" >&5 |
| 21034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21035 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21036 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21037 | /* confdefs.h. */ |
| 21038 | _ACEOF |
| 21039 | cat confdefs.h >>conftest.$ac_ext |
| 21040 | cat >>conftest.$ac_ext <<_ACEOF |
| 21041 | /* end confdefs.h. */ |
| 21042 | #include <sys/types.h> |
| 21043 | #ifdef HAVE_SYS_PARAM_H |
| 21044 | # include <sys/param.h> |
| 21045 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21046 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21047 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21048 | #endif |
| 21049 | #ifdef HAVE_SYS_VFS_H |
| 21050 | # include <sys/vfs.h> |
| 21051 | #endif |
| 21052 | #ifdef HAVE_SYS_STATFS_H |
| 21053 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21054 | #endif |
| 21055 | |
| 21056 | int |
| 21057 | main () |
| 21058 | { |
| 21059 | static struct statfs ac_aggr; |
| 21060 | if (sizeof ac_aggr.f_frsize) |
| 21061 | return 0; |
| 21062 | ; |
| 21063 | return 0; |
| 21064 | } |
| 21065 | _ACEOF |
| 21066 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21067 | if { (ac_try="$ac_compile" |
| 21068 | case "(($ac_try" in |
| 21069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21070 | *) ac_try_echo=$ac_try;; |
| 21071 | esac |
| 21072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21073 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21074 | ac_status=$? |
| 21075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21076 | rm -f conftest.er1 |
| 21077 | cat conftest.err >&5 |
| 21078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21079 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21081 | { (case "(($ac_try" in |
| 21082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21083 | *) ac_try_echo=$ac_try;; |
| 21084 | esac |
| 21085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21086 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21087 | ac_status=$? |
| 21088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21089 | (exit $ac_status); }; } && |
| 21090 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21091 | { (case "(($ac_try" in |
| 21092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21093 | *) ac_try_echo=$ac_try;; |
| 21094 | esac |
| 21095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21096 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21097 | ac_status=$? |
| 21098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21099 | (exit $ac_status); }; }; then |
| 21100 | ac_cv_member_struct_statfs_f_frsize=yes |
| 21101 | else |
| 21102 | echo "$as_me: failed program was:" >&5 |
| 21103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21104 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21105 | ac_cv_member_struct_statfs_f_frsize=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21106 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21107 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21109 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21110 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21112 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21113 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5 |
| 21114 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21115 | if test $ac_cv_member_struct_statfs_f_frsize = yes; then |
| 21116 | |
| 21117 | cat >>confdefs.h <<_ACEOF |
| 21118 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 |
| 21119 | _ACEOF |
| 21120 | |
| 21121 | |
| 21122 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21123 | { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5 |
| 21124 | echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21125 | if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then |
| 21126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21127 | else |
| 21128 | cat >conftest.$ac_ext <<_ACEOF |
| 21129 | /* confdefs.h. */ |
| 21130 | _ACEOF |
| 21131 | cat confdefs.h >>conftest.$ac_ext |
| 21132 | cat >>conftest.$ac_ext <<_ACEOF |
| 21133 | /* end confdefs.h. */ |
| 21134 | #include <sys/types.h> |
| 21135 | #ifdef HAVE_SYS_PARAM_H |
| 21136 | # include <sys/param.h> |
| 21137 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21138 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21139 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21140 | #endif |
| 21141 | #ifdef HAVE_SYS_VFS_H |
| 21142 | # include <sys/vfs.h> |
| 21143 | #endif |
| 21144 | #ifdef HAVE_SYS_STATFS_H |
| 21145 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21146 | #endif |
| 21147 | |
| 21148 | int |
| 21149 | main () |
| 21150 | { |
| 21151 | static struct statfs ac_aggr; |
| 21152 | if (ac_aggr.f_ffree) |
| 21153 | return 0; |
| 21154 | ; |
| 21155 | return 0; |
| 21156 | } |
| 21157 | _ACEOF |
| 21158 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21159 | if { (ac_try="$ac_compile" |
| 21160 | case "(($ac_try" in |
| 21161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21162 | *) ac_try_echo=$ac_try;; |
| 21163 | esac |
| 21164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21165 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21166 | ac_status=$? |
| 21167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21168 | rm -f conftest.er1 |
| 21169 | cat conftest.err >&5 |
| 21170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21171 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21172 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21173 | { (case "(($ac_try" in |
| 21174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21175 | *) ac_try_echo=$ac_try;; |
| 21176 | esac |
| 21177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21178 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21179 | ac_status=$? |
| 21180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21181 | (exit $ac_status); }; } && |
| 21182 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21183 | { (case "(($ac_try" in |
| 21184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21185 | *) ac_try_echo=$ac_try;; |
| 21186 | esac |
| 21187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21188 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21189 | ac_status=$? |
| 21190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21191 | (exit $ac_status); }; }; then |
| 21192 | ac_cv_member_struct_statfs_f_ffree=yes |
| 21193 | else |
| 21194 | echo "$as_me: failed program was:" >&5 |
| 21195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21196 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21197 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21198 | /* confdefs.h. */ |
| 21199 | _ACEOF |
| 21200 | cat confdefs.h >>conftest.$ac_ext |
| 21201 | cat >>conftest.$ac_ext <<_ACEOF |
| 21202 | /* end confdefs.h. */ |
| 21203 | #include <sys/types.h> |
| 21204 | #ifdef HAVE_SYS_PARAM_H |
| 21205 | # include <sys/param.h> |
| 21206 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21207 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21208 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21209 | #endif |
| 21210 | #ifdef HAVE_SYS_VFS_H |
| 21211 | # include <sys/vfs.h> |
| 21212 | #endif |
| 21213 | #ifdef HAVE_SYS_STATFS_H |
| 21214 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21215 | #endif |
| 21216 | |
| 21217 | int |
| 21218 | main () |
| 21219 | { |
| 21220 | static struct statfs ac_aggr; |
| 21221 | if (sizeof ac_aggr.f_ffree) |
| 21222 | return 0; |
| 21223 | ; |
| 21224 | return 0; |
| 21225 | } |
| 21226 | _ACEOF |
| 21227 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21228 | if { (ac_try="$ac_compile" |
| 21229 | case "(($ac_try" in |
| 21230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21231 | *) ac_try_echo=$ac_try;; |
| 21232 | esac |
| 21233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21234 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21235 | ac_status=$? |
| 21236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21237 | rm -f conftest.er1 |
| 21238 | cat conftest.err >&5 |
| 21239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21240 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21242 | { (case "(($ac_try" in |
| 21243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21244 | *) ac_try_echo=$ac_try;; |
| 21245 | esac |
| 21246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21247 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21248 | ac_status=$? |
| 21249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21250 | (exit $ac_status); }; } && |
| 21251 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21252 | { (case "(($ac_try" in |
| 21253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21254 | *) ac_try_echo=$ac_try;; |
| 21255 | esac |
| 21256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21257 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21258 | ac_status=$? |
| 21259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21260 | (exit $ac_status); }; }; then |
| 21261 | ac_cv_member_struct_statfs_f_ffree=yes |
| 21262 | else |
| 21263 | echo "$as_me: failed program was:" >&5 |
| 21264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21265 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21266 | ac_cv_member_struct_statfs_f_ffree=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21267 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21268 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21270 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21271 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21273 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21274 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5 |
| 21275 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21276 | if test $ac_cv_member_struct_statfs_f_ffree = yes; then |
| 21277 | |
| 21278 | cat >>confdefs.h <<_ACEOF |
| 21279 | #define HAVE_STRUCT_STATFS_F_FFREE 1 |
| 21280 | _ACEOF |
| 21281 | |
| 21282 | |
| 21283 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21284 | { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5 |
| 21285 | echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21286 | if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then |
| 21287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21288 | else |
| 21289 | cat >conftest.$ac_ext <<_ACEOF |
| 21290 | /* confdefs.h. */ |
| 21291 | _ACEOF |
| 21292 | cat confdefs.h >>conftest.$ac_ext |
| 21293 | cat >>conftest.$ac_ext <<_ACEOF |
| 21294 | /* end confdefs.h. */ |
| 21295 | #include <sys/types.h> |
| 21296 | #ifdef HAVE_SYS_PARAM_H |
| 21297 | # include <sys/param.h> |
| 21298 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21299 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21300 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21301 | #endif |
| 21302 | #ifdef HAVE_SYS_VFS_H |
| 21303 | # include <sys/vfs.h> |
| 21304 | #endif |
| 21305 | #ifdef HAVE_SYS_STATFS_H |
| 21306 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21307 | #endif |
| 21308 | |
| 21309 | int |
| 21310 | main () |
| 21311 | { |
| 21312 | static struct statfs ac_aggr; |
| 21313 | if (ac_aggr.f_favail) |
| 21314 | return 0; |
| 21315 | ; |
| 21316 | return 0; |
| 21317 | } |
| 21318 | _ACEOF |
| 21319 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21320 | if { (ac_try="$ac_compile" |
| 21321 | case "(($ac_try" in |
| 21322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21323 | *) ac_try_echo=$ac_try;; |
| 21324 | esac |
| 21325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21326 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21327 | ac_status=$? |
| 21328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21329 | rm -f conftest.er1 |
| 21330 | cat conftest.err >&5 |
| 21331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21332 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21334 | { (case "(($ac_try" in |
| 21335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21336 | *) ac_try_echo=$ac_try;; |
| 21337 | esac |
| 21338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21339 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21340 | ac_status=$? |
| 21341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21342 | (exit $ac_status); }; } && |
| 21343 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21344 | { (case "(($ac_try" in |
| 21345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21346 | *) ac_try_echo=$ac_try;; |
| 21347 | esac |
| 21348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21349 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21350 | ac_status=$? |
| 21351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21352 | (exit $ac_status); }; }; then |
| 21353 | ac_cv_member_struct_statfs_f_favail=yes |
| 21354 | else |
| 21355 | echo "$as_me: failed program was:" >&5 |
| 21356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21357 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21358 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21359 | /* confdefs.h. */ |
| 21360 | _ACEOF |
| 21361 | cat confdefs.h >>conftest.$ac_ext |
| 21362 | cat >>conftest.$ac_ext <<_ACEOF |
| 21363 | /* end confdefs.h. */ |
| 21364 | #include <sys/types.h> |
| 21365 | #ifdef HAVE_SYS_PARAM_H |
| 21366 | # include <sys/param.h> |
| 21367 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21368 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21369 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21370 | #endif |
| 21371 | #ifdef HAVE_SYS_VFS_H |
| 21372 | # include <sys/vfs.h> |
| 21373 | #endif |
| 21374 | #ifdef HAVE_SYS_STATFS_H |
| 21375 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21376 | #endif |
| 21377 | |
| 21378 | int |
| 21379 | main () |
| 21380 | { |
| 21381 | static struct statfs ac_aggr; |
| 21382 | if (sizeof ac_aggr.f_favail) |
| 21383 | return 0; |
| 21384 | ; |
| 21385 | return 0; |
| 21386 | } |
| 21387 | _ACEOF |
| 21388 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21389 | if { (ac_try="$ac_compile" |
| 21390 | case "(($ac_try" in |
| 21391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21392 | *) ac_try_echo=$ac_try;; |
| 21393 | esac |
| 21394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21395 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21396 | ac_status=$? |
| 21397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21398 | rm -f conftest.er1 |
| 21399 | cat conftest.err >&5 |
| 21400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21401 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21403 | { (case "(($ac_try" in |
| 21404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21405 | *) ac_try_echo=$ac_try;; |
| 21406 | esac |
| 21407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21408 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21409 | ac_status=$? |
| 21410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21411 | (exit $ac_status); }; } && |
| 21412 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21413 | { (case "(($ac_try" in |
| 21414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21415 | *) ac_try_echo=$ac_try;; |
| 21416 | esac |
| 21417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21418 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21419 | ac_status=$? |
| 21420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21421 | (exit $ac_status); }; }; then |
| 21422 | ac_cv_member_struct_statfs_f_favail=yes |
| 21423 | else |
| 21424 | echo "$as_me: failed program was:" >&5 |
| 21425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21426 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21427 | ac_cv_member_struct_statfs_f_favail=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21428 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21429 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21431 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21432 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21434 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21435 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5 |
| 21436 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21437 | if test $ac_cv_member_struct_statfs_f_favail = yes; then |
| 21438 | |
| 21439 | cat >>confdefs.h <<_ACEOF |
| 21440 | #define HAVE_STRUCT_STATFS_F_FAVAIL 1 |
| 21441 | _ACEOF |
| 21442 | |
| 21443 | |
| 21444 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21445 | { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5 |
| 21446 | echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; } |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21447 | if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then |
| 21448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21449 | else |
| 21450 | cat >conftest.$ac_ext <<_ACEOF |
| 21451 | /* confdefs.h. */ |
| 21452 | _ACEOF |
| 21453 | cat confdefs.h >>conftest.$ac_ext |
| 21454 | cat >>conftest.$ac_ext <<_ACEOF |
| 21455 | /* end confdefs.h. */ |
| 21456 | #include <sys/types.h> |
| 21457 | #ifdef HAVE_SYS_PARAM_H |
| 21458 | # include <sys/param.h> |
| 21459 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21460 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21461 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21462 | #endif |
| 21463 | #ifdef HAVE_SYS_VFS_H |
| 21464 | # include <sys/vfs.h> |
| 21465 | #endif |
| 21466 | #ifdef HAVE_SYS_STATFS_H |
| 21467 | # include <sys/statfs.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21468 | #endif |
| 21469 | |
| 21470 | int |
| 21471 | main () |
| 21472 | { |
| 21473 | static struct statfs ac_aggr; |
| 21474 | if (ac_aggr.f_namelen) |
| 21475 | return 0; |
| 21476 | ; |
| 21477 | return 0; |
| 21478 | } |
| 21479 | _ACEOF |
| 21480 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21481 | if { (ac_try="$ac_compile" |
| 21482 | case "(($ac_try" in |
| 21483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21484 | *) ac_try_echo=$ac_try;; |
| 21485 | esac |
| 21486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21487 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21488 | ac_status=$? |
| 21489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21490 | rm -f conftest.er1 |
| 21491 | cat conftest.err >&5 |
| 21492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21493 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21495 | { (case "(($ac_try" in |
| 21496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21497 | *) ac_try_echo=$ac_try;; |
| 21498 | esac |
| 21499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21500 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21501 | ac_status=$? |
| 21502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21503 | (exit $ac_status); }; } && |
| 21504 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21505 | { (case "(($ac_try" in |
| 21506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21507 | *) ac_try_echo=$ac_try;; |
| 21508 | esac |
| 21509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21510 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21511 | ac_status=$? |
| 21512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21513 | (exit $ac_status); }; }; then |
| 21514 | ac_cv_member_struct_statfs_f_namelen=yes |
| 21515 | else |
| 21516 | echo "$as_me: failed program was:" >&5 |
| 21517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21518 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21519 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21520 | /* confdefs.h. */ |
| 21521 | _ACEOF |
| 21522 | cat confdefs.h >>conftest.$ac_ext |
| 21523 | cat >>conftest.$ac_ext <<_ACEOF |
| 21524 | /* end confdefs.h. */ |
| 21525 | #include <sys/types.h> |
| 21526 | #ifdef HAVE_SYS_PARAM_H |
| 21527 | # include <sys/param.h> |
| 21528 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21529 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21530 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21531 | #endif |
| 21532 | #ifdef HAVE_SYS_VFS_H |
| 21533 | # include <sys/vfs.h> |
| 21534 | #endif |
| 21535 | #ifdef HAVE_SYS_STATFS_H |
| 21536 | # include <sys/statfs.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21537 | #endif |
| 21538 | |
| 21539 | int |
| 21540 | main () |
| 21541 | { |
| 21542 | static struct statfs ac_aggr; |
| 21543 | if (sizeof ac_aggr.f_namelen) |
| 21544 | return 0; |
| 21545 | ; |
| 21546 | return 0; |
| 21547 | } |
| 21548 | _ACEOF |
| 21549 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21550 | if { (ac_try="$ac_compile" |
| 21551 | case "(($ac_try" in |
| 21552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21553 | *) ac_try_echo=$ac_try;; |
| 21554 | esac |
| 21555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21556 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21557 | ac_status=$? |
| 21558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21559 | rm -f conftest.er1 |
| 21560 | cat conftest.err >&5 |
| 21561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21562 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21564 | { (case "(($ac_try" in |
| 21565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21566 | *) ac_try_echo=$ac_try;; |
| 21567 | esac |
| 21568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21569 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21570 | ac_status=$? |
| 21571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21572 | (exit $ac_status); }; } && |
| 21573 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21574 | { (case "(($ac_try" in |
| 21575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21576 | *) ac_try_echo=$ac_try;; |
| 21577 | esac |
| 21578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21579 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21580 | ac_status=$? |
| 21581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21582 | (exit $ac_status); }; }; then |
| 21583 | ac_cv_member_struct_statfs_f_namelen=yes |
| 21584 | else |
| 21585 | echo "$as_me: failed program was:" >&5 |
| 21586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21587 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21588 | ac_cv_member_struct_statfs_f_namelen=no |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21589 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21590 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21592 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21593 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21595 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21596 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5 |
| 21597 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; } |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21598 | if test $ac_cv_member_struct_statfs_f_namelen = yes; then |
| 21599 | |
| 21600 | cat >>confdefs.h <<_ACEOF |
| 21601 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 |
| 21602 | _ACEOF |
| 21603 | |
| 21604 | |
| 21605 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21606 | |
| 21607 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21608 | { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5 |
| 21609 | echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21610 | if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then |
| 21611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21612 | else |
| 21613 | cat >conftest.$ac_ext <<_ACEOF |
| 21614 | /* confdefs.h. */ |
| 21615 | _ACEOF |
| 21616 | cat confdefs.h >>conftest.$ac_ext |
| 21617 | cat >>conftest.$ac_ext <<_ACEOF |
| 21618 | /* end confdefs.h. */ |
| 21619 | #ifdef HAVE_SYS_STATVFS_H |
| 21620 | #include <sys/statvfs.h> |
| 21621 | #endif |
| 21622 | |
| 21623 | int |
| 21624 | main () |
| 21625 | { |
| 21626 | static struct statvfs ac_aggr; |
| 21627 | if (ac_aggr.f_blocks) |
| 21628 | return 0; |
| 21629 | ; |
| 21630 | return 0; |
| 21631 | } |
| 21632 | _ACEOF |
| 21633 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21634 | if { (ac_try="$ac_compile" |
| 21635 | case "(($ac_try" in |
| 21636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21637 | *) ac_try_echo=$ac_try;; |
| 21638 | esac |
| 21639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21640 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21641 | ac_status=$? |
| 21642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21643 | rm -f conftest.er1 |
| 21644 | cat conftest.err >&5 |
| 21645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21646 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21647 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21648 | { (case "(($ac_try" in |
| 21649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21650 | *) ac_try_echo=$ac_try;; |
| 21651 | esac |
| 21652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21653 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21654 | ac_status=$? |
| 21655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21656 | (exit $ac_status); }; } && |
| 21657 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21658 | { (case "(($ac_try" in |
| 21659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21660 | *) ac_try_echo=$ac_try;; |
| 21661 | esac |
| 21662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21663 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21664 | ac_status=$? |
| 21665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21666 | (exit $ac_status); }; }; then |
| 21667 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 21668 | else |
| 21669 | echo "$as_me: failed program was:" >&5 |
| 21670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21671 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21672 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21673 | /* confdefs.h. */ |
| 21674 | _ACEOF |
| 21675 | cat confdefs.h >>conftest.$ac_ext |
| 21676 | cat >>conftest.$ac_ext <<_ACEOF |
| 21677 | /* end confdefs.h. */ |
| 21678 | #ifdef HAVE_SYS_STATVFS_H |
| 21679 | #include <sys/statvfs.h> |
| 21680 | #endif |
| 21681 | |
| 21682 | int |
| 21683 | main () |
| 21684 | { |
| 21685 | static struct statvfs ac_aggr; |
| 21686 | if (sizeof ac_aggr.f_blocks) |
| 21687 | return 0; |
| 21688 | ; |
| 21689 | return 0; |
| 21690 | } |
| 21691 | _ACEOF |
| 21692 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21693 | if { (ac_try="$ac_compile" |
| 21694 | case "(($ac_try" in |
| 21695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21696 | *) ac_try_echo=$ac_try;; |
| 21697 | esac |
| 21698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21699 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21700 | ac_status=$? |
| 21701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21702 | rm -f conftest.er1 |
| 21703 | cat conftest.err >&5 |
| 21704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21705 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21707 | { (case "(($ac_try" in |
| 21708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21709 | *) ac_try_echo=$ac_try;; |
| 21710 | esac |
| 21711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21712 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21713 | ac_status=$? |
| 21714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21715 | (exit $ac_status); }; } && |
| 21716 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21717 | { (case "(($ac_try" in |
| 21718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21719 | *) ac_try_echo=$ac_try;; |
| 21720 | esac |
| 21721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21722 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21723 | ac_status=$? |
| 21724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21725 | (exit $ac_status); }; }; then |
| 21726 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 21727 | else |
| 21728 | echo "$as_me: failed program was:" >&5 |
| 21729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21730 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21731 | ac_cv_member_struct_statvfs_f_blocks=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21732 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21733 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21735 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21736 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21738 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21739 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5 |
| 21740 | echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21741 | if test $ac_cv_member_struct_statvfs_f_blocks = yes; then |
| 21742 | |
| 21743 | cat >>confdefs.h <<_ACEOF |
| 21744 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 |
| 21745 | _ACEOF |
| 21746 | |
| 21747 | |
| 21748 | fi |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21749 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21750 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21751 | { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5 |
| 21752 | echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21753 | if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21755 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21756 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21757 | /* confdefs.h. */ |
| 21758 | _ACEOF |
| 21759 | cat confdefs.h >>conftest.$ac_ext |
| 21760 | cat >>conftest.$ac_ext <<_ACEOF |
| 21761 | /* end confdefs.h. */ |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21762 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 21763 | #ifdef HAVE_SYS_SOCKET_H |
| 21764 | # include <sys/socket.h> |
| 21765 | #endif |
| 21766 | #ifdef HAVE_SYS_UN_H |
| 21767 | # include <sys/un.h> |
| 21768 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21769 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21770 | int |
| 21771 | main () |
| 21772 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21773 | static struct msghdr ac_aggr; |
| 21774 | if (ac_aggr.msg_accrights) |
| 21775 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21776 | ; |
| 21777 | return 0; |
| 21778 | } |
| 21779 | _ACEOF |
| 21780 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21781 | if { (ac_try="$ac_compile" |
| 21782 | case "(($ac_try" in |
| 21783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21784 | *) ac_try_echo=$ac_try;; |
| 21785 | esac |
| 21786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21787 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21788 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21790 | rm -f conftest.er1 |
| 21791 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21793 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21794 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21795 | { (case "(($ac_try" in |
| 21796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21797 | *) ac_try_echo=$ac_try;; |
| 21798 | esac |
| 21799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21800 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21801 | ac_status=$? |
| 21802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21803 | (exit $ac_status); }; } && |
| 21804 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21805 | { (case "(($ac_try" in |
| 21806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21807 | *) ac_try_echo=$ac_try;; |
| 21808 | esac |
| 21809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21810 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21811 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21813 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21814 | ac_cv_member_struct_msghdr_msg_accrights=yes |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 21815 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21816 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21818 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21819 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21820 | /* confdefs.h. */ |
| 21821 | _ACEOF |
| 21822 | cat confdefs.h >>conftest.$ac_ext |
| 21823 | cat >>conftest.$ac_ext <<_ACEOF |
| 21824 | /* end confdefs.h. */ |
| 21825 | #include <sys/types.h> |
| 21826 | #ifdef HAVE_SYS_SOCKET_H |
| 21827 | # include <sys/socket.h> |
| 21828 | #endif |
| 21829 | #ifdef HAVE_SYS_UN_H |
| 21830 | # include <sys/un.h> |
| 21831 | #endif |
| 21832 | |
| 21833 | int |
| 21834 | main () |
| 21835 | { |
| 21836 | static struct msghdr ac_aggr; |
| 21837 | if (sizeof ac_aggr.msg_accrights) |
| 21838 | return 0; |
| 21839 | ; |
| 21840 | return 0; |
| 21841 | } |
| 21842 | _ACEOF |
| 21843 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21844 | if { (ac_try="$ac_compile" |
| 21845 | case "(($ac_try" in |
| 21846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21847 | *) ac_try_echo=$ac_try;; |
| 21848 | esac |
| 21849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21850 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21851 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21853 | rm -f conftest.er1 |
| 21854 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21856 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21858 | { (case "(($ac_try" in |
| 21859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21860 | *) ac_try_echo=$ac_try;; |
| 21861 | esac |
| 21862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21863 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21864 | ac_status=$? |
| 21865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21866 | (exit $ac_status); }; } && |
| 21867 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21868 | { (case "(($ac_try" in |
| 21869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21870 | *) ac_try_echo=$ac_try;; |
| 21871 | esac |
| 21872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21873 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21874 | ac_status=$? |
| 21875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21876 | (exit $ac_status); }; }; then |
| 21877 | ac_cv_member_struct_msghdr_msg_accrights=yes |
| 21878 | else |
| 21879 | echo "$as_me: failed program was:" >&5 |
| 21880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21881 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21882 | ac_cv_member_struct_msghdr_msg_accrights=no |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 21883 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21884 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 21886 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21887 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21889 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21890 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5 |
| 21891 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21892 | if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 21893 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21894 | cat >>confdefs.h <<_ACEOF |
| 21895 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21896 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 21897 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21898 | |
| 21899 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21900 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 21901 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21902 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
| 21903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21904 | else |
| 21905 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21906 | /* confdefs.h. */ |
| 21907 | _ACEOF |
| 21908 | cat confdefs.h >>conftest.$ac_ext |
| 21909 | cat >>conftest.$ac_ext <<_ACEOF |
| 21910 | /* end confdefs.h. */ |
| 21911 | #include <sys/types.h> |
| 21912 | #ifdef HAVE_SYS_SOCKET_H |
| 21913 | # include <sys/socket.h> |
| 21914 | #endif |
| 21915 | #ifdef HAVE_SYS_UN_H |
| 21916 | # include <sys/un.h> |
| 21917 | #endif |
| 21918 | |
| 21919 | int |
| 21920 | main () |
| 21921 | { |
| 21922 | static struct sockaddr ac_aggr; |
| 21923 | if (ac_aggr.sa_len) |
| 21924 | return 0; |
| 21925 | ; |
| 21926 | return 0; |
| 21927 | } |
| 21928 | _ACEOF |
| 21929 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21930 | if { (ac_try="$ac_compile" |
| 21931 | case "(($ac_try" in |
| 21932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21933 | *) ac_try_echo=$ac_try;; |
| 21934 | esac |
| 21935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21936 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21937 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21939 | rm -f conftest.er1 |
| 21940 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21942 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21943 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21944 | { (case "(($ac_try" in |
| 21945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21946 | *) ac_try_echo=$ac_try;; |
| 21947 | esac |
| 21948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21949 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21950 | ac_status=$? |
| 21951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21952 | (exit $ac_status); }; } && |
| 21953 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21954 | { (case "(($ac_try" in |
| 21955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21956 | *) ac_try_echo=$ac_try;; |
| 21957 | esac |
| 21958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21959 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21960 | ac_status=$? |
| 21961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21962 | (exit $ac_status); }; }; then |
| 21963 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 21964 | else |
| 21965 | echo "$as_me: failed program was:" >&5 |
| 21966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21967 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21968 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21969 | /* confdefs.h. */ |
| 21970 | _ACEOF |
| 21971 | cat confdefs.h >>conftest.$ac_ext |
| 21972 | cat >>conftest.$ac_ext <<_ACEOF |
| 21973 | /* end confdefs.h. */ |
| 21974 | #include <sys/types.h> |
| 21975 | #ifdef HAVE_SYS_SOCKET_H |
| 21976 | # include <sys/socket.h> |
| 21977 | #endif |
| 21978 | #ifdef HAVE_SYS_UN_H |
| 21979 | # include <sys/un.h> |
| 21980 | #endif |
| 21981 | |
| 21982 | int |
| 21983 | main () |
| 21984 | { |
| 21985 | static struct sockaddr ac_aggr; |
| 21986 | if (sizeof ac_aggr.sa_len) |
| 21987 | return 0; |
| 21988 | ; |
| 21989 | return 0; |
| 21990 | } |
| 21991 | _ACEOF |
| 21992 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21993 | if { (ac_try="$ac_compile" |
| 21994 | case "(($ac_try" in |
| 21995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21996 | *) ac_try_echo=$ac_try;; |
| 21997 | esac |
| 21998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21999 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22000 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22002 | rm -f conftest.er1 |
| 22003 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22005 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22007 | { (case "(($ac_try" in |
| 22008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22009 | *) ac_try_echo=$ac_try;; |
| 22010 | esac |
| 22011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22012 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22013 | ac_status=$? |
| 22014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22015 | (exit $ac_status); }; } && |
| 22016 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22017 | { (case "(($ac_try" in |
| 22018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22019 | *) ac_try_echo=$ac_try;; |
| 22020 | esac |
| 22021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22022 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22023 | ac_status=$? |
| 22024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22025 | (exit $ac_status); }; }; then |
| 22026 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 22027 | else |
| 22028 | echo "$as_me: failed program was:" >&5 |
| 22029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22030 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22031 | ac_cv_member_struct_sockaddr_sa_len=no |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22032 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22033 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22035 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22036 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22038 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22039 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 22040 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22041 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
| 22042 | |
| 22043 | cat >>confdefs.h <<_ACEOF |
| 22044 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 22045 | _ACEOF |
| 22046 | |
| 22047 | |
| 22048 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22049 | { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5 |
| 22050 | 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] | 22051 | if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then |
| 22052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22053 | else |
| 22054 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22055 | /* confdefs.h. */ |
| 22056 | _ACEOF |
| 22057 | cat confdefs.h >>conftest.$ac_ext |
| 22058 | cat >>conftest.$ac_ext <<_ACEOF |
| 22059 | /* end confdefs.h. */ |
| 22060 | #include <sys/types.h> |
| 22061 | #ifdef HAVE_SYS_SOCKET_H |
| 22062 | # include <sys/socket.h> |
| 22063 | #endif |
| 22064 | #ifdef HAVE_SYS_UN_H |
| 22065 | # include <sys/un.h> |
| 22066 | #endif |
| 22067 | |
| 22068 | int |
| 22069 | main () |
| 22070 | { |
| 22071 | static struct sockaddr_un ac_aggr; |
| 22072 | if (ac_aggr.sun_len) |
| 22073 | return 0; |
| 22074 | ; |
| 22075 | return 0; |
| 22076 | } |
| 22077 | _ACEOF |
| 22078 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22079 | if { (ac_try="$ac_compile" |
| 22080 | case "(($ac_try" in |
| 22081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22082 | *) ac_try_echo=$ac_try;; |
| 22083 | esac |
| 22084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22085 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22086 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22088 | rm -f conftest.er1 |
| 22089 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22091 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22092 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22093 | { (case "(($ac_try" in |
| 22094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22095 | *) ac_try_echo=$ac_try;; |
| 22096 | esac |
| 22097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22098 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22099 | ac_status=$? |
| 22100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22101 | (exit $ac_status); }; } && |
| 22102 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22103 | { (case "(($ac_try" in |
| 22104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22105 | *) ac_try_echo=$ac_try;; |
| 22106 | esac |
| 22107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22108 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22109 | ac_status=$? |
| 22110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22111 | (exit $ac_status); }; }; then |
| 22112 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 22113 | else |
| 22114 | echo "$as_me: failed program was:" >&5 |
| 22115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22116 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22117 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22118 | /* confdefs.h. */ |
| 22119 | _ACEOF |
| 22120 | cat confdefs.h >>conftest.$ac_ext |
| 22121 | cat >>conftest.$ac_ext <<_ACEOF |
| 22122 | /* end confdefs.h. */ |
| 22123 | #include <sys/types.h> |
| 22124 | #ifdef HAVE_SYS_SOCKET_H |
| 22125 | # include <sys/socket.h> |
| 22126 | #endif |
| 22127 | #ifdef HAVE_SYS_UN_H |
| 22128 | # include <sys/un.h> |
| 22129 | #endif |
| 22130 | |
| 22131 | int |
| 22132 | main () |
| 22133 | { |
| 22134 | static struct sockaddr_un ac_aggr; |
| 22135 | if (sizeof ac_aggr.sun_len) |
| 22136 | return 0; |
| 22137 | ; |
| 22138 | return 0; |
| 22139 | } |
| 22140 | _ACEOF |
| 22141 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22142 | if { (ac_try="$ac_compile" |
| 22143 | case "(($ac_try" in |
| 22144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22145 | *) ac_try_echo=$ac_try;; |
| 22146 | esac |
| 22147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22148 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22149 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22151 | rm -f conftest.er1 |
| 22152 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22154 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22156 | { (case "(($ac_try" in |
| 22157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22158 | *) ac_try_echo=$ac_try;; |
| 22159 | esac |
| 22160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22161 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22162 | ac_status=$? |
| 22163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22164 | (exit $ac_status); }; } && |
| 22165 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22166 | { (case "(($ac_try" in |
| 22167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22168 | *) ac_try_echo=$ac_try;; |
| 22169 | esac |
| 22170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22171 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22172 | ac_status=$? |
| 22173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22174 | (exit $ac_status); }; }; then |
| 22175 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 22176 | else |
| 22177 | echo "$as_me: failed program was:" >&5 |
| 22178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22179 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22180 | ac_cv_member_struct_sockaddr_un_sun_len=no |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22181 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22182 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22184 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22185 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22187 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22188 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5 |
| 22189 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22190 | if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then |
| 22191 | |
| 22192 | cat >>confdefs.h <<_ACEOF |
| 22193 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 22194 | _ACEOF |
| 22195 | |
| 22196 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22197 | fi |
| 22198 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22199 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22200 | { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5 |
| 22201 | echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; } |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22202 | if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then |
| 22203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22204 | else |
| 22205 | cat >conftest.$ac_ext <<_ACEOF |
| 22206 | /* confdefs.h. */ |
| 22207 | _ACEOF |
| 22208 | cat confdefs.h >>conftest.$ac_ext |
| 22209 | cat >>conftest.$ac_ext <<_ACEOF |
| 22210 | /* end confdefs.h. */ |
| 22211 | #include <sys/types.h> |
| 22212 | #ifdef HAVE_SCSI_SG_H |
| 22213 | #include <scsi/sg.h> |
| 22214 | #endif |
| 22215 | |
| 22216 | int |
| 22217 | main () |
| 22218 | { |
| 22219 | static scsireq_t ac_aggr; |
| 22220 | if (ac_aggr.cmd) |
| 22221 | return 0; |
| 22222 | ; |
| 22223 | return 0; |
| 22224 | } |
| 22225 | _ACEOF |
| 22226 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22227 | if { (ac_try="$ac_compile" |
| 22228 | case "(($ac_try" in |
| 22229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22230 | *) ac_try_echo=$ac_try;; |
| 22231 | esac |
| 22232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22233 | (eval "$ac_compile") 2>conftest.er1 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22234 | ac_status=$? |
| 22235 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22236 | rm -f conftest.er1 |
| 22237 | cat conftest.err >&5 |
| 22238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22239 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22241 | { (case "(($ac_try" in |
| 22242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22243 | *) ac_try_echo=$ac_try;; |
| 22244 | esac |
| 22245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22246 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22247 | ac_status=$? |
| 22248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22249 | (exit $ac_status); }; } && |
| 22250 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22251 | { (case "(($ac_try" in |
| 22252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22253 | *) ac_try_echo=$ac_try;; |
| 22254 | esac |
| 22255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22256 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22257 | ac_status=$? |
| 22258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22259 | (exit $ac_status); }; }; then |
| 22260 | ac_cv_member_scsireq_t_cmd=yes |
| 22261 | else |
| 22262 | echo "$as_me: failed program was:" >&5 |
| 22263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22264 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22265 | cat >conftest.$ac_ext <<_ACEOF |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22266 | /* confdefs.h. */ |
| 22267 | _ACEOF |
| 22268 | cat confdefs.h >>conftest.$ac_ext |
| 22269 | cat >>conftest.$ac_ext <<_ACEOF |
| 22270 | /* end confdefs.h. */ |
| 22271 | #include <sys/types.h> |
| 22272 | #ifdef HAVE_SCSI_SG_H |
| 22273 | #include <scsi/sg.h> |
| 22274 | #endif |
| 22275 | |
| 22276 | int |
| 22277 | main () |
| 22278 | { |
| 22279 | static scsireq_t ac_aggr; |
| 22280 | if (sizeof ac_aggr.cmd) |
| 22281 | return 0; |
| 22282 | ; |
| 22283 | return 0; |
| 22284 | } |
| 22285 | _ACEOF |
| 22286 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22287 | if { (ac_try="$ac_compile" |
| 22288 | case "(($ac_try" in |
| 22289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22290 | *) ac_try_echo=$ac_try;; |
| 22291 | esac |
| 22292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22293 | (eval "$ac_compile") 2>conftest.er1 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22294 | ac_status=$? |
| 22295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22296 | rm -f conftest.er1 |
| 22297 | cat conftest.err >&5 |
| 22298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22299 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22300 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22301 | { (case "(($ac_try" in |
| 22302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22303 | *) ac_try_echo=$ac_try;; |
| 22304 | esac |
| 22305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22306 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22307 | ac_status=$? |
| 22308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22309 | (exit $ac_status); }; } && |
| 22310 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22311 | { (case "(($ac_try" in |
| 22312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22313 | *) ac_try_echo=$ac_try;; |
| 22314 | esac |
| 22315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22316 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22317 | ac_status=$? |
| 22318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22319 | (exit $ac_status); }; }; then |
| 22320 | ac_cv_member_scsireq_t_cmd=yes |
| 22321 | else |
| 22322 | echo "$as_me: failed program was:" >&5 |
| 22323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22324 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22325 | ac_cv_member_scsireq_t_cmd=no |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22326 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22327 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22329 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22330 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22332 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22333 | { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5 |
| 22334 | echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; } |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22335 | if test $ac_cv_member_scsireq_t_cmd = yes; then |
| 22336 | |
| 22337 | cat >>confdefs.h <<_ACEOF |
| 22338 | #define HAVE_SCSIREQ_T_CMD 1 |
| 22339 | _ACEOF |
| 22340 | |
| 22341 | |
| 22342 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22343 | { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5 |
| 22344 | 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] | 22345 | if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then |
| 22346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22347 | else |
| 22348 | cat >conftest.$ac_ext <<_ACEOF |
| 22349 | /* confdefs.h. */ |
| 22350 | _ACEOF |
| 22351 | cat confdefs.h >>conftest.$ac_ext |
| 22352 | cat >>conftest.$ac_ext <<_ACEOF |
| 22353 | /* end confdefs.h. */ |
| 22354 | #include <sys/types.h> |
| 22355 | #ifdef HAVE_SCSI_SG_H |
| 22356 | #include <scsi/sg.h> |
| 22357 | #endif |
| 22358 | |
| 22359 | int |
| 22360 | main () |
| 22361 | { |
| 22362 | static sg_io_hdr_t ac_aggr; |
| 22363 | if (ac_aggr.interface_id) |
| 22364 | return 0; |
| 22365 | ; |
| 22366 | return 0; |
| 22367 | } |
| 22368 | _ACEOF |
| 22369 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22370 | if { (ac_try="$ac_compile" |
| 22371 | case "(($ac_try" in |
| 22372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22373 | *) ac_try_echo=$ac_try;; |
| 22374 | esac |
| 22375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22376 | (eval "$ac_compile") 2>conftest.er1 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22377 | ac_status=$? |
| 22378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22379 | rm -f conftest.er1 |
| 22380 | cat conftest.err >&5 |
| 22381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22382 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22383 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22384 | { (case "(($ac_try" in |
| 22385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22386 | *) ac_try_echo=$ac_try;; |
| 22387 | esac |
| 22388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22389 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22390 | ac_status=$? |
| 22391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22392 | (exit $ac_status); }; } && |
| 22393 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22394 | { (case "(($ac_try" in |
| 22395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22396 | *) ac_try_echo=$ac_try;; |
| 22397 | esac |
| 22398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22399 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22400 | ac_status=$? |
| 22401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22402 | (exit $ac_status); }; }; then |
| 22403 | ac_cv_member_sg_io_hdr_t_interface_id=yes |
| 22404 | else |
| 22405 | echo "$as_me: failed program was:" >&5 |
| 22406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22407 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22408 | cat >conftest.$ac_ext <<_ACEOF |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22409 | /* confdefs.h. */ |
| 22410 | _ACEOF |
| 22411 | cat confdefs.h >>conftest.$ac_ext |
| 22412 | cat >>conftest.$ac_ext <<_ACEOF |
| 22413 | /* end confdefs.h. */ |
| 22414 | #include <sys/types.h> |
| 22415 | #ifdef HAVE_SCSI_SG_H |
| 22416 | #include <scsi/sg.h> |
| 22417 | #endif |
| 22418 | |
| 22419 | int |
| 22420 | main () |
| 22421 | { |
| 22422 | static sg_io_hdr_t ac_aggr; |
| 22423 | if (sizeof ac_aggr.interface_id) |
| 22424 | return 0; |
| 22425 | ; |
| 22426 | return 0; |
| 22427 | } |
| 22428 | _ACEOF |
| 22429 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22430 | if { (ac_try="$ac_compile" |
| 22431 | case "(($ac_try" in |
| 22432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22433 | *) ac_try_echo=$ac_try;; |
| 22434 | esac |
| 22435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22436 | (eval "$ac_compile") 2>conftest.er1 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22437 | ac_status=$? |
| 22438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22439 | rm -f conftest.er1 |
| 22440 | cat conftest.err >&5 |
| 22441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22442 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22443 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22444 | { (case "(($ac_try" in |
| 22445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22446 | *) ac_try_echo=$ac_try;; |
| 22447 | esac |
| 22448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22449 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22450 | ac_status=$? |
| 22451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22452 | (exit $ac_status); }; } && |
| 22453 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22454 | { (case "(($ac_try" in |
| 22455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22456 | *) ac_try_echo=$ac_try;; |
| 22457 | esac |
| 22458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22459 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22460 | ac_status=$? |
| 22461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22462 | (exit $ac_status); }; }; then |
| 22463 | ac_cv_member_sg_io_hdr_t_interface_id=yes |
| 22464 | else |
| 22465 | echo "$as_me: failed program was:" >&5 |
| 22466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22467 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22468 | ac_cv_member_sg_io_hdr_t_interface_id=no |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22469 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22470 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22472 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22473 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22475 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22476 | { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5 |
| 22477 | 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] | 22478 | if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then |
| 22479 | |
| 22480 | cat >>confdefs.h <<_ACEOF |
| 22481 | #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1 |
| 22482 | _ACEOF |
| 22483 | |
| 22484 | |
| 22485 | fi |
| 22486 | |
| 22487 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22488 | { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5 |
| 22489 | echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22490 | if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then |
| 22491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22492 | else |
| 22493 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22494 | /* confdefs.h. */ |
| 22495 | _ACEOF |
| 22496 | cat confdefs.h >>conftest.$ac_ext |
| 22497 | cat >>conftest.$ac_ext <<_ACEOF |
| 22498 | /* end confdefs.h. */ |
| 22499 | #include <signal.h> |
| 22500 | |
| 22501 | int |
| 22502 | main () |
| 22503 | { |
| 22504 | static siginfo_t ac_aggr; |
| 22505 | if (ac_aggr.si_fd) |
| 22506 | return 0; |
| 22507 | ; |
| 22508 | return 0; |
| 22509 | } |
| 22510 | _ACEOF |
| 22511 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22512 | if { (ac_try="$ac_compile" |
| 22513 | case "(($ac_try" in |
| 22514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22515 | *) ac_try_echo=$ac_try;; |
| 22516 | esac |
| 22517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22518 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22519 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22521 | rm -f conftest.er1 |
| 22522 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22524 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22526 | { (case "(($ac_try" in |
| 22527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22528 | *) ac_try_echo=$ac_try;; |
| 22529 | esac |
| 22530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22531 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22532 | ac_status=$? |
| 22533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22534 | (exit $ac_status); }; } && |
| 22535 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22536 | { (case "(($ac_try" in |
| 22537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22538 | *) ac_try_echo=$ac_try;; |
| 22539 | esac |
| 22540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22541 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22542 | ac_status=$? |
| 22543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22544 | (exit $ac_status); }; }; then |
| 22545 | ac_cv_member_siginfo_t_si_fd=yes |
| 22546 | else |
| 22547 | echo "$as_me: failed program was:" >&5 |
| 22548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22549 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22550 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22551 | /* confdefs.h. */ |
| 22552 | _ACEOF |
| 22553 | cat confdefs.h >>conftest.$ac_ext |
| 22554 | cat >>conftest.$ac_ext <<_ACEOF |
| 22555 | /* end confdefs.h. */ |
| 22556 | #include <signal.h> |
| 22557 | |
| 22558 | int |
| 22559 | main () |
| 22560 | { |
| 22561 | static siginfo_t ac_aggr; |
| 22562 | if (sizeof ac_aggr.si_fd) |
| 22563 | return 0; |
| 22564 | ; |
| 22565 | return 0; |
| 22566 | } |
| 22567 | _ACEOF |
| 22568 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22569 | if { (ac_try="$ac_compile" |
| 22570 | case "(($ac_try" in |
| 22571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22572 | *) ac_try_echo=$ac_try;; |
| 22573 | esac |
| 22574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22575 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22576 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22578 | rm -f conftest.er1 |
| 22579 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22581 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22583 | { (case "(($ac_try" in |
| 22584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22585 | *) ac_try_echo=$ac_try;; |
| 22586 | esac |
| 22587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22588 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22589 | ac_status=$? |
| 22590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22591 | (exit $ac_status); }; } && |
| 22592 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22593 | { (case "(($ac_try" in |
| 22594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22595 | *) ac_try_echo=$ac_try;; |
| 22596 | esac |
| 22597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22598 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22599 | ac_status=$? |
| 22600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22601 | (exit $ac_status); }; }; then |
| 22602 | ac_cv_member_siginfo_t_si_fd=yes |
| 22603 | else |
| 22604 | echo "$as_me: failed program was:" >&5 |
| 22605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22606 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22607 | ac_cv_member_siginfo_t_si_fd=no |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22608 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22609 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22611 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22612 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22614 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22615 | { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5 |
| 22616 | echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22617 | if test $ac_cv_member_siginfo_t_si_fd = yes; then |
| 22618 | |
| 22619 | cat >>confdefs.h <<_ACEOF |
| 22620 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 22621 | _ACEOF |
| 22622 | |
| 22623 | |
| 22624 | fi |
| 22625 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22626 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22627 | { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5 |
| 22628 | echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22629 | if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then |
| 22630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22631 | else |
| 22632 | cat >conftest.$ac_ext <<_ACEOF |
| 22633 | /* confdefs.h. */ |
| 22634 | _ACEOF |
| 22635 | cat confdefs.h >>conftest.$ac_ext |
| 22636 | cat >>conftest.$ac_ext <<_ACEOF |
| 22637 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 22638 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22639 | #ifdef HAVE_SYS_MTIO_H |
| 22640 | #include <sys/mtio.h> |
| 22641 | #endif |
| 22642 | |
| 22643 | int |
| 22644 | main () |
| 22645 | { |
| 22646 | static struct mtget ac_aggr; |
| 22647 | if (ac_aggr.mt_blksiz) |
| 22648 | return 0; |
| 22649 | ; |
| 22650 | return 0; |
| 22651 | } |
| 22652 | _ACEOF |
| 22653 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22654 | if { (ac_try="$ac_compile" |
| 22655 | case "(($ac_try" in |
| 22656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22657 | *) ac_try_echo=$ac_try;; |
| 22658 | esac |
| 22659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22660 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22661 | ac_status=$? |
| 22662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22663 | rm -f conftest.er1 |
| 22664 | cat conftest.err >&5 |
| 22665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22666 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22667 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22668 | { (case "(($ac_try" in |
| 22669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22670 | *) ac_try_echo=$ac_try;; |
| 22671 | esac |
| 22672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22673 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22674 | ac_status=$? |
| 22675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22676 | (exit $ac_status); }; } && |
| 22677 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22678 | { (case "(($ac_try" in |
| 22679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22680 | *) ac_try_echo=$ac_try;; |
| 22681 | esac |
| 22682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22683 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22684 | ac_status=$? |
| 22685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22686 | (exit $ac_status); }; }; then |
| 22687 | ac_cv_member_struct_mtget_mt_blksiz=yes |
| 22688 | else |
| 22689 | echo "$as_me: failed program was:" >&5 |
| 22690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22691 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22692 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22693 | /* confdefs.h. */ |
| 22694 | _ACEOF |
| 22695 | cat confdefs.h >>conftest.$ac_ext |
| 22696 | cat >>conftest.$ac_ext <<_ACEOF |
| 22697 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 22698 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22699 | #ifdef HAVE_SYS_MTIO_H |
| 22700 | #include <sys/mtio.h> |
| 22701 | #endif |
| 22702 | |
| 22703 | int |
| 22704 | main () |
| 22705 | { |
| 22706 | static struct mtget ac_aggr; |
| 22707 | if (sizeof ac_aggr.mt_blksiz) |
| 22708 | return 0; |
| 22709 | ; |
| 22710 | return 0; |
| 22711 | } |
| 22712 | _ACEOF |
| 22713 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22714 | if { (ac_try="$ac_compile" |
| 22715 | case "(($ac_try" in |
| 22716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22717 | *) ac_try_echo=$ac_try;; |
| 22718 | esac |
| 22719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22720 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22721 | ac_status=$? |
| 22722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22723 | rm -f conftest.er1 |
| 22724 | cat conftest.err >&5 |
| 22725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22726 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22728 | { (case "(($ac_try" in |
| 22729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22730 | *) ac_try_echo=$ac_try;; |
| 22731 | esac |
| 22732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22733 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22734 | ac_status=$? |
| 22735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22736 | (exit $ac_status); }; } && |
| 22737 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22738 | { (case "(($ac_try" in |
| 22739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22740 | *) ac_try_echo=$ac_try;; |
| 22741 | esac |
| 22742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22743 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22744 | ac_status=$? |
| 22745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22746 | (exit $ac_status); }; }; then |
| 22747 | ac_cv_member_struct_mtget_mt_blksiz=yes |
| 22748 | else |
| 22749 | echo "$as_me: failed program was:" >&5 |
| 22750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22751 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22752 | ac_cv_member_struct_mtget_mt_blksiz=no |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22753 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22754 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22756 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22757 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22759 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22760 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5 |
| 22761 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22762 | if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then |
| 22763 | |
| 22764 | cat >>confdefs.h <<_ACEOF |
| 22765 | #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1 |
| 22766 | _ACEOF |
| 22767 | |
| 22768 | |
| 22769 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22770 | { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5 |
| 22771 | echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22772 | if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then |
| 22773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22774 | else |
| 22775 | cat >conftest.$ac_ext <<_ACEOF |
| 22776 | /* confdefs.h. */ |
| 22777 | _ACEOF |
| 22778 | cat confdefs.h >>conftest.$ac_ext |
| 22779 | cat >>conftest.$ac_ext <<_ACEOF |
| 22780 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 22781 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22782 | #ifdef HAVE_SYS_MTIO_H |
| 22783 | #include <sys/mtio.h> |
| 22784 | #endif |
| 22785 | |
| 22786 | int |
| 22787 | main () |
| 22788 | { |
| 22789 | static struct mtget ac_aggr; |
| 22790 | if (ac_aggr.mt_gstat) |
| 22791 | return 0; |
| 22792 | ; |
| 22793 | return 0; |
| 22794 | } |
| 22795 | _ACEOF |
| 22796 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22797 | if { (ac_try="$ac_compile" |
| 22798 | case "(($ac_try" in |
| 22799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22800 | *) ac_try_echo=$ac_try;; |
| 22801 | esac |
| 22802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22803 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22804 | ac_status=$? |
| 22805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22806 | rm -f conftest.er1 |
| 22807 | cat conftest.err >&5 |
| 22808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22809 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22811 | { (case "(($ac_try" in |
| 22812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22813 | *) ac_try_echo=$ac_try;; |
| 22814 | esac |
| 22815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22816 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22817 | ac_status=$? |
| 22818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22819 | (exit $ac_status); }; } && |
| 22820 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22821 | { (case "(($ac_try" in |
| 22822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22823 | *) ac_try_echo=$ac_try;; |
| 22824 | esac |
| 22825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22826 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22827 | ac_status=$? |
| 22828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22829 | (exit $ac_status); }; }; then |
| 22830 | ac_cv_member_struct_mtget_mt_gstat=yes |
| 22831 | else |
| 22832 | echo "$as_me: failed program was:" >&5 |
| 22833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22834 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22835 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22836 | /* confdefs.h. */ |
| 22837 | _ACEOF |
| 22838 | cat confdefs.h >>conftest.$ac_ext |
| 22839 | cat >>conftest.$ac_ext <<_ACEOF |
| 22840 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 22841 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22842 | #ifdef HAVE_SYS_MTIO_H |
| 22843 | #include <sys/mtio.h> |
| 22844 | #endif |
| 22845 | |
| 22846 | int |
| 22847 | main () |
| 22848 | { |
| 22849 | static struct mtget ac_aggr; |
| 22850 | if (sizeof ac_aggr.mt_gstat) |
| 22851 | return 0; |
| 22852 | ; |
| 22853 | return 0; |
| 22854 | } |
| 22855 | _ACEOF |
| 22856 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22857 | if { (ac_try="$ac_compile" |
| 22858 | case "(($ac_try" in |
| 22859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22860 | *) ac_try_echo=$ac_try;; |
| 22861 | esac |
| 22862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22863 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22864 | ac_status=$? |
| 22865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22866 | rm -f conftest.er1 |
| 22867 | cat conftest.err >&5 |
| 22868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22869 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22871 | { (case "(($ac_try" in |
| 22872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22873 | *) ac_try_echo=$ac_try;; |
| 22874 | esac |
| 22875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22876 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22877 | ac_status=$? |
| 22878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22879 | (exit $ac_status); }; } && |
| 22880 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22881 | { (case "(($ac_try" in |
| 22882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22883 | *) ac_try_echo=$ac_try;; |
| 22884 | esac |
| 22885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22886 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22887 | ac_status=$? |
| 22888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22889 | (exit $ac_status); }; }; then |
| 22890 | ac_cv_member_struct_mtget_mt_gstat=yes |
| 22891 | else |
| 22892 | echo "$as_me: failed program was:" >&5 |
| 22893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22894 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22895 | ac_cv_member_struct_mtget_mt_gstat=no |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22896 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22897 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22899 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22900 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22902 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22903 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5 |
| 22904 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22905 | if test $ac_cv_member_struct_mtget_mt_gstat = yes; then |
| 22906 | |
| 22907 | cat >>confdefs.h <<_ACEOF |
| 22908 | #define HAVE_STRUCT_MTGET_MT_GSTAT 1 |
| 22909 | _ACEOF |
| 22910 | |
| 22911 | |
| 22912 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22913 | { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5 |
| 22914 | echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; } |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 22915 | if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then |
| 22916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22917 | else |
| 22918 | cat >conftest.$ac_ext <<_ACEOF |
| 22919 | /* confdefs.h. */ |
| 22920 | _ACEOF |
| 22921 | cat confdefs.h >>conftest.$ac_ext |
| 22922 | cat >>conftest.$ac_ext <<_ACEOF |
| 22923 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 22924 | #include <sys/types.h> |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 22925 | #ifdef HAVE_SYS_MTIO_H |
| 22926 | #include <sys/mtio.h> |
| 22927 | #endif |
| 22928 | |
| 22929 | int |
| 22930 | main () |
| 22931 | { |
| 22932 | static struct mtget ac_aggr; |
| 22933 | if (ac_aggr.mt_blkno) |
| 22934 | return 0; |
| 22935 | ; |
| 22936 | return 0; |
| 22937 | } |
| 22938 | _ACEOF |
| 22939 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22940 | if { (ac_try="$ac_compile" |
| 22941 | case "(($ac_try" in |
| 22942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22943 | *) ac_try_echo=$ac_try;; |
| 22944 | esac |
| 22945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22946 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 22947 | ac_status=$? |
| 22948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22949 | rm -f conftest.er1 |
| 22950 | cat conftest.err >&5 |
| 22951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22952 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22953 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22954 | { (case "(($ac_try" in |
| 22955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22956 | *) ac_try_echo=$ac_try;; |
| 22957 | esac |
| 22958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22959 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 22960 | ac_status=$? |
| 22961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22962 | (exit $ac_status); }; } && |
| 22963 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22964 | { (case "(($ac_try" in |
| 22965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22966 | *) ac_try_echo=$ac_try;; |
| 22967 | esac |
| 22968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22969 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 22970 | ac_status=$? |
| 22971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22972 | (exit $ac_status); }; }; then |
| 22973 | ac_cv_member_struct_mtget_mt_blkno=yes |
| 22974 | else |
| 22975 | echo "$as_me: failed program was:" >&5 |
| 22976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22977 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22978 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 22979 | /* confdefs.h. */ |
| 22980 | _ACEOF |
| 22981 | cat confdefs.h >>conftest.$ac_ext |
| 22982 | cat >>conftest.$ac_ext <<_ACEOF |
| 22983 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 22984 | #include <sys/types.h> |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 22985 | #ifdef HAVE_SYS_MTIO_H |
| 22986 | #include <sys/mtio.h> |
| 22987 | #endif |
| 22988 | |
| 22989 | int |
| 22990 | main () |
| 22991 | { |
| 22992 | static struct mtget ac_aggr; |
| 22993 | if (sizeof ac_aggr.mt_blkno) |
| 22994 | return 0; |
| 22995 | ; |
| 22996 | return 0; |
| 22997 | } |
| 22998 | _ACEOF |
| 22999 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23000 | if { (ac_try="$ac_compile" |
| 23001 | case "(($ac_try" in |
| 23002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23003 | *) ac_try_echo=$ac_try;; |
| 23004 | esac |
| 23005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23006 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23007 | ac_status=$? |
| 23008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23009 | rm -f conftest.er1 |
| 23010 | cat conftest.err >&5 |
| 23011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23012 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23014 | { (case "(($ac_try" in |
| 23015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23016 | *) ac_try_echo=$ac_try;; |
| 23017 | esac |
| 23018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23019 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23020 | ac_status=$? |
| 23021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23022 | (exit $ac_status); }; } && |
| 23023 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23024 | { (case "(($ac_try" in |
| 23025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23026 | *) ac_try_echo=$ac_try;; |
| 23027 | esac |
| 23028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23029 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23030 | ac_status=$? |
| 23031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23032 | (exit $ac_status); }; }; then |
| 23033 | ac_cv_member_struct_mtget_mt_blkno=yes |
| 23034 | else |
| 23035 | echo "$as_me: failed program was:" >&5 |
| 23036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23037 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23038 | ac_cv_member_struct_mtget_mt_blkno=no |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23039 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23040 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23042 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23043 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23045 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23046 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5 |
| 23047 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; } |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23048 | if test $ac_cv_member_struct_mtget_mt_blkno = yes; then |
| 23049 | |
| 23050 | cat >>confdefs.h <<_ACEOF |
| 23051 | #define HAVE_STRUCT_MTGET_MT_BLKNO 1 |
| 23052 | _ACEOF |
| 23053 | |
| 23054 | |
| 23055 | fi |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23056 | |
| 23057 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23058 | { echo "$as_me:$LINENO: checking for struct option.name" >&5 |
| 23059 | echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; } |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23060 | if test "${ac_cv_member_struct_option_name+set}" = set; then |
| 23061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23062 | else |
| 23063 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23064 | /* confdefs.h. */ |
| 23065 | _ACEOF |
| 23066 | cat confdefs.h >>conftest.$ac_ext |
| 23067 | cat >>conftest.$ac_ext <<_ACEOF |
| 23068 | /* end confdefs.h. */ |
| 23069 | #ifdef HAVE_GETOPT_H |
| 23070 | #include <getopt.h> |
| 23071 | #endif |
| 23072 | |
| 23073 | int |
| 23074 | main () |
| 23075 | { |
| 23076 | static struct option ac_aggr; |
| 23077 | if (ac_aggr.name) |
| 23078 | return 0; |
| 23079 | ; |
| 23080 | return 0; |
| 23081 | } |
| 23082 | _ACEOF |
| 23083 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23084 | if { (ac_try="$ac_compile" |
| 23085 | case "(($ac_try" in |
| 23086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23087 | *) ac_try_echo=$ac_try;; |
| 23088 | esac |
| 23089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23090 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23091 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23093 | rm -f conftest.er1 |
| 23094 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23096 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23097 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23098 | { (case "(($ac_try" in |
| 23099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23100 | *) ac_try_echo=$ac_try;; |
| 23101 | esac |
| 23102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23103 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23104 | ac_status=$? |
| 23105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23106 | (exit $ac_status); }; } && |
| 23107 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23108 | { (case "(($ac_try" in |
| 23109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23110 | *) ac_try_echo=$ac_try;; |
| 23111 | esac |
| 23112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23113 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23114 | ac_status=$? |
| 23115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23116 | (exit $ac_status); }; }; then |
| 23117 | ac_cv_member_struct_option_name=yes |
| 23118 | else |
| 23119 | echo "$as_me: failed program was:" >&5 |
| 23120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23121 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23122 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23123 | /* confdefs.h. */ |
| 23124 | _ACEOF |
| 23125 | cat confdefs.h >>conftest.$ac_ext |
| 23126 | cat >>conftest.$ac_ext <<_ACEOF |
| 23127 | /* end confdefs.h. */ |
| 23128 | #ifdef HAVE_GETOPT_H |
| 23129 | #include <getopt.h> |
| 23130 | #endif |
| 23131 | |
| 23132 | int |
| 23133 | main () |
| 23134 | { |
| 23135 | static struct option ac_aggr; |
| 23136 | if (sizeof ac_aggr.name) |
| 23137 | return 0; |
| 23138 | ; |
| 23139 | return 0; |
| 23140 | } |
| 23141 | _ACEOF |
| 23142 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23143 | if { (ac_try="$ac_compile" |
| 23144 | case "(($ac_try" in |
| 23145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23146 | *) ac_try_echo=$ac_try;; |
| 23147 | esac |
| 23148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23149 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23150 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23152 | rm -f conftest.er1 |
| 23153 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23155 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23157 | { (case "(($ac_try" in |
| 23158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23159 | *) ac_try_echo=$ac_try;; |
| 23160 | esac |
| 23161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23162 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23163 | ac_status=$? |
| 23164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23165 | (exit $ac_status); }; } && |
| 23166 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23167 | { (case "(($ac_try" in |
| 23168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23169 | *) ac_try_echo=$ac_try;; |
| 23170 | esac |
| 23171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23172 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23173 | ac_status=$? |
| 23174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23175 | (exit $ac_status); }; }; then |
| 23176 | ac_cv_member_struct_option_name=yes |
| 23177 | else |
| 23178 | echo "$as_me: failed program was:" >&5 |
| 23179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23180 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23181 | ac_cv_member_struct_option_name=no |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23182 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23183 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23185 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23186 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23188 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23189 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5 |
| 23190 | echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; } |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23191 | if test $ac_cv_member_struct_option_name = yes; then |
| 23192 | |
| 23193 | cat >>confdefs.h <<_ACEOF |
| 23194 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 23195 | _ACEOF |
| 23196 | |
| 23197 | |
| 23198 | fi |
| 23199 | |
| 23200 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23201 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 23202 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; } |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23203 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 23204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23205 | else |
| 23206 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23207 | /* confdefs.h. */ |
| 23208 | _ACEOF |
| 23209 | cat confdefs.h >>conftest.$ac_ext |
| 23210 | cat >>conftest.$ac_ext <<_ACEOF |
| 23211 | /* end confdefs.h. */ |
| 23212 | $ac_includes_default |
| 23213 | int |
| 23214 | main () |
| 23215 | { |
| 23216 | static struct stat ac_aggr; |
| 23217 | if (ac_aggr.st_blocks) |
| 23218 | return 0; |
| 23219 | ; |
| 23220 | return 0; |
| 23221 | } |
| 23222 | _ACEOF |
| 23223 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23224 | if { (ac_try="$ac_compile" |
| 23225 | case "(($ac_try" in |
| 23226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23227 | *) ac_try_echo=$ac_try;; |
| 23228 | esac |
| 23229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23230 | (eval "$ac_compile") 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23231 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23233 | rm -f conftest.er1 |
| 23234 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23236 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23238 | { (case "(($ac_try" in |
| 23239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23240 | *) ac_try_echo=$ac_try;; |
| 23241 | esac |
| 23242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23243 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23244 | ac_status=$? |
| 23245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23246 | (exit $ac_status); }; } && |
| 23247 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23248 | { (case "(($ac_try" in |
| 23249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23250 | *) ac_try_echo=$ac_try;; |
| 23251 | esac |
| 23252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23253 | (eval "$ac_try") 2>&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23254 | ac_status=$? |
| 23255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23256 | (exit $ac_status); }; }; then |
| 23257 | ac_cv_member_struct_stat_st_blocks=yes |
| 23258 | else |
| 23259 | echo "$as_me: failed program was:" >&5 |
| 23260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23261 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23262 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23263 | /* confdefs.h. */ |
| 23264 | _ACEOF |
| 23265 | cat confdefs.h >>conftest.$ac_ext |
| 23266 | cat >>conftest.$ac_ext <<_ACEOF |
| 23267 | /* end confdefs.h. */ |
| 23268 | $ac_includes_default |
| 23269 | int |
| 23270 | main () |
| 23271 | { |
| 23272 | static struct stat ac_aggr; |
| 23273 | if (sizeof ac_aggr.st_blocks) |
| 23274 | return 0; |
| 23275 | ; |
| 23276 | return 0; |
| 23277 | } |
| 23278 | _ACEOF |
| 23279 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23280 | if { (ac_try="$ac_compile" |
| 23281 | case "(($ac_try" in |
| 23282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23283 | *) ac_try_echo=$ac_try;; |
| 23284 | esac |
| 23285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23286 | (eval "$ac_compile") 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23287 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23289 | rm -f conftest.er1 |
| 23290 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23292 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23294 | { (case "(($ac_try" in |
| 23295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23296 | *) ac_try_echo=$ac_try;; |
| 23297 | esac |
| 23298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23299 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23300 | ac_status=$? |
| 23301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23302 | (exit $ac_status); }; } && |
| 23303 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23304 | { (case "(($ac_try" in |
| 23305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23306 | *) ac_try_echo=$ac_try;; |
| 23307 | esac |
| 23308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23309 | (eval "$ac_try") 2>&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23310 | ac_status=$? |
| 23311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23312 | (exit $ac_status); }; }; then |
| 23313 | ac_cv_member_struct_stat_st_blocks=yes |
| 23314 | else |
| 23315 | echo "$as_me: failed program was:" >&5 |
| 23316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23317 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23318 | ac_cv_member_struct_stat_st_blocks=no |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23319 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23320 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23322 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23323 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23325 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23326 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 23327 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23328 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
| 23329 | |
| 23330 | cat >>confdefs.h <<_ACEOF |
| 23331 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 23332 | _ACEOF |
| 23333 | |
| 23334 | |
| 23335 | fi |
| 23336 | |
| 23337 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23338 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 |
| 23339 | 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] | 23340 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then |
| 23341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23342 | else |
| 23343 | cat >conftest.$ac_ext <<_ACEOF |
| 23344 | /* confdefs.h. */ |
| 23345 | _ACEOF |
| 23346 | cat confdefs.h >>conftest.$ac_ext |
| 23347 | cat >>conftest.$ac_ext <<_ACEOF |
| 23348 | /* end confdefs.h. */ |
| 23349 | #ifdef HAVE_SYS_TYPES_H |
| 23350 | #include <sys/types.h> |
| 23351 | #endif |
| 23352 | #ifdef HAVE_NETINET_IN_H |
| 23353 | #include <netinet/in.h> |
| 23354 | #endif |
| 23355 | |
| 23356 | int |
| 23357 | main () |
| 23358 | { |
| 23359 | static struct sockaddr_in6 ac_aggr; |
| 23360 | if (ac_aggr.sin6_scope_id) |
| 23361 | return 0; |
| 23362 | ; |
| 23363 | return 0; |
| 23364 | } |
| 23365 | _ACEOF |
| 23366 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23367 | if { (ac_try="$ac_compile" |
| 23368 | case "(($ac_try" in |
| 23369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23370 | *) ac_try_echo=$ac_try;; |
| 23371 | esac |
| 23372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23373 | (eval "$ac_compile") 2>conftest.er1 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23374 | ac_status=$? |
| 23375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23376 | rm -f conftest.er1 |
| 23377 | cat conftest.err >&5 |
| 23378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23379 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23381 | { (case "(($ac_try" in |
| 23382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23383 | *) ac_try_echo=$ac_try;; |
| 23384 | esac |
| 23385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23386 | (eval "$ac_try") 2>&5 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23387 | ac_status=$? |
| 23388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23389 | (exit $ac_status); }; } && |
| 23390 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23391 | { (case "(($ac_try" in |
| 23392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23393 | *) ac_try_echo=$ac_try;; |
| 23394 | esac |
| 23395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23396 | (eval "$ac_try") 2>&5 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23397 | ac_status=$? |
| 23398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23399 | (exit $ac_status); }; }; then |
| 23400 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes |
| 23401 | else |
| 23402 | echo "$as_me: failed program was:" >&5 |
| 23403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23404 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23405 | cat >conftest.$ac_ext <<_ACEOF |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23406 | /* confdefs.h. */ |
| 23407 | _ACEOF |
| 23408 | cat confdefs.h >>conftest.$ac_ext |
| 23409 | cat >>conftest.$ac_ext <<_ACEOF |
| 23410 | /* end confdefs.h. */ |
| 23411 | #ifdef HAVE_SYS_TYPES_H |
| 23412 | #include <sys/types.h> |
| 23413 | #endif |
| 23414 | #ifdef HAVE_NETINET_IN_H |
| 23415 | #include <netinet/in.h> |
| 23416 | #endif |
| 23417 | |
| 23418 | int |
| 23419 | main () |
| 23420 | { |
| 23421 | static struct sockaddr_in6 ac_aggr; |
| 23422 | if (sizeof ac_aggr.sin6_scope_id) |
| 23423 | return 0; |
| 23424 | ; |
| 23425 | return 0; |
| 23426 | } |
| 23427 | _ACEOF |
| 23428 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23429 | if { (ac_try="$ac_compile" |
| 23430 | case "(($ac_try" in |
| 23431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23432 | *) ac_try_echo=$ac_try;; |
| 23433 | esac |
| 23434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23435 | (eval "$ac_compile") 2>conftest.er1 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23436 | ac_status=$? |
| 23437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23438 | rm -f conftest.er1 |
| 23439 | cat conftest.err >&5 |
| 23440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23441 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23442 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23443 | { (case "(($ac_try" in |
| 23444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23445 | *) ac_try_echo=$ac_try;; |
| 23446 | esac |
| 23447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23448 | (eval "$ac_try") 2>&5 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23449 | ac_status=$? |
| 23450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23451 | (exit $ac_status); }; } && |
| 23452 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23453 | { (case "(($ac_try" in |
| 23454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23455 | *) ac_try_echo=$ac_try;; |
| 23456 | esac |
| 23457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23458 | (eval "$ac_try") 2>&5 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23459 | ac_status=$? |
| 23460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23461 | (exit $ac_status); }; }; then |
| 23462 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes |
| 23463 | else |
| 23464 | echo "$as_me: failed program was:" >&5 |
| 23465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23466 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23467 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23468 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23469 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23471 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23472 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23474 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23475 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 |
| 23476 | 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] | 23477 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then |
| 23478 | |
| 23479 | cat >>confdefs.h <<_ACEOF |
| 23480 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 23481 | _ACEOF |
| 23482 | |
| 23483 | |
| 23484 | fi |
| 23485 | |
| 23486 | |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23487 | { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5 |
| 23488 | echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; } |
| 23489 | if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then |
| 23490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23491 | else |
| 23492 | cat >conftest.$ac_ext <<_ACEOF |
| 23493 | /* confdefs.h. */ |
| 23494 | _ACEOF |
| 23495 | cat confdefs.h >>conftest.$ac_ext |
| 23496 | cat >>conftest.$ac_ext <<_ACEOF |
| 23497 | /* end confdefs.h. */ |
| 23498 | #ifdef HAVE_SYS_TYPES_H |
| 23499 | #include <sys/types.h> |
| 23500 | #endif |
| 23501 | #ifdef HAVE_NETINET_IN_H |
| 23502 | # include <netinet/in.h> |
| 23503 | #endif |
| 23504 | #ifdef HAVE_ARPA_NAMESER_H |
| 23505 | # include <arpa/nameser.h> |
| 23506 | #endif |
| 23507 | |
| 23508 | int |
| 23509 | main () |
| 23510 | { |
| 23511 | static ns_msg ac_aggr; |
| 23512 | if (ac_aggr._msg_ptr) |
| 23513 | return 0; |
| 23514 | ; |
| 23515 | return 0; |
| 23516 | } |
| 23517 | _ACEOF |
| 23518 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23519 | if { (ac_try="$ac_compile" |
| 23520 | case "(($ac_try" in |
| 23521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23522 | *) ac_try_echo=$ac_try;; |
| 23523 | esac |
| 23524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23525 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23526 | ac_status=$? |
| 23527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23528 | rm -f conftest.er1 |
| 23529 | cat conftest.err >&5 |
| 23530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23531 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23533 | { (case "(($ac_try" in |
| 23534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23535 | *) ac_try_echo=$ac_try;; |
| 23536 | esac |
| 23537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23538 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23539 | ac_status=$? |
| 23540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23541 | (exit $ac_status); }; } && |
| 23542 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23543 | { (case "(($ac_try" in |
| 23544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23545 | *) ac_try_echo=$ac_try;; |
| 23546 | esac |
| 23547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23548 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23549 | ac_status=$? |
| 23550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23551 | (exit $ac_status); }; }; then |
| 23552 | ac_cv_member_ns_msg__msg_ptr=yes |
| 23553 | else |
| 23554 | echo "$as_me: failed program was:" >&5 |
| 23555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23556 | |
| 23557 | cat >conftest.$ac_ext <<_ACEOF |
| 23558 | /* confdefs.h. */ |
| 23559 | _ACEOF |
| 23560 | cat confdefs.h >>conftest.$ac_ext |
| 23561 | cat >>conftest.$ac_ext <<_ACEOF |
| 23562 | /* end confdefs.h. */ |
| 23563 | #ifdef HAVE_SYS_TYPES_H |
| 23564 | #include <sys/types.h> |
| 23565 | #endif |
| 23566 | #ifdef HAVE_NETINET_IN_H |
| 23567 | # include <netinet/in.h> |
| 23568 | #endif |
| 23569 | #ifdef HAVE_ARPA_NAMESER_H |
| 23570 | # include <arpa/nameser.h> |
| 23571 | #endif |
| 23572 | |
| 23573 | int |
| 23574 | main () |
| 23575 | { |
| 23576 | static ns_msg ac_aggr; |
| 23577 | if (sizeof ac_aggr._msg_ptr) |
| 23578 | return 0; |
| 23579 | ; |
| 23580 | return 0; |
| 23581 | } |
| 23582 | _ACEOF |
| 23583 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23584 | if { (ac_try="$ac_compile" |
| 23585 | case "(($ac_try" in |
| 23586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23587 | *) ac_try_echo=$ac_try;; |
| 23588 | esac |
| 23589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23590 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23591 | ac_status=$? |
| 23592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23593 | rm -f conftest.er1 |
| 23594 | cat conftest.err >&5 |
| 23595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23596 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23597 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23598 | { (case "(($ac_try" in |
| 23599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23600 | *) ac_try_echo=$ac_try;; |
| 23601 | esac |
| 23602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23603 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23604 | ac_status=$? |
| 23605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23606 | (exit $ac_status); }; } && |
| 23607 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23608 | { (case "(($ac_try" in |
| 23609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23610 | *) ac_try_echo=$ac_try;; |
| 23611 | esac |
| 23612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23613 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23614 | ac_status=$? |
| 23615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23616 | (exit $ac_status); }; }; then |
| 23617 | ac_cv_member_ns_msg__msg_ptr=yes |
| 23618 | else |
| 23619 | echo "$as_me: failed program was:" >&5 |
| 23620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23621 | |
| 23622 | ac_cv_member_ns_msg__msg_ptr=no |
| 23623 | fi |
| 23624 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23626 | fi |
| 23627 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23629 | fi |
| 23630 | { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5 |
| 23631 | echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; } |
| 23632 | if test $ac_cv_member_ns_msg__msg_ptr = yes; then |
| 23633 | |
| 23634 | cat >>confdefs.h <<_ACEOF |
| 23635 | #define HAVE_NS_MSG__MSG_PTR 1 |
| 23636 | _ACEOF |
| 23637 | |
| 23638 | |
| 23639 | fi |
| 23640 | |
| 23641 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23642 | { echo "$as_me:$LINENO: checking for timezone variable" >&5 |
| 23643 | echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23644 | if test "${ac_cv_have_timezone+set}" = set; then |
| 23645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23646 | else |
| 23647 | cat >conftest.$ac_ext <<_ACEOF |
| 23648 | /* confdefs.h. */ |
| 23649 | _ACEOF |
| 23650 | cat confdefs.h >>conftest.$ac_ext |
| 23651 | cat >>conftest.$ac_ext <<_ACEOF |
| 23652 | /* end confdefs.h. */ |
| 23653 | #include <time.h> |
| 23654 | int |
| 23655 | main () |
| 23656 | { |
Alexandre Julliard | ff2bd66 | 2006-08-25 13:23:29 +0200 | [diff] [blame] | 23657 | timezone = 1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23658 | ; |
| 23659 | return 0; |
| 23660 | } |
| 23661 | _ACEOF |
| 23662 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23663 | if { (ac_try="$ac_link" |
| 23664 | case "(($ac_try" in |
| 23665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23666 | *) ac_try_echo=$ac_try;; |
| 23667 | esac |
| 23668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23669 | (eval "$ac_link") 2>conftest.er1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23670 | ac_status=$? |
| 23671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23672 | rm -f conftest.er1 |
| 23673 | cat conftest.err >&5 |
| 23674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23675 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23677 | { (case "(($ac_try" in |
| 23678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23679 | *) ac_try_echo=$ac_try;; |
| 23680 | esac |
| 23681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23682 | (eval "$ac_try") 2>&5 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23683 | ac_status=$? |
| 23684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23685 | (exit $ac_status); }; } && |
| 23686 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23687 | { (case "(($ac_try" in |
| 23688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23689 | *) ac_try_echo=$ac_try;; |
| 23690 | esac |
| 23691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23692 | (eval "$ac_try") 2>&5 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23693 | ac_status=$? |
| 23694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23695 | (exit $ac_status); }; }; then |
| 23696 | ac_cv_have_timezone="yes" |
| 23697 | else |
| 23698 | echo "$as_me: failed program was:" >&5 |
| 23699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23700 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23701 | ac_cv_have_timezone="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23702 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23703 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23704 | rm -f core conftest.err conftest.$ac_objext \ |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23705 | conftest$ac_exeext conftest.$ac_ext |
| 23706 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23707 | { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5 |
| 23708 | echo "${ECHO_T}$ac_cv_have_timezone" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23709 | if test "$ac_cv_have_timezone" = "yes" |
| 23710 | then |
| 23711 | |
| 23712 | cat >>confdefs.h <<\_ACEOF |
| 23713 | #define HAVE_TIMEZONE 1 |
| 23714 | _ACEOF |
| 23715 | |
| 23716 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23717 | { echo "$as_me:$LINENO: checking for daylight variable" >&5 |
| 23718 | echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23719 | if test "${ac_cv_have_daylight+set}" = set; then |
| 23720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23721 | else |
| 23722 | cat >conftest.$ac_ext <<_ACEOF |
| 23723 | /* confdefs.h. */ |
| 23724 | _ACEOF |
| 23725 | cat confdefs.h >>conftest.$ac_ext |
| 23726 | cat >>conftest.$ac_ext <<_ACEOF |
| 23727 | /* end confdefs.h. */ |
| 23728 | #include <time.h> |
| 23729 | int |
| 23730 | main () |
| 23731 | { |
Alexandre Julliard | ff2bd66 | 2006-08-25 13:23:29 +0200 | [diff] [blame] | 23732 | daylight = 1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23733 | ; |
| 23734 | return 0; |
| 23735 | } |
| 23736 | _ACEOF |
| 23737 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23738 | if { (ac_try="$ac_link" |
| 23739 | case "(($ac_try" in |
| 23740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23741 | *) ac_try_echo=$ac_try;; |
| 23742 | esac |
| 23743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23744 | (eval "$ac_link") 2>conftest.er1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23745 | ac_status=$? |
| 23746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23747 | rm -f conftest.er1 |
| 23748 | cat conftest.err >&5 |
| 23749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23750 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23751 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23752 | { (case "(($ac_try" in |
| 23753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23754 | *) ac_try_echo=$ac_try;; |
| 23755 | esac |
| 23756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23757 | (eval "$ac_try") 2>&5 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23758 | ac_status=$? |
| 23759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23760 | (exit $ac_status); }; } && |
| 23761 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23762 | { (case "(($ac_try" in |
| 23763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23764 | *) ac_try_echo=$ac_try;; |
| 23765 | esac |
| 23766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23767 | (eval "$ac_try") 2>&5 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23768 | ac_status=$? |
| 23769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23770 | (exit $ac_status); }; }; then |
| 23771 | ac_cv_have_daylight="yes" |
| 23772 | else |
| 23773 | echo "$as_me: failed program was:" >&5 |
| 23774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23775 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23776 | ac_cv_have_daylight="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23777 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23778 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23779 | rm -f core conftest.err conftest.$ac_objext \ |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23780 | conftest$ac_exeext conftest.$ac_ext |
| 23781 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23782 | { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5 |
| 23783 | echo "${ECHO_T}$ac_cv_have_daylight" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23784 | if test "$ac_cv_have_daylight" = "yes" |
| 23785 | then |
| 23786 | |
| 23787 | cat >>confdefs.h <<\_ACEOF |
| 23788 | #define HAVE_DAYLIGHT 1 |
| 23789 | _ACEOF |
| 23790 | |
| 23791 | fi |
| 23792 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 23793 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 23794 | case $host_cpu in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23795 | *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5 |
| 23796 | 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] | 23797 | if test "${ac_cv_cpp_def___i386__+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 23798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 23799 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 23800 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 23801 | /* confdefs.h. */ |
| 23802 | _ACEOF |
| 23803 | cat confdefs.h >>conftest.$ac_ext |
| 23804 | cat >>conftest.$ac_ext <<_ACEOF |
| 23805 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 23806 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 23807 | yes |
| 23808 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 23809 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 23810 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 23811 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23812 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 23813 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23814 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 23815 | fi |
| 23816 | rm -f conftest* |
| 23817 | |
| 23818 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23819 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5 |
| 23820 | echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23821 | if test $ac_cv_cpp_def___i386__ = yes; then |
| 23822 | CFLAGS="$CFLAGS -D__i386__" |
| 23823 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 23824 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23825 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23826 | *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5 |
| 23827 | 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] | 23828 | if test "${ac_cv_cpp_def___x86_64__+set}" = set; then |
| 23829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23830 | else |
| 23831 | cat >conftest.$ac_ext <<_ACEOF |
| 23832 | /* confdefs.h. */ |
| 23833 | _ACEOF |
| 23834 | cat confdefs.h >>conftest.$ac_ext |
| 23835 | cat >>conftest.$ac_ext <<_ACEOF |
| 23836 | /* end confdefs.h. */ |
| 23837 | #ifndef __x86_64__ |
| 23838 | yes |
| 23839 | #endif |
| 23840 | _ACEOF |
| 23841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 23842 | $EGREP "yes" >/dev/null 2>&1; then |
| 23843 | ac_cv_cpp_def___x86_64__=yes |
| 23844 | else |
| 23845 | ac_cv_cpp_def___x86_64__=no |
| 23846 | fi |
| 23847 | rm -f conftest* |
| 23848 | |
| 23849 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23850 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5 |
| 23851 | echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; } |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 23852 | if test $ac_cv_cpp_def___x86_64__ = yes; then |
| 23853 | CFLAGS="$CFLAGS -D__x86_64__" |
| 23854 | LINTFLAGS="$LINTFLAGS -D__x86_64__" |
| 23855 | fi |
Alexandre Julliard | 58c6419 | 2006-07-10 13:05:20 +0200 | [diff] [blame] | 23856 | |
| 23857 | { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5 |
| 23858 | echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; } |
| 23859 | if test "${ac_cv_cpp_def__WIN64+set}" = set; then |
| 23860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23861 | else |
| 23862 | cat >conftest.$ac_ext <<_ACEOF |
| 23863 | /* confdefs.h. */ |
| 23864 | _ACEOF |
| 23865 | cat confdefs.h >>conftest.$ac_ext |
| 23866 | cat >>conftest.$ac_ext <<_ACEOF |
| 23867 | /* end confdefs.h. */ |
| 23868 | #ifndef _WIN64 |
| 23869 | yes |
| 23870 | #endif |
| 23871 | _ACEOF |
| 23872 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 23873 | $EGREP "yes" >/dev/null 2>&1; then |
| 23874 | ac_cv_cpp_def__WIN64=yes |
| 23875 | else |
| 23876 | ac_cv_cpp_def__WIN64=no |
| 23877 | fi |
| 23878 | rm -f conftest* |
| 23879 | |
| 23880 | fi |
| 23881 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5 |
| 23882 | echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; } |
| 23883 | if test $ac_cv_cpp_def__WIN64 = yes; then |
| 23884 | CFLAGS="$CFLAGS -D_WIN64" |
| 23885 | LINTFLAGS="$LINTFLAGS -D_WIN64" |
| 23886 | fi |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 23887 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23888 | *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5 |
| 23889 | 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] | 23890 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 23891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23892 | else |
| 23893 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 23894 | /* confdefs.h. */ |
| 23895 | _ACEOF |
| 23896 | cat confdefs.h >>conftest.$ac_ext |
| 23897 | cat >>conftest.$ac_ext <<_ACEOF |
| 23898 | /* end confdefs.h. */ |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 23899 | #ifndef __ALPHA__ |
| 23900 | yes |
| 23901 | #endif |
| 23902 | _ACEOF |
| 23903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 23904 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23905 | ac_cv_cpp_def___ALPHA__=yes |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 23906 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23907 | ac_cv_cpp_def___ALPHA__=no |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 23908 | fi |
| 23909 | rm -f conftest* |
| 23910 | |
| 23911 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23912 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5 |
| 23913 | echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23914 | if test $ac_cv_cpp_def___ALPHA__ = yes; then |
| 23915 | CFLAGS="$CFLAGS -D__ALPHA__" |
| 23916 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 23917 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23918 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23919 | *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5 |
| 23920 | 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] | 23921 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 23922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23923 | else |
| 23924 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 23925 | /* confdefs.h. */ |
| 23926 | _ACEOF |
| 23927 | cat confdefs.h >>conftest.$ac_ext |
| 23928 | cat >>conftest.$ac_ext <<_ACEOF |
| 23929 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 23930 | #ifndef __sparc__ |
| 23931 | yes |
| 23932 | #endif |
| 23933 | _ACEOF |
| 23934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 23935 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23936 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 23937 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23938 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 23939 | fi |
| 23940 | rm -f conftest* |
| 23941 | |
| 23942 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23943 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5 |
| 23944 | echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23945 | if test $ac_cv_cpp_def___sparc__ = yes; then |
| 23946 | CFLAGS="$CFLAGS -D__sparc__" |
| 23947 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 23948 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23949 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23950 | *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5 |
| 23951 | 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] | 23952 | if test "${ac_cv_cpp_def___powerpc__+set}" = set; then |
| 23953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23954 | else |
| 23955 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 23956 | /* confdefs.h. */ |
| 23957 | _ACEOF |
| 23958 | cat confdefs.h >>conftest.$ac_ext |
| 23959 | cat >>conftest.$ac_ext <<_ACEOF |
| 23960 | /* end confdefs.h. */ |
| 23961 | #ifndef __powerpc__ |
| 23962 | yes |
| 23963 | #endif |
| 23964 | _ACEOF |
| 23965 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 23966 | $EGREP "yes" >/dev/null 2>&1; then |
| 23967 | ac_cv_cpp_def___powerpc__=yes |
| 23968 | else |
| 23969 | ac_cv_cpp_def___powerpc__=no |
| 23970 | fi |
| 23971 | rm -f conftest* |
| 23972 | |
| 23973 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23974 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5 |
| 23975 | echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; } |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 23976 | if test $ac_cv_cpp_def___powerpc__ = yes; then |
| 23977 | CFLAGS="$CFLAGS -D__powerpc__" |
| 23978 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
| 23979 | fi |
| 23980 | ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 23981 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 23982 | |
| 23983 | case $host_vendor in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23984 | *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5 |
| 23985 | 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] | 23986 | if test "${ac_cv_cpp_def___sun__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 23987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23988 | else |
| 23989 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 23990 | /* confdefs.h. */ |
| 23991 | _ACEOF |
| 23992 | cat confdefs.h >>conftest.$ac_ext |
| 23993 | cat >>conftest.$ac_ext <<_ACEOF |
| 23994 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 23995 | #ifndef __sun__ |
| 23996 | yes |
| 23997 | #endif |
| 23998 | _ACEOF |
| 23999 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24000 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24001 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24002 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24003 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24004 | fi |
| 24005 | rm -f conftest* |
| 24006 | |
| 24007 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24008 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5 |
| 24009 | echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24010 | if test $ac_cv_cpp_def___sun__ = yes; then |
| 24011 | CFLAGS="$CFLAGS -D__sun__" |
| 24012 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24013 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24014 | ;; |
| 24015 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24016 | |
| 24017 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24018 | |
| 24019 | |
| 24020 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24021 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 24022 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24023 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 24024 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24025 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24026 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24027 | ac_config_commands="$ac_config_commands dlls/user/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24028 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24029 | ac_config_commands="$ac_config_commands dlls/wineps.drv/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24030 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24031 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24032 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 24033 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 24034 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24035 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24036 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 24037 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 24038 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24039 | |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 24040 | MAKE_IMPLIB_RULES=dlls/Makeimplib.rules |
| 24041 | |
| 24042 | |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 24043 | MAKE_TEST_RULES=dlls/Maketest.rules |
| 24044 | |
| 24045 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 24046 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 24047 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24048 | |
Paul Vriens | 95bb903 | 2006-08-29 10:25:47 +0200 | [diff] [blame^] | 24049 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hid/Makefile dlls/hlink/Makefile dlls/hlink/tests/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/infosoft/tests/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/pstorec/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wintrust/tests/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/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] | 24050 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 24051 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24052 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24053 | # This file is a shell script that caches the results of configure |
| 24054 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24055 | # scripts and configure runs, see configure's option --config-cache. |
| 24056 | # It is not useful on other systems. If it contains results you don't |
| 24057 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24058 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24059 | # config.status only pays attention to the cache file if you give it |
| 24060 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24061 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24062 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24063 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 24064 | # following values. |
| 24065 | |
| 24066 | _ACEOF |
| 24067 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 24068 | # The following way of writing the cache mishandles newlines in values, |
| 24069 | # but we know of no workaround that is simple, portable, and efficient. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24070 | # So, we kill variables containing newlines. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24071 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 24072 | # 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] | 24073 | ( |
| 24074 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 24075 | eval ac_val=\$$ac_var |
| 24076 | case $ac_val in #( |
| 24077 | *${as_nl}*) |
| 24078 | case $ac_var in #( |
| 24079 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 24080 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 24081 | esac |
| 24082 | case $ac_var in #( |
| 24083 | _ | IFS | as_nl) ;; #( |
| 24084 | *) $as_unset $ac_var ;; |
| 24085 | esac ;; |
| 24086 | esac |
| 24087 | done |
| 24088 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24089 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24090 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 24091 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24092 | # `set' does not quote correctly, so add quotes (double-quote |
| 24093 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 24094 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24095 | "s/'/'\\\\''/g; |
| 24096 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24097 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24098 | *) |
| 24099 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24100 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24101 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24102 | esac | |
| 24103 | sort |
| 24104 | ) | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24105 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24106 | /^ac_cv_env_/b end |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24107 | t clear |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24108 | :clear |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24109 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 24110 | t end |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24111 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 24112 | :end' >>confcache |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24113 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 24114 | if test -w "$cache_file"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24115 | test "x$cache_file" != "x/dev/null" && |
| 24116 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 24117 | echo "$as_me: updating cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24118 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24119 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24120 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 24121 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24122 | fi |
| 24123 | fi |
| 24124 | rm -f confcache |
| 24125 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24126 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 24127 | # Let make expand exec_prefix. |
| 24128 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 24129 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 24130 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24131 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24132 | ac_libobjs= |
| 24133 | ac_ltlibobjs= |
| 24134 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 24135 | # 1. Remove the extension, and $U if already installed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24136 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 24137 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 24138 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 24139 | # will be set to the directory where LIBOBJS objects are built. |
| 24140 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 24141 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24142 | done |
| 24143 | LIBOBJS=$ac_libobjs |
| 24144 | |
| 24145 | LTLIBOBJS=$ac_ltlibobjs |
| 24146 | |
| 24147 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24148 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24149 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24150 | ac_clean_files_save=$ac_clean_files |
| 24151 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24152 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24153 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 24154 | cat >$CONFIG_STATUS <<_ACEOF |
| 24155 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24156 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24157 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24158 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24159 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24160 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24161 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24162 | ac_cs_recheck=false |
| 24163 | ac_cs_silent=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24164 | SHELL=\${CONFIG_SHELL-$SHELL} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24165 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24166 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24167 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24168 | ## --------------------- ## |
| 24169 | ## M4sh Initialization. ## |
| 24170 | ## --------------------- ## |
| 24171 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24172 | # Be Bourne compatible |
| 24173 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 24174 | emulate sh |
| 24175 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24176 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 24177 | # is contrary to our usage. Disable this feature. |
| 24178 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24179 | setopt NO_GLOB_SUBST |
| 24180 | else |
| 24181 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 24182 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24183 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24184 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24185 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24186 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24187 | # PATH needs CR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24188 | # Avoid depending upon Character Ranges. |
| 24189 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 24190 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 24191 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 24192 | as_cr_digits='0123456789' |
| 24193 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 24194 | |
| 24195 | # The user is always right. |
| 24196 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24197 | echo "#! /bin/sh" >conf$$.sh |
| 24198 | echo "exit 0" >>conf$$.sh |
| 24199 | chmod +x conf$$.sh |
| 24200 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24201 | PATH_SEPARATOR=';' |
| 24202 | else |
| 24203 | PATH_SEPARATOR=: |
| 24204 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24205 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24206 | fi |
| 24207 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24208 | # Support unset when possible. |
| 24209 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 24210 | as_unset=unset |
| 24211 | else |
| 24212 | as_unset=false |
| 24213 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24214 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24215 | |
| 24216 | # IFS |
| 24217 | # We need space, tab and new line, in precisely that order. Quoting is |
| 24218 | # there to prevent editors from complaining about space-tab. |
| 24219 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 24220 | # splitting by setting IFS to empty value.) |
| 24221 | as_nl=' |
| 24222 | ' |
| 24223 | IFS=" "" $as_nl" |
| 24224 | |
| 24225 | # Find who we are. Look in the path if we contain no directory separator. |
| 24226 | case $0 in |
| 24227 | *[\\/]* ) as_myself=$0 ;; |
| 24228 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24229 | for as_dir in $PATH |
| 24230 | do |
| 24231 | IFS=$as_save_IFS |
| 24232 | test -z "$as_dir" && as_dir=. |
| 24233 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 24234 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24235 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24236 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24237 | ;; |
| 24238 | esac |
| 24239 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 24240 | # in which case we are not to be found in the path. |
| 24241 | if test "x$as_myself" = x; then |
| 24242 | as_myself=$0 |
| 24243 | fi |
| 24244 | if test ! -f "$as_myself"; then |
| 24245 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 24246 | { (exit 1); exit 1; } |
| 24247 | fi |
| 24248 | |
| 24249 | # Work around bugs in pre-3.0 UWIN ksh. |
| 24250 | for as_var in ENV MAIL MAILPATH |
| 24251 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 24252 | done |
| 24253 | PS1='$ ' |
| 24254 | PS2='> ' |
| 24255 | PS4='+ ' |
| 24256 | |
| 24257 | # NLS nuisances. |
| 24258 | for as_var in \ |
| 24259 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 24260 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 24261 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24262 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24263 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 24264 | eval $as_var=C; export $as_var |
| 24265 | else |
| 24266 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 24267 | fi |
| 24268 | done |
| 24269 | |
| 24270 | # Required to use basename. |
| 24271 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 24272 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 24273 | as_expr=expr |
| 24274 | else |
| 24275 | as_expr=false |
| 24276 | fi |
| 24277 | |
| 24278 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 24279 | as_basename=basename |
| 24280 | else |
| 24281 | as_basename=false |
| 24282 | fi |
| 24283 | |
| 24284 | |
| 24285 | # Name of the executable. |
| 24286 | as_me=`$as_basename -- "$0" || |
| 24287 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 24288 | X"$0" : 'X\(//\)$' \| \ |
| 24289 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 24290 | echo X/"$0" | |
| 24291 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 24292 | s//\1/ |
| 24293 | q |
| 24294 | } |
| 24295 | /^X\/\(\/\/\)$/{ |
| 24296 | s//\1/ |
| 24297 | q |
| 24298 | } |
| 24299 | /^X\/\(\/\).*/{ |
| 24300 | s//\1/ |
| 24301 | q |
| 24302 | } |
| 24303 | s/.*/./; q'` |
| 24304 | |
| 24305 | # CDPATH. |
| 24306 | $as_unset CDPATH |
| 24307 | |
| 24308 | |
| 24309 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24310 | as_lineno_1=$LINENO |
| 24311 | as_lineno_2=$LINENO |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24312 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24313 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24314 | |
| 24315 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 24316 | # uniformly replaced by the line number. The first 'sed' inserts a |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24317 | # line-number line after each line using $LINENO; the second 'sed' |
| 24318 | # does the real work. The second script uses 'N' to pair each |
| 24319 | # line-number line with the line containing $LINENO, and appends |
| 24320 | # trailing '-' during substitution so that $LINENO is not a special |
| 24321 | # case at line end. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24322 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24323 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 24324 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 24325 | sed -n ' |
| 24326 | p |
| 24327 | /[$]LINENO/= |
| 24328 | ' <$as_myself | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24329 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24330 | s/[$]LINENO.*/&-/ |
| 24331 | t lineno |
| 24332 | b |
| 24333 | :lineno |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24334 | N |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24335 | :loop |
| 24336 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24337 | t loop |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24338 | s/-\n.*// |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24339 | ' >$as_me.lineno && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24340 | chmod +x "$as_me.lineno" || |
| 24341 | { 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] | 24342 | { (exit 1); exit 1; }; } |
| 24343 | |
| 24344 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 24345 | # (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] | 24346 | # original and so on. Autoconf is especially sensitive to this). |
| 24347 | . "./$as_me.lineno" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24348 | # Exit status is that of the last command. |
| 24349 | exit |
| 24350 | } |
| 24351 | |
| 24352 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24353 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24354 | as_dirname=dirname |
| 24355 | else |
| 24356 | as_dirname=false |
| 24357 | fi |
| 24358 | |
| 24359 | ECHO_C= ECHO_N= ECHO_T= |
| 24360 | case `echo -n x` in |
| 24361 | -n*) |
| 24362 | case `echo 'x\c'` in |
| 24363 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 24364 | *) ECHO_C='\c';; |
| 24365 | esac;; |
| 24366 | *) |
| 24367 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24368 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24369 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24370 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 24371 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24372 | as_expr=expr |
| 24373 | else |
| 24374 | as_expr=false |
| 24375 | fi |
| 24376 | |
| 24377 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24378 | if test -d conf$$.dir; then |
| 24379 | rm -f conf$$.dir/conf$$.file |
| 24380 | else |
| 24381 | rm -f conf$$.dir |
| 24382 | mkdir conf$$.dir |
| 24383 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24384 | echo >conf$$.file |
| 24385 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24386 | as_ln_s='ln -s' |
| 24387 | # ... but there are two gotchas: |
| 24388 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 24389 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 24390 | # In both cases, we have to default to `cp -p'. |
| 24391 | 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] | 24392 | as_ln_s='cp -p' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24393 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 24394 | as_ln_s=ln |
| 24395 | else |
| 24396 | as_ln_s='cp -p' |
| 24397 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24398 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 24399 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24400 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24401 | if mkdir -p . 2>/dev/null; then |
| 24402 | as_mkdir_p=: |
| 24403 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24404 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24405 | as_mkdir_p=false |
| 24406 | fi |
| 24407 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24408 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 24409 | # systems may use methods other than mode bits to determine executability. |
| 24410 | cat >conf$$.file <<_ASEOF |
| 24411 | #! /bin/sh |
| 24412 | exit 0 |
| 24413 | _ASEOF |
| 24414 | chmod +x conf$$.file |
| 24415 | if test -x conf$$.file >/dev/null 2>&1; then |
| 24416 | as_executable_p="test -x" |
| 24417 | else |
| 24418 | as_executable_p=: |
| 24419 | fi |
| 24420 | rm -f conf$$.file |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24421 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24422 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24423 | 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] | 24424 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24425 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24426 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24427 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24428 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24429 | exec 6>&1 |
| 24430 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24431 | # 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] | 24432 | # report actual input values of CONFIG_FILES etc. instead of their |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24433 | # values after options handling. |
| 24434 | ac_log=" |
Alexandre Julliard | bf71a2f | 2006-08-24 16:11:45 +0200 | [diff] [blame] | 24435 | This file was extended by Wine $as_me 0.9.20, which was |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 24436 | generated by GNU Autoconf 2.60a. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24437 | |
| 24438 | CONFIG_FILES = $CONFIG_FILES |
| 24439 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 24440 | CONFIG_LINKS = $CONFIG_LINKS |
| 24441 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 24442 | $ $0 $@ |
| 24443 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24444 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 24445 | " |
| 24446 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24447 | _ACEOF |
| 24448 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24449 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24450 | # Files that config.status was made for. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24451 | config_files="$ac_config_files" |
| 24452 | config_headers="$ac_config_headers" |
| 24453 | config_commands="$ac_config_commands" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24454 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24455 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24456 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24457 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24458 | ac_cs_usage="\ |
| 24459 | \`$as_me' instantiates files from templates according to the |
| 24460 | current configuration. |
| 24461 | |
| 24462 | Usage: $0 [OPTIONS] [FILE]... |
| 24463 | |
| 24464 | -h, --help print this help, then exit |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 24465 | -V, --version print version number and configuration settings, then exit |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24466 | -q, --quiet do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24467 | -d, --debug don't remove temporary files |
| 24468 | --recheck update $as_me by reconfiguring in the same conditions |
| 24469 | --file=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24470 | instantiate the configuration file FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24471 | --header=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24472 | instantiate the configuration header FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24473 | |
| 24474 | Configuration files: |
| 24475 | $config_files |
| 24476 | |
| 24477 | Configuration headers: |
| 24478 | $config_headers |
| 24479 | |
| 24480 | Configuration commands: |
| 24481 | $config_commands |
| 24482 | |
| 24483 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 24484 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24485 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24486 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24487 | ac_cs_version="\\ |
Alexandre Julliard | bf71a2f | 2006-08-24 16:11:45 +0200 | [diff] [blame] | 24488 | Wine config.status 0.9.20 |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 24489 | configured by $0, generated by GNU Autoconf 2.60a, |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24490 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24491 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24492 | Copyright (C) 2006 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24493 | This config.status script is free software; the Free Software Foundation |
| 24494 | gives unlimited permission to copy, distribute and modify it." |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24495 | |
| 24496 | ac_pwd='$ac_pwd' |
| 24497 | srcdir='$srcdir' |
| 24498 | INSTALL='$INSTALL' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24499 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24500 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24501 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24502 | # If no file are specified by the user, then we need to provide default |
| 24503 | # value. By we need to know if files were specified by the user. |
| 24504 | ac_need_defaults=: |
| 24505 | while test $# != 0 |
| 24506 | do |
| 24507 | case $1 in |
| 24508 | --*=*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24509 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 24510 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24511 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24512 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24513 | *) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24514 | ac_option=$1 |
| 24515 | ac_optarg=$2 |
| 24516 | ac_shift=shift |
| 24517 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24518 | esac |
| 24519 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24520 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24521 | # Handling of the options. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24522 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 24523 | ac_cs_recheck=: ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24524 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 24525 | echo "$ac_cs_version"; exit ;; |
| 24526 | --debug | --debu | --deb | --de | --d | -d ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24527 | debug=: ;; |
| 24528 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24529 | $ac_shift |
| 24530 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24531 | ac_need_defaults=false;; |
| 24532 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24533 | $ac_shift |
| 24534 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24535 | ac_need_defaults=false;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24536 | --he | --h) |
| 24537 | # Conflict between --help and --header |
| 24538 | { echo "$as_me: error: ambiguous option: $1 |
| 24539 | Try \`$0 --help' for more information." >&2 |
| 24540 | { (exit 1); exit 1; }; };; |
| 24541 | --help | --hel | -h ) |
| 24542 | echo "$ac_cs_usage"; exit ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24543 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 24544 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 24545 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24546 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24547 | # This is an error. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24548 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 24549 | Try \`$0 --help' for more information." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24550 | { (exit 1); exit 1; }; } ;; |
| 24551 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24552 | *) ac_config_targets="$ac_config_targets $1" |
| 24553 | ac_need_defaults=false ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24554 | |
| 24555 | esac |
| 24556 | shift |
| 24557 | done |
| 24558 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24559 | ac_configure_extra_args= |
| 24560 | |
| 24561 | if $ac_cs_silent; then |
| 24562 | exec 6>/dev/null |
| 24563 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 24564 | fi |
| 24565 | |
| 24566 | _ACEOF |
| 24567 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24568 | if \$ac_cs_recheck; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24569 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24570 | CONFIG_SHELL=$SHELL |
| 24571 | export CONFIG_SHELL |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24572 | 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] | 24573 | fi |
| 24574 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24575 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24576 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24577 | exec 5>>config.log |
| 24578 | { |
| 24579 | echo |
| 24580 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 24581 | ## Running $as_me. ## |
| 24582 | _ASBOX |
| 24583 | echo "$ac_log" |
| 24584 | } >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24585 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24586 | _ACEOF |
| 24587 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24588 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24589 | |
| 24590 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24591 | |
| 24592 | # Handling of arguments. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24593 | for ac_config_target in $ac_config_targets |
| 24594 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24595 | case $ac_config_target in |
| 24596 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
| 24597 | "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
| 24598 | "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; |
| 24599 | "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
| 24600 | "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
| 24601 | "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;; |
| 24602 | "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
| 24603 | "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 24604 | "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
| 24605 | "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;; |
| 24606 | "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24607 | "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 24608 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 24609 | "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 24610 | "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;; |
| 24611 | "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
| 24612 | "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;; |
| 24613 | "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;; |
| 24614 | "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;; |
| 24615 | "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;; |
| 24616 | "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;; |
| 24617 | "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 24618 | "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
| 24619 | "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;; |
| 24620 | "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;; |
| 24621 | "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;; |
| 24622 | "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;; |
| 24623 | "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;; |
| 24624 | "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
Aric Stewart | 9c3b12b | 2006-07-13 14:16:59 -0500 | [diff] [blame] | 24625 | "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24626 | "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
| 24627 | "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;; |
| 24628 | "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;; |
Detlef Riekenberg | 955fe0d | 2006-07-03 22:55:53 +0200 | [diff] [blame] | 24629 | "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;; |
Detlef Riekenberg | 5640b56 | 2006-06-20 06:12:36 +0200 | [diff] [blame] | 24630 | "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24631 | "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 24632 | "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
| 24633 | "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;; |
| 24634 | "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;; |
Maarten Lankhorst | d2ee387 | 2006-06-28 16:51:41 +0200 | [diff] [blame] | 24635 | "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24636 | "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;; |
| 24637 | "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; |
| 24638 | "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;; |
| 24639 | "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;; |
| 24640 | "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;; |
| 24641 | "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;; |
| 24642 | "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;; |
| 24643 | "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;; |
| 24644 | "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;; |
| 24645 | "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;; |
| 24646 | "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 24647 | "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
| 24648 | "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;; |
| 24649 | "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 24650 | "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
| 24651 | "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;; |
| 24652 | "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; |
| 24653 | "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;; |
| 24654 | "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;; |
| 24655 | "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;; |
| 24656 | "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;; |
| 24657 | "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;; |
| 24658 | "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;; |
| 24659 | "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;; |
| 24660 | "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;; |
| 24661 | "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;; |
| 24662 | "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;; |
| 24663 | "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;; |
| 24664 | "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 24665 | "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
| 24666 | "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;; |
| 24667 | "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;; |
| 24668 | "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
| 24669 | "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; |
| 24670 | "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;; |
| 24671 | "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;; |
| 24672 | "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;; |
| 24673 | "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;; |
| 24674 | "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;; |
| 24675 | "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
| 24676 | "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;; |
| 24677 | "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
| 24678 | "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;; |
| 24679 | "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;; |
| 24680 | "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;; |
Kevin Koltzau | b89cafa | 2006-08-05 23:09:06 -0400 | [diff] [blame] | 24681 | "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;; |
Mike McCormack | b732e9b | 2006-06-06 19:26:24 +0900 | [diff] [blame] | 24682 | "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;; |
Mike McCormack | a430db9 | 2006-08-02 02:19:15 +0900 | [diff] [blame] | 24683 | "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24684 | "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;; |
| 24685 | "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
| 24686 | "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;; |
| 24687 | "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;; |
| 24688 | "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 24689 | "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
Mike McCormack | 4d3877b | 2006-07-11 11:13:18 +0900 | [diff] [blame] | 24690 | "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;; |
Mike McCormack | b5871fa | 2006-08-15 22:58:12 +0900 | [diff] [blame] | 24691 | "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;; |
Mike McCormack | 4d3877b | 2006-07-11 11:13:18 +0900 | [diff] [blame] | 24692 | "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24693 | "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;; |
| 24694 | "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;; |
| 24695 | "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;; |
| 24696 | "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
| 24697 | "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;; |
| 24698 | "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;; |
| 24699 | "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;; |
| 24700 | "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
| 24701 | "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;; |
| 24702 | "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;; |
| 24703 | "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;; |
| 24704 | "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;; |
| 24705 | "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;; |
| 24706 | "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;; |
| 24707 | "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;; |
| 24708 | "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;; |
| 24709 | "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;; |
| 24710 | "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;; |
| 24711 | "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 24712 | "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;; |
| 24713 | "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;; |
| 24714 | "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;; |
| 24715 | "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;; |
| 24716 | "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;; |
| 24717 | "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;; |
| 24718 | "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;; |
| 24719 | "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
| 24720 | "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;; |
| 24721 | "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;; |
| 24722 | "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;; |
| 24723 | "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;; |
| 24724 | "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;; |
| 24725 | "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;; |
| 24726 | "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
| 24727 | "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;; |
| 24728 | "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
| 24729 | "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;; |
| 24730 | "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
| 24731 | "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;; |
| 24732 | "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
| 24733 | "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;; |
| 24734 | "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;; |
| 24735 | "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;; |
| 24736 | "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;; |
| 24737 | "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;; |
| 24738 | "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;; |
| 24739 | "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;; |
| 24740 | "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;; |
| 24741 | "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
| 24742 | "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; |
| 24743 | "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;; |
| 24744 | "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
| 24745 | "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; |
| 24746 | "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;; |
| 24747 | "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;; |
| 24748 | "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 24749 | "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;; |
| 24750 | "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
| 24751 | "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;; |
| 24752 | "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;; |
| 24753 | "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
| 24754 | "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;; |
| 24755 | "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;; |
| 24756 | "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 24757 | "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 24758 | "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;; |
| 24759 | "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 24760 | "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;; |
| 24761 | "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
| 24762 | "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;; |
Mike McCormack | acb7f8a | 2006-08-11 15:11:47 +0900 | [diff] [blame] | 24763 | "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24764 | "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 24765 | "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
| 24766 | "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;; |
Mike McCormack | defbc49 | 2006-07-07 18:21:36 +0900 | [diff] [blame] | 24767 | "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24768 | "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 24769 | "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;; |
| 24770 | "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;; |
| 24771 | "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;; |
| 24772 | "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
| 24773 | "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;; |
| 24774 | "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;; |
| 24775 | "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;; |
| 24776 | "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;; |
| 24777 | "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;; |
| 24778 | "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;; |
| 24779 | "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;; |
| 24780 | "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;; |
| 24781 | "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;; |
| 24782 | "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;; |
| 24783 | "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 24784 | "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 24785 | "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;; |
| 24786 | "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;; |
| 24787 | "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 24788 | "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;; |
| 24789 | "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
| 24790 | "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;; |
| 24791 | "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 24792 | "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
| 24793 | "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;; |
| 24794 | "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
| 24795 | "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;; |
| 24796 | "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;; |
| 24797 | "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;; |
| 24798 | "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
| 24799 | "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;; |
| 24800 | "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 24801 | "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;; |
| 24802 | "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;; |
| 24803 | "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 24804 | "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
| 24805 | "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; |
| 24806 | "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
| 24807 | "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;; |
Mike McCormack | a6ea0f6 | 2006-06-05 14:01:10 +0900 | [diff] [blame] | 24808 | "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24809 | "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;; |
| 24810 | "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;; |
| 24811 | "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;; |
| 24812 | "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;; |
Paul Vriens | 569a452 | 2006-06-13 14:16:58 +0200 | [diff] [blame] | 24813 | "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24814 | "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;; |
| 24815 | "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;; |
| 24816 | "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
| 24817 | "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;; |
| 24818 | "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;; |
| 24819 | "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;; |
| 24820 | "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;; |
| 24821 | "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;; |
| 24822 | "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;; |
| 24823 | "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;; |
| 24824 | "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;; |
| 24825 | "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;; |
| 24826 | "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 24827 | "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;; |
| 24828 | "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;; |
Alexandre Julliard | bdb4fab | 2006-06-16 09:57:50 +0200 | [diff] [blame] | 24829 | "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24830 | "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
| 24831 | "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;; |
| 24832 | "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 24833 | "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 24834 | "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;; |
| 24835 | "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; |
| 24836 | "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
| 24837 | "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 24838 | "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24839 | "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;; |
| 24840 | "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;; |
| 24841 | "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; |
| 24842 | "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 24843 | "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;; |
| 24844 | "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;; |
| 24845 | "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;; |
| 24846 | "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;; |
| 24847 | "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
Paul Vriens | 95bb903 | 2006-08-29 10:25:47 +0200 | [diff] [blame^] | 24848 | "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24849 | "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;; |
| 24850 | "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;; |
| 24851 | "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 24852 | "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;; |
| 24853 | "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;; |
| 24854 | "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
| 24855 | "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24856 | "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
| 24857 | "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;; |
| 24858 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
| 24859 | "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; |
| 24860 | "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24861 | "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;; |
| 24862 | "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;; |
| 24863 | "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;; |
| 24864 | "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 24865 | "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 24866 | "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 24867 | "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
| 24868 | "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;; |
| 24869 | "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
| 24870 | "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;; |
| 24871 | "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;; |
| 24872 | "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;; |
| 24873 | "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;; |
| 24874 | "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;; |
| 24875 | "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
Piotr Caban | 68f590c | 2006-06-14 19:50:28 +0200 | [diff] [blame] | 24876 | "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24877 | "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
| 24878 | "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
| 24879 | "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
| 24880 | "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;; |
| 24881 | "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;; |
| 24882 | "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;; |
| 24883 | "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;; |
| 24884 | "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 24885 | "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 24886 | "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
| 24887 | "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;; |
| 24888 | "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;; |
| 24889 | "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;; |
| 24890 | "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
| 24891 | "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;; |
| 24892 | "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; |
| 24893 | "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;; |
| 24894 | "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
| 24895 | "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
| 24896 | "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;; |
| 24897 | "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;; |
| 24898 | "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 24899 | "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
| 24900 | "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;; |
| 24901 | "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 24902 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
| 24903 | "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24904 | "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 24905 | "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
| 24906 | "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;; |
| 24907 | "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
| 24908 | "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
| 24909 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24910 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24911 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 24912 | { (exit 1); exit 1; }; };; |
| 24913 | esac |
| 24914 | done |
| 24915 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24916 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24917 | # If the user did not use the arguments to specify the items to instantiate, |
| 24918 | # then the envvar interface is used. Set only those that are not. |
| 24919 | # We use the long form for the default assignment because of an extremely |
| 24920 | # bizarre bug on SunOS 4.1.3. |
| 24921 | if $ac_need_defaults; then |
| 24922 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 24923 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 24924 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 24925 | fi |
| 24926 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24927 | # Have a temporary directory for convenience. Make it in the build tree |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24928 | # 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] | 24929 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24930 | # Hook for its removal unless debugging. |
| 24931 | # Note that there is a small window in which the directory will not be cleaned: |
| 24932 | # after its creation but before its name has been assigned to `$tmp'. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24933 | $debug || |
| 24934 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24935 | tmp= |
| 24936 | trap 'exit_status=$? |
| 24937 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 24938 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24939 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 24940 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24941 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24942 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24943 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24944 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24945 | test -n "$tmp" && test -d "$tmp" |
| 24946 | } || |
| 24947 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24948 | tmp=./conf$$-$RANDOM |
| 24949 | (umask 077 && mkdir "$tmp") |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24950 | } || |
| 24951 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24952 | echo "$me: cannot create a temporary directory in ." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24953 | { (exit 1); exit 1; } |
| 24954 | } |
| 24955 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24956 | # |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24957 | # Set up the sed scripts for CONFIG_FILES section. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24958 | # |
| 24959 | |
| 24960 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 24961 | # This happens for instance when ./config.status config.h |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24962 | if test -n "$CONFIG_FILES"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24963 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24964 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24965 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24966 | # Create sed commands to just substitute file output variables. |
| 24967 | |
| 24968 | # Remaining file output variables are in a fragment that also has non-file |
| 24969 | # output varibles. |
| 24970 | |
| 24971 | |
| 24972 | |
| 24973 | ac_delim='%!_!# ' |
| 24974 | for ac_last_try in false false false false false :; do |
| 24975 | cat >conf$$subs.sed <<_ACEOF |
| 24976 | SHELL!$SHELL$ac_delim |
| 24977 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 24978 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 24979 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 24980 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 24981 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 24982 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 24983 | exec_prefix!$exec_prefix$ac_delim |
| 24984 | prefix!$prefix$ac_delim |
| 24985 | program_transform_name!$program_transform_name$ac_delim |
| 24986 | bindir!$bindir$ac_delim |
| 24987 | sbindir!$sbindir$ac_delim |
| 24988 | libexecdir!$libexecdir$ac_delim |
| 24989 | datarootdir!$datarootdir$ac_delim |
| 24990 | datadir!$datadir$ac_delim |
| 24991 | sysconfdir!$sysconfdir$ac_delim |
| 24992 | sharedstatedir!$sharedstatedir$ac_delim |
| 24993 | localstatedir!$localstatedir$ac_delim |
| 24994 | includedir!$includedir$ac_delim |
| 24995 | oldincludedir!$oldincludedir$ac_delim |
| 24996 | docdir!$docdir$ac_delim |
| 24997 | infodir!$infodir$ac_delim |
| 24998 | htmldir!$htmldir$ac_delim |
| 24999 | dvidir!$dvidir$ac_delim |
| 25000 | pdfdir!$pdfdir$ac_delim |
| 25001 | psdir!$psdir$ac_delim |
| 25002 | libdir!$libdir$ac_delim |
| 25003 | localedir!$localedir$ac_delim |
| 25004 | mandir!$mandir$ac_delim |
| 25005 | DEFS!$DEFS$ac_delim |
| 25006 | ECHO_C!$ECHO_C$ac_delim |
| 25007 | ECHO_N!$ECHO_N$ac_delim |
| 25008 | ECHO_T!$ECHO_T$ac_delim |
| 25009 | LIBS!$LIBS$ac_delim |
| 25010 | build_alias!$build_alias$ac_delim |
| 25011 | host_alias!$host_alias$ac_delim |
| 25012 | target_alias!$target_alias$ac_delim |
| 25013 | build!$build$ac_delim |
| 25014 | build_cpu!$build_cpu$ac_delim |
| 25015 | build_vendor!$build_vendor$ac_delim |
| 25016 | build_os!$build_os$ac_delim |
| 25017 | host!$host$ac_delim |
| 25018 | host_cpu!$host_cpu$ac_delim |
| 25019 | host_vendor!$host_vendor$ac_delim |
| 25020 | host_os!$host_os$ac_delim |
| 25021 | WIN16_FILES!$WIN16_FILES$ac_delim |
| 25022 | WIN16_INSTALL!$WIN16_INSTALL$ac_delim |
| 25023 | SET_MAKE!$SET_MAKE$ac_delim |
| 25024 | CC!$CC$ac_delim |
| 25025 | CFLAGS!$CFLAGS$ac_delim |
| 25026 | LDFLAGS!$LDFLAGS$ac_delim |
| 25027 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 25028 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 25029 | EXEEXT!$EXEEXT$ac_delim |
| 25030 | OBJEXT!$OBJEXT$ac_delim |
| 25031 | CXX!$CXX$ac_delim |
| 25032 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 25033 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 25034 | CPPBIN!$CPPBIN$ac_delim |
| 25035 | TOOLSDIR!$TOOLSDIR$ac_delim |
| 25036 | XMKMF!$XMKMF$ac_delim |
| 25037 | CPP!$CPP$ac_delim |
| 25038 | X_CFLAGS!$X_CFLAGS$ac_delim |
| 25039 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
| 25040 | X_LIBS!$X_LIBS$ac_delim |
| 25041 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
| 25042 | LEX!$LEX$ac_delim |
| 25043 | LEXLIB!$LEXLIB$ac_delim |
| 25044 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
| 25045 | XLEX!$XLEX$ac_delim |
| 25046 | BISON!$BISON$ac_delim |
| 25047 | AS!$AS$ac_delim |
| 25048 | ac_ct_AS!$ac_ct_AS$ac_delim |
| 25049 | LD!$LD$ac_delim |
| 25050 | AR!$AR$ac_delim |
| 25051 | RANLIB!$RANLIB$ac_delim |
| 25052 | STRIP!$STRIP$ac_delim |
| 25053 | WINDRES!$WINDRES$ac_delim |
| 25054 | LN_S!$LN_S$ac_delim |
Alexandre Julliard | fdfc24c | 2006-08-05 21:17:11 +0200 | [diff] [blame] | 25055 | LN!$LN$ac_delim |
| 25056 | GREP!$GREP$ac_delim |
| 25057 | EGREP!$EGREP$ac_delim |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25058 | _ACEOF |
| 25059 | |
Alexandre Julliard | fdfc24c | 2006-08-05 21:17:11 +0200 | [diff] [blame] | 25060 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25061 | break |
| 25062 | elif $ac_last_try; then |
| 25063 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 25064 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 25065 | { (exit 1); exit 1; }; } |
| 25066 | else |
| 25067 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25068 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25069 | done |
| 25070 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25071 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 25072 | if test -n "$ac_eof"; then |
| 25073 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 25074 | ac_eof=`expr $ac_eof + 1` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25075 | fi |
| 25076 | |
| 25077 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25078 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 25079 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 25080 | /^[ ]*@MAKE_RULES@[ ]*$/{ |
| 25081 | r $MAKE_RULES |
| 25082 | d |
| 25083 | } |
| 25084 | /^[ ]*@MAKE_DLL_RULES@[ ]*$/{ |
| 25085 | r $MAKE_DLL_RULES |
| 25086 | d |
| 25087 | } |
| 25088 | /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{ |
| 25089 | r $MAKE_IMPLIB_RULES |
| 25090 | d |
| 25091 | } |
| 25092 | /^[ ]*@MAKE_TEST_RULES@[ ]*$/{ |
| 25093 | r $MAKE_TEST_RULES |
| 25094 | d |
| 25095 | } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25096 | /^[ ]*@MAKE_PROG_RULES@[ ]*$/{ |
| 25097 | r $MAKE_PROG_RULES |
| 25098 | d |
| 25099 | } |
| 25100 | _ACEOF |
| 25101 | sed ' |
| 25102 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 25103 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 25104 | :n |
| 25105 | t n |
| 25106 | s/'"$ac_delim"'$/,g/; t |
| 25107 | s/$/\\/; p |
| 25108 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 25109 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 25110 | rm -f conf$$subs.sed |
| 25111 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25112 | CEOF$ac_eof |
| 25113 | _ACEOF |
| 25114 | |
| 25115 | |
| 25116 | ac_delim='%!_!# ' |
| 25117 | for ac_last_try in false false false false false :; do |
| 25118 | cat >conf$$subs.sed <<_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25119 | LDCONFIG!$LDCONFIG$ac_delim |
| 25120 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 25121 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 25122 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 25123 | LINT!$LINT$ac_delim |
| 25124 | LINTFLAGS!$LINTFLAGS$ac_delim |
| 25125 | FONTFORGE!$FONTFORGE$ac_delim |
| 25126 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
| 25127 | PRELINK!$PRELINK$ac_delim |
| 25128 | LIBPTHREAD!$LIBPTHREAD$ac_delim |
| 25129 | XLIB!$XLIB$ac_delim |
| 25130 | XFILES!$XFILES$ac_delim |
| 25131 | OPENGLFILES!$OPENGLFILES$ac_delim |
| 25132 | GLU32FILES!$GLU32FILES$ac_delim |
| 25133 | OPENGL_LIBS!$OPENGL_LIBS$ac_delim |
| 25134 | GLUT_LIBS!$GLUT_LIBS$ac_delim |
| 25135 | GLUT32FILES!$GLUT32FILES$ac_delim |
| 25136 | NASLIBS!$NASLIBS$ac_delim |
| 25137 | XML2LIBS!$XML2LIBS$ac_delim |
| 25138 | XML2INCL!$XML2INCL$ac_delim |
| 25139 | XSLTLIBS!$XSLTLIBS$ac_delim |
| 25140 | XSLTINCL!$XSLTINCL$ac_delim |
| 25141 | HALINCL!$HALINCL$ac_delim |
| 25142 | CURSESLIBS!$CURSESLIBS$ac_delim |
| 25143 | sane_devel!$sane_devel$ac_delim |
| 25144 | SANELIBS!$SANELIBS$ac_delim |
| 25145 | SANEINCL!$SANEINCL$ac_delim |
| 25146 | gphoto2_devel!$gphoto2_devel$ac_delim |
| 25147 | gphoto2port_devel!$gphoto2port_devel$ac_delim |
| 25148 | GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim |
| 25149 | GPHOTO2INCL!$GPHOTO2INCL$ac_delim |
| 25150 | ICULIBS!$ICULIBS$ac_delim |
| 25151 | RESOLVLIBS!$RESOLVLIBS$ac_delim |
| 25152 | LCMSLIBS!$LCMSLIBS$ac_delim |
| 25153 | LDAPLIBS!$LDAPLIBS$ac_delim |
| 25154 | FREETYPELIBS!$FREETYPELIBS$ac_delim |
| 25155 | FREETYPEINCL!$FREETYPEINCL$ac_delim |
| 25156 | ft_devel!$ft_devel$ac_delim |
| 25157 | ft_devel2!$ft_devel2$ac_delim |
| 25158 | FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim |
| 25159 | ARTSCCONFIG!$ARTSCCONFIG$ac_delim |
| 25160 | ARTSLIBS!$ARTSLIBS$ac_delim |
| 25161 | ARTSINCL!$ARTSINCL$ac_delim |
| 25162 | ESDCONFIG!$ESDCONFIG$ac_delim |
| 25163 | ESDLIBS!$ESDLIBS$ac_delim |
| 25164 | ESDINCL!$ESDINCL$ac_delim |
| 25165 | ALSALIBS!$ALSALIBS$ac_delim |
| 25166 | AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim |
| 25167 | EXTRACFLAGS!$EXTRACFLAGS$ac_delim |
| 25168 | BUILTINFLAG!$BUILTINFLAG$ac_delim |
| 25169 | DLLEXT!$DLLEXT$ac_delim |
| 25170 | DLLFLAGS!$DLLFLAGS$ac_delim |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25171 | LDSHARED!$LDSHARED$ac_delim |
| 25172 | LDDLLFLAGS!$LDDLLFLAGS$ac_delim |
| 25173 | LIBEXT!$LIBEXT$ac_delim |
| 25174 | IMPLIBEXT!$IMPLIBEXT$ac_delim |
Alexandre Julliard | 13a93b4 | 2006-08-25 17:23:44 +0200 | [diff] [blame] | 25175 | LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25176 | DLLTOOL!$DLLTOOL$ac_delim |
| 25177 | DLLWRAP!$DLLWRAP$ac_delim |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25178 | COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim |
| 25179 | IOKITLIB!$IOKITLIB$ac_delim |
Alexandre Julliard | 42b81ea | 2006-08-15 12:55:25 +0200 | [diff] [blame] | 25180 | LDEXECFLAGS!$LDEXECFLAGS$ac_delim |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 25181 | COREAUDIO!$COREAUDIO$ac_delim |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25182 | CROSSTEST!$CROSSTEST$ac_delim |
| 25183 | CROSSCC!$CROSSCC$ac_delim |
| 25184 | CROSSWINDRES!$CROSSWINDRES$ac_delim |
| 25185 | LDPATH!$LDPATH$ac_delim |
| 25186 | CRTLIBS!$CRTLIBS$ac_delim |
| 25187 | SOCKETLIBS!$SOCKETLIBS$ac_delim |
| 25188 | MAIN_BINARY!$MAIN_BINARY$ac_delim |
| 25189 | EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim |
| 25190 | LDD!$LDD$ac_delim |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 25191 | LIBDL!$LIBDL$ac_delim |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 25192 | LIBPOLL!$LIBPOLL$ac_delim |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25193 | LIBOBJS!$LIBOBJS$ac_delim |
| 25194 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 25195 | _ACEOF |
| 25196 | |
Alexandre Julliard | 4e8cb61 | 2006-08-16 13:25:08 +0200 | [diff] [blame] | 25197 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25198 | break |
| 25199 | elif $ac_last_try; then |
| 25200 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 25201 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 25202 | { (exit 1); exit 1; }; } |
| 25203 | else |
| 25204 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 25205 | fi |
| 25206 | done |
| 25207 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25208 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 25209 | if test -n "$ac_eof"; then |
| 25210 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 25211 | ac_eof=`expr $ac_eof + 1` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25212 | fi |
| 25213 | |
| 25214 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25215 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 25216 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 25217 | _ACEOF |
| 25218 | sed ' |
| 25219 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 25220 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 25221 | :n |
| 25222 | t n |
| 25223 | s/'"$ac_delim"'$/,g/; t |
| 25224 | s/$/\\/; p |
| 25225 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 25226 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 25227 | rm -f conf$$subs.sed |
| 25228 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25229 | :end |
| 25230 | s/|#_!!_#|//g |
| 25231 | CEOF$ac_eof |
| 25232 | _ACEOF |
| 25233 | |
| 25234 | |
| 25235 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 25236 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 25237 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 25238 | # (actually we leave an empty line to preserve line numbers). |
| 25239 | if test "x$srcdir" = x.; then |
| 25240 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 25241 | s/:*\$(srcdir):*/:/ |
| 25242 | s/:*\${srcdir}:*/:/ |
| 25243 | s/:*@srcdir@:*/:/ |
| 25244 | s/^\([^=]*=[ ]*\):*/\1/ |
| 25245 | s/:*$// |
| 25246 | s/^[^=]*=[ ]*$// |
| 25247 | }' |
| 25248 | fi |
| 25249 | |
| 25250 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25251 | fi # test -n "$CONFIG_FILES" |
| 25252 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25253 | |
| 25254 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 25255 | do |
| 25256 | case $ac_tag in |
| 25257 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 25258 | esac |
| 25259 | case $ac_mode$ac_tag in |
| 25260 | :[FHL]*:*);; |
| 25261 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 25262 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 25263 | { (exit 1); exit 1; }; };; |
| 25264 | :[FH]-) ac_tag=-:-;; |
| 25265 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 25266 | esac |
| 25267 | ac_save_IFS=$IFS |
| 25268 | IFS=: |
| 25269 | set x $ac_tag |
| 25270 | IFS=$ac_save_IFS |
| 25271 | shift |
| 25272 | ac_file=$1 |
| 25273 | shift |
| 25274 | |
| 25275 | case $ac_mode in |
| 25276 | :L) ac_source=$1;; |
| 25277 | :[FH]) |
| 25278 | ac_file_inputs= |
| 25279 | for ac_f |
| 25280 | do |
| 25281 | case $ac_f in |
| 25282 | -) ac_f="$tmp/stdin";; |
| 25283 | *) # Look for the file first in the build tree, then in the source tree |
| 25284 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 25285 | # because $ac_f cannot contain `:'. |
| 25286 | test -f "$ac_f" || |
| 25287 | case $ac_f in |
| 25288 | [\\/$]*) false;; |
| 25289 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 25290 | esac || |
| 25291 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 25292 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 25293 | { (exit 1); exit 1; }; };; |
| 25294 | esac |
| 25295 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 25296 | done |
| 25297 | |
| 25298 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 25299 | # use $as_me), people would be surprised to read: |
| 25300 | # /* config.h. Generated by config.status. */ |
| 25301 | configure_input="Generated from "`IFS=: |
| 25302 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 25303 | if test x"$ac_file" != x-; then |
| 25304 | configure_input="$ac_file. $configure_input" |
| 25305 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 25306 | echo "$as_me: creating $ac_file" >&6;} |
| 25307 | fi |
| 25308 | |
| 25309 | case $ac_tag in |
| 25310 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 25311 | esac |
| 25312 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25313 | esac |
| 25314 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25315 | ac_dir=`$as_dirname -- "$ac_file" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25316 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 25317 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 25318 | X"$ac_file" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25319 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25320 | echo X"$ac_file" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25322 | s//\1/ |
| 25323 | q |
| 25324 | } |
| 25325 | /^X\(\/\/\)[^/].*/{ |
| 25326 | s//\1/ |
| 25327 | q |
| 25328 | } |
| 25329 | /^X\(\/\/\)$/{ |
| 25330 | s//\1/ |
| 25331 | q |
| 25332 | } |
| 25333 | /^X\(\/\).*/{ |
| 25334 | s//\1/ |
| 25335 | q |
| 25336 | } |
| 25337 | s/.*/./; q'` |
| 25338 | { as_dir="$ac_dir" |
| 25339 | case $as_dir in #( |
| 25340 | -*) as_dir=./$as_dir;; |
| 25341 | esac |
| 25342 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25343 | as_dirs= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25344 | while :; do |
| 25345 | case $as_dir in #( |
| 25346 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 25347 | *) as_qdir=$as_dir;; |
| 25348 | esac |
| 25349 | as_dirs="'$as_qdir' $as_dirs" |
| 25350 | as_dir=`$as_dirname -- "$as_dir" || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25351 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 25352 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25353 | X"$as_dir" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25354 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25355 | echo X"$as_dir" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25356 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25357 | s//\1/ |
| 25358 | q |
| 25359 | } |
| 25360 | /^X\(\/\/\)[^/].*/{ |
| 25361 | s//\1/ |
| 25362 | q |
| 25363 | } |
| 25364 | /^X\(\/\/\)$/{ |
| 25365 | s//\1/ |
| 25366 | q |
| 25367 | } |
| 25368 | /^X\(\/\).*/{ |
| 25369 | s//\1/ |
| 25370 | q |
| 25371 | } |
| 25372 | s/.*/./; q'` |
| 25373 | test -d "$as_dir" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25374 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25375 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 25376 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 25377 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25378 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25379 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25380 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25381 | case "$ac_dir" in |
| 25382 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25383 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25384 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25385 | # A ".." for each directory in $ac_dir_suffix. |
| 25386 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 25387 | case $ac_top_builddir_sub in |
| 25388 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25389 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 25390 | esac ;; |
| 25391 | esac |
| 25392 | ac_abs_top_builddir=$ac_pwd |
| 25393 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 25394 | # for backward compatibility: |
| 25395 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25396 | |
| 25397 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25398 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25399 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25400 | ac_top_srcdir=$ac_top_builddir_sub |
| 25401 | ac_abs_top_srcdir=$ac_pwd ;; |
| 25402 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25403 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25404 | ac_top_srcdir=$srcdir |
| 25405 | ac_abs_top_srcdir=$srcdir ;; |
| 25406 | *) # Relative name. |
| 25407 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 25408 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 25409 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25410 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25411 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 25412 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25413 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25414 | case $ac_mode in |
| 25415 | :F) |
| 25416 | # |
| 25417 | # CONFIG_FILE |
| 25418 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25419 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25420 | case $INSTALL in |
| 25421 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25422 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 25423 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25424 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25425 | |
| 25426 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25427 | # If the template does not know about datarootdir, expand it. |
| 25428 | # FIXME: This hack should be removed a few years after 2.60. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25429 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25430 | |
| 25431 | case `sed -n '/datarootdir/ { |
| 25432 | p |
| 25433 | q |
| 25434 | } |
| 25435 | /@datadir@/p |
| 25436 | /@docdir@/p |
| 25437 | /@infodir@/p |
| 25438 | /@localedir@/p |
| 25439 | /@mandir@/p |
| 25440 | ' $ac_file_inputs` in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25441 | *datarootdir*) ac_datarootdir_seen=yes;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25442 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 25443 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 25444 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 25445 | _ACEOF |
| 25446 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25447 | ac_datarootdir_hack=' |
| 25448 | s&@datadir@&$datadir&g |
| 25449 | s&@docdir@&$docdir&g |
| 25450 | s&@infodir@&$infodir&g |
| 25451 | s&@localedir@&$localedir&g |
| 25452 | s&@mandir@&$mandir&g |
| 25453 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 25454 | esac |
| 25455 | _ACEOF |
| 25456 | |
| 25457 | # Neutralize VPATH when `$srcdir' = `.'. |
| 25458 | # Shell code in configure.ac might set extrasub. |
| 25459 | # FIXME: do we really want to maintain this feature? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25460 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25461 | sed "$ac_vpsub |
| 25462 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25463 | _ACEOF |
| 25464 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25465 | :t |
| 25466 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25467 | s&@configure_input@&$configure_input&;t t |
| 25468 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 25469 | s&@srcdir@&$ac_srcdir&;t t |
| 25470 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 25471 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 25472 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 25473 | s&@builddir@&$ac_builddir&;t t |
| 25474 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 25475 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 25476 | s&@INSTALL@&$ac_INSTALL&;t t |
| 25477 | $ac_datarootdir_hack |
| 25478 | " $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] | 25479 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25480 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 25481 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 25482 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25483 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 25484 | which seems to be undefined. Please make sure it is defined." >&5 |
| 25485 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 25486 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 25487 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25488 | rm -f "$tmp/stdin" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25489 | case $ac_file in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25490 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 25491 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25492 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25493 | ;; |
| 25494 | :H) |
| 25495 | # |
| 25496 | # CONFIG_HEADER |
| 25497 | # |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25498 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25499 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25500 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 25501 | # substitutes the proper values into config.h.in to produce config.h. |
| 25502 | rm -f conftest.defines conftest.tail |
| 25503 | # First, append a space to every undef/define line, to ease matching. |
| 25504 | echo 's/$/ /' >conftest.defines |
| 25505 | # Then, protect against being on the right side of a sed subst, or in |
| 25506 | # an unquoted here document, in config.status. If some macros were |
| 25507 | # called several times there might be several #defines for the same |
| 25508 | # symbol, which is useless. But do not sort them, since the last |
| 25509 | # AC_DEFINE must be honored. |
| 25510 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25511 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 25512 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 25513 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 25514 | # just an empty string. |
| 25515 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 25516 | ac_dB='\\)[ (].*,\\1define\\2' |
| 25517 | ac_dC=' ' |
| 25518 | ac_dD=' ,' |
| 25519 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25520 | uniq confdefs.h | |
| 25521 | sed -n ' |
| 25522 | t rset |
| 25523 | :rset |
| 25524 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 25525 | t ok |
| 25526 | d |
| 25527 | :ok |
| 25528 | s/[\\&,]/\\&/g |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25529 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 25530 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25531 | ' >>conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25532 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25533 | # Remove the space that was appended to ease matching. |
| 25534 | # Then replace #undef with comments. This is necessary, for |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25535 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 25536 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25537 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 25538 | echo 's/ $// |
| 25539 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25540 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25541 | # Break up conftest.defines: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25542 | ac_max_sed_lines=50 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25543 | |
| 25544 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 25545 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 25546 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 25547 | # et cetera. |
| 25548 | ac_in='$ac_file_inputs' |
| 25549 | ac_out='"$tmp/out1"' |
| 25550 | ac_nxt='"$tmp/out2"' |
| 25551 | |
| 25552 | while : |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25553 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25554 | # Write a here document: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25555 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25556 | # First, check the format of the line: |
| 25557 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 25558 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 25559 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25560 | b |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25561 | :def |
| 25562 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25563 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25564 | echo 'CEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25565 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 25566 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 25567 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 25568 | grep . conftest.tail >/dev/null || break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25569 | rm -f conftest.defines |
| 25570 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25571 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25572 | rm -f conftest.defines conftest.tail |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25573 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25574 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25575 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25576 | if test x"$ac_file" != x-; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25577 | echo "/* $configure_input */" >"$tmp/config.h" |
| 25578 | cat "$ac_result" >>"$tmp/config.h" |
| 25579 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25580 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25581 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 25582 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25583 | rm -f $ac_file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25584 | mv "$tmp/config.h" $ac_file |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25585 | fi |
| 25586 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25587 | echo "/* $configure_input */" |
| 25588 | cat "$ac_result" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25589 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25590 | rm -f "$tmp/out12" |
| 25591 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25592 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25593 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 25594 | echo "$as_me: executing $ac_file commands" >&6;} |
| 25595 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25596 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25597 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25598 | |
| 25599 | case $ac_file$ac_mode in |
| 25600 | "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
| 25601 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
| 25602 | "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
| 25603 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
| 25604 | "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
| 25605 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
| 25606 | "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
| 25607 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
| 25608 | "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5 |
| 25609 | echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;; |
| 25610 | "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
| 25611 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
| 25612 | |
| 25613 | esac |
| 25614 | done # for ac_tag |
| 25615 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 25616 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25617 | { (exit 0); exit 0; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25618 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25619 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25620 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25621 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25622 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25623 | # configure is writing to config.log, and then calls config.status. |
| 25624 | # config.status does its own redirection, appending to config.log. |
| 25625 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 25626 | # by configure, so config.status won't be able to write to it; its |
| 25627 | # output is simply discarded. So we exec the FD to /dev/null, |
| 25628 | # effectively closing config.log, so it can be properly (re)opened and |
| 25629 | # appended to by config.status. When coming back to configure, we |
| 25630 | # need to make the FD available again. |
| 25631 | if test "$no_create" != yes; then |
| 25632 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25633 | ac_config_status_args= |
| 25634 | test "$silent" = yes && |
| 25635 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25636 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25637 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25638 | exec 5>>config.log |
| 25639 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 25640 | # would make configure fail if this is the last instruction. |
| 25641 | $ac_cs_success || { (exit 1); exit 1; } |
| 25642 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25643 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25644 | |
Detlef Riekenberg | e84a382 | 2006-08-21 05:28:17 +0200 | [diff] [blame] | 25645 | |
| 25646 | if test "$verbose" = "yes" |
| 25647 | then |
| 25648 | if test "$ac_cv_header_cups_cups_h" != "yes" |
| 25649 | then |
| 25650 | echo >&2 |
| 25651 | { echo "$as_me:$LINENO: libcups development files not found." >&5 |
| 25652 | echo "$as_me: libcups development files not found." >&6;} |
| 25653 | { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5 |
| 25654 | echo "$as_me: Wine will be built without CUPS support." >&6;} |
| 25655 | fi |
| 25656 | |
| 25657 | |
| 25658 | if test "$ac_cv_header_gphoto2_camera_h" != "yes" |
| 25659 | then |
| 25660 | echo >&2 |
| 25661 | { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5 |
| 25662 | echo "$as_me: libgphoto2 development files not found." >&6;} |
| 25663 | if test "$ac_cv_header_sane_sane_h" = "yes" |
| 25664 | then |
| 25665 | { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5 |
| 25666 | echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;} |
| 25667 | else |
| 25668 | { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5 |
| 25669 | echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;} |
| 25670 | fi |
| 25671 | fi |
| 25672 | |
| 25673 | if test "$ac_cv_header_hal_libhal_h" != "yes" |
| 25674 | then |
| 25675 | echo >&2 |
| 25676 | { echo "$as_me:$LINENO: libhal development files not found." >&5 |
| 25677 | echo "$as_me: libhal development files not found." >&6;} |
| 25678 | { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5 |
| 25679 | echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;} |
| 25680 | fi |
| 25681 | |
| 25682 | if test "$ac_cv_header_unicode_ubidi_h" != "yes" |
| 25683 | then |
| 25684 | echo >&2 |
| 25685 | { echo "$as_me:$LINENO: libicu development files not found." >&5 |
| 25686 | echo "$as_me: libicu development files not found." >&6;} |
| 25687 | { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5 |
| 25688 | echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;} |
| 25689 | fi |
| 25690 | |
| 25691 | if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes" |
| 25692 | then |
| 25693 | echo >&2 |
| 25694 | { echo "$as_me:$LINENO: liblcms development files not found." >&5 |
| 25695 | echo "$as_me: liblcms development files not found." >&6;} |
| 25696 | { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5 |
| 25697 | echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;} |
| 25698 | fi |
| 25699 | |
| 25700 | if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes" |
| 25701 | then |
| 25702 | echo >&2 |
| 25703 | { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5 |
| 25704 | echo "$as_me: libldap (OpenLDAP) development files not found." >&6;} |
| 25705 | { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5 |
| 25706 | echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;} |
| 25707 | fi |
| 25708 | |
| 25709 | if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes" |
| 25710 | then |
| 25711 | echo >&2 |
| 25712 | { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5 |
| 25713 | echo "$as_me: lib(n)curses development files not found." >&6;} |
| 25714 | { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5 |
| 25715 | echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;} |
| 25716 | fi |
| 25717 | |
| 25718 | if test "$ac_cv_header_sane_sane_h" != "yes" |
| 25719 | then |
| 25720 | echo >&2 |
| 25721 | { echo "$as_me:$LINENO: libsane development files not found." >&5 |
| 25722 | echo "$as_me: libsane development files not found." >&6;} |
| 25723 | { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5 |
| 25724 | echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;} |
| 25725 | fi |
| 25726 | |
| 25727 | if test "$ac_cv_header_gif_lib_h" != "yes" |
| 25728 | then |
| 25729 | echo >&2 |
| 25730 | { echo "$as_me:$LINENO: libungif development files not found." >&5 |
| 25731 | echo "$as_me: libungif development files not found." >&6;} |
| 25732 | { echo "$as_me:$LINENO: Wine will be built without GIF support. (oleaut32.dll)" >&5 |
| 25733 | echo "$as_me: Wine will be built without GIF support. (oleaut32.dll)" >&6;} |
| 25734 | fi |
| 25735 | |
| 25736 | if test "$have_x" = "yes" |
| 25737 | then |
| 25738 | if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes" |
| 25739 | then |
| 25740 | echo >&2 |
| 25741 | { echo "$as_me:$LINENO: libxext development files not found." >&5 |
| 25742 | echo "$as_me: libxext development files not found." >&6;} |
| 25743 | { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5 |
| 25744 | echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;} |
| 25745 | fi |
| 25746 | |
| 25747 | if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes" |
| 25748 | then |
| 25749 | echo >&2 |
| 25750 | { echo "$as_me:$LINENO: libXrandr development files not found." >&5 |
| 25751 | echo "$as_me: libXrandr development files not found." >&6;} |
| 25752 | { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5 |
| 25753 | echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;} |
| 25754 | fi |
| 25755 | |
| 25756 | if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes" |
| 25757 | then |
| 25758 | echo >&2 |
| 25759 | { echo "$as_me:$LINENO: libXrender development files not found." >&5 |
| 25760 | echo "$as_me: libXrender development files not found." >&6;} |
| 25761 | { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5 |
| 25762 | echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;} |
| 25763 | fi |
| 25764 | |
| 25765 | if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes" |
| 25766 | then |
| 25767 | echo >&2 |
| 25768 | { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5 |
| 25769 | echo "$as_me: libXxf86vm development files not found." >&6;} |
| 25770 | { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5 |
| 25771 | echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;} |
| 25772 | fi |
| 25773 | fi |
| 25774 | |
| 25775 | if test "$ac_cv_header_libxml_parser_h" != "yes" |
| 25776 | then |
| 25777 | echo >&2 |
| 25778 | { echo "$as_me:$LINENO: libxml2 development files not found." >&5 |
| 25779 | echo "$as_me: libxml2 development files not found." >&6;} |
| 25780 | { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5 |
| 25781 | echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;} |
| 25782 | fi |
| 25783 | |
| 25784 | if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes" |
| 25785 | then |
| 25786 | echo >&2 |
| 25787 | { echo "$as_me:$LINENO: libxslt development files not found." >&5 |
| 25788 | echo "$as_me: libxslt development files not found." >&6;} |
| 25789 | { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5 |
| 25790 | echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;} |
| 25791 | fi |
| 25792 | fi |
| 25793 | |
| 25794 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 25795 | if test "$have_x" = "no" |
| 25796 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25797 | echo >&2 |
| 25798 | { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5 |
| 25799 | echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;} |
| 25800 | { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5 |
| 25801 | echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;} |
| 25802 | { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5 |
| 25803 | echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;} |
| 25804 | { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5 |
| 25805 | echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;} |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 25806 | fi |
| 25807 | |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 25808 | if test "$wine_cv_opengl_headers_found" = "no" -o "$wine_cv_opengl_header_version_OK" = "no" -o "$wine_cv_opengl_libs_found" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 25809 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25810 | echo >&2 |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 25811 | { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5 |
| 25812 | echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;} |
| 25813 | { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5 |
| 25814 | echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;} |
| 25815 | if test "$wine_cv_opengl_headers_found" = "no" |
| 25816 | then |
| 25817 | { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5 |
| 25818 | echo "$as_me: WARNING: No OpenGL development headers were found" >&2;} |
| 25819 | fi |
| 25820 | if test "$wine_cv_opengl_header_version_OK" = "no" |
| 25821 | then |
| 25822 | { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5 |
| 25823 | echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;} |
| 25824 | fi |
| 25825 | if test "$wine_cv_opengl_libs_found" = "no" |
| 25826 | then |
| 25827 | { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5 |
| 25828 | echo "$as_me: WARNING: No OpenGL library found on this system." >&2;} |
| 25829 | fi |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 25830 | fi |
| 25831 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 25832 | if test "$wine_cv_msg_freetype" = "yes" |
| 25833 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25834 | echo >&2 |
| 25835 | { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5 |
| 25836 | echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;} |
| 25837 | { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5 |
| 25838 | echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;} |
| 25839 | { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5 |
| 25840 | echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;} |
| 25841 | { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5 |
| 25842 | echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;} |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 25843 | fi |
| 25844 | |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 25845 | if test -z "$FONTSSUBDIRS" |
Mike McCormack | 8f6aa41 | 2006-04-04 13:36:51 +0900 | [diff] [blame] | 25846 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25847 | echo >&2 |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 25848 | if test "$FONTFORGE" = "false" |
| 25849 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25850 | { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5 |
| 25851 | echo "$as_me: WARNING: FontForge is missing." >&2;} |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 25852 | else |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25853 | { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5 |
| 25854 | echo "$as_me: WARNING: FreeType is missing." >&2;} |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 25855 | fi |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25856 | { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5 |
| 25857 | echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;} |
Mike McCormack | 8f6aa41 | 2006-04-04 13:36:51 +0900 | [diff] [blame] | 25858 | fi |
| 25859 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 25860 | if test -z "$ALSALIBS" -a \ |
| 25861 | -z "$ARTSC_LIBS" -a \ |
| 25862 | -z "$AUDIOIOLIBS" -a \ |
| 25863 | -z "$NASLIBS" -a \ |
| 25864 | -z "$ESD_LIBS" -a \ |
| 25865 | -z "$ac_cv_lib_soname_jack" -a \ |
| 25866 | "$ac_cv_header_sys_soundcard_h" != "yes" -a \ |
| 25867 | "$ac_cv_header_machine_soundcard_h" != "yes" -a \ |
| 25868 | "$ac_cv_header_soundcard_h" != "yes" |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 25869 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25870 | echo >&2 |
| 25871 | { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5 |
| 25872 | echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;} |
| 25873 | { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5 |
| 25874 | echo "$as_me: WARNING: The currently supported sound systems are:" >&2;} |
| 25875 | { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5 |
| 25876 | echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;} |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 25877 | fi |
| 25878 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25879 | echo |
Vincent BĂ©ron | 5606d10 | 2004-08-19 00:03:45 +0000 | [diff] [blame] | 25880 | echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25881 | echo |
| 25882 | |