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 | e44875b | 2011-03-04 19:25:23 +0100 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.67 for Wine 1.3.15. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4 | # |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5 | # Report bugs to <wine-devel@winehq.org>. |
| 6 | # |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 7 | # |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
| 10 | # Foundation, Inc. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 11 | # |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15 | ## -------------------- ## |
| 16 | ## M4sh Initialization. ## |
| 17 | ## -------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 19 | # Be more Bourne compatible |
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22 | emulate sh |
| 23 | NULLCMD=: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 27 | setopt NO_GLOB_SUBST |
| 28 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 29 | case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 34 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 35 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 36 | |
| 37 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 38 | as_nl=' |
| 39 | ' |
| 40 | export as_nl |
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 46 | # but without wasting forks for bash or zsh. |
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 49 | as_echo='print -r --' |
| 50 | as_echo_n='print -rn --' |
| 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 62 | case $arg in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
| 75 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 83 | fi |
| 84 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 85 | |
| 86 | # IFS |
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
| 88 | # there to prevent editors from complaining about space-tab. |
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 90 | # splitting by setting IFS to empty value.) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 91 | IFS=" "" $as_nl" |
| 92 | |
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 94 | case $0 in #(( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 95 | *[\\/]* ) as_myself=$0 ;; |
| 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 97 | for as_dir in $PATH |
| 98 | do |
| 99 | IFS=$as_save_IFS |
| 100 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 102 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 103 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 104 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 105 | ;; |
| 106 | esac |
| 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 108 | # in which case we are not to be found in the path. |
| 109 | if test "x$as_myself" = x; then |
| 110 | as_myself=$0 |
| 111 | fi |
| 112 | if test ! -f "$as_myself"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 114 | exit 1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 115 | fi |
| 116 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 119 | # suppresses any "Segmentation fault" message there. '((' could |
| 120 | # trigger a bug in pdksh 5.2.14. |
| 121 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 122 | do eval test x\${$as_var+set} = xset \ |
| 123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 124 | done |
| 125 | PS1='$ ' |
| 126 | PS2='> ' |
| 127 | PS4='+ ' |
| 128 | |
| 129 | # NLS nuisances. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 130 | LC_ALL=C |
| 131 | export LC_ALL |
| 132 | LANGUAGE=C |
| 133 | export LANGUAGE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 134 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 135 | # CDPATH. |
| 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 137 | |
| 138 | if test "x$CONFIG_SHELL" = x; then |
| 139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 140 | emulate sh |
| 141 | NULLCMD=: |
| 142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 143 | # is contrary to our usage. Disable this feature. |
| 144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 145 | setopt NO_GLOB_SUBST |
| 146 | else |
| 147 | case \`(set -o) 2>/dev/null\` in #( |
| 148 | *posix*) : |
| 149 | set -o posix ;; #( |
| 150 | *) : |
| 151 | ;; |
| 152 | esac |
| 153 | fi |
| 154 | " |
| 155 | as_required="as_fn_return () { (exit \$1); } |
| 156 | as_fn_success () { as_fn_return 0; } |
| 157 | as_fn_failure () { as_fn_return 1; } |
| 158 | as_fn_ret_success () { return 0; } |
| 159 | as_fn_ret_failure () { return 1; } |
| 160 | |
| 161 | exitcode=0 |
| 162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 167 | |
| 168 | else |
| 169 | exitcode=1; echo positional parameters were not saved. |
| 170 | fi |
| 171 | test x\$exitcode = x0 || exit 1" |
| 172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 176 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 177 | if (eval "$as_required") 2>/dev/null; then : |
| 178 | as_have_required=yes |
| 179 | else |
| 180 | as_have_required=no |
| 181 | fi |
| 182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 183 | |
| 184 | else |
| 185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 186 | as_found=false |
| 187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 188 | do |
| 189 | IFS=$as_save_IFS |
| 190 | test -z "$as_dir" && as_dir=. |
| 191 | as_found=: |
| 192 | case $as_dir in #( |
| 193 | /*) |
| 194 | for as_base in sh bash ksh sh5; do |
| 195 | # Try only shells that exist, to save several forks. |
| 196 | as_shell=$as_dir/$as_base |
| 197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 201 | break 2 |
| 202 | fi |
| 203 | fi |
| 204 | done;; |
| 205 | esac |
| 206 | as_found=false |
| 207 | done |
| 208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 210 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 211 | fi; } |
| 212 | IFS=$as_save_IFS |
| 213 | |
| 214 | |
| 215 | if test "x$CONFIG_SHELL" != x; then : |
| 216 | # We cannot yet assume a decent shell, so we have to provide a |
| 217 | # neutralization value for shells without unset; and this also |
| 218 | # works around shells that cannot unset nonexistent variables. |
| 219 | BASH_ENV=/dev/null |
| 220 | ENV=/dev/null |
| 221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 222 | export CONFIG_SHELL |
| 223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 224 | fi |
| 225 | |
| 226 | if test x$as_have_required = xno; then : |
| 227 | $as_echo "$0: This script requires a shell more modern than all" |
| 228 | $as_echo "$0: the shells that I found on your system." |
| 229 | if test x${ZSH_VERSION+set} = xset ; then |
| 230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 232 | else |
| 233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 234 | $0: wine-devel@winehq.org about your system, including any |
| 235 | $0: error possibly output before this message. Then install |
| 236 | $0: a modern shell, or manually run the script under such a |
| 237 | $0: shell if you do have one." |
| 238 | fi |
| 239 | exit 1 |
| 240 | fi |
| 241 | fi |
| 242 | fi |
| 243 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 244 | export SHELL |
| 245 | # Unset more variables known to interfere with behavior of common tools. |
| 246 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 247 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 248 | |
| 249 | ## --------------------- ## |
| 250 | ## M4sh Shell Functions. ## |
| 251 | ## --------------------- ## |
| 252 | # as_fn_unset VAR |
| 253 | # --------------- |
| 254 | # Portably unset VAR. |
| 255 | as_fn_unset () |
| 256 | { |
| 257 | { eval $1=; unset $1;} |
| 258 | } |
| 259 | as_unset=as_fn_unset |
| 260 | |
| 261 | # as_fn_set_status STATUS |
| 262 | # ----------------------- |
| 263 | # Set $? to STATUS, without forking. |
| 264 | as_fn_set_status () |
| 265 | { |
| 266 | return $1 |
| 267 | } # as_fn_set_status |
| 268 | |
| 269 | # as_fn_exit STATUS |
| 270 | # ----------------- |
| 271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 272 | as_fn_exit () |
| 273 | { |
| 274 | set +e |
| 275 | as_fn_set_status $1 |
| 276 | exit $1 |
| 277 | } # as_fn_exit |
| 278 | |
| 279 | # as_fn_mkdir_p |
| 280 | # ------------- |
| 281 | # Create "$as_dir" as a directory, including parents if necessary. |
| 282 | as_fn_mkdir_p () |
| 283 | { |
| 284 | |
| 285 | case $as_dir in #( |
| 286 | -*) as_dir=./$as_dir;; |
| 287 | esac |
| 288 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 289 | as_dirs= |
| 290 | while :; do |
| 291 | case $as_dir in #( |
| 292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 293 | *) as_qdir=$as_dir;; |
| 294 | esac |
| 295 | as_dirs="'$as_qdir' $as_dirs" |
| 296 | as_dir=`$as_dirname -- "$as_dir" || |
| 297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 298 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 299 | X"$as_dir" : 'X\(//\)$' \| \ |
| 300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 301 | $as_echo X"$as_dir" | |
| 302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 303 | s//\1/ |
| 304 | q |
| 305 | } |
| 306 | /^X\(\/\/\)[^/].*/{ |
| 307 | s//\1/ |
| 308 | q |
| 309 | } |
| 310 | /^X\(\/\/\)$/{ |
| 311 | s//\1/ |
| 312 | q |
| 313 | } |
| 314 | /^X\(\/\).*/{ |
| 315 | s//\1/ |
| 316 | q |
| 317 | } |
| 318 | s/.*/./; q'` |
| 319 | test -d "$as_dir" && break |
| 320 | done |
| 321 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 322 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 323 | |
| 324 | |
| 325 | } # as_fn_mkdir_p |
| 326 | # as_fn_append VAR VALUE |
| 327 | # ---------------------- |
| 328 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 329 | # advantage of any shell optimizations that allow amortized linear growth over |
| 330 | # repeated appends, instead of the typical quadratic growth present in naive |
| 331 | # implementations. |
| 332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 333 | eval 'as_fn_append () |
| 334 | { |
| 335 | eval $1+=\$2 |
| 336 | }' |
| 337 | else |
| 338 | as_fn_append () |
| 339 | { |
| 340 | eval $1=\$$1\$2 |
| 341 | } |
| 342 | fi # as_fn_append |
| 343 | |
| 344 | # as_fn_arith ARG... |
| 345 | # ------------------ |
| 346 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 348 | # must be portable across $(()) and expr. |
| 349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 350 | eval 'as_fn_arith () |
| 351 | { |
| 352 | as_val=$(( $* )) |
| 353 | }' |
| 354 | else |
| 355 | as_fn_arith () |
| 356 | { |
| 357 | as_val=`expr "$@" || test $? -eq 1` |
| 358 | } |
| 359 | fi # as_fn_arith |
| 360 | |
| 361 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 362 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 363 | # ---------------------------------------- |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 366 | # script with STATUS, using 1 if that was 0. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 367 | as_fn_error () |
| 368 | { |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 369 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 370 | if test "$4"; then |
| 371 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 373 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 374 | $as_echo "$as_me: error: $2" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 375 | as_fn_exit $as_status |
| 376 | } # as_fn_error |
| 377 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 378 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 380 | as_expr=expr |
| 381 | else |
| 382 | as_expr=false |
| 383 | fi |
| 384 | |
| 385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 386 | as_basename=basename |
| 387 | else |
| 388 | as_basename=false |
| 389 | fi |
| 390 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 392 | as_dirname=dirname |
| 393 | else |
| 394 | as_dirname=false |
| 395 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 396 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 397 | as_me=`$as_basename -- "$0" || |
| 398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 399 | X"$0" : 'X\(//\)$' \| \ |
| 400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 401 | $as_echo X/"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 403 | s//\1/ |
| 404 | q |
| 405 | } |
| 406 | /^X\/\(\/\/\)$/{ |
| 407 | s//\1/ |
| 408 | q |
| 409 | } |
| 410 | /^X\/\(\/\).*/{ |
| 411 | s//\1/ |
| 412 | q |
| 413 | } |
| 414 | s/.*/./; q'` |
| 415 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 416 | # Avoid depending upon Character Ranges. |
| 417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 420 | as_cr_digits='0123456789' |
| 421 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 422 | |
| 423 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 429 | sed -n ' |
| 430 | p |
| 431 | /[$]LINENO/= |
| 432 | ' <$as_myself | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 433 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 434 | s/[$]LINENO.*/&-/ |
| 435 | t lineno |
| 436 | b |
| 437 | :lineno |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 438 | N |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 439 | :loop |
| 440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 441 | t loop |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 442 | s/-\n.*// |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 443 | ' >$as_me.lineno && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 444 | chmod +x "$as_me.lineno" || |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 446 | |
| 447 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 448 | # (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] | 449 | # original and so on. Autoconf is especially sensitive to this). |
| 450 | . "./$as_me.lineno" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 451 | # Exit status is that of the last command. |
| 452 | exit |
| 453 | } |
| 454 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 455 | ECHO_C= ECHO_N= ECHO_T= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 456 | case `echo -n x` in #((((( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 457 | -n*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 458 | case `echo 'xy\c'` in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 460 | xy) ECHO_C='\c';; |
| 461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 462 | ECHO_T=' ';; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 463 | esac;; |
| 464 | *) |
| 465 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 466 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 467 | |
| 468 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 469 | if test -d conf$$.dir; then |
| 470 | rm -f conf$$.dir/conf$$.file |
| 471 | else |
| 472 | rm -f conf$$.dir |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 473 | mkdir conf$$.dir 2>/dev/null |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 474 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 475 | if (echo >conf$$.file) 2>/dev/null; then |
| 476 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 477 | as_ln_s='ln -s' |
| 478 | # ... but there are two gotchas: |
| 479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 481 | # In both cases, we have to default to `cp -p'. |
| 482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 483 | as_ln_s='cp -p' |
| 484 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 485 | as_ln_s=ln |
| 486 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 487 | as_ln_s='cp -p' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 488 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 489 | else |
| 490 | as_ln_s='cp -p' |
| 491 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 493 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 494 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 495 | if mkdir -p . 2>/dev/null; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 496 | as_mkdir_p='mkdir -p "$as_dir"' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 497 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 498 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 499 | as_mkdir_p=false |
| 500 | fi |
| 501 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 502 | if test -x / >/dev/null 2>&1; then |
| 503 | as_test_x='test -x' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 504 | else |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 505 | if ls -dL / >/dev/null 2>&1; then |
| 506 | as_ls_L_option=L |
| 507 | else |
| 508 | as_ls_L_option= |
| 509 | fi |
| 510 | as_test_x=' |
| 511 | eval sh -c '\'' |
| 512 | if test -d "$1"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 513 | test -d "$1/."; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 514 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 515 | case $1 in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 516 | -*)set "./$1";; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 517 | esac; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 519 | ???[sx]*):;;*)false;;esac;fi |
| 520 | '\'' sh |
| 521 | ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 522 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 523 | as_executable_p=$as_test_x |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 524 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 525 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 526 | 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] | 527 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 528 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 530 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 531 | |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 532 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 533 | exec 6>&1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 534 | |
| 535 | # Name of the host. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 536 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 537 | # so uname gets run too. |
| 538 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 539 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 540 | # |
| 541 | # Initializations. |
| 542 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 543 | ac_default_prefix=/usr/local |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 544 | ac_clean_files= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 545 | ac_config_libobj_dir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 546 | LIBOBJS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 547 | cross_compiling=no |
| 548 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 549 | MFLAGS= |
| 550 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 551 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 552 | # Identity of this package. |
| 553 | PACKAGE_NAME='Wine' |
| 554 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | e44875b | 2011-03-04 19:25:23 +0100 | [diff] [blame] | 555 | PACKAGE_VERSION='1.3.15' |
| 556 | PACKAGE_STRING='Wine 1.3.15' |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 557 | PACKAGE_BUGREPORT='wine-devel@winehq.org' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 558 | PACKAGE_URL='http://www.winehq.org' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 559 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 560 | ac_unique_file="server/atom.c" |
| 561 | # Factoring default headers for most tests. |
| 562 | ac_includes_default="\ |
| 563 | #include <stdio.h> |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 564 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 565 | # include <sys/types.h> |
| 566 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 567 | #ifdef HAVE_SYS_STAT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 568 | # include <sys/stat.h> |
| 569 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 570 | #ifdef STDC_HEADERS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 571 | # include <stdlib.h> |
| 572 | # include <stddef.h> |
| 573 | #else |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 574 | # ifdef HAVE_STDLIB_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 575 | # include <stdlib.h> |
| 576 | # endif |
| 577 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 578 | #ifdef HAVE_STRING_H |
| 579 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 580 | # include <memory.h> |
| 581 | # endif |
| 582 | # include <string.h> |
| 583 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 584 | #ifdef HAVE_STRINGS_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 585 | # include <strings.h> |
| 586 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 587 | #ifdef HAVE_INTTYPES_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 588 | # include <inttypes.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 589 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 590 | #ifdef HAVE_STDINT_H |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 591 | # include <stdint.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 592 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 593 | #ifdef HAVE_UNISTD_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 594 | # include <unistd.h> |
| 595 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 596 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 597 | ac_subst_vars='LTLIBOBJS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 598 | LIBOBJS |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 599 | LINGUAS |
Alexandre Julliard | 454fb3c | 2010-02-08 21:29:13 +0100 | [diff] [blame] | 600 | ALL_TEST_BINARIES |
Alexandre Julliard | 7d83115 | 2010-03-20 15:07:45 +0100 | [diff] [blame] | 601 | ALL_WINETEST_DEPENDS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 602 | LDAPLIBS |
| 603 | LIBPOLL |
| 604 | LIBDL |
| 605 | EXTRA_BINARIES |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 606 | MAIN_BINARY |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 607 | SOCKETLIBS |
| 608 | CRTLIBS |
Alexandre Julliard | b860c4a | 2009-09-01 22:36:13 +0200 | [diff] [blame] | 609 | TOOLSEXT |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 610 | LDPATH |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 611 | UNWINDFLAGS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 612 | BUILTINFLAG |
| 613 | EXTRACFLAGS |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 614 | LIBKSTAT |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 615 | LIBOPENAL |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 616 | LIBMPG123 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 617 | PNGINCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 618 | FONTCONFIGINCL |
| 619 | CUPSINCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 620 | ALSALIBS |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 621 | GSTREAMER_INCL |
| 622 | GSTREAMER_LIBS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 623 | ESDLIBS |
| 624 | ESDINCL |
| 625 | ESDCONFIG |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 626 | LIBGETTEXTPO |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 627 | ZLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 628 | FREETYPEINCL |
| 629 | FREETYPELIBS |
| 630 | ft_devel |
| 631 | LCMSLIBS |
| 632 | RESOLVLIBS |
| 633 | GPHOTO2INCL |
| 634 | GPHOTO2LIBS |
| 635 | gphoto2port_devel |
| 636 | gphoto2_devel |
| 637 | SANEINCL |
| 638 | sane_devel |
| 639 | GNUTLSINCL |
| 640 | HALINCL |
| 641 | XSLTINCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 642 | XML2INCL |
| 643 | XML2LIBS |
| 644 | NASLIBS |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 645 | X_EXTRA_LIBS |
| 646 | X_LIBS |
| 647 | X_PRE_LIBS |
| 648 | X_CFLAGS |
| 649 | XMKMF |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 650 | LIBPTHREAD |
Alexandre Julliard | 1f25421 | 2010-01-23 20:26:49 +0100 | [diff] [blame] | 651 | CROSSTARGET |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 652 | CROSSCC |
Alexandre Julliard | 7d2e772 | 2010-07-26 12:13:47 +0200 | [diff] [blame] | 653 | CROSSTEST_DISABLE |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 654 | PRELINK |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 655 | CARBONLIB |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 656 | QUICKTIMELIB |
Alexandre Julliard | fac6741 | 2010-12-03 14:16:55 +0100 | [diff] [blame] | 657 | LIBOPENCL |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 658 | FRAMEWORK_OPENAL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 659 | COREAUDIO |
| 660 | DISKARBITRATIONLIB |
| 661 | LDEXECFLAGS |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 662 | APPLICATIONSERVICESLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 663 | IOKITLIB |
| 664 | COREFOUNDATIONLIB |
| 665 | SECURITYLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 666 | DLLWRAP |
| 667 | DLLTOOL |
| 668 | LDD |
| 669 | LDRPATH_LOCAL |
| 670 | LDRPATH_INSTALL |
| 671 | IMPLIBEXT |
| 672 | LIBEXT |
| 673 | LDDLLFLAGS |
| 674 | LDSHARED |
| 675 | DLLFLAGS |
| 676 | DLLEXT |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 677 | CPP |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 678 | OPENGL_LIBS |
| 679 | XLIB |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 680 | MAINTAINER_MODE |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 681 | ICOTOOL |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 682 | CONVERT |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 683 | RSVG |
| 684 | PKG_CONFIG |
| 685 | FONTFORGE |
| 686 | LINTFLAGS |
| 687 | LINT |
| 688 | INSTALL_DATA |
| 689 | INSTALL_SCRIPT |
| 690 | INSTALL_PROGRAM |
| 691 | LDCONFIG |
| 692 | EGREP |
| 693 | GREP |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 694 | LN_S |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 695 | STRIP |
| 696 | RANLIB |
| 697 | ARFLAGS |
| 698 | ac_ct_AR |
| 699 | AR |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 700 | BISON |
| 701 | FLEX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 702 | TOOLSDIR |
Alexandre Julliard | 9064777 | 2009-08-13 19:48:42 +0200 | [diff] [blame] | 703 | WOW64_DISABLE |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 704 | TARGETFLAGS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 705 | CPPBIN |
| 706 | ac_ct_CXX |
| 707 | CXXFLAGS |
| 708 | CXX |
| 709 | OBJEXT |
| 710 | EXEEXT |
| 711 | ac_ct_CC |
| 712 | CPPFLAGS |
| 713 | LDFLAGS |
| 714 | CFLAGS |
| 715 | CC |
| 716 | SET_MAKE |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 717 | host_os |
| 718 | host_vendor |
| 719 | host_cpu |
| 720 | host |
| 721 | build_os |
| 722 | build_vendor |
| 723 | build_cpu |
| 724 | build |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 725 | target_alias |
| 726 | host_alias |
| 727 | build_alias |
| 728 | LIBS |
| 729 | ECHO_T |
| 730 | ECHO_N |
| 731 | ECHO_C |
| 732 | DEFS |
| 733 | mandir |
| 734 | localedir |
| 735 | libdir |
| 736 | psdir |
| 737 | pdfdir |
| 738 | dvidir |
| 739 | htmldir |
| 740 | infodir |
| 741 | docdir |
| 742 | oldincludedir |
| 743 | includedir |
| 744 | localstatedir |
| 745 | sharedstatedir |
| 746 | sysconfdir |
| 747 | datadir |
| 748 | datarootdir |
| 749 | libexecdir |
| 750 | sbindir |
| 751 | bindir |
| 752 | program_transform_name |
| 753 | prefix |
| 754 | exec_prefix |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 755 | PACKAGE_URL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 756 | PACKAGE_BUGREPORT |
| 757 | PACKAGE_STRING |
| 758 | PACKAGE_VERSION |
| 759 | PACKAGE_TARNAME |
| 760 | PACKAGE_NAME |
| 761 | PATH_SEPARATOR |
| 762 | SHELL' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 763 | ac_subst_files='MAKE_RULES |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 764 | MAKE_TEST_RULES |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 765 | MAKE_DLL_RULES |
| 766 | MAKE_IMPLIB_RULES |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 767 | MAKE_PROG_RULES' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 768 | ac_user_opts=' |
| 769 | enable_option_checking |
| 770 | enable_win16 |
| 771 | enable_win64 |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 772 | enable_tests |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 773 | enable_maintainer_mode |
| 774 | with_alsa |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 775 | with_capi |
| 776 | with_cms |
| 777 | with_coreaudio |
| 778 | with_cups |
| 779 | with_curses |
| 780 | with_esd |
| 781 | with_fontconfig |
| 782 | with_freetype |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 783 | with_gettextpo |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 784 | with_gphoto |
| 785 | with_glu |
| 786 | with_gnutls |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 787 | with_gsm |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 788 | with_gstreamer |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 789 | with_hal |
| 790 | with_jack |
| 791 | with_jpeg |
| 792 | with_ldap |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 793 | with_mpg123 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 794 | with_nas |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 795 | with_openal |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 796 | with_opencl |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 797 | with_opengl |
| 798 | with_openssl |
| 799 | with_oss |
| 800 | with_png |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 801 | with_pthread |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 802 | with_sane |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 803 | with_tiff |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 804 | with_v4l |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 805 | with_xcomposite |
| 806 | with_xcursor |
| 807 | with_xinerama |
| 808 | with_xinput |
| 809 | with_xml |
| 810 | with_xrandr |
| 811 | with_xrender |
| 812 | with_xshape |
| 813 | with_xshm |
| 814 | with_xslt |
| 815 | with_xxf86vm |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 816 | with_zlib |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 817 | with_wine_tools |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 818 | with_wine64 |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 819 | enable_largefile |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 820 | with_x |
| 821 | ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 822 | ac_precious_vars='build_alias |
| 823 | host_alias |
| 824 | target_alias |
| 825 | CC |
| 826 | CFLAGS |
| 827 | LDFLAGS |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 828 | LIBS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 829 | CPPFLAGS |
| 830 | CXX |
| 831 | CXXFLAGS |
| 832 | CCC |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 833 | CPP |
| 834 | XMKMF' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 835 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 836 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 837 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 838 | ac_init_help= |
| 839 | ac_init_version=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 840 | ac_unrecognized_opts= |
| 841 | ac_unrecognized_sep= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 842 | # The variables have the same names as the options, with |
| 843 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 844 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 845 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 846 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 847 | no_recursion= |
| 848 | prefix=NONE |
| 849 | program_prefix=NONE |
| 850 | program_suffix=NONE |
| 851 | program_transform_name=s,x,x, |
| 852 | silent= |
| 853 | site= |
| 854 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 855 | verbose= |
| 856 | x_includes=NONE |
| 857 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 858 | |
| 859 | # Installation directory options. |
| 860 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 861 | # and all the variables that are supposed to be based on exec_prefix |
| 862 | # by default will actually change. |
| 863 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 864 | # (The list follows the same order as the GNU Coding Standards.) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 865 | bindir='${exec_prefix}/bin' |
| 866 | sbindir='${exec_prefix}/sbin' |
| 867 | libexecdir='${exec_prefix}/libexec' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 868 | datarootdir='${prefix}/share' |
| 869 | datadir='${datarootdir}' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 870 | sysconfdir='${prefix}/etc' |
| 871 | sharedstatedir='${prefix}/com' |
| 872 | localstatedir='${prefix}/var' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 873 | includedir='${prefix}/include' |
| 874 | oldincludedir='/usr/include' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 875 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 876 | infodir='${datarootdir}/info' |
| 877 | htmldir='${docdir}' |
| 878 | dvidir='${docdir}' |
| 879 | pdfdir='${docdir}' |
| 880 | psdir='${docdir}' |
| 881 | libdir='${exec_prefix}/lib' |
| 882 | localedir='${datarootdir}/locale' |
| 883 | mandir='${datarootdir}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 884 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 885 | ac_prev= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 886 | ac_dashdash= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 887 | for ac_option |
| 888 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 889 | # If the previous option needs an argument, assign it. |
| 890 | if test -n "$ac_prev"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 891 | eval $ac_prev=\$ac_option |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 892 | ac_prev= |
| 893 | continue |
| 894 | fi |
| 895 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 896 | case $ac_option in |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 897 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 898 | *=) ac_optarg= ;; |
| 899 | *) ac_optarg=yes ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 900 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 901 | |
| 902 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 903 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 904 | case $ac_dashdash$ac_option in |
| 905 | --) |
| 906 | ac_dashdash=yes ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 907 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 908 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 909 | ac_prev=bindir ;; |
| 910 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 911 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 912 | |
| 913 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 914 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 915 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 916 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 917 | |
| 918 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 919 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 920 | ac_prev=cache_file ;; |
| 921 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 922 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 923 | cache_file=$ac_optarg ;; |
| 924 | |
| 925 | --config-cache | -C) |
| 926 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 927 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 928 | -datadir | --datadir | --datadi | --datad) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 929 | ac_prev=datadir ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 930 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 931 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 932 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 933 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 934 | | --dataroo | --dataro | --datar) |
| 935 | ac_prev=datarootdir ;; |
| 936 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 937 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 938 | datarootdir=$ac_optarg ;; |
| 939 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 940 | -disable-* | --disable-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 941 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 942 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 943 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 944 | as_fn_error $? "invalid feature name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 945 | ac_useropt_orig=$ac_useropt |
| 946 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 947 | case $ac_user_opts in |
| 948 | *" |
| 949 | "enable_$ac_useropt" |
| 950 | "*) ;; |
| 951 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 952 | ac_unrecognized_sep=', ';; |
| 953 | esac |
| 954 | eval enable_$ac_useropt=no ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 955 | |
| 956 | -docdir | --docdir | --docdi | --doc | --do) |
| 957 | ac_prev=docdir ;; |
| 958 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 959 | docdir=$ac_optarg ;; |
| 960 | |
| 961 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 962 | ac_prev=dvidir ;; |
| 963 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 964 | dvidir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 965 | |
| 966 | -enable-* | --enable-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 967 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 968 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 969 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 970 | as_fn_error $? "invalid feature name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 971 | ac_useropt_orig=$ac_useropt |
| 972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 973 | case $ac_user_opts in |
| 974 | *" |
| 975 | "enable_$ac_useropt" |
| 976 | "*) ;; |
| 977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 978 | ac_unrecognized_sep=', ';; |
| 979 | esac |
| 980 | eval enable_$ac_useropt=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 981 | |
| 982 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 983 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 984 | | --exec | --exe | --ex) |
| 985 | ac_prev=exec_prefix ;; |
| 986 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 987 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 988 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 989 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 990 | |
| 991 | -gas | --gas | --ga | --g) |
| 992 | # Obsolete; use --with-gas. |
| 993 | with_gas=yes ;; |
| 994 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 995 | -help | --help | --hel | --he | -h) |
| 996 | ac_init_help=long ;; |
| 997 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 998 | ac_init_help=recursive ;; |
| 999 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1000 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1001 | |
| 1002 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1003 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1004 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1005 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1006 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1007 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1008 | ac_prev=htmldir ;; |
| 1009 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1010 | | --ht=*) |
| 1011 | htmldir=$ac_optarg ;; |
| 1012 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1013 | -includedir | --includedir | --includedi | --included | --include \ |
| 1014 | | --includ | --inclu | --incl | --inc) |
| 1015 | ac_prev=includedir ;; |
| 1016 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1017 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1018 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1019 | |
| 1020 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1021 | ac_prev=infodir ;; |
| 1022 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1023 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1024 | |
| 1025 | -libdir | --libdir | --libdi | --libd) |
| 1026 | ac_prev=libdir ;; |
| 1027 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1028 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1029 | |
| 1030 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1031 | | --libexe | --libex | --libe) |
| 1032 | ac_prev=libexecdir ;; |
| 1033 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1034 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1035 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1036 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1037 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1038 | ac_prev=localedir ;; |
| 1039 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1040 | localedir=$ac_optarg ;; |
| 1041 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1042 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1043 | | --localstate | --localstat | --localsta | --localst | --locals) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1044 | ac_prev=localstatedir ;; |
| 1045 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1046 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1047 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1048 | |
| 1049 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1050 | ac_prev=mandir ;; |
| 1051 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1052 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1053 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1054 | -nfp | --nfp | --nf) |
| 1055 | # Obsolete; use --without-fp. |
| 1056 | with_fp=no ;; |
| 1057 | |
| 1058 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1059 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1060 | no_create=yes ;; |
| 1061 | |
| 1062 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1063 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1064 | no_recursion=yes ;; |
| 1065 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1066 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1067 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1068 | | --oldin | --oldi | --old | --ol | --o) |
| 1069 | ac_prev=oldincludedir ;; |
| 1070 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1071 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1072 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1073 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1074 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1075 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1076 | ac_prev=prefix ;; |
| 1077 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1078 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1079 | |
| 1080 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1081 | | --program-pre | --program-pr | --program-p) |
| 1082 | ac_prev=program_prefix ;; |
| 1083 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1084 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1085 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1086 | |
| 1087 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1088 | | --program-suf | --program-su | --program-s) |
| 1089 | ac_prev=program_suffix ;; |
| 1090 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1091 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1092 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1093 | |
| 1094 | -program-transform-name | --program-transform-name \ |
| 1095 | | --program-transform-nam | --program-transform-na \ |
| 1096 | | --program-transform-n | --program-transform- \ |
| 1097 | | --program-transform | --program-transfor \ |
| 1098 | | --program-transfo | --program-transf \ |
| 1099 | | --program-trans | --program-tran \ |
| 1100 | | --progr-tra | --program-tr | --program-t) |
| 1101 | ac_prev=program_transform_name ;; |
| 1102 | -program-transform-name=* | --program-transform-name=* \ |
| 1103 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1104 | | --program-transform-n=* | --program-transform-=* \ |
| 1105 | | --program-transform=* | --program-transfor=* \ |
| 1106 | | --program-transfo=* | --program-transf=* \ |
| 1107 | | --program-trans=* | --program-tran=* \ |
| 1108 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1109 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1110 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1111 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1112 | ac_prev=pdfdir ;; |
| 1113 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1114 | pdfdir=$ac_optarg ;; |
| 1115 | |
| 1116 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1117 | ac_prev=psdir ;; |
| 1118 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1119 | psdir=$ac_optarg ;; |
| 1120 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1121 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1122 | | -silent | --silent | --silen | --sile | --sil) |
| 1123 | silent=yes ;; |
| 1124 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1125 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1126 | ac_prev=sbindir ;; |
| 1127 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1128 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1129 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1130 | |
| 1131 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1132 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1133 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1134 | | --sha | --sh) |
| 1135 | ac_prev=sharedstatedir ;; |
| 1136 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1137 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1138 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1139 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1140 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1141 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1142 | -site | --site | --sit) |
| 1143 | ac_prev=site ;; |
| 1144 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1145 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1146 | |
| 1147 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1148 | ac_prev=srcdir ;; |
| 1149 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1150 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1151 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1152 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1153 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1154 | ac_prev=sysconfdir ;; |
| 1155 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1156 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1157 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1158 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1159 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1160 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1161 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1162 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1163 | |
| 1164 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1165 | verbose=yes ;; |
| 1166 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1167 | -version | --version | --versio | --versi | --vers | -V) |
| 1168 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1169 | |
| 1170 | -with-* | --with-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1171 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1172 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1173 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1174 | as_fn_error $? "invalid package name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1175 | ac_useropt_orig=$ac_useropt |
| 1176 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1177 | case $ac_user_opts in |
| 1178 | *" |
| 1179 | "with_$ac_useropt" |
| 1180 | "*) ;; |
| 1181 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1182 | ac_unrecognized_sep=', ';; |
| 1183 | esac |
| 1184 | eval with_$ac_useropt=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1185 | |
| 1186 | -without-* | --without-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1187 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1188 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1189 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1190 | as_fn_error $? "invalid package name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1191 | ac_useropt_orig=$ac_useropt |
| 1192 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1193 | case $ac_user_opts in |
| 1194 | *" |
| 1195 | "with_$ac_useropt" |
| 1196 | "*) ;; |
| 1197 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1198 | ac_unrecognized_sep=', ';; |
| 1199 | esac |
| 1200 | eval with_$ac_useropt=no ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1201 | |
| 1202 | --x) |
| 1203 | # Obsolete; use --with-x. |
| 1204 | with_x=yes ;; |
| 1205 | |
| 1206 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1207 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1208 | ac_prev=x_includes ;; |
| 1209 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1210 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1211 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1212 | |
| 1213 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1214 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1215 | ac_prev=x_libraries ;; |
| 1216 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1217 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1218 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1219 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1220 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1221 | Try \`$0 --help' for more information" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1222 | ;; |
| 1223 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1224 | *=*) |
| 1225 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1226 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1227 | case $ac_envvar in #( |
| 1228 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1229 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1230 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1231 | eval $ac_envvar=\$ac_optarg |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1232 | export $ac_envvar ;; |
| 1233 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1234 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1235 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1236 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1237 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1238 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1239 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1240 | ;; |
| 1241 | |
| 1242 | esac |
| 1243 | done |
| 1244 | |
| 1245 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1246 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1247 | as_fn_error $? "missing argument to $ac_option" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1248 | fi |
| 1249 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1250 | if test -n "$ac_unrecognized_opts"; then |
| 1251 | case $enable_option_checking in |
| 1252 | no) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1253 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1254 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1255 | esac |
| 1256 | fi |
| 1257 | |
| 1258 | # Check all directory arguments for consistency. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1259 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1260 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1261 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1262 | libdir localedir mandir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1263 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1264 | eval ac_val=\$$ac_var |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1265 | # Remove trailing slashes. |
| 1266 | case $ac_val in |
| 1267 | */ ) |
| 1268 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1269 | eval $ac_var=\$ac_val;; |
| 1270 | esac |
| 1271 | # Be sure to have absolute directory names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1272 | case $ac_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1273 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1274 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1275 | esac |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1276 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1277 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1278 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1279 | # There might be people who depend on the old broken behavior: `$host' |
| 1280 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1281 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1282 | build=$build_alias |
| 1283 | host=$host_alias |
| 1284 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1285 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1286 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1287 | if test "x$host_alias" != x; then |
| 1288 | if test "x$build_alias" = x; then |
| 1289 | cross_compiling=maybe |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1290 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1291 | If a cross compiler is detected then cross compile mode will be used" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1292 | elif test "x$build_alias" != "x$host_alias"; then |
| 1293 | cross_compiling=yes |
| 1294 | fi |
| 1295 | fi |
| 1296 | |
| 1297 | ac_tool_prefix= |
| 1298 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1299 | |
| 1300 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1301 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1302 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1303 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1304 | ac_ls_di=`ls -di .` && |
| 1305 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1306 | as_fn_error $? "working directory cannot be determined" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1307 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1308 | as_fn_error $? "pwd does not report name of working directory" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1309 | |
| 1310 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1311 | # Find the source files, if location was not specified. |
| 1312 | if test -z "$srcdir"; then |
| 1313 | ac_srcdir_defaulted=yes |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1314 | # Try the directory containing this script, then the parent directory. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1315 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1316 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1317 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1318 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1319 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1320 | $as_echo X"$as_myself" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1322 | s//\1/ |
| 1323 | q |
| 1324 | } |
| 1325 | /^X\(\/\/\)[^/].*/{ |
| 1326 | s//\1/ |
| 1327 | q |
| 1328 | } |
| 1329 | /^X\(\/\/\)$/{ |
| 1330 | s//\1/ |
| 1331 | q |
| 1332 | } |
| 1333 | /^X\(\/\).*/{ |
| 1334 | s//\1/ |
| 1335 | q |
| 1336 | } |
| 1337 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1338 | srcdir=$ac_confdir |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1339 | if test ! -r "$srcdir/$ac_unique_file"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1340 | srcdir=.. |
| 1341 | fi |
| 1342 | else |
| 1343 | ac_srcdir_defaulted=no |
| 1344 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1346 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1347 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1348 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1349 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1350 | ac_abs_confdir=`( |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1351 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1352 | pwd)` |
| 1353 | # When building in place, set srcdir=. |
| 1354 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1355 | srcdir=. |
| 1356 | fi |
| 1357 | # Remove unnecessary trailing slashes from srcdir. |
| 1358 | # Double slashes in file names in object file debugging info |
| 1359 | # mess up M-x gdb in Emacs. |
| 1360 | case $srcdir in |
| 1361 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1362 | esac |
| 1363 | for ac_var in $ac_precious_vars; do |
| 1364 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1365 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1366 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1367 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1368 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1369 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1370 | # |
| 1371 | # Report the --help message. |
| 1372 | # |
| 1373 | if test "$ac_init_help" = "long"; then |
| 1374 | # Omit some internal or obsolete options to make the list less imposing. |
| 1375 | # 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] | 1376 | cat <<_ACEOF |
Alexandre Julliard | e44875b | 2011-03-04 19:25:23 +0100 | [diff] [blame] | 1377 | \`configure' configures Wine 1.3.15 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1378 | |
| 1379 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1380 | |
| 1381 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1382 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1383 | |
| 1384 | Defaults for the options are specified in brackets. |
| 1385 | |
| 1386 | Configuration: |
| 1387 | -h, --help display this help and exit |
| 1388 | --help=short display options specific to this package |
| 1389 | --help=recursive display the short help of all the included packages |
| 1390 | -V, --version display version information and exit |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1391 | -q, --quiet, --silent do not print \`checking ...' messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1392 | --cache-file=FILE cache test results in FILE [disabled] |
| 1393 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1394 | -n, --no-create do not create output files |
| 1395 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1396 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1397 | Installation directories: |
| 1398 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1399 | [$ac_default_prefix] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1400 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1401 | [PREFIX] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1402 | |
| 1403 | By default, \`make install' will install all the files in |
| 1404 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1405 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1406 | for instance \`--prefix=\$HOME'. |
| 1407 | |
| 1408 | For better control, use the options below. |
| 1409 | |
| 1410 | Fine tuning of the installation directories: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1411 | --bindir=DIR user executables [EPREFIX/bin] |
| 1412 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1413 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1414 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1415 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1416 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1417 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1418 | --includedir=DIR C header files [PREFIX/include] |
| 1419 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1420 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1421 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1422 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1423 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1424 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1425 | --docdir=DIR documentation root [DATAROOTDIR/doc/wine] |
| 1426 | --htmldir=DIR html documentation [DOCDIR] |
| 1427 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1428 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1429 | --psdir=DIR ps documentation [DOCDIR] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1430 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1431 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1432 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1433 | |
| 1434 | X features: |
| 1435 | --x-includes=DIR X include files are in DIR |
| 1436 | --x-libraries=DIR X library files are in DIR |
| 1437 | |
| 1438 | System types: |
| 1439 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1440 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1441 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1442 | fi |
| 1443 | |
| 1444 | if test -n "$ac_init_help"; then |
| 1445 | case $ac_init_help in |
Alexandre Julliard | e44875b | 2011-03-04 19:25:23 +0100 | [diff] [blame] | 1446 | short | recursive ) echo "Configuration of Wine 1.3.15:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1447 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1448 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1449 | |
| 1450 | Optional Features: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1451 | --disable-option-checking ignore unrecognized --enable/--with options |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1452 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1453 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1454 | --disable-win16 do not include Win16 support |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1455 | --enable-win64 build a Win64 emulator on AMD64 (won't run Win32 |
| 1456 | binaries) |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 1457 | --disable-tests do not build the regression tests |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 1458 | --enable-maintainer-mode |
| 1459 | enable maintainer-specific build rules |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 1460 | --disable-largefile omit support for large files |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1461 | |
| 1462 | Optional Packages: |
| 1463 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1464 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1465 | --without-alsa do not use the Alsa sound support |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1466 | --without-capi do not use CAPI (ISDN support) |
| 1467 | --without-cms do not use CMS (color management support) |
| 1468 | --without-coreaudio do not use the CoreAudio sound support |
| 1469 | --without-cups do not use CUPS |
| 1470 | --without-curses do not use (n)curses |
| 1471 | --without-esd do not use the EsounD sound support |
| 1472 | --without-fontconfig do not use fontconfig |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 1473 | --without-freetype do not use the FreeType library |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 1474 | --without-gettextpo do not use the GetTextPO library |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1475 | --without-gphoto do not use gphoto (Digital Camera support) |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 1476 | --without-glu do not use the GLU library |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 1477 | --without-gnutls do not use GnuTLS (schannel support) |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 1478 | --without-gsm do not use libgsm (GSM 06.10 codec support) |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 1479 | --without-gstreamer do not use GStreamer (codecs support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1480 | --without-hal do not use HAL (dynamic device support) |
| 1481 | --without-jack do not use the Jack sound support |
| 1482 | --without-jpeg do not use JPEG |
| 1483 | --without-ldap do not use LDAP |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 1484 | --without-mpg123 do not use the mpg123 library |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1485 | --without-nas do not use the NAS sound support |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 1486 | --without-openal do not use OpenAL |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 1487 | --without-opencl do not use OpenCL |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1488 | --without-opengl do not use OpenGL |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1489 | --without-openssl do not use OpenSSL |
| 1490 | --without-oss do not use the OSS sound support |
| 1491 | --without-png do not use PNG |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 1492 | --without-pthread do not use the pthread library |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1493 | --without-sane do not use SANE (scanner support) |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 1494 | --without-tiff do not use TIFF |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 1495 | --without-v4l do not use v4l1 (v4l support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1496 | --without-xcomposite do not use the Xcomposite extension |
| 1497 | --without-xcursor do not use the Xcursor extension |
| 1498 | --without-xinerama do not use Xinerama (multi-monitor support) |
| 1499 | --without-xinput do not use the Xinput extension |
| 1500 | --without-xml do not use XML |
| 1501 | --without-xrandr do not use Xrandr (resolution changes) |
| 1502 | --without-xrender do not use the Xrender extension |
| 1503 | --without-xshape do not use the Xshape extension |
| 1504 | --without-xshm do not use XShm (shared memory extension) |
| 1505 | --without-xslt do not use XSLT |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 1506 | --without-xxf86vm do not use XFree video mode extension |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 1507 | --without-zlib do not use Zlib (data compression) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1508 | --with-wine-tools=DIR use Wine tools from directory DIR |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 1509 | --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1510 | --with-x use the X Window System |
| 1511 | |
| 1512 | Some influential environment variables: |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1513 | CC C compiler command |
| 1514 | CFLAGS C compiler flags |
| 1515 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1516 | nonstandard directory <lib dir> |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 1517 | LIBS libraries to pass to the linker, e.g. -l<library> |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1518 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1519 | you have headers in a nonstandard directory <include dir> |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 1520 | CXX C++ compiler command |
| 1521 | CXXFLAGS C++ compiler flags |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1522 | CPP C preprocessor |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 1523 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1524 | |
| 1525 | Use these variables to override the choices made by `configure' or to help |
| 1526 | it to find libraries and programs with nonstandard names/locations. |
| 1527 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1528 | Report bugs to <wine-devel@winehq.org>. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1529 | Wine home page: <http://www.winehq.org>. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1530 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1531 | ac_status=$? |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1532 | fi |
| 1533 | |
| 1534 | if test "$ac_init_help" = "recursive"; then |
| 1535 | # If there are subdirs, report their specific --help. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1536 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1537 | test -d "$ac_dir" || |
| 1538 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1539 | continue |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1540 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1541 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1542 | case "$ac_dir" in |
| 1543 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1544 | *) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1545 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1546 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1547 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1548 | case $ac_top_builddir_sub in |
| 1549 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1550 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1551 | esac ;; |
| 1552 | esac |
| 1553 | ac_abs_top_builddir=$ac_pwd |
| 1554 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1555 | # for backward compatibility: |
| 1556 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1557 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1558 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1559 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1560 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1561 | ac_top_srcdir=$ac_top_builddir_sub |
| 1562 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1563 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1564 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1565 | ac_top_srcdir=$srcdir |
| 1566 | ac_abs_top_srcdir=$srcdir ;; |
| 1567 | *) # Relative name. |
| 1568 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1569 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1570 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1571 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1572 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1573 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1574 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1575 | # Check for guested configure. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1576 | if test -f "$ac_srcdir/configure.gnu"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1577 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1578 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1579 | elif test -f "$ac_srcdir/configure"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1580 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1581 | $SHELL "$ac_srcdir/configure" --help=recursive |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1582 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1583 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1584 | fi || ac_status=$? |
| 1585 | cd "$ac_pwd" || { ac_status=$?; break; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1586 | done |
| 1587 | fi |
| 1588 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1589 | test -n "$ac_init_help" && exit $ac_status |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1590 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1591 | cat <<\_ACEOF |
Alexandre Julliard | e44875b | 2011-03-04 19:25:23 +0100 | [diff] [blame] | 1592 | Wine configure 1.3.15 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1593 | generated by GNU Autoconf 2.67 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1594 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1595 | Copyright (C) 2010 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1596 | This configure script is free software; the Free Software Foundation |
| 1597 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1598 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1599 | exit |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1600 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1601 | |
| 1602 | ## ------------------------ ## |
| 1603 | ## Autoconf initialization. ## |
| 1604 | ## ------------------------ ## |
| 1605 | |
| 1606 | # ac_fn_c_try_compile LINENO |
| 1607 | # -------------------------- |
| 1608 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1609 | ac_fn_c_try_compile () |
| 1610 | { |
| 1611 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1612 | rm -f conftest.$ac_objext |
| 1613 | if { { ac_try="$ac_compile" |
| 1614 | case "(($ac_try" in |
| 1615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1616 | *) ac_try_echo=$ac_try;; |
| 1617 | esac |
| 1618 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1619 | $as_echo "$ac_try_echo"; } >&5 |
| 1620 | (eval "$ac_compile") 2>conftest.err |
| 1621 | ac_status=$? |
| 1622 | if test -s conftest.err; then |
| 1623 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1624 | cat conftest.er1 >&5 |
| 1625 | mv -f conftest.er1 conftest.err |
| 1626 | fi |
| 1627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1628 | test $ac_status = 0; } && { |
| 1629 | test -z "$ac_c_werror_flag" || |
| 1630 | test ! -s conftest.err |
| 1631 | } && test -s conftest.$ac_objext; then : |
| 1632 | ac_retval=0 |
| 1633 | else |
| 1634 | $as_echo "$as_me: failed program was:" >&5 |
| 1635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1636 | |
| 1637 | ac_retval=1 |
| 1638 | fi |
| 1639 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1640 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1641 | |
| 1642 | } # ac_fn_c_try_compile |
| 1643 | |
| 1644 | # ac_fn_cxx_try_compile LINENO |
| 1645 | # ---------------------------- |
| 1646 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1647 | ac_fn_cxx_try_compile () |
| 1648 | { |
| 1649 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1650 | rm -f conftest.$ac_objext |
| 1651 | if { { ac_try="$ac_compile" |
| 1652 | case "(($ac_try" in |
| 1653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1654 | *) ac_try_echo=$ac_try;; |
| 1655 | esac |
| 1656 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1657 | $as_echo "$ac_try_echo"; } >&5 |
| 1658 | (eval "$ac_compile") 2>conftest.err |
| 1659 | ac_status=$? |
| 1660 | if test -s conftest.err; then |
| 1661 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1662 | cat conftest.er1 >&5 |
| 1663 | mv -f conftest.er1 conftest.err |
| 1664 | fi |
| 1665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1666 | test $ac_status = 0; } && { |
| 1667 | test -z "$ac_cxx_werror_flag" || |
| 1668 | test ! -s conftest.err |
| 1669 | } && test -s conftest.$ac_objext; then : |
| 1670 | ac_retval=0 |
| 1671 | else |
| 1672 | $as_echo "$as_me: failed program was:" >&5 |
| 1673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1674 | |
| 1675 | ac_retval=1 |
| 1676 | fi |
| 1677 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1678 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1679 | |
| 1680 | } # ac_fn_cxx_try_compile |
| 1681 | |
| 1682 | # ac_fn_c_try_link LINENO |
| 1683 | # ----------------------- |
| 1684 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1685 | ac_fn_c_try_link () |
| 1686 | { |
| 1687 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1688 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1689 | if { { ac_try="$ac_link" |
| 1690 | case "(($ac_try" in |
| 1691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1692 | *) ac_try_echo=$ac_try;; |
| 1693 | esac |
| 1694 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1695 | $as_echo "$ac_try_echo"; } >&5 |
| 1696 | (eval "$ac_link") 2>conftest.err |
| 1697 | ac_status=$? |
| 1698 | if test -s conftest.err; then |
| 1699 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1700 | cat conftest.er1 >&5 |
| 1701 | mv -f conftest.er1 conftest.err |
| 1702 | fi |
| 1703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1704 | test $ac_status = 0; } && { |
| 1705 | test -z "$ac_c_werror_flag" || |
| 1706 | test ! -s conftest.err |
| 1707 | } && test -s conftest$ac_exeext && { |
| 1708 | test "$cross_compiling" = yes || |
| 1709 | $as_test_x conftest$ac_exeext |
| 1710 | }; then : |
| 1711 | ac_retval=0 |
| 1712 | else |
| 1713 | $as_echo "$as_me: failed program was:" >&5 |
| 1714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1715 | |
| 1716 | ac_retval=1 |
| 1717 | fi |
| 1718 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1719 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1720 | # interfere with the next link command; also delete a directory that is |
| 1721 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1722 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1723 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1724 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1725 | |
| 1726 | } # ac_fn_c_try_link |
| 1727 | |
| 1728 | # ac_fn_c_try_cpp LINENO |
| 1729 | # ---------------------- |
| 1730 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1731 | ac_fn_c_try_cpp () |
| 1732 | { |
| 1733 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1734 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1735 | case "(($ac_try" in |
| 1736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1737 | *) ac_try_echo=$ac_try;; |
| 1738 | esac |
| 1739 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1740 | $as_echo "$ac_try_echo"; } >&5 |
| 1741 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1742 | ac_status=$? |
| 1743 | if test -s conftest.err; then |
| 1744 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1745 | cat conftest.er1 >&5 |
| 1746 | mv -f conftest.er1 conftest.err |
| 1747 | fi |
| 1748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1749 | test $ac_status = 0; } > conftest.i && { |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1750 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1751 | test ! -s conftest.err |
| 1752 | }; then : |
| 1753 | ac_retval=0 |
| 1754 | else |
| 1755 | $as_echo "$as_me: failed program was:" >&5 |
| 1756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1757 | |
| 1758 | ac_retval=1 |
| 1759 | fi |
| 1760 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1761 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1762 | |
| 1763 | } # ac_fn_c_try_cpp |
| 1764 | |
| 1765 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1766 | # ------------------------------------------------------- |
| 1767 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1768 | # the include files in INCLUDES and setting the cache variable VAR |
| 1769 | # accordingly. |
| 1770 | ac_fn_c_check_header_mongrel () |
| 1771 | { |
| 1772 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1773 | if eval "test \"\${$3+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1775 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1776 | if eval "test \"\${$3+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1777 | $as_echo_n "(cached) " >&6 |
| 1778 | fi |
| 1779 | eval ac_res=\$$3 |
| 1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1781 | $as_echo "$ac_res" >&6; } |
| 1782 | else |
| 1783 | # Is the header compilable? |
| 1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1785 | $as_echo_n "checking $2 usability... " >&6; } |
| 1786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1787 | /* end confdefs.h. */ |
| 1788 | $4 |
| 1789 | #include <$2> |
| 1790 | _ACEOF |
| 1791 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1792 | ac_header_compiler=yes |
| 1793 | else |
| 1794 | ac_header_compiler=no |
| 1795 | fi |
| 1796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1798 | $as_echo "$ac_header_compiler" >&6; } |
| 1799 | |
| 1800 | # Is the header present? |
| 1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1802 | $as_echo_n "checking $2 presence... " >&6; } |
| 1803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1804 | /* end confdefs.h. */ |
| 1805 | #include <$2> |
| 1806 | _ACEOF |
| 1807 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1808 | ac_header_preproc=yes |
| 1809 | else |
| 1810 | ac_header_preproc=no |
| 1811 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1812 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1814 | $as_echo "$ac_header_preproc" >&6; } |
| 1815 | |
| 1816 | # So? What about this header? |
| 1817 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1818 | yes:no: ) |
| 1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1820 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1822 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1823 | ;; |
| 1824 | no:yes:* ) |
| 1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1826 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1828 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1830 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1832 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1834 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1835 | ( $as_echo "## ------------------------------------ ## |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1836 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1837 | ## ------------------------------------ ##" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1838 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1839 | ;; |
| 1840 | esac |
| 1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1842 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1843 | if eval "test \"\${$3+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1844 | $as_echo_n "(cached) " >&6 |
| 1845 | else |
| 1846 | eval "$3=\$ac_header_compiler" |
| 1847 | fi |
| 1848 | eval ac_res=\$$3 |
| 1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1850 | $as_echo "$ac_res" >&6; } |
| 1851 | fi |
| 1852 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1853 | |
| 1854 | } # ac_fn_c_check_header_mongrel |
| 1855 | |
| 1856 | # ac_fn_c_try_run LINENO |
| 1857 | # ---------------------- |
| 1858 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1859 | # that executables *can* be run. |
| 1860 | ac_fn_c_try_run () |
| 1861 | { |
| 1862 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1863 | if { { ac_try="$ac_link" |
| 1864 | case "(($ac_try" in |
| 1865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1866 | *) ac_try_echo=$ac_try;; |
| 1867 | esac |
| 1868 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1869 | $as_echo "$ac_try_echo"; } >&5 |
| 1870 | (eval "$ac_link") 2>&5 |
| 1871 | ac_status=$? |
| 1872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1873 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1874 | { { case "(($ac_try" in |
| 1875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1876 | *) ac_try_echo=$ac_try;; |
| 1877 | esac |
| 1878 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1879 | $as_echo "$ac_try_echo"; } >&5 |
| 1880 | (eval "$ac_try") 2>&5 |
| 1881 | ac_status=$? |
| 1882 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1883 | test $ac_status = 0; }; }; then : |
| 1884 | ac_retval=0 |
| 1885 | else |
| 1886 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1887 | $as_echo "$as_me: failed program was:" >&5 |
| 1888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1889 | |
| 1890 | ac_retval=$ac_status |
| 1891 | fi |
| 1892 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1893 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1894 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1895 | |
| 1896 | } # ac_fn_c_try_run |
| 1897 | |
| 1898 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1899 | # ------------------------------------------------------- |
| 1900 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1901 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1902 | ac_fn_c_check_header_compile () |
| 1903 | { |
| 1904 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1906 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1907 | if eval "test \"\${$3+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1908 | $as_echo_n "(cached) " >&6 |
| 1909 | else |
| 1910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1911 | /* end confdefs.h. */ |
| 1912 | $4 |
| 1913 | #include <$2> |
| 1914 | _ACEOF |
| 1915 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1916 | eval "$3=yes" |
| 1917 | else |
| 1918 | eval "$3=no" |
| 1919 | fi |
| 1920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1921 | fi |
| 1922 | eval ac_res=\$$3 |
| 1923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1924 | $as_echo "$ac_res" >&6; } |
| 1925 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1926 | |
| 1927 | } # ac_fn_c_check_header_compile |
| 1928 | |
| 1929 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1930 | # ---------------------------------- |
| 1931 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1932 | ac_fn_c_check_func () |
| 1933 | { |
| 1934 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1936 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1937 | if eval "test \"\${$3+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1938 | $as_echo_n "(cached) " >&6 |
| 1939 | else |
| 1940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1941 | /* end confdefs.h. */ |
| 1942 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1943 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1944 | #define $2 innocuous_$2 |
| 1945 | |
| 1946 | /* System header to define __stub macros and hopefully few prototypes, |
| 1947 | which can conflict with char $2 (); below. |
| 1948 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1949 | <limits.h> exists even on freestanding compilers. */ |
| 1950 | |
| 1951 | #ifdef __STDC__ |
| 1952 | # include <limits.h> |
| 1953 | #else |
| 1954 | # include <assert.h> |
| 1955 | #endif |
| 1956 | |
| 1957 | #undef $2 |
| 1958 | |
| 1959 | /* Override any GCC internal prototype to avoid an error. |
| 1960 | Use char because int might match the return type of a GCC |
| 1961 | builtin and then its argument prototype would still apply. */ |
| 1962 | #ifdef __cplusplus |
| 1963 | extern "C" |
| 1964 | #endif |
| 1965 | char $2 (); |
| 1966 | /* The GNU C library defines this for functions which it implements |
| 1967 | to always fail with ENOSYS. Some functions are actually named |
| 1968 | something starting with __ and the normal name is an alias. */ |
| 1969 | #if defined __stub_$2 || defined __stub___$2 |
| 1970 | choke me |
| 1971 | #endif |
| 1972 | |
| 1973 | int |
| 1974 | main () |
| 1975 | { |
| 1976 | return $2 (); |
| 1977 | ; |
| 1978 | return 0; |
| 1979 | } |
| 1980 | _ACEOF |
| 1981 | if ac_fn_c_try_link "$LINENO"; then : |
| 1982 | eval "$3=yes" |
| 1983 | else |
| 1984 | eval "$3=no" |
| 1985 | fi |
| 1986 | rm -f core conftest.err conftest.$ac_objext \ |
| 1987 | conftest$ac_exeext conftest.$ac_ext |
| 1988 | fi |
| 1989 | eval ac_res=\$$3 |
| 1990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1991 | $as_echo "$ac_res" >&6; } |
| 1992 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1993 | |
| 1994 | } # ac_fn_c_check_func |
| 1995 | |
| 1996 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 1997 | # ---------------------------------------------------- |
| 1998 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 1999 | # INCLUDES, setting cache variable VAR accordingly. |
| 2000 | ac_fn_c_check_member () |
| 2001 | { |
| 2002 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2004 | $as_echo_n "checking for $2.$3... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2005 | if eval "test \"\${$4+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2006 | $as_echo_n "(cached) " >&6 |
| 2007 | else |
| 2008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2009 | /* end confdefs.h. */ |
| 2010 | $5 |
| 2011 | int |
| 2012 | main () |
| 2013 | { |
| 2014 | static $2 ac_aggr; |
| 2015 | if (ac_aggr.$3) |
| 2016 | return 0; |
| 2017 | ; |
| 2018 | return 0; |
| 2019 | } |
| 2020 | _ACEOF |
| 2021 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2022 | eval "$4=yes" |
| 2023 | else |
| 2024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2025 | /* end confdefs.h. */ |
| 2026 | $5 |
| 2027 | int |
| 2028 | main () |
| 2029 | { |
| 2030 | static $2 ac_aggr; |
| 2031 | if (sizeof ac_aggr.$3) |
| 2032 | return 0; |
| 2033 | ; |
| 2034 | return 0; |
| 2035 | } |
| 2036 | _ACEOF |
| 2037 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2038 | eval "$4=yes" |
| 2039 | else |
| 2040 | eval "$4=no" |
| 2041 | fi |
| 2042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2043 | fi |
| 2044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2045 | fi |
| 2046 | eval ac_res=\$$4 |
| 2047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2048 | $as_echo "$ac_res" >&6; } |
| 2049 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2050 | |
| 2051 | } # ac_fn_c_check_member |
| 2052 | |
| 2053 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2054 | # ------------------------------------------- |
| 2055 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2056 | # variable VAR accordingly. |
| 2057 | ac_fn_c_check_type () |
| 2058 | { |
| 2059 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2061 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2062 | if eval "test \"\${$3+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2063 | $as_echo_n "(cached) " >&6 |
| 2064 | else |
| 2065 | eval "$3=no" |
| 2066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2067 | /* end confdefs.h. */ |
| 2068 | $4 |
| 2069 | int |
| 2070 | main () |
| 2071 | { |
| 2072 | if (sizeof ($2)) |
| 2073 | return 0; |
| 2074 | ; |
| 2075 | return 0; |
| 2076 | } |
| 2077 | _ACEOF |
| 2078 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2080 | /* end confdefs.h. */ |
| 2081 | $4 |
| 2082 | int |
| 2083 | main () |
| 2084 | { |
| 2085 | if (sizeof (($2))) |
| 2086 | return 0; |
| 2087 | ; |
| 2088 | return 0; |
| 2089 | } |
| 2090 | _ACEOF |
| 2091 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2092 | |
| 2093 | else |
| 2094 | eval "$3=yes" |
| 2095 | fi |
| 2096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2097 | fi |
| 2098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2099 | fi |
| 2100 | eval ac_res=\$$3 |
| 2101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2102 | $as_echo "$ac_res" >&6; } |
| 2103 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2104 | |
| 2105 | } # ac_fn_c_check_type |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2106 | cat >config.log <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2107 | This file contains any messages produced by compilers while |
| 2108 | running configure, to aid debugging if configure makes a mistake. |
| 2109 | |
Alexandre Julliard | e44875b | 2011-03-04 19:25:23 +0100 | [diff] [blame] | 2110 | It was created by Wine $as_me 1.3.15, which was |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2111 | generated by GNU Autoconf 2.67. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2112 | |
| 2113 | $ $0 $@ |
| 2114 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2115 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2116 | exec 5>>config.log |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2117 | { |
| 2118 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2119 | ## --------- ## |
| 2120 | ## Platform. ## |
| 2121 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2122 | |
| 2123 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2124 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2125 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2126 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2127 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2128 | |
| 2129 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2130 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2131 | |
| 2132 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2133 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2134 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2135 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2136 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2137 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2138 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2139 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2140 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2141 | |
| 2142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2143 | for as_dir in $PATH |
| 2144 | do |
| 2145 | IFS=$as_save_IFS |
| 2146 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2147 | $as_echo "PATH: $as_dir" |
| 2148 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2149 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2150 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2151 | } >&5 |
| 2152 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2153 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2154 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2155 | |
| 2156 | ## ----------- ## |
| 2157 | ## Core tests. ## |
| 2158 | ## ----------- ## |
| 2159 | |
| 2160 | _ACEOF |
| 2161 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2162 | |
| 2163 | # Keep a trace of the command line. |
| 2164 | # 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] | 2165 | # 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] | 2166 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2167 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2168 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2169 | ac_configure_args0= |
| 2170 | ac_configure_args1= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2171 | ac_must_keep_next=false |
| 2172 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2173 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2174 | for ac_arg |
| 2175 | do |
| 2176 | case $ac_arg in |
| 2177 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2178 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2179 | | -silent | --silent | --silen | --sile | --sil) |
| 2180 | continue ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2181 | *\'*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2182 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2183 | esac |
| 2184 | case $ac_pass in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2185 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2186 | 2) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2187 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2188 | if test $ac_must_keep_next = true; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2189 | ac_must_keep_next=false # Got value, back to normal. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2190 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2191 | case $ac_arg in |
| 2192 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2193 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2194 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2195 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2196 | case "$ac_configure_args0 " in |
| 2197 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2198 | esac |
| 2199 | ;; |
| 2200 | -* ) ac_must_keep_next=true ;; |
| 2201 | esac |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2202 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2203 | as_fn_append ac_configure_args " '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2204 | ;; |
| 2205 | esac |
| 2206 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2207 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2208 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2209 | { ac_configure_args1=; unset ac_configure_args1;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2210 | |
| 2211 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2212 | # config.log. We remove comments because anyway the quotes in there |
| 2213 | # would cause problems or look ugly. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2214 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2215 | # 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] | 2216 | trap 'exit_status=$? |
| 2217 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2218 | { |
| 2219 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2220 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2221 | $as_echo "## ---------------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2222 | ## Cache variables. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2223 | ## ---------------- ##" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2224 | echo |
| 2225 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2226 | ( |
| 2227 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2228 | eval ac_val=\$$ac_var |
| 2229 | case $ac_val in #( |
| 2230 | *${as_nl}*) |
| 2231 | case $ac_var in #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2232 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2233 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2234 | esac |
| 2235 | case $ac_var in #( |
| 2236 | _ | IFS | as_nl) ;; #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2237 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2238 | *) { eval $ac_var=; unset $ac_var;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2239 | esac ;; |
| 2240 | esac |
| 2241 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2242 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2243 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2244 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2245 | sed -n \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2246 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2247 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2248 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2249 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2250 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2251 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2252 | esac | |
| 2253 | sort |
| 2254 | ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2255 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2256 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2257 | $as_echo "## ----------------- ## |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2258 | ## Output variables. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2259 | ## ----------------- ##" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2260 | echo |
| 2261 | for ac_var in $ac_subst_vars |
| 2262 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2263 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2264 | case $ac_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2265 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2266 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2267 | $as_echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2268 | done | sort |
| 2269 | echo |
| 2270 | |
| 2271 | if test -n "$ac_subst_files"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2272 | $as_echo "## ------------------- ## |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2273 | ## File substitutions. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2274 | ## ------------------- ##" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2275 | echo |
| 2276 | for ac_var in $ac_subst_files |
| 2277 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2278 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2279 | case $ac_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2280 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2281 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2282 | $as_echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2283 | done | sort |
| 2284 | echo |
| 2285 | fi |
| 2286 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2287 | if test -s confdefs.h; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2288 | $as_echo "## ----------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2289 | ## confdefs.h. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2290 | ## ----------- ##" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2291 | echo |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2292 | cat confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2293 | echo |
| 2294 | fi |
| 2295 | test "$ac_signal" != 0 && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2296 | $as_echo "$as_me: caught signal $ac_signal" |
| 2297 | $as_echo "$as_me: exit $exit_status" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2298 | } >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2299 | rm -f core *.core core.conftest.* && |
| 2300 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2301 | exit $exit_status |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2302 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2303 | for ac_signal in 1 2 13 15; do |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2304 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2305 | done |
| 2306 | ac_signal=0 |
| 2307 | |
| 2308 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2309 | rm -f -r conftest* confdefs.h |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2310 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2311 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2312 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2313 | # Predefined preprocessor variables. |
| 2314 | |
| 2315 | cat >>confdefs.h <<_ACEOF |
| 2316 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2317 | _ACEOF |
| 2318 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2319 | cat >>confdefs.h <<_ACEOF |
| 2320 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2321 | _ACEOF |
| 2322 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2323 | cat >>confdefs.h <<_ACEOF |
| 2324 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2325 | _ACEOF |
| 2326 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2327 | cat >>confdefs.h <<_ACEOF |
| 2328 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2329 | _ACEOF |
| 2330 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2331 | cat >>confdefs.h <<_ACEOF |
| 2332 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2333 | _ACEOF |
| 2334 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2335 | cat >>confdefs.h <<_ACEOF |
| 2336 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2337 | _ACEOF |
| 2338 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2339 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2340 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2341 | # Prefer an explicitly selected file to automatically selected ones. |
| 2342 | ac_site_file1=NONE |
| 2343 | ac_site_file2=NONE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2344 | if test -n "$CONFIG_SITE"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2345 | # We do not want a PATH search for config.site. |
| 2346 | case $CONFIG_SITE in #(( |
| 2347 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2348 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2349 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2350 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2351 | elif test "x$prefix" != xNONE; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2352 | ac_site_file1=$prefix/share/config.site |
| 2353 | ac_site_file2=$prefix/etc/config.site |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2354 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2355 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2356 | ac_site_file2=$ac_default_prefix/etc/config.site |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2357 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2358 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2359 | do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2360 | test "x$ac_site_file" = xNONE && continue |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 2361 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2363 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2364 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2365 | . "$ac_site_file" \ |
| 2366 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2367 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2368 | as_fn_error $? "failed to load site script $ac_site_file |
| 2369 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2370 | fi |
| 2371 | done |
| 2372 | |
| 2373 | if test -r "$cache_file"; then |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 2374 | # Some versions of bash will fail to source /dev/null (special files |
| 2375 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2376 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2378 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2379 | case $cache_file in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2380 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2381 | *) . "./$cache_file";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2382 | esac |
| 2383 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2384 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2386 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2387 | >$cache_file |
| 2388 | fi |
| 2389 | |
| 2390 | # Check that the precious variables saved in the cache have kept the same |
| 2391 | # value. |
| 2392 | ac_cache_corrupted=false |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2393 | for ac_var in $ac_precious_vars; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2394 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2395 | eval ac_new_set=\$ac_env_${ac_var}_set |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2396 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2397 | eval ac_new_val=\$ac_env_${ac_var}_value |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2398 | case $ac_old_set,$ac_new_set in |
| 2399 | set,) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2401 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2402 | ac_cache_corrupted=: ;; |
| 2403 | ,set) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2405 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2406 | ac_cache_corrupted=: ;; |
| 2407 | ,);; |
| 2408 | *) |
| 2409 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2410 | # differences in whitespace do not lead to failure. |
| 2411 | ac_old_val_w=`echo x $ac_old_val` |
| 2412 | ac_new_val_w=`echo x $ac_new_val` |
| 2413 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2415 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2416 | ac_cache_corrupted=: |
| 2417 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2419 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2420 | eval $ac_var=\$ac_old_val |
| 2421 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2422 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2423 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2424 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2425 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2426 | fi;; |
| 2427 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2428 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2429 | if test "$ac_new_set" = set; then |
| 2430 | case $ac_new_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2431 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2432 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2433 | esac |
| 2434 | case " $ac_configure_args " in |
| 2435 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2436 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2437 | esac |
| 2438 | fi |
| 2439 | done |
| 2440 | if $ac_cache_corrupted; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2441 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2442 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2444 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2445 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2446 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2447 | ## -------------------- ## |
| 2448 | ## Main body of script. ## |
| 2449 | ## -------------------- ## |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2450 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2451 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2452 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2456 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2457 | |
| 2458 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2459 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 2460 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2461 | ac_aux_dir= |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2462 | for ac_dir in tools "$srcdir"/tools; do |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2463 | if test -f "$ac_dir/install-sh"; then |
| 2464 | ac_aux_dir=$ac_dir |
| 2465 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2466 | break |
| 2467 | elif test -f "$ac_dir/install.sh"; then |
| 2468 | ac_aux_dir=$ac_dir |
| 2469 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2470 | break |
| 2471 | elif test -f "$ac_dir/shtool"; then |
| 2472 | ac_aux_dir=$ac_dir |
| 2473 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2474 | break |
| 2475 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2476 | done |
| 2477 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2478 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2479 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2480 | |
| 2481 | # These three variables are undocumented and unsupported, |
| 2482 | # and are intended to be withdrawn in a future Autoconf release. |
| 2483 | # They can cause serious problems if a builder's source tree is in a directory |
| 2484 | # whose full name contains unusual characters. |
| 2485 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2486 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2487 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2488 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 2489 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2490 | |
| 2491 | |
Alexandre Julliard | d59227e | 2010-02-20 12:36:04 +0100 | [diff] [blame] | 2492 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2493 | # Check whether --enable-win16 was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2494 | if test "${enable_win16+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2495 | enableval=$enable_win16; |
| 2496 | fi |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 2497 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2498 | # Check whether --enable-win64 was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2499 | if test "${enable_win64+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2500 | enableval=$enable_win64; |
| 2501 | fi |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 2502 | |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 2503 | # Check whether --enable-tests was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2504 | if test "${enable_tests+set}" = set; then : |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 2505 | enableval=$enable_tests; |
| 2506 | fi |
| 2507 | |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2508 | # Check whether --enable-maintainer-mode was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2509 | if test "${enable_maintainer_mode+set}" = set; then : |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2510 | enableval=$enable_maintainer_mode; |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2511 | fi |
| 2512 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 2513 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2514 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2515 | # Check whether --with-alsa was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2516 | if test "${with_alsa+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2517 | withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi |
| 2518 | fi |
| 2519 | |
| 2520 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2521 | # Check whether --with-capi was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2522 | if test "${with_capi+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2523 | withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi |
| 2524 | fi |
| 2525 | |
| 2526 | |
| 2527 | # Check whether --with-cms was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2528 | if test "${with_cms+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2529 | withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi |
| 2530 | fi |
| 2531 | |
| 2532 | |
| 2533 | # Check whether --with-coreaudio was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2534 | if test "${with_coreaudio+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2535 | withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi |
| 2536 | fi |
| 2537 | |
| 2538 | |
| 2539 | # Check whether --with-cups was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2540 | if test "${with_cups+set}" = set; then : |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 2541 | withval=$with_cups; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2542 | fi |
| 2543 | |
| 2544 | |
| 2545 | # Check whether --with-curses was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2546 | if test "${with_curses+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2547 | withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi |
| 2548 | fi |
| 2549 | |
| 2550 | |
| 2551 | # Check whether --with-esd was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2552 | if test "${with_esd+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2553 | withval=$with_esd; |
| 2554 | fi |
| 2555 | |
| 2556 | |
| 2557 | # Check whether --with-fontconfig was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2558 | if test "${with_fontconfig+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2559 | withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi |
| 2560 | fi |
| 2561 | |
| 2562 | |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 2563 | # Check whether --with-freetype was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2564 | if test "${with_freetype+set}" = set; then : |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 2565 | withval=$with_freetype; |
| 2566 | fi |
| 2567 | |
| 2568 | |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 2569 | # Check whether --with-gettextpo was given. |
| 2570 | if test "${with_gettextpo+set}" = set; then : |
| 2571 | withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi |
| 2572 | fi |
| 2573 | |
| 2574 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2575 | # Check whether --with-gphoto was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2576 | if test "${with_gphoto+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2577 | withval=$with_gphoto; |
| 2578 | fi |
| 2579 | |
| 2580 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 2581 | # Check whether --with-glu was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2582 | if test "${with_glu+set}" = set; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 2583 | withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi |
| 2584 | fi |
| 2585 | |
| 2586 | |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 2587 | # Check whether --with-gnutls was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2588 | if test "${with_gnutls+set}" = set; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 2589 | withval=$with_gnutls; |
| 2590 | fi |
| 2591 | |
| 2592 | |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 2593 | # Check whether --with-gsm was given. |
| 2594 | if test "${with_gsm+set}" = set; then : |
| 2595 | withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 2596 | fi |
| 2597 | |
| 2598 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 2599 | # Check whether --with-gstreamer was given. |
| 2600 | if test "${with_gstreamer+set}" = set; then : |
| 2601 | withval=$with_gstreamer; |
| 2602 | fi |
| 2603 | |
| 2604 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2605 | # Check whether --with-hal was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2606 | if test "${with_hal+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2607 | withval=$with_hal; |
| 2608 | fi |
| 2609 | |
| 2610 | |
| 2611 | # Check whether --with-jack was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2612 | if test "${with_jack+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2613 | withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi |
| 2614 | fi |
| 2615 | |
| 2616 | |
| 2617 | # Check whether --with-jpeg was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2618 | if test "${with_jpeg+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2619 | withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi |
| 2620 | fi |
| 2621 | |
| 2622 | |
| 2623 | # Check whether --with-ldap was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2624 | if test "${with_ldap+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2625 | withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi |
| 2626 | fi |
| 2627 | |
| 2628 | |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 2629 | # Check whether --with-mpg123 was given. |
| 2630 | if test "${with_mpg123+set}" = set; then : |
| 2631 | withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi |
| 2632 | fi |
| 2633 | |
| 2634 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2635 | # Check whether --with-nas was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2636 | if test "${with_nas+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2637 | withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi |
| 2638 | fi |
| 2639 | |
| 2640 | |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 2641 | # Check whether --with-openal was given. |
| 2642 | if test "${with_openal+set}" = set; then : |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 2643 | withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 2644 | fi |
| 2645 | |
| 2646 | |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 2647 | # Check whether --with-opencl was given. |
| 2648 | if test "${with_opencl+set}" = set; then : |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 2649 | withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 2650 | fi |
| 2651 | |
| 2652 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2653 | # Check whether --with-opengl was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2654 | if test "${with_opengl+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2655 | withval=$with_opengl; |
| 2656 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2657 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 2658 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2659 | # Check whether --with-openssl was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2660 | if test "${with_openssl+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2661 | withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi |
| 2662 | fi |
| 2663 | |
| 2664 | |
| 2665 | # Check whether --with-oss was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2666 | if test "${with_oss+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2667 | withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi |
| 2668 | fi |
| 2669 | |
| 2670 | |
| 2671 | # Check whether --with-png was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2672 | if test "${with_png+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2673 | withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi |
| 2674 | fi |
| 2675 | |
| 2676 | |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 2677 | # Check whether --with-pthread was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2678 | if test "${with_pthread+set}" = set; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 2679 | withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi |
| 2680 | fi |
| 2681 | |
| 2682 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2683 | # Check whether --with-sane was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2684 | if test "${with_sane+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2685 | withval=$with_sane; |
| 2686 | fi |
| 2687 | |
| 2688 | |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 2689 | # Check whether --with-tiff was given. |
| 2690 | if test "${with_tiff+set}" = set; then : |
| 2691 | withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi |
| 2692 | fi |
| 2693 | |
| 2694 | |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 2695 | # Check whether --with-v4l was given. |
| 2696 | if test "${with_v4l+set}" = set; then : |
| 2697 | withval=$with_v4l; |
| 2698 | fi |
| 2699 | |
| 2700 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2701 | # Check whether --with-xcomposite was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2702 | if test "${with_xcomposite+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2703 | withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi |
| 2704 | fi |
| 2705 | |
| 2706 | |
| 2707 | # Check whether --with-xcursor was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2708 | if test "${with_xcursor+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2709 | withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi |
| 2710 | fi |
| 2711 | |
| 2712 | |
| 2713 | # Check whether --with-xinerama was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2714 | if test "${with_xinerama+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2715 | withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi |
| 2716 | fi |
| 2717 | |
| 2718 | |
| 2719 | # Check whether --with-xinput was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2720 | if test "${with_xinput+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2721 | withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi |
| 2722 | fi |
| 2723 | |
| 2724 | |
| 2725 | # Check whether --with-xml was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2726 | if test "${with_xml+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2727 | withval=$with_xml; |
| 2728 | fi |
| 2729 | |
| 2730 | |
| 2731 | # Check whether --with-xrandr was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2732 | if test "${with_xrandr+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2733 | withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi |
| 2734 | fi |
| 2735 | |
| 2736 | |
| 2737 | # Check whether --with-xrender was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2738 | if test "${with_xrender+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2739 | withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi |
| 2740 | fi |
| 2741 | |
| 2742 | |
| 2743 | # Check whether --with-xshape was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2744 | if test "${with_xshape+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2745 | withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi |
| 2746 | fi |
| 2747 | |
| 2748 | |
| 2749 | # Check whether --with-xshm was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2750 | if test "${with_xshm+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2751 | withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi |
| 2752 | fi |
| 2753 | |
| 2754 | |
| 2755 | # Check whether --with-xslt was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2756 | if test "${with_xslt+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2757 | withval=$with_xslt; |
| 2758 | fi |
| 2759 | |
| 2760 | |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 2761 | # Check whether --with-xxf86vm was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2762 | if test "${with_xxf86vm+set}" = set; then : |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 2763 | withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2764 | fi |
| 2765 | |
| 2766 | |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 2767 | # Check whether --with-zlib was given. |
| 2768 | if test "${with_zlib+set}" = set; then : |
| 2769 | withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi |
| 2770 | fi |
| 2771 | |
| 2772 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2773 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2774 | # Check whether --with-wine-tools was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2775 | if test "${with_wine_tools+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2776 | withval=$with_wine_tools; |
| 2777 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2778 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2779 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 2780 | # Check whether --with-wine64 was given. |
| 2781 | if test "${with_wine64+set}" = set; then : |
| 2782 | withval=$with_wine64; |
| 2783 | fi |
| 2784 | |
| 2785 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2786 | # Make sure we can run config.sub. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2787 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2788 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 2789 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2791 | $as_echo_n "checking build system type... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2792 | if test "${ac_cv_build+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2793 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2794 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2795 | ac_build_alias=$build_alias |
| 2796 | test "x$ac_build_alias" = x && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2797 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2798 | test "x$ac_build_alias" = x && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2799 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2800 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2801 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2802 | |
| 2803 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2805 | $as_echo "$ac_cv_build" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2806 | case $ac_cv_build in |
| 2807 | *-*-*) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2808 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2809 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2810 | build=$ac_cv_build |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2811 | ac_save_IFS=$IFS; IFS='-' |
| 2812 | set x $ac_cv_build |
| 2813 | shift |
| 2814 | build_cpu=$1 |
| 2815 | build_vendor=$2 |
| 2816 | shift; shift |
| 2817 | # Remember, the first character of IFS is used to create $*, |
| 2818 | # except with old shells: |
| 2819 | build_os=$* |
| 2820 | IFS=$ac_save_IFS |
| 2821 | 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] | 2822 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2823 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2825 | $as_echo_n "checking host system type... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2826 | if test "${ac_cv_host+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2827 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2828 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2829 | if test "x$host_alias" = x; then |
| 2830 | ac_cv_host=$ac_cv_build |
| 2831 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2832 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2833 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2834 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2835 | |
| 2836 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2838 | $as_echo "$ac_cv_host" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2839 | case $ac_cv_host in |
| 2840 | *-*-*) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2841 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2842 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2843 | host=$ac_cv_host |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2844 | ac_save_IFS=$IFS; IFS='-' |
| 2845 | set x $ac_cv_host |
| 2846 | shift |
| 2847 | host_cpu=$1 |
| 2848 | host_vendor=$2 |
| 2849 | shift; shift |
| 2850 | # Remember, the first character of IFS is used to create $*, |
| 2851 | # except with old shells: |
| 2852 | host_os=$* |
| 2853 | IFS=$ac_save_IFS |
| 2854 | 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] | 2855 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2856 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 2857 | |
Alexandre Julliard | 73b724e | 2006-12-28 11:40:19 +0100 | [diff] [blame] | 2858 | case "$srcdir" in |
| 2859 | .) ;; |
| 2860 | *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2861 | as_fn_error $? "you are building out of the source tree, but the source tree contains object files. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2862 | You need to run 'make distclean' in the source tree first." "$LINENO" 5 |
Alexandre Julliard | 73b724e | 2006-12-28 11:40:19 +0100 | [diff] [blame] | 2863 | fi ;; |
| 2864 | esac |
| 2865 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 2866 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2868 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2869 | set x ${MAKE-make} |
| 2870 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2871 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2872 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2873 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2874 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2875 | SHELL = /bin/sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2876 | all: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2877 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2878 | _ACEOF |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2879 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2880 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2881 | *@@@%%%=?*=@@@%%%*) |
| 2882 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2883 | *) |
| 2884 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2885 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2886 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2887 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2888 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2890 | $as_echo "yes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2891 | SET_MAKE= |
| 2892 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2894 | $as_echo "no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2895 | SET_MAKE="MAKE=${MAKE-make}" |
| 2896 | fi |
| 2897 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2898 | ac_ext=c |
| 2899 | ac_cpp='$CPP $CPPFLAGS' |
| 2900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2903 | if test -n "$ac_tool_prefix"; then |
| 2904 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2905 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2907 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2908 | if test "${ac_cv_prog_CC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2909 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2910 | else |
| 2911 | if test -n "$CC"; then |
| 2912 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2913 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2915 | for as_dir in $PATH |
| 2916 | do |
| 2917 | IFS=$as_save_IFS |
| 2918 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2919 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 2920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2921 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2923 | break 2 |
| 2924 | fi |
| 2925 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2926 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2927 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2928 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2929 | fi |
| 2930 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2931 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2932 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2934 | $as_echo "$CC" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2935 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2937 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2938 | fi |
| 2939 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2940 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2941 | fi |
| 2942 | if test -z "$ac_cv_prog_CC"; then |
| 2943 | ac_ct_CC=$CC |
| 2944 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2945 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2947 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2948 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2949 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2950 | else |
| 2951 | if test -n "$ac_ct_CC"; then |
| 2952 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2953 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2955 | for as_dir in $PATH |
| 2956 | do |
| 2957 | IFS=$as_save_IFS |
| 2958 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2959 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 2960 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2961 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2963 | break 2 |
| 2964 | fi |
| 2965 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2966 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2967 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2968 | |
| 2969 | fi |
| 2970 | fi |
| 2971 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2972 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2974 | $as_echo "$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2975 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2977 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2978 | fi |
| 2979 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2980 | if test "x$ac_ct_CC" = x; then |
| 2981 | CC="" |
| 2982 | else |
| 2983 | case $cross_compiling:$ac_tool_warned in |
| 2984 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2986 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2987 | ac_tool_warned=yes ;; |
| 2988 | esac |
| 2989 | CC=$ac_ct_CC |
| 2990 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2991 | else |
| 2992 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2993 | fi |
| 2994 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2995 | if test -z "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2996 | if test -n "$ac_tool_prefix"; then |
| 2997 | # 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] | 2998 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3000 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3001 | if test "${ac_cv_prog_CC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3002 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3003 | else |
| 3004 | if test -n "$CC"; then |
| 3005 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3006 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3008 | for as_dir in $PATH |
| 3009 | do |
| 3010 | IFS=$as_save_IFS |
| 3011 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3012 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3014 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3016 | break 2 |
| 3017 | fi |
| 3018 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3019 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3020 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3021 | |
| 3022 | fi |
| 3023 | fi |
| 3024 | CC=$ac_cv_prog_CC |
| 3025 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3027 | $as_echo "$CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3028 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3030 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3031 | fi |
| 3032 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3033 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3034 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3035 | fi |
| 3036 | if test -z "$CC"; then |
| 3037 | # Extract the first word of "cc", so it can be a program name with args. |
| 3038 | set dummy cc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3040 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3041 | if test "${ac_cv_prog_CC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3042 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3043 | else |
| 3044 | if test -n "$CC"; then |
| 3045 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3046 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3047 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 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=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3053 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3054 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3055 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3056 | ac_prog_rejected=yes |
| 3057 | continue |
| 3058 | fi |
| 3059 | ac_cv_prog_CC="cc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3061 | break 2 |
| 3062 | fi |
| 3063 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3064 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3065 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3066 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3067 | if test $ac_prog_rejected = yes; then |
| 3068 | # We found a bogon in the path, so make sure we never use it. |
| 3069 | set dummy $ac_cv_prog_CC |
| 3070 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3071 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3072 | # We chose a different compiler from the bogus one. |
| 3073 | # However, it has the same basename, so the bogon will be chosen |
| 3074 | # first if we set CC to just the basename; use the full file name. |
| 3075 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3076 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3077 | fi |
| 3078 | fi |
| 3079 | fi |
| 3080 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3081 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3082 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3084 | $as_echo "$CC" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3085 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3087 | $as_echo "no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3088 | fi |
| 3089 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3090 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3091 | fi |
| 3092 | if test -z "$CC"; then |
| 3093 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3094 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3095 | do |
| 3096 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3097 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3099 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3100 | if test "${ac_cv_prog_CC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3101 | $as_echo_n "(cached) " >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3102 | else |
| 3103 | if test -n "$CC"; then |
| 3104 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3105 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3107 | for as_dir in $PATH |
| 3108 | do |
| 3109 | IFS=$as_save_IFS |
| 3110 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3111 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3112 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3113 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3115 | break 2 |
| 3116 | fi |
| 3117 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3118 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3119 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3120 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3121 | fi |
| 3122 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3123 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3124 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3126 | $as_echo "$CC" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3127 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3129 | $as_echo "no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3130 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3131 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3132 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3133 | test -n "$CC" && break |
| 3134 | done |
| 3135 | fi |
| 3136 | if test -z "$CC"; then |
| 3137 | ac_ct_CC=$CC |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3138 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3139 | do |
| 3140 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3141 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3143 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3144 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3145 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3146 | else |
| 3147 | if test -n "$ac_ct_CC"; then |
| 3148 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3149 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3151 | for as_dir in $PATH |
| 3152 | do |
| 3153 | IFS=$as_save_IFS |
| 3154 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3155 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3157 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3159 | break 2 |
| 3160 | fi |
| 3161 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3162 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3163 | IFS=$as_save_IFS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3164 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3165 | fi |
| 3166 | fi |
| 3167 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3168 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3170 | $as_echo "$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3171 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3173 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3174 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3175 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3176 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3177 | test -n "$ac_ct_CC" && break |
| 3178 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3179 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3180 | if test "x$ac_ct_CC" = x; then |
| 3181 | CC="" |
| 3182 | else |
| 3183 | case $cross_compiling:$ac_tool_warned in |
| 3184 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3186 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3187 | ac_tool_warned=yes ;; |
| 3188 | esac |
| 3189 | CC=$ac_ct_CC |
| 3190 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3191 | fi |
| 3192 | |
| 3193 | fi |
| 3194 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3195 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3196 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3197 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3198 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3199 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3200 | |
| 3201 | # Provide some information about the compiler. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3202 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3203 | set X $ac_compile |
| 3204 | ac_compiler=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3205 | for ac_option in --version -v -V -qversion; do |
| 3206 | { { ac_try="$ac_compiler $ac_option >&5" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3207 | case "(($ac_try" in |
| 3208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3209 | *) ac_try_echo=$ac_try;; |
| 3210 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3211 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3212 | $as_echo "$ac_try_echo"; } >&5 |
| 3213 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3214 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3215 | if test -s conftest.err; then |
| 3216 | sed '10a\ |
| 3217 | ... rest of stderr output deleted ... |
| 3218 | 10q' conftest.err >conftest.er1 |
| 3219 | cat conftest.er1 >&5 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3220 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3221 | rm -f conftest.er1 conftest.err |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3223 | test $ac_status = 0; } |
| 3224 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3225 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3227 | /* end confdefs.h. */ |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3228 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3229 | int |
| 3230 | main () |
| 3231 | { |
| 3232 | |
| 3233 | ; |
| 3234 | return 0; |
| 3235 | } |
| 3236 | _ACEOF |
| 3237 | ac_clean_files_save=$ac_clean_files |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3238 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3239 | # Try to create an executable without -o first, disregard a.out. |
| 3240 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3241 | # of exeext. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3243 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3244 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3245 | |
| 3246 | # The possible output files: |
| 3247 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3248 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3249 | ac_rmfiles= |
| 3250 | for ac_file in $ac_files |
| 3251 | do |
| 3252 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3253 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3254 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3255 | esac |
| 3256 | done |
| 3257 | rm -f $ac_rmfiles |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3258 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3259 | if { { ac_try="$ac_link_default" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3260 | case "(($ac_try" in |
| 3261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3262 | *) ac_try_echo=$ac_try;; |
| 3263 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3264 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3265 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3266 | (eval "$ac_link_default") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3267 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3269 | test $ac_status = 0; }; then : |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3270 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3271 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3272 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3273 | # so that the user can short-circuit this test for compilers unknown to |
| 3274 | # Autoconf. |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 3275 | for ac_file in $ac_files '' |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3276 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3277 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3278 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3279 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3280 | ;; |
| 3281 | [ab].out ) |
| 3282 | # We found the default executable, but exeext='' is most |
| 3283 | # certainly right. |
| 3284 | break;; |
| 3285 | *.* ) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3286 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3287 | then :; else |
| 3288 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3289 | fi |
| 3290 | # We set ac_cv_exeext here because the later test for it is not |
| 3291 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3292 | # argument, so we may need to know it at that point already. |
| 3293 | # Even if this section looks crufty: it has the advantage of |
| 3294 | # actually working. |
| 3295 | break;; |
| 3296 | * ) |
| 3297 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3298 | esac |
| 3299 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3300 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3301 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3302 | else |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 3303 | ac_file='' |
| 3304 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3305 | if test -z "$ac_file"; then : |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3307 | $as_echo "no" >&6; } |
| 3308 | $as_echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3310 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3311 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3312 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3313 | as_fn_error 77 "C compiler cannot create executables |
| 3314 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3315 | else |
| 3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3317 | $as_echo "yes" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3318 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3320 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3322 | $as_echo "$ac_file" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3323 | ac_exeext=$ac_cv_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3324 | |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3325 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3326 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3328 | $as_echo_n "checking for suffix of executables... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3329 | if { { ac_try="$ac_link" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3330 | case "(($ac_try" in |
| 3331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3332 | *) ac_try_echo=$ac_try;; |
| 3333 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3334 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3335 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3336 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3337 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3338 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3339 | test $ac_status = 0; }; then : |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3340 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3341 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3342 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3343 | # `rm'. |
| 3344 | for ac_file in conftest.exe conftest conftest.*; do |
| 3345 | test -f "$ac_file" || continue |
| 3346 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3347 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3348 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3349 | break;; |
| 3350 | * ) break;; |
| 3351 | esac |
| 3352 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3353 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3354 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3355 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3356 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3357 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3358 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3359 | rm -f conftest conftest$ac_cv_exeext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3361 | $as_echo "$ac_cv_exeext" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3362 | |
| 3363 | rm -f conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3364 | EXEEXT=$ac_cv_exeext |
| 3365 | ac_exeext=$EXEEXT |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3367 | /* end confdefs.h. */ |
| 3368 | #include <stdio.h> |
| 3369 | int |
| 3370 | main () |
| 3371 | { |
| 3372 | FILE *f = fopen ("conftest.out", "w"); |
| 3373 | return ferror (f) || fclose (f) != 0; |
| 3374 | |
| 3375 | ; |
| 3376 | return 0; |
| 3377 | } |
| 3378 | _ACEOF |
| 3379 | ac_clean_files="$ac_clean_files conftest.out" |
| 3380 | # Check that the compiler produces executables we can run. If not, either |
| 3381 | # the compiler is broken, or we cross compile. |
| 3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3383 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3384 | if test "$cross_compiling" != yes; then |
| 3385 | { { ac_try="$ac_link" |
| 3386 | case "(($ac_try" in |
| 3387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3388 | *) ac_try_echo=$ac_try;; |
| 3389 | esac |
| 3390 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3391 | $as_echo "$ac_try_echo"; } >&5 |
| 3392 | (eval "$ac_link") 2>&5 |
| 3393 | ac_status=$? |
| 3394 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3395 | test $ac_status = 0; } |
| 3396 | if { ac_try='./conftest$ac_cv_exeext' |
| 3397 | { { case "(($ac_try" in |
| 3398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3399 | *) ac_try_echo=$ac_try;; |
| 3400 | esac |
| 3401 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3402 | $as_echo "$ac_try_echo"; } >&5 |
| 3403 | (eval "$ac_try") 2>&5 |
| 3404 | ac_status=$? |
| 3405 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3406 | test $ac_status = 0; }; }; then |
| 3407 | cross_compiling=no |
| 3408 | else |
| 3409 | if test "$cross_compiling" = maybe; then |
| 3410 | cross_compiling=yes |
| 3411 | else |
| 3412 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3413 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3414 | as_fn_error $? "cannot run C compiled programs. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3415 | If you meant to cross compile, use \`--host'. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3416 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3417 | fi |
| 3418 | fi |
| 3419 | fi |
| 3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3421 | $as_echo "$cross_compiling" >&6; } |
| 3422 | |
| 3423 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3424 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3426 | $as_echo_n "checking for suffix of object files... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3427 | if test "${ac_cv_objext+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3428 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3429 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3431 | /* end confdefs.h. */ |
| 3432 | |
| 3433 | int |
| 3434 | main () |
| 3435 | { |
| 3436 | |
| 3437 | ; |
| 3438 | return 0; |
| 3439 | } |
| 3440 | _ACEOF |
| 3441 | rm -f conftest.o conftest.obj |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3442 | if { { ac_try="$ac_compile" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3443 | case "(($ac_try" in |
| 3444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3445 | *) ac_try_echo=$ac_try;; |
| 3446 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3447 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3448 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3449 | (eval "$ac_compile") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3450 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3452 | test $ac_status = 0; }; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3453 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3454 | test -f "$ac_file" || continue; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3455 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3456 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3457 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3458 | break;; |
| 3459 | esac |
| 3460 | done |
| 3461 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3462 | $as_echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3464 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3465 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3466 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3467 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3468 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3469 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3470 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3471 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3473 | $as_echo "$ac_cv_objext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3474 | OBJEXT=$ac_cv_objext |
| 3475 | ac_objext=$OBJEXT |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3477 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3478 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3479 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3480 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3482 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3483 | |
| 3484 | int |
| 3485 | main () |
| 3486 | { |
| 3487 | #ifndef __GNUC__ |
| 3488 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3489 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3490 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3491 | ; |
| 3492 | return 0; |
| 3493 | } |
| 3494 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3495 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3496 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3497 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3498 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3499 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3501 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3502 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3503 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3505 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3506 | if test $ac_compiler_gnu = yes; then |
| 3507 | GCC=yes |
| 3508 | else |
| 3509 | GCC= |
| 3510 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3511 | ac_test_CFLAGS=${CFLAGS+set} |
| 3512 | ac_save_CFLAGS=$CFLAGS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3514 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3515 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3516 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3517 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3518 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3519 | ac_c_werror_flag=yes |
| 3520 | ac_cv_prog_cc_g=no |
| 3521 | CFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3523 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3524 | |
| 3525 | int |
| 3526 | main () |
| 3527 | { |
| 3528 | |
| 3529 | ; |
| 3530 | return 0; |
| 3531 | } |
| 3532 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3533 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3534 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3535 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3536 | CFLAGS="" |
| 3537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3538 | /* end confdefs.h. */ |
| 3539 | |
| 3540 | int |
| 3541 | main () |
| 3542 | { |
| 3543 | |
| 3544 | ; |
| 3545 | return 0; |
| 3546 | } |
| 3547 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3548 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3549 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3550 | else |
| 3551 | ac_c_werror_flag=$ac_save_c_werror_flag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3552 | CFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3554 | /* end confdefs.h. */ |
| 3555 | |
| 3556 | int |
| 3557 | main () |
| 3558 | { |
| 3559 | |
| 3560 | ; |
| 3561 | return 0; |
| 3562 | } |
| 3563 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3564 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3565 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3566 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3568 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3570 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3572 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3573 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3575 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3576 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3577 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3578 | elif test $ac_cv_prog_cc_g = yes; then |
| 3579 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3580 | CFLAGS="-g -O2" |
| 3581 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3582 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3583 | fi |
| 3584 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3585 | if test "$GCC" = yes; then |
| 3586 | CFLAGS="-O2" |
| 3587 | else |
| 3588 | CFLAGS= |
| 3589 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3590 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3592 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3593 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3594 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3595 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3596 | ac_cv_prog_cc_c89=no |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3597 | ac_save_CC=$CC |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3599 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3600 | #include <stdarg.h> |
| 3601 | #include <stdio.h> |
| 3602 | #include <sys/types.h> |
| 3603 | #include <sys/stat.h> |
| 3604 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3605 | struct buf { int x; }; |
| 3606 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3607 | static char *e (p, i) |
| 3608 | char **p; |
| 3609 | int i; |
| 3610 | { |
| 3611 | return p[i]; |
| 3612 | } |
| 3613 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3614 | { |
| 3615 | char *s; |
| 3616 | va_list v; |
| 3617 | va_start (v,p); |
| 3618 | s = g (p, va_arg (v,int)); |
| 3619 | va_end (v); |
| 3620 | return s; |
| 3621 | } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3622 | |
| 3623 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3624 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3625 | These don't provoke an error unfortunately, instead are silently treated |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3626 | 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] | 3627 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3628 | 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] | 3629 | that's true only with -std. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3630 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3631 | |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 3632 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3633 | inside strings and character constants. */ |
| 3634 | #define FOO(x) 'x' |
| 3635 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3636 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3637 | int test (int i, double x); |
| 3638 | struct s1 {int (*f) (int a);}; |
| 3639 | struct s2 {int (*f) (double a);}; |
| 3640 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3641 | int argc; |
| 3642 | char **argv; |
| 3643 | int |
| 3644 | main () |
| 3645 | { |
| 3646 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3647 | ; |
| 3648 | return 0; |
| 3649 | } |
| 3650 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3651 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3652 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3653 | do |
| 3654 | CC="$ac_save_CC $ac_arg" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3655 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3656 | ac_cv_prog_cc_c89=$ac_arg |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3657 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3658 | rm -f core conftest.err conftest.$ac_objext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3659 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3660 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3661 | rm -f conftest.$ac_ext |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3662 | CC=$ac_save_CC |
| 3663 | |
| 3664 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3665 | # AC_CACHE_VAL |
| 3666 | case "x$ac_cv_prog_cc_c89" in |
| 3667 | x) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3669 | $as_echo "none needed" >&6; } ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3670 | xno) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3672 | $as_echo "unsupported" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3673 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3674 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3676 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3677 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3678 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3679 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3680 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3681 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3682 | ac_ext=c |
| 3683 | ac_cpp='$CPP $CPPFLAGS' |
| 3684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3687 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3688 | ac_ext=cpp |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3689 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3690 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3691 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3692 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3693 | if test -z "$CXX"; then |
| 3694 | if test -n "$CCC"; then |
| 3695 | CXX=$CCC |
| 3696 | else |
| 3697 | if test -n "$ac_tool_prefix"; then |
| 3698 | 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] | 3699 | do |
| 3700 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3701 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3703 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3704 | if test "${ac_cv_prog_CXX+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3705 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3706 | else |
| 3707 | if test -n "$CXX"; then |
| 3708 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3709 | else |
| 3710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3711 | for as_dir in $PATH |
| 3712 | do |
| 3713 | IFS=$as_save_IFS |
| 3714 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3715 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3717 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3719 | break 2 |
| 3720 | fi |
| 3721 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3722 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3723 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3724 | |
| 3725 | fi |
| 3726 | fi |
| 3727 | CXX=$ac_cv_prog_CXX |
| 3728 | if test -n "$CXX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3730 | $as_echo "$CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3731 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3733 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3734 | fi |
| 3735 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3736 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3737 | test -n "$CXX" && break |
| 3738 | done |
| 3739 | fi |
| 3740 | if test -z "$CXX"; then |
| 3741 | ac_ct_CXX=$CXX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3742 | 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] | 3743 | do |
| 3744 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3745 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3747 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3748 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3749 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3750 | else |
| 3751 | if test -n "$ac_ct_CXX"; then |
| 3752 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3753 | else |
| 3754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3755 | for as_dir in $PATH |
| 3756 | do |
| 3757 | IFS=$as_save_IFS |
| 3758 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3759 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3761 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3763 | break 2 |
| 3764 | fi |
| 3765 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3766 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3767 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3768 | |
| 3769 | fi |
| 3770 | fi |
| 3771 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3772 | if test -n "$ac_ct_CXX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3774 | $as_echo "$ac_ct_CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3775 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3777 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3778 | fi |
| 3779 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3780 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3781 | test -n "$ac_ct_CXX" && break |
| 3782 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3783 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3784 | if test "x$ac_ct_CXX" = x; then |
| 3785 | CXX="g++" |
| 3786 | else |
| 3787 | case $cross_compiling:$ac_tool_warned in |
| 3788 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3790 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3791 | ac_tool_warned=yes ;; |
| 3792 | esac |
| 3793 | CXX=$ac_ct_CXX |
| 3794 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3795 | fi |
| 3796 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3797 | fi |
| 3798 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3799 | # Provide some information about the compiler. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3800 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3801 | set X $ac_compile |
| 3802 | ac_compiler=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3803 | for ac_option in --version -v -V -qversion; do |
| 3804 | { { ac_try="$ac_compiler $ac_option >&5" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3805 | case "(($ac_try" in |
| 3806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3807 | *) ac_try_echo=$ac_try;; |
| 3808 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3809 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3810 | $as_echo "$ac_try_echo"; } >&5 |
| 3811 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3812 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3813 | if test -s conftest.err; then |
| 3814 | sed '10a\ |
| 3815 | ... rest of stderr output deleted ... |
| 3816 | 10q' conftest.err >conftest.er1 |
| 3817 | cat conftest.er1 >&5 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3818 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3819 | rm -f conftest.er1 conftest.err |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3821 | test $ac_status = 0; } |
| 3822 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3823 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3825 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3826 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3827 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3828 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3830 | /* end confdefs.h. */ |
| 3831 | |
| 3832 | int |
| 3833 | main () |
| 3834 | { |
| 3835 | #ifndef __GNUC__ |
| 3836 | choke me |
| 3837 | #endif |
| 3838 | |
| 3839 | ; |
| 3840 | return 0; |
| 3841 | } |
| 3842 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3843 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3844 | ac_compiler_gnu=yes |
| 3845 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3846 | ac_compiler_gnu=no |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3847 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3849 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3850 | |
| 3851 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3853 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3854 | if test $ac_compiler_gnu = yes; then |
| 3855 | GXX=yes |
| 3856 | else |
| 3857 | GXX= |
| 3858 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3859 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3860 | ac_save_CXXFLAGS=$CXXFLAGS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3862 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3863 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3864 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3865 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3866 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3867 | ac_cxx_werror_flag=yes |
| 3868 | ac_cv_prog_cxx_g=no |
| 3869 | CXXFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3871 | /* end confdefs.h. */ |
| 3872 | |
| 3873 | int |
| 3874 | main () |
| 3875 | { |
| 3876 | |
| 3877 | ; |
| 3878 | return 0; |
| 3879 | } |
| 3880 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3881 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3882 | ac_cv_prog_cxx_g=yes |
| 3883 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3884 | CXXFLAGS="" |
| 3885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3886 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3887 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3888 | int |
| 3889 | main () |
| 3890 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3891 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3892 | ; |
| 3893 | return 0; |
| 3894 | } |
| 3895 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3896 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3897 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3898 | else |
| 3899 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3900 | CXXFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3902 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3903 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3904 | int |
| 3905 | main () |
| 3906 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3907 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3908 | ; |
| 3909 | return 0; |
| 3910 | } |
| 3911 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3912 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3913 | ac_cv_prog_cxx_g=yes |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3914 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3916 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3918 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3920 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3921 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3923 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3924 | if test "$ac_test_CXXFLAGS" = set; then |
| 3925 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3926 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3927 | if test "$GXX" = yes; then |
| 3928 | CXXFLAGS="-g -O2" |
| 3929 | else |
| 3930 | CXXFLAGS="-g" |
| 3931 | fi |
| 3932 | else |
| 3933 | if test "$GXX" = yes; then |
| 3934 | CXXFLAGS="-O2" |
| 3935 | else |
| 3936 | CXXFLAGS= |
| 3937 | fi |
| 3938 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3939 | ac_ext=c |
| 3940 | ac_cpp='$CPP $CPPFLAGS' |
| 3941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3944 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3945 | if test -n "$ac_tool_prefix"; then |
| 3946 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. |
| 3947 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3949 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3950 | if test "${ac_cv_prog_CPPBIN+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3951 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3952 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3953 | if test -n "$CPPBIN"; then |
| 3954 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3955 | else |
| 3956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3957 | for as_dir in $PATH |
| 3958 | do |
| 3959 | IFS=$as_save_IFS |
| 3960 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3961 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3963 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3965 | break 2 |
| 3966 | fi |
| 3967 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3968 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3969 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3970 | |
| 3971 | fi |
| 3972 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3973 | CPPBIN=$ac_cv_prog_CPPBIN |
| 3974 | if test -n "$CPPBIN"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3976 | $as_echo "$CPPBIN" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3977 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3979 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3980 | fi |
| 3981 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3982 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3983 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3984 | if test -z "$ac_cv_prog_CPPBIN"; then |
| 3985 | ac_ct_CPPBIN=$CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3986 | # Extract the first word of "cpp", so it can be a program name with args. |
| 3987 | set dummy cpp; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3989 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3990 | if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3991 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3992 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3993 | if test -n "$ac_ct_CPPBIN"; then |
| 3994 | 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] | 3995 | else |
| 3996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3997 | for as_dir in $PATH |
| 3998 | do |
| 3999 | IFS=$as_save_IFS |
| 4000 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4001 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4003 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4005 | break 2 |
| 4006 | fi |
| 4007 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4008 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4009 | IFS=$as_save_IFS |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4010 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4011 | fi |
| 4012 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4013 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
| 4014 | if test -n "$ac_ct_CPPBIN"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4016 | $as_echo "$ac_ct_CPPBIN" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4017 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4019 | $as_echo "no" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4020 | fi |
| 4021 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4022 | if test "x$ac_ct_CPPBIN" = x; then |
| 4023 | CPPBIN="cpp" |
| 4024 | else |
| 4025 | case $cross_compiling:$ac_tool_warned in |
| 4026 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4028 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4029 | ac_tool_warned=yes ;; |
| 4030 | esac |
| 4031 | CPPBIN=$ac_ct_CPPBIN |
| 4032 | fi |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4033 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4034 | CPPBIN="$ac_cv_prog_CPPBIN" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4035 | fi |
| 4036 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4037 | |
Alexandre Julliard | 1aea4ef | 2009-08-27 13:35:46 +0200 | [diff] [blame] | 4038 | cat >>confdefs.h <<_ACEOF |
| 4039 | #define EXEEXT "$ac_exeext" |
| 4040 | _ACEOF |
| 4041 | |
| 4042 | |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4043 | case $host in |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4044 | *-darwin*) |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4045 | if test "x$enable_win64" = "xyes" |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4046 | then |
| 4047 | CC="$CC -m64" |
| 4048 | CXX="$CXX -m64" |
| 4049 | LD="${LD:-ld} -arch x86_64" |
| 4050 | AS="${AS:-as} -arch x86_64" |
| 4051 | host_cpu="x86_64" |
| 4052 | notice_platform="64-bit " |
| 4053 | TARGETFLAGS="-m64" |
| 4054 | |
| 4055 | else |
| 4056 | CC="$CC -m32" |
| 4057 | CXX="$CXX -m32" |
| 4058 | LD="${LD:-ld} -arch i386" |
| 4059 | AS="${AS:-as} -arch i386" |
| 4060 | host_cpu="i386" |
| 4061 | notice_platform="32-bit " |
| 4062 | TARGETFLAGS="-m32" |
| 4063 | |
| 4064 | enable_win16=${enable_win16:-yes} |
| 4065 | fi |
| 4066 | ;; |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4067 | x86_64*) |
Alexandre Julliard | 6b4ed0f | 2009-01-12 19:29:43 +0100 | [diff] [blame] | 4068 | if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes" |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4069 | then |
| 4070 | CC="$CC -m32" |
| 4071 | CXX="$CXX -m32" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4073 | $as_echo_n "checking whether $CC works... " >&6; } |
| 4074 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4076 | /* end confdefs.h. */ |
| 4077 | |
| 4078 | int |
| 4079 | main () |
| 4080 | { |
| 4081 | |
| 4082 | ; |
| 4083 | return 0; |
| 4084 | } |
| 4085 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4086 | if ac_fn_c_try_link "$LINENO"; then : |
| 4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4088 | $as_echo "yes" >&6; } |
| 4089 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4091 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4092 | as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4093 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4094 | rm -f core conftest.err conftest.$ac_objext \ |
| 4095 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4096 | LD="${LD:-ld} -m elf_i386" |
| 4097 | AS="${AS:-as} --32" |
| 4098 | host_cpu="i386" |
| 4099 | notice_platform="32-bit " |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4100 | TARGETFLAGS="-m32" |
| 4101 | |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4102 | enable_win16=${enable_win16:-yes} |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4103 | else |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4104 | if test "x${GCC}" = "xyes" |
| 4105 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4107 | $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4109 | /* end confdefs.h. */ |
| 4110 | #include <stdarg.h> |
| 4111 | int |
| 4112 | main () |
| 4113 | { |
| 4114 | void func(__builtin_ms_va_list *args); |
| 4115 | ; |
| 4116 | return 0; |
| 4117 | } |
| 4118 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4119 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4121 | $as_echo "yes" >&6; } |
| 4122 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4124 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4125 | as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4126 | fi |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4128 | fi |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4129 | TARGETFLAGS="-m64" |
| 4130 | |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4131 | fi |
| 4132 | ;; |
Alexandre Julliard | 391fce6 | 2009-04-02 12:59:52 +0200 | [diff] [blame] | 4133 | *-mingw32*|*-cygwin*) |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4134 | enable_win16=${enable_win16:-no} |
Alexandre Goujon | ac0a38c | 2010-03-01 21:39:40 +0100 | [diff] [blame] | 4135 | CFLAGS="$CFLAGS -D_WIN32" |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4136 | ;; |
| 4137 | i[3456789]86*) |
| 4138 | enable_win16=${enable_win16:-yes} |
| 4139 | ;; |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4140 | esac |
| 4141 | |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4142 | enable_win16=${enable_win16:-no} |
Alexandre Julliard | 776820e | 2009-02-23 17:46:33 +0100 | [diff] [blame] | 4143 | |
Alexandre Julliard | 9508155 | 2010-02-09 19:08:17 +0100 | [diff] [blame] | 4144 | enable_winetest=${enable_winetest:-$enable_tests} |
| 4145 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4146 | if test -n "$with_wine64" |
| 4147 | then |
| 4148 | if test "x$enable_win64" = "xyes" |
| 4149 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4150 | as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive. |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4151 | --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5 |
| 4152 | fi |
Alexandre Julliard | 9064777 | 2009-08-13 19:48:42 +0200 | [diff] [blame] | 4153 | WOW64_DISABLE=\# |
| 4154 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4155 | enable_fonts=${enable_fonts:-no} |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4156 | enable_server=${enable_server:-no} |
| 4157 | enable_tools=${enable_tools:-no} |
Alexandre Julliard | b326532 | 2010-04-21 12:28:22 +0200 | [diff] [blame] | 4158 | elif test "x$enable_win64" = "xyes" |
| 4159 | then |
| 4160 | test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64" |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4161 | fi |
| 4162 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4164 | $as_echo_n "checking for the directory containing the Wine tools... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4165 | if test "${wine_cv_toolsdir+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4166 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4167 | else |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4168 | wine_cv_toolsdir="$with_wine_tools" |
| 4169 | if test -z "$with_wine_tools"; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4170 | if test "$cross_compiling" = "yes"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4171 | as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5 |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4172 | elif test -n "$with_wine64"; then |
| 4173 | wine_cv_toolsdir="$with_wine64" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4174 | fi |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4175 | fi |
| 4176 | if test -z "$wine_cv_toolsdir"; then |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4177 | wine_cv_toolsdir="\$(top_builddir)" |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4178 | elif test -d "$wine_cv_toolsdir/tools/winebuild"; then |
| 4179 | case "$wine_cv_toolsdir" in |
| 4180 | /*) ;; |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4181 | *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;; |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4182 | esac |
| 4183 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4184 | as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4185 | fi |
| 4186 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4188 | $as_echo "$wine_cv_toolsdir" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4189 | TOOLSDIR=$wine_cv_toolsdir |
| 4190 | |
Alexandre Julliard | 4d135d9 | 2009-02-16 13:08:44 +0100 | [diff] [blame] | 4191 | if test -n "$host_alias" -a "$host_alias" != "$build_alias" |
Alexandre Julliard | 424cb27 | 2008-12-26 17:54:50 +0100 | [diff] [blame] | 4192 | then |
Alexandre Julliard | 0fea4a5 | 2009-02-12 10:28:23 +0100 | [diff] [blame] | 4193 | TARGETFLAGS="-b $host_alias $TARGETFLAGS" |
Alexandre Julliard | 424cb27 | 2008-12-26 17:54:50 +0100 | [diff] [blame] | 4194 | |
| 4195 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4196 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4197 | for ac_prog in flex |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4198 | do |
| 4199 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4200 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4202 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4203 | if test "${ac_cv_prog_FLEX+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4204 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4205 | else |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4206 | if test -n "$FLEX"; then |
| 4207 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4208 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4210 | for as_dir in $PATH |
| 4211 | do |
| 4212 | IFS=$as_save_IFS |
| 4213 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4214 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4216 | ac_cv_prog_FLEX="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4218 | break 2 |
| 4219 | fi |
| 4220 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4221 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4222 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4223 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4224 | fi |
| 4225 | fi |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4226 | FLEX=$ac_cv_prog_FLEX |
| 4227 | if test -n "$FLEX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4229 | $as_echo "$FLEX" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4230 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4232 | $as_echo "no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4233 | fi |
| 4234 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4235 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4236 | test -n "$FLEX" && break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4237 | done |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4238 | test -n "$FLEX" || FLEX="none" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4239 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4240 | if test "$FLEX" = "none" |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4241 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4242 | as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4243 | fi |
Michael Stefaniuc | ce30733 | 2009-12-29 18:07:02 +0100 | [diff] [blame] | 4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5 |
| 4245 | $as_echo_n "checking whether flex is recent enough... " >&6; } |
| 4246 | cat >conftest.l <<EOF |
| 4247 | %top{ |
| 4248 | #include "prediluvian.h" |
| 4249 | } |
| 4250 | %% |
| 4251 | EOF |
Alexandre Julliard | 27816c7 | 2010-07-28 11:04:46 +0200 | [diff] [blame] | 4252 | if $FLEX -t conftest.l >/dev/null 2>&5 |
Michael Stefaniuc | ce30733 | 2009-12-29 18:07:02 +0100 | [diff] [blame] | 4253 | then |
| 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4255 | $as_echo "yes" >&6; } |
| 4256 | else |
| 4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4258 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4259 | as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5 |
Michael Stefaniuc | ce30733 | 2009-12-29 18:07:02 +0100 | [diff] [blame] | 4260 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4261 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4262 | for ac_prog in bison |
| 4263 | do |
| 4264 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4265 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4267 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4268 | if test "${ac_cv_prog_BISON+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4269 | $as_echo_n "(cached) " >&6 |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4270 | else |
| 4271 | if test -n "$BISON"; then |
| 4272 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
| 4273 | else |
| 4274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4275 | for as_dir in $PATH |
| 4276 | do |
| 4277 | IFS=$as_save_IFS |
| 4278 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4279 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4281 | ac_cv_prog_BISON="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4283 | break 2 |
| 4284 | fi |
| 4285 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4286 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4287 | IFS=$as_save_IFS |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4288 | |
| 4289 | fi |
| 4290 | fi |
| 4291 | BISON=$ac_cv_prog_BISON |
| 4292 | if test -n "$BISON"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4294 | $as_echo "$BISON" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4295 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4297 | $as_echo "no" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4298 | fi |
| 4299 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4300 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4301 | test -n "$BISON" && break |
| 4302 | done |
| 4303 | test -n "$BISON" || BISON="none" |
| 4304 | |
| 4305 | if test "$BISON" = "none" |
| 4306 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4307 | as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5 |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4308 | fi |
| 4309 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4310 | if test -n "$ac_tool_prefix"; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4311 | for ac_prog in ar gar |
| 4312 | do |
| 4313 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4314 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4316 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4317 | if test "${ac_cv_prog_AR+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4318 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4319 | else |
| 4320 | if test -n "$AR"; then |
| 4321 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4322 | else |
| 4323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4324 | for as_dir in $PATH |
| 4325 | do |
| 4326 | IFS=$as_save_IFS |
| 4327 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4328 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4329 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4330 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4332 | break 2 |
| 4333 | fi |
| 4334 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4335 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4336 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4337 | |
| 4338 | fi |
| 4339 | fi |
| 4340 | AR=$ac_cv_prog_AR |
| 4341 | if test -n "$AR"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4343 | $as_echo "$AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4344 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4346 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4347 | fi |
| 4348 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4349 | |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4350 | test -n "$AR" && break |
| 4351 | done |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4352 | fi |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4353 | if test -z "$AR"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4354 | ac_ct_AR=$AR |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4355 | for ac_prog in ar gar |
| 4356 | do |
| 4357 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4358 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4360 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4361 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4362 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4363 | else |
| 4364 | if test -n "$ac_ct_AR"; then |
| 4365 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4366 | else |
| 4367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4368 | for as_dir in $PATH |
| 4369 | do |
| 4370 | IFS=$as_save_IFS |
| 4371 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4372 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4373 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4374 | ac_cv_prog_ac_ct_AR="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4375 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4376 | break 2 |
| 4377 | fi |
| 4378 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4379 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4380 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4381 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4382 | fi |
| 4383 | fi |
| 4384 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4385 | if test -n "$ac_ct_AR"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4387 | $as_echo "$ac_ct_AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4388 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4390 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4391 | fi |
| 4392 | |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4393 | |
| 4394 | test -n "$ac_ct_AR" && break |
| 4395 | done |
| 4396 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4397 | if test "x$ac_ct_AR" = x; then |
| 4398 | AR="ar" |
| 4399 | else |
| 4400 | case $cross_compiling:$ac_tool_warned in |
| 4401 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4403 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4404 | ac_tool_warned=yes ;; |
| 4405 | esac |
| 4406 | AR=$ac_ct_AR |
| 4407 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4408 | fi |
| 4409 | |
Rob Shearman | 0c694d7 | 2008-03-04 15:53:41 +0000 | [diff] [blame] | 4410 | ARFLAGS=rc |
| 4411 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4412 | if test -n "$ac_tool_prefix"; then |
| 4413 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4414 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4416 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4417 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4418 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4419 | else |
| 4420 | if test -n "$RANLIB"; then |
| 4421 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4422 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4424 | for as_dir in $PATH |
| 4425 | do |
| 4426 | IFS=$as_save_IFS |
| 4427 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4428 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4429 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4430 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4432 | break 2 |
| 4433 | fi |
| 4434 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4435 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4436 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4437 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4438 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4439 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4440 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4441 | if test -n "$RANLIB"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4443 | $as_echo "$RANLIB" >&6; } |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4444 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4446 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4447 | fi |
| 4448 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4449 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4450 | fi |
| 4451 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4452 | ac_ct_RANLIB=$RANLIB |
| 4453 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4454 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4456 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4457 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4458 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4459 | else |
| 4460 | if test -n "$ac_ct_RANLIB"; then |
| 4461 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4462 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4464 | for as_dir in $PATH |
| 4465 | do |
| 4466 | IFS=$as_save_IFS |
| 4467 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4468 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4470 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4472 | break 2 |
| 4473 | fi |
| 4474 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4475 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4476 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4477 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4478 | fi |
| 4479 | fi |
| 4480 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4481 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4483 | $as_echo "$ac_ct_RANLIB" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4484 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4486 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4487 | fi |
| 4488 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4489 | if test "x$ac_ct_RANLIB" = x; then |
| 4490 | RANLIB=":" |
| 4491 | else |
| 4492 | case $cross_compiling:$ac_tool_warned in |
| 4493 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4495 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4496 | ac_tool_warned=yes ;; |
| 4497 | esac |
| 4498 | RANLIB=$ac_ct_RANLIB |
| 4499 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4500 | else |
| 4501 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4502 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4503 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4504 | if test -n "$ac_tool_prefix"; then |
| 4505 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4506 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4508 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4509 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4510 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4511 | else |
| 4512 | if test -n "$STRIP"; then |
| 4513 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4514 | else |
| 4515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4516 | for as_dir in $PATH |
| 4517 | do |
| 4518 | IFS=$as_save_IFS |
| 4519 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4520 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4522 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4524 | break 2 |
| 4525 | fi |
| 4526 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4527 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4528 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4529 | |
| 4530 | fi |
| 4531 | fi |
| 4532 | STRIP=$ac_cv_prog_STRIP |
| 4533 | if test -n "$STRIP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4535 | $as_echo "$STRIP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4536 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4538 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4539 | fi |
| 4540 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4541 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4542 | fi |
| 4543 | if test -z "$ac_cv_prog_STRIP"; then |
| 4544 | ac_ct_STRIP=$STRIP |
| 4545 | # Extract the first word of "strip", so it can be a program name with args. |
| 4546 | set dummy strip; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4548 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4549 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4550 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4551 | else |
| 4552 | if test -n "$ac_ct_STRIP"; then |
| 4553 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4554 | else |
| 4555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4556 | for as_dir in $PATH |
| 4557 | do |
| 4558 | IFS=$as_save_IFS |
| 4559 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4560 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4561 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4562 | ac_cv_prog_ac_ct_STRIP="strip" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4564 | break 2 |
| 4565 | fi |
| 4566 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4567 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4568 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4569 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4570 | fi |
| 4571 | fi |
| 4572 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4573 | if test -n "$ac_ct_STRIP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4575 | $as_echo "$ac_ct_STRIP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4576 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4578 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4579 | fi |
| 4580 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4581 | if test "x$ac_ct_STRIP" = x; then |
| 4582 | STRIP="strip" |
| 4583 | else |
| 4584 | case $cross_compiling:$ac_tool_warned in |
| 4585 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4587 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4588 | ac_tool_warned=yes ;; |
| 4589 | esac |
| 4590 | STRIP=$ac_ct_STRIP |
| 4591 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4592 | else |
| 4593 | STRIP="$ac_cv_prog_STRIP" |
| 4594 | fi |
| 4595 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4597 | $as_echo_n "checking whether ln -s works... " >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4598 | LN_S=$as_ln_s |
| 4599 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4601 | $as_echo "yes" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4602 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4604 | $as_echo "no, using $LN_S" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4605 | fi |
| 4606 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4608 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4609 | if test "${ac_cv_path_GREP+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4610 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4611 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4612 | if test -z "$GREP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4613 | ac_path_GREP_found=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4614 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4616 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4617 | do |
| 4618 | IFS=$as_save_IFS |
| 4619 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4620 | for ac_prog in grep ggrep; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4621 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4622 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4623 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4624 | # Check for GNU ac_path_GREP and select it if it is found. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4625 | # Check for GNU $ac_path_GREP |
| 4626 | case `"$ac_path_GREP" --version 2>&1` in |
| 4627 | *GNU*) |
| 4628 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4629 | *) |
| 4630 | ac_count=0 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4631 | $as_echo_n 0123456789 >"conftest.in" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4632 | while : |
| 4633 | do |
| 4634 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4635 | mv "conftest.tmp" "conftest.in" |
| 4636 | cp "conftest.in" "conftest.nl" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4637 | $as_echo 'GREP' >> "conftest.nl" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4638 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4639 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4640 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4641 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4642 | # Best one so far, save it but keep looking for a better one |
| 4643 | ac_cv_path_GREP="$ac_path_GREP" |
| 4644 | ac_path_GREP_max=$ac_count |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4645 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4646 | # 10*(2^10) chars as input seems more than enough |
| 4647 | test $ac_count -gt 10 && break |
| 4648 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4649 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4650 | esac |
| 4651 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4652 | $ac_path_GREP_found && break 3 |
| 4653 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4654 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4655 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4656 | IFS=$as_save_IFS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4657 | if test -z "$ac_cv_path_GREP"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4658 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4659 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4660 | else |
| 4661 | ac_cv_path_GREP=$GREP |
| 4662 | fi |
| 4663 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4664 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4666 | $as_echo "$ac_cv_path_GREP" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4667 | GREP="$ac_cv_path_GREP" |
| 4668 | |
| 4669 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4671 | $as_echo_n "checking for egrep... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4672 | if test "${ac_cv_path_EGREP+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4673 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4674 | else |
| 4675 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4676 | then ac_cv_path_EGREP="$GREP -E" |
| 4677 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4678 | if test -z "$EGREP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4679 | ac_path_EGREP_found=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4680 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4682 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4683 | do |
| 4684 | IFS=$as_save_IFS |
| 4685 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4686 | for ac_prog in egrep; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4687 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4688 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4689 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4690 | # Check for GNU ac_path_EGREP and select it if it is found. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4691 | # Check for GNU $ac_path_EGREP |
| 4692 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4693 | *GNU*) |
| 4694 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4695 | *) |
| 4696 | ac_count=0 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4697 | $as_echo_n 0123456789 >"conftest.in" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4698 | while : |
| 4699 | do |
| 4700 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4701 | mv "conftest.tmp" "conftest.in" |
| 4702 | cp "conftest.in" "conftest.nl" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4703 | $as_echo 'EGREP' >> "conftest.nl" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4704 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4705 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4706 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4707 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4708 | # Best one so far, save it but keep looking for a better one |
| 4709 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4710 | ac_path_EGREP_max=$ac_count |
| 4711 | fi |
| 4712 | # 10*(2^10) chars as input seems more than enough |
| 4713 | test $ac_count -gt 10 && break |
| 4714 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4715 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4716 | esac |
| 4717 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4718 | $ac_path_EGREP_found && break 3 |
| 4719 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4720 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4721 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4722 | IFS=$as_save_IFS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4723 | if test -z "$ac_cv_path_EGREP"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4724 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4725 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4726 | else |
| 4727 | ac_cv_path_EGREP=$EGREP |
| 4728 | fi |
| 4729 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4730 | fi |
| 4731 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4733 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4734 | EGREP="$ac_cv_path_EGREP" |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4735 | |
| 4736 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4737 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4738 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4740 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4741 | if test "${ac_cv_path_LDCONFIG+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4742 | $as_echo_n "(cached) " >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4743 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4744 | case $LDCONFIG in |
| 4745 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4746 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4747 | ;; |
| 4748 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 4750 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4751 | do |
| 4752 | IFS=$as_save_IFS |
| 4753 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4754 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4755 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4756 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4758 | break 2 |
| 4759 | fi |
| 4760 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4761 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4762 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4763 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 4764 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4765 | ;; |
| 4766 | esac |
| 4767 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4768 | LDCONFIG=$ac_cv_path_LDCONFIG |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4769 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4771 | $as_echo "$LDCONFIG" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4772 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4774 | $as_echo "no" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4775 | fi |
| 4776 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4777 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4778 | # Find a good install program. We prefer a C program (faster), |
| 4779 | # so one script is as good as another. But avoid the broken or |
| 4780 | # incompatible versions: |
| 4781 | # SysV /etc/install, /usr/sbin/install |
| 4782 | # SunOS /usr/etc/install |
| 4783 | # IRIX /sbin/install |
| 4784 | # AIX /bin/install |
| 4785 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4786 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4787 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4788 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4789 | # OS/2's system install, which has a completely different semantic |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4790 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4791 | # Reject install programs that cannot install multiple files. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4793 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4794 | if test -z "$INSTALL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4795 | if test "${ac_cv_path_install+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4796 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4797 | else |
| 4798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4799 | for as_dir in $PATH |
| 4800 | do |
| 4801 | IFS=$as_save_IFS |
| 4802 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4803 | # Account for people who put trailing slashes in PATH elements. |
| 4804 | case $as_dir/ in #(( |
| 4805 | ./ | .// | /[cC]/* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4806 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4807 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4808 | /usr/ucb/* ) ;; |
| 4809 | *) |
| 4810 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4811 | # Don't use installbsd from OSF since it installs stuff as root |
| 4812 | # by default. |
| 4813 | for ac_prog in ginstall scoinst install; do |
| 4814 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4815 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4816 | if test $ac_prog = install && |
| 4817 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4818 | # AIX install. It has an incompatible calling convention. |
| 4819 | : |
| 4820 | elif test $ac_prog = install && |
| 4821 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4822 | # program-specific install script used by HP pwplus--don't use. |
| 4823 | : |
| 4824 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4825 | rm -rf conftest.one conftest.two conftest.dir |
| 4826 | echo one > conftest.one |
| 4827 | echo two > conftest.two |
| 4828 | mkdir conftest.dir |
| 4829 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4830 | test -s conftest.one && test -s conftest.two && |
| 4831 | test -s conftest.dir/conftest.one && |
| 4832 | test -s conftest.dir/conftest.two |
| 4833 | then |
| 4834 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4835 | break 3 |
| 4836 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4837 | fi |
| 4838 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4839 | done |
| 4840 | done |
| 4841 | ;; |
| 4842 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4843 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4844 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4845 | IFS=$as_save_IFS |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4846 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4847 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4848 | |
| 4849 | fi |
| 4850 | if test "${ac_cv_path_install+set}" = set; then |
| 4851 | INSTALL=$ac_cv_path_install |
| 4852 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4853 | # As a last resort, use the slow shell script. Don't cache a |
| 4854 | # value for INSTALL within a source directory, because that will |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4855 | # break other packages using the cache if that directory is |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4856 | # removed, or if the value is a relative name. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4857 | INSTALL=$ac_install_sh |
| 4858 | fi |
| 4859 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4861 | $as_echo "$INSTALL" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4862 | |
| 4863 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4864 | # It thinks the first close brace ends the variable substitution. |
| 4865 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4866 | |
| 4867 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4868 | |
| 4869 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4870 | |
| 4871 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 4872 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4873 | *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4874 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4875 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4876 | for ac_prog in lclint lint |
| 4877 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4878 | # 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] | 4879 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4881 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4882 | if test "${ac_cv_prog_LINT+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4883 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4884 | else |
| 4885 | if test -n "$LINT"; then |
| 4886 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 4887 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4889 | for as_dir in $PATH |
| 4890 | do |
| 4891 | IFS=$as_save_IFS |
| 4892 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4893 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4895 | ac_cv_prog_LINT="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4897 | break 2 |
| 4898 | fi |
| 4899 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4900 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4901 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4902 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4903 | fi |
| 4904 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4905 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4906 | if test -n "$LINT"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4908 | $as_echo "$LINT" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4909 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4911 | $as_echo "no" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4912 | fi |
| 4913 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4914 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4915 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4916 | done |
| 4917 | |
| 4918 | if test "$LINT" = "lint" |
| 4919 | then |
| 4920 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 4921 | fi |
| 4922 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4923 | |
| 4924 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4925 | for ac_prog in fontforge |
| 4926 | do |
| 4927 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4928 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4930 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4931 | if test "${ac_cv_prog_FONTFORGE+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4932 | $as_echo_n "(cached) " >&6 |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4933 | else |
| 4934 | if test -n "$FONTFORGE"; then |
| 4935 | ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test. |
| 4936 | else |
| 4937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4938 | for as_dir in $PATH |
| 4939 | do |
| 4940 | IFS=$as_save_IFS |
| 4941 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4942 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4944 | ac_cv_prog_FONTFORGE="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4946 | break 2 |
| 4947 | fi |
| 4948 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4949 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4950 | IFS=$as_save_IFS |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4951 | |
| 4952 | fi |
| 4953 | fi |
| 4954 | FONTFORGE=$ac_cv_prog_FONTFORGE |
| 4955 | if test -n "$FONTFORGE"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4957 | $as_echo "$FONTFORGE" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4958 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4960 | $as_echo "no" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4961 | fi |
| 4962 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4963 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4964 | test -n "$FONTFORGE" && break |
| 4965 | done |
| 4966 | test -n "$FONTFORGE" || FONTFORGE="false" |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 4967 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4968 | for ac_prog in pkg-config |
| 4969 | do |
| 4970 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4971 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4973 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4974 | if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4975 | $as_echo_n "(cached) " >&6 |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4976 | else |
| 4977 | if test -n "$PKG_CONFIG"; then |
| 4978 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 4979 | else |
| 4980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4981 | for as_dir in $PATH |
| 4982 | do |
| 4983 | IFS=$as_save_IFS |
| 4984 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4985 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4987 | ac_cv_prog_PKG_CONFIG="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4989 | break 2 |
| 4990 | fi |
| 4991 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4992 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4993 | IFS=$as_save_IFS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4994 | |
| 4995 | fi |
| 4996 | fi |
| 4997 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 4998 | if test -n "$PKG_CONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5000 | $as_echo "$PKG_CONFIG" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 5001 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5003 | $as_echo "no" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 5004 | fi |
| 5005 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5006 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 5007 | test -n "$PKG_CONFIG" && break |
| 5008 | done |
| 5009 | test -n "$PKG_CONFIG" || PKG_CONFIG="false" |
| 5010 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5011 | for ac_prog in rsvg |
| 5012 | do |
| 5013 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5014 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5016 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5017 | if test "${ac_cv_prog_RSVG+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5018 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5019 | else |
| 5020 | if test -n "$RSVG"; then |
| 5021 | ac_cv_prog_RSVG="$RSVG" # Let the user override the test. |
| 5022 | else |
| 5023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5024 | for as_dir in $PATH |
| 5025 | do |
| 5026 | IFS=$as_save_IFS |
| 5027 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5028 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5029 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5030 | ac_cv_prog_RSVG="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5032 | break 2 |
| 5033 | fi |
| 5034 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5035 | done |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5036 | IFS=$as_save_IFS |
| 5037 | |
| 5038 | fi |
| 5039 | fi |
| 5040 | RSVG=$ac_cv_prog_RSVG |
| 5041 | if test -n "$RSVG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5043 | $as_echo "$RSVG" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5044 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5046 | $as_echo "no" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5047 | fi |
| 5048 | |
| 5049 | |
| 5050 | test -n "$RSVG" && break |
| 5051 | done |
| 5052 | test -n "$RSVG" || RSVG="false" |
| 5053 | |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 5054 | for ac_prog in convert |
| 5055 | do |
| 5056 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5057 | set dummy $ac_prog; ac_word=$2 |
| 5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5059 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5060 | if test "${ac_cv_prog_CONVERT+set}" = set; then : |
| 5061 | $as_echo_n "(cached) " >&6 |
| 5062 | else |
| 5063 | if test -n "$CONVERT"; then |
| 5064 | ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test. |
| 5065 | else |
| 5066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5067 | for as_dir in $PATH |
| 5068 | do |
| 5069 | IFS=$as_save_IFS |
| 5070 | test -z "$as_dir" && as_dir=. |
| 5071 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5072 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5073 | ac_cv_prog_CONVERT="$ac_prog" |
| 5074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5075 | break 2 |
| 5076 | fi |
| 5077 | done |
| 5078 | done |
| 5079 | IFS=$as_save_IFS |
| 5080 | |
| 5081 | fi |
| 5082 | fi |
| 5083 | CONVERT=$ac_cv_prog_CONVERT |
| 5084 | if test -n "$CONVERT"; then |
| 5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5 |
| 5086 | $as_echo "$CONVERT" >&6; } |
| 5087 | else |
| 5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5089 | $as_echo "no" >&6; } |
| 5090 | fi |
| 5091 | |
| 5092 | |
| 5093 | test -n "$CONVERT" && break |
| 5094 | done |
| 5095 | test -n "$CONVERT" || CONVERT="false" |
| 5096 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5097 | for ac_prog in icotool |
| 5098 | do |
| 5099 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5100 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5102 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5103 | if test "${ac_cv_prog_ICOTOOL+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5104 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5105 | else |
| 5106 | if test -n "$ICOTOOL"; then |
| 5107 | ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test. |
| 5108 | else |
| 5109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5110 | for as_dir in $PATH |
| 5111 | do |
| 5112 | IFS=$as_save_IFS |
| 5113 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5114 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5116 | ac_cv_prog_ICOTOOL="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5118 | break 2 |
| 5119 | fi |
| 5120 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5121 | done |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5122 | IFS=$as_save_IFS |
| 5123 | |
| 5124 | fi |
| 5125 | fi |
| 5126 | ICOTOOL=$ac_cv_prog_ICOTOOL |
| 5127 | if test -n "$ICOTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5129 | $as_echo "$ICOTOOL" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5130 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5132 | $as_echo "no" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5133 | fi |
| 5134 | |
| 5135 | |
| 5136 | test -n "$ICOTOOL" && break |
| 5137 | done |
| 5138 | test -n "$ICOTOOL" || ICOTOOL="false" |
| 5139 | |
| 5140 | |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 5141 | if test "x$enable_maintainer_mode" != "xyes" |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5142 | then |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 5143 | MAINTAINER_MODE=\# |
| 5144 | |
| 5145 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5146 | if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi |
| 5147 | if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi |
Joel Holdsworth | b9eae1e | 2010-05-16 23:07:40 +0100 | [diff] [blame] | 5148 | |
| 5149 | if test "$CONVERT" = false |
| 5150 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5151 | as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5 |
Joel Holdsworth | b9eae1e | 2010-05-16 23:07:40 +0100 | [diff] [blame] | 5152 | else |
| 5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5 |
| 5154 | $as_echo_n "checking for recent enough imagemagick... " >&6; } |
| 5155 | convert_version=`convert --version | head -n1` |
| 5156 | if test "x$convert_version" != "x" |
| 5157 | then |
| 5158 | convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'` |
| 5159 | convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'` |
| 5160 | if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6 |
| 5161 | then |
| 5162 | CONVERT=false |
Joel Holdsworth | b9eae1e | 2010-05-16 23:07:40 +0100 | [diff] [blame] | 5163 | fi |
| 5164 | fi |
| 5165 | if test "$CONVERT" = false |
| 5166 | then |
| 5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5 |
| 5168 | $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5169 | as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5 |
Joel Holdsworth | b9eae1e | 2010-05-16 23:07:40 +0100 | [diff] [blame] | 5170 | else |
| 5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5 |
| 5172 | $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; } |
| 5173 | fi |
| 5174 | fi |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5175 | |
| 5176 | if test "$ICOTOOL" = false |
| 5177 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5178 | as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5 |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5179 | else |
| 5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5 |
| 5181 | $as_echo_n "checking for recent enough icotool... " >&6; } |
| 5182 | icotool_version=`icotool --version | head -n1` |
| 5183 | if test "x$icotool_version" != "x" |
| 5184 | then |
Joel Holdsworth | 9571f78 | 2010-05-16 23:07:33 +0100 | [diff] [blame] | 5185 | icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'` |
| 5186 | icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'` |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5187 | if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29 |
| 5188 | then |
| 5189 | ICOTOOL=false |
| 5190 | as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons." |
| 5191 | fi |
| 5192 | fi |
| 5193 | if test "$ICOTOOL" = false |
| 5194 | then |
| 5195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5 |
| 5196 | $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5197 | as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5 |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5198 | else |
| 5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5 |
| 5200 | $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; } |
| 5201 | fi |
| 5202 | fi |
| 5203 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5204 | fi |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 5205 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5206 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5208 | $as_echo_n "checking for i386_set_ldt in -li386... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5209 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5210 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5211 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5212 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5213 | LIBS="-li386 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5215 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5216 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5217 | /* Override any GCC internal prototype to avoid an error. |
| 5218 | Use char because int might match the return type of a GCC |
| 5219 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5220 | #ifdef __cplusplus |
| 5221 | extern "C" |
| 5222 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5223 | char i386_set_ldt (); |
| 5224 | int |
| 5225 | main () |
| 5226 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5227 | return i386_set_ldt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5228 | ; |
| 5229 | return 0; |
| 5230 | } |
| 5231 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5232 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5233 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5234 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5235 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5236 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5237 | rm -f core conftest.err conftest.$ac_objext \ |
| 5238 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5239 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5240 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5242 | $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5243 | if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5244 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5245 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5246 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5247 | |
| 5248 | LIBS="-li386 $LIBS" |
| 5249 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5250 | fi |
| 5251 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5253 | $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5254 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5255 | $as_echo_n "(cached) " >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5256 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5257 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5258 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5260 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5261 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5262 | /* Override any GCC internal prototype to avoid an error. |
| 5263 | Use char because int might match the return type of a GCC |
| 5264 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5265 | #ifdef __cplusplus |
| 5266 | extern "C" |
| 5267 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5268 | char _oss_ioctl (); |
| 5269 | int |
| 5270 | main () |
| 5271 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5272 | return _oss_ioctl (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5273 | ; |
| 5274 | return 0; |
| 5275 | } |
| 5276 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5277 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5278 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5279 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5280 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5281 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5282 | rm -f core conftest.err conftest.$ac_objext \ |
| 5283 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5284 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5285 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5287 | $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5288 | if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5289 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5290 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5291 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5292 | |
| 5293 | LIBS="-lossaudio $LIBS" |
| 5294 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5295 | fi |
| 5296 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5297 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 5298 | XLIB="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5299 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5300 | OPENGL_LIBS="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5301 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5302 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 5303 | |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5304 | # Check whether --enable-largefile was given. |
| 5305 | if test "${enable_largefile+set}" = set; then : |
| 5306 | enableval=$enable_largefile; |
| 5307 | fi |
| 5308 | |
| 5309 | if test "$enable_largefile" != no; then |
| 5310 | |
| 5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 5312 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 5313 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
| 5314 | $as_echo_n "(cached) " >&6 |
| 5315 | else |
| 5316 | ac_cv_sys_largefile_CC=no |
| 5317 | if test "$GCC" != yes; then |
| 5318 | ac_save_CC=$CC |
| 5319 | while :; do |
| 5320 | # IRIX 6.2 and later do not support large files by default, |
| 5321 | # so use the C compiler's -n32 option if that helps. |
| 5322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5323 | /* end confdefs.h. */ |
| 5324 | #include <sys/types.h> |
| 5325 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5326 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5327 | since some C++ compilers masquerading as C compilers |
| 5328 | incorrectly reject 9223372036854775807. */ |
| 5329 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5330 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5331 | && LARGE_OFF_T % 2147483647 == 1) |
| 5332 | ? 1 : -1]; |
| 5333 | int |
| 5334 | main () |
| 5335 | { |
| 5336 | |
| 5337 | ; |
| 5338 | return 0; |
| 5339 | } |
| 5340 | _ACEOF |
| 5341 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5342 | break |
| 5343 | fi |
| 5344 | rm -f core conftest.err conftest.$ac_objext |
| 5345 | CC="$CC -n32" |
| 5346 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5347 | ac_cv_sys_largefile_CC=' -n32'; break |
| 5348 | fi |
| 5349 | rm -f core conftest.err conftest.$ac_objext |
| 5350 | break |
| 5351 | done |
| 5352 | CC=$ac_save_CC |
| 5353 | rm -f conftest.$ac_ext |
| 5354 | fi |
| 5355 | fi |
| 5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 5357 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 5358 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 5359 | CC=$CC$ac_cv_sys_largefile_CC |
| 5360 | fi |
| 5361 | |
| 5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 5363 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 5364 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
| 5365 | $as_echo_n "(cached) " >&6 |
| 5366 | else |
| 5367 | while :; do |
| 5368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5369 | /* end confdefs.h. */ |
| 5370 | #include <sys/types.h> |
| 5371 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5372 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5373 | since some C++ compilers masquerading as C compilers |
| 5374 | incorrectly reject 9223372036854775807. */ |
| 5375 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5376 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5377 | && LARGE_OFF_T % 2147483647 == 1) |
| 5378 | ? 1 : -1]; |
| 5379 | int |
| 5380 | main () |
| 5381 | { |
| 5382 | |
| 5383 | ; |
| 5384 | return 0; |
| 5385 | } |
| 5386 | _ACEOF |
| 5387 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5388 | ac_cv_sys_file_offset_bits=no; break |
| 5389 | fi |
| 5390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5392 | /* end confdefs.h. */ |
| 5393 | #define _FILE_OFFSET_BITS 64 |
| 5394 | #include <sys/types.h> |
| 5395 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5396 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5397 | since some C++ compilers masquerading as C compilers |
| 5398 | incorrectly reject 9223372036854775807. */ |
| 5399 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5400 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5401 | && LARGE_OFF_T % 2147483647 == 1) |
| 5402 | ? 1 : -1]; |
| 5403 | int |
| 5404 | main () |
| 5405 | { |
| 5406 | |
| 5407 | ; |
| 5408 | return 0; |
| 5409 | } |
| 5410 | _ACEOF |
| 5411 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5412 | ac_cv_sys_file_offset_bits=64; break |
| 5413 | fi |
| 5414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5415 | ac_cv_sys_file_offset_bits=unknown |
| 5416 | break |
| 5417 | done |
| 5418 | fi |
| 5419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 5420 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 5421 | case $ac_cv_sys_file_offset_bits in #( |
| 5422 | no | unknown) ;; |
| 5423 | *) |
| 5424 | cat >>confdefs.h <<_ACEOF |
| 5425 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 5426 | _ACEOF |
| 5427 | ;; |
| 5428 | esac |
| 5429 | rm -rf conftest* |
| 5430 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 5432 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 5433 | if test "${ac_cv_sys_large_files+set}" = set; then : |
| 5434 | $as_echo_n "(cached) " >&6 |
| 5435 | else |
| 5436 | while :; do |
| 5437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5438 | /* end confdefs.h. */ |
| 5439 | #include <sys/types.h> |
| 5440 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5441 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5442 | since some C++ compilers masquerading as C compilers |
| 5443 | incorrectly reject 9223372036854775807. */ |
| 5444 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5445 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5446 | && LARGE_OFF_T % 2147483647 == 1) |
| 5447 | ? 1 : -1]; |
| 5448 | int |
| 5449 | main () |
| 5450 | { |
| 5451 | |
| 5452 | ; |
| 5453 | return 0; |
| 5454 | } |
| 5455 | _ACEOF |
| 5456 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5457 | ac_cv_sys_large_files=no; break |
| 5458 | fi |
| 5459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5461 | /* end confdefs.h. */ |
| 5462 | #define _LARGE_FILES 1 |
| 5463 | #include <sys/types.h> |
| 5464 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5465 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5466 | since some C++ compilers masquerading as C compilers |
| 5467 | incorrectly reject 9223372036854775807. */ |
| 5468 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5469 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5470 | && LARGE_OFF_T % 2147483647 == 1) |
| 5471 | ? 1 : -1]; |
| 5472 | int |
| 5473 | main () |
| 5474 | { |
| 5475 | |
| 5476 | ; |
| 5477 | return 0; |
| 5478 | } |
| 5479 | _ACEOF |
| 5480 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5481 | ac_cv_sys_large_files=1; break |
| 5482 | fi |
| 5483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5484 | ac_cv_sys_large_files=unknown |
| 5485 | break |
| 5486 | done |
| 5487 | fi |
| 5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 5489 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 5490 | case $ac_cv_sys_large_files in #( |
| 5491 | no | unknown) ;; |
| 5492 | *) |
| 5493 | cat >>confdefs.h <<_ACEOF |
| 5494 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 5495 | _ACEOF |
| 5496 | ;; |
| 5497 | esac |
| 5498 | rm -rf conftest* |
| 5499 | fi |
| 5500 | fi |
| 5501 | |
| 5502 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5503 | ac_ext=c |
| 5504 | ac_cpp='$CPP $CPPFLAGS' |
| 5505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5509 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5510 | # On Suns, sometimes $CPP names a directory. |
| 5511 | if test -n "$CPP" && test -d "$CPP"; then |
| 5512 | CPP= |
| 5513 | fi |
| 5514 | if test -z "$CPP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5515 | if test "${ac_cv_prog_CPP+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5516 | $as_echo_n "(cached) " >&6 |
| 5517 | else |
| 5518 | # Double quotes because CPP needs to be expanded |
| 5519 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5520 | do |
| 5521 | ac_preproc_ok=false |
| 5522 | for ac_c_preproc_warn_flag in '' yes |
| 5523 | do |
| 5524 | # Use a header file that comes with gcc, so configuring glibc |
| 5525 | # with a fresh cross-compiler works. |
| 5526 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5527 | # <limits.h> exists even on freestanding compilers. |
| 5528 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5529 | # not just through cpp. "Syntax error" is here to catch this case. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5531 | /* end confdefs.h. */ |
| 5532 | #ifdef __STDC__ |
| 5533 | # include <limits.h> |
| 5534 | #else |
| 5535 | # include <assert.h> |
| 5536 | #endif |
| 5537 | Syntax error |
| 5538 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5539 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5540 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5541 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5542 | # Broken: fails on valid input. |
| 5543 | continue |
| 5544 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5545 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5546 | |
| 5547 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5548 | # can be detected and how. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5550 | /* end confdefs.h. */ |
| 5551 | #include <ac_nonexistent.h> |
| 5552 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5553 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5554 | # Broken: success on invalid input. |
| 5555 | continue |
| 5556 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5557 | # Passes both tests. |
| 5558 | ac_preproc_ok=: |
| 5559 | break |
| 5560 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5561 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5562 | |
| 5563 | done |
| 5564 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5565 | rm -f conftest.i conftest.err conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5566 | if $ac_preproc_ok; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5567 | break |
| 5568 | fi |
| 5569 | |
| 5570 | done |
| 5571 | ac_cv_prog_CPP=$CPP |
| 5572 | |
| 5573 | fi |
| 5574 | CPP=$ac_cv_prog_CPP |
| 5575 | else |
| 5576 | ac_cv_prog_CPP=$CPP |
| 5577 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5579 | $as_echo "$CPP" >&6; } |
| 5580 | ac_preproc_ok=false |
| 5581 | for ac_c_preproc_warn_flag in '' yes |
| 5582 | do |
| 5583 | # Use a header file that comes with gcc, so configuring glibc |
| 5584 | # with a fresh cross-compiler works. |
| 5585 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5586 | # <limits.h> exists even on freestanding compilers. |
| 5587 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5588 | # not just through cpp. "Syntax error" is here to catch this case. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5590 | /* end confdefs.h. */ |
| 5591 | #ifdef __STDC__ |
| 5592 | # include <limits.h> |
| 5593 | #else |
| 5594 | # include <assert.h> |
| 5595 | #endif |
| 5596 | Syntax error |
| 5597 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5598 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5599 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5600 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5601 | # Broken: fails on valid input. |
| 5602 | continue |
| 5603 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5604 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5605 | |
| 5606 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5607 | # can be detected and how. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5609 | /* end confdefs.h. */ |
| 5610 | #include <ac_nonexistent.h> |
| 5611 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5612 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5613 | # Broken: success on invalid input. |
| 5614 | continue |
| 5615 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5616 | # Passes both tests. |
| 5617 | ac_preproc_ok=: |
| 5618 | break |
| 5619 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5620 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5621 | |
| 5622 | done |
| 5623 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5624 | rm -f conftest.i conftest.err conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5625 | if $ac_preproc_ok; then : |
| 5626 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5627 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5628 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5629 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5630 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5631 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5632 | fi |
| 5633 | |
| 5634 | ac_ext=c |
| 5635 | ac_cpp='$CPP $CPPFLAGS' |
| 5636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5639 | |
| 5640 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5642 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5643 | if test "${ac_cv_header_stdc+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5644 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5645 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5647 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5648 | #include <stdlib.h> |
| 5649 | #include <stdarg.h> |
| 5650 | #include <string.h> |
| 5651 | #include <float.h> |
| 5652 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5653 | int |
| 5654 | main () |
| 5655 | { |
| 5656 | |
| 5657 | ; |
| 5658 | return 0; |
| 5659 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5660 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5661 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5662 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5663 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5664 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5665 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5667 | |
| 5668 | if test $ac_cv_header_stdc = yes; then |
| 5669 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5671 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5672 | #include <string.h> |
| 5673 | |
| 5674 | _ACEOF |
| 5675 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5676 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5677 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5678 | else |
| 5679 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5680 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5681 | rm -f conftest* |
| 5682 | |
| 5683 | fi |
| 5684 | |
| 5685 | if test $ac_cv_header_stdc = yes; then |
| 5686 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5688 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5689 | #include <stdlib.h> |
| 5690 | |
| 5691 | _ACEOF |
| 5692 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5693 | $EGREP "free" >/dev/null 2>&1; then : |
| 5694 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5695 | else |
| 5696 | ac_cv_header_stdc=no |
| 5697 | fi |
| 5698 | rm -f conftest* |
| 5699 | |
| 5700 | fi |
| 5701 | |
| 5702 | if test $ac_cv_header_stdc = yes; then |
| 5703 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5704 | if test "$cross_compiling" = yes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5705 | : |
| 5706 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5708 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5709 | #include <ctype.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5710 | #include <stdlib.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5711 | #if ((' ' & 0x0FF) == 0x020) |
| 5712 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5713 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5714 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5715 | # define ISLOWER(c) \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5716 | (('a' <= (c) && (c) <= 'i') \ |
| 5717 | || ('j' <= (c) && (c) <= 'r') \ |
| 5718 | || ('s' <= (c) && (c) <= 'z')) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5719 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5720 | #endif |
| 5721 | |
| 5722 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5723 | int |
| 5724 | main () |
| 5725 | { |
| 5726 | int i; |
| 5727 | for (i = 0; i < 256; i++) |
| 5728 | if (XOR (islower (i), ISLOWER (i)) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5729 | || toupper (i) != TOUPPER (i)) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5730 | return 2; |
| 5731 | return 0; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5732 | } |
| 5733 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5734 | if ac_fn_c_try_run "$LINENO"; then : |
| 5735 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5736 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5737 | ac_cv_header_stdc=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5738 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5739 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5740 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5741 | fi |
| 5742 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5743 | fi |
| 5744 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5746 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5747 | if test $ac_cv_header_stdc = yes; then |
| 5748 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5749 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5750 | |
| 5751 | fi |
| 5752 | |
| 5753 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5754 | 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] | 5755 | inttypes.h stdint.h unistd.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5756 | do : |
| 5757 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5758 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5759 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5760 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5761 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5762 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5763 | _ACEOF |
| 5764 | |
| 5765 | fi |
| 5766 | |
| 5767 | done |
| 5768 | |
| 5769 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5770 | for ac_header in \ |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 5771 | AL/al.h \ |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 5772 | ApplicationServices/ApplicationServices.h \ |
Aric Stewart | 4430ab4 | 2010-03-17 10:58:32 -0500 | [diff] [blame] | 5773 | AudioToolbox/AudioConverter.h \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 5774 | AudioUnit/AudioUnit.h \ |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 5775 | AudioUnit/AudioComponent.h \ |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 5776 | CL/cl.h \ |
Pierre d'Herbemont | 0888451 | 2006-10-24 15:26:33 +0200 | [diff] [blame] | 5777 | Carbon/Carbon.h \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 5778 | CoreAudio/CoreAudio.h \ |
Alexandre Julliard | 66f45a5 | 2006-11-06 13:33:16 +0100 | [diff] [blame] | 5779 | DiskArbitration/DiskArbitration.h \ |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 5780 | IOKit/IOKitLib.h \ |
Aric Stewart | 225a494 | 2009-03-10 14:59:20 -0500 | [diff] [blame] | 5781 | IOKit/hid/IOHIDLib.h \ |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 5782 | OpenAL/al.h \ |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 5783 | OpenCL/opencl.h \ |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 5784 | QuickTime/ImageCompression.h \ |
Eric Durbin | 020b0ef | 2008-06-24 22:45:51 -0500 | [diff] [blame] | 5785 | alias.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5786 | alsa/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5787 | arpa/inet.h \ |
| 5788 | arpa/nameser.h \ |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 5789 | asm/types.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5790 | capi20.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5791 | curses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5792 | direct.h \ |
Rob Shearman | 87175c6 | 2008-10-03 12:55:21 +0100 | [diff] [blame] | 5793 | dirent.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5794 | dlfcn.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5795 | elf.h \ |
| 5796 | float.h \ |
Alexandre Julliard | 7d5e565 | 2009-06-01 12:51:54 +0200 | [diff] [blame] | 5797 | fnmatch.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5798 | fontconfig/fontconfig.h \ |
| 5799 | getopt.h \ |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 5800 | gettext-po.h \ |
Alexandre Julliard | 46678dc | 2008-12-09 17:09:42 +0100 | [diff] [blame] | 5801 | grp.h \ |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 5802 | gsm.h \ |
Maarten Lankhorst | c186d8a | 2009-08-05 11:35:50 +0200 | [diff] [blame] | 5803 | gsm/gsm.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5804 | ieeefp.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5805 | inet/mib2.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5806 | io.h \ |
| 5807 | jack/jack.h \ |
| 5808 | jpeglib.h \ |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 5809 | kstat.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 5810 | lber.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5811 | lcms.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5812 | lcms/lcms.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 5813 | ldap.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5814 | link.h \ |
| 5815 | linux/cdrom.h \ |
| 5816 | linux/compiler.h \ |
| 5817 | linux/hdreg.h \ |
| 5818 | linux/input.h \ |
| 5819 | linux/ioctl.h \ |
| 5820 | linux/joystick.h \ |
| 5821 | linux/major.h \ |
| 5822 | linux/param.h \ |
| 5823 | linux/serial.h \ |
Francois Gouget | da1a352 | 2008-12-28 10:35:02 +0100 | [diff] [blame] | 5824 | linux/types.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5825 | linux/ucdrom.h \ |
Ken Thomases | d35c0e8 | 2009-03-11 09:05:53 -0500 | [diff] [blame] | 5826 | mach-o/nlist.h \ |
Austin English | 95740b3 | 2010-10-08 00:33:52 -0700 | [diff] [blame] | 5827 | mach-o/loader.h \ |
Alexandre Julliard | 150b5dc | 2006-12-29 20:02:02 +0100 | [diff] [blame] | 5828 | mach/mach.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 5829 | mach/machine.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5830 | machine/cpu.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 5831 | machine/limits.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5832 | machine/soundcard.h \ |
Austin English | 40b3d2e | 2010-05-23 21:18:17 -0500 | [diff] [blame] | 5833 | machine/sysarch.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5834 | mntent.h \ |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 5835 | mpg123.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5836 | ncurses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5837 | netdb.h \ |
| 5838 | netinet/in.h \ |
| 5839 | netinet/in_systm.h \ |
| 5840 | netinet/tcp.h \ |
| 5841 | netinet/tcp_fsm.h \ |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 5842 | openssl/err.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5843 | openssl/ssl.h \ |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 5844 | png.h \ |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 5845 | poll.h \ |
Albert Lee | 01b972d | 2009-11-20 18:35:26 -0500 | [diff] [blame] | 5846 | port.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5847 | process.h \ |
| 5848 | pthread.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5849 | pwd.h \ |
| 5850 | regex.h \ |
| 5851 | sched.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5852 | scsi/scsi.h \ |
| 5853 | scsi/scsi_ioctl.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5854 | scsi/sg.h \ |
| 5855 | soundcard.h \ |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 5856 | stdbool.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5857 | stdint.h \ |
| 5858 | strings.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5859 | stropts.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5860 | sys/asoundlib.h \ |
Charles Davis | 4e44e15 | 2011-01-18 13:09:44 -0700 | [diff] [blame] | 5861 | sys/attr.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5862 | sys/cdio.h \ |
| 5863 | sys/elf32.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5864 | sys/epoll.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5865 | sys/errno.h \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 5866 | sys/event.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5867 | sys/exec_elf.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5868 | sys/filio.h \ |
Alexandre Julliard | 61a7036 | 2009-06-26 15:45:03 +0200 | [diff] [blame] | 5869 | sys/inotify.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5870 | sys/ioctl.h \ |
| 5871 | sys/ipc.h \ |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 5872 | sys/limits.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5873 | sys/link.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5874 | sys/mman.h \ |
| 5875 | sys/modem.h \ |
| 5876 | sys/msg.h \ |
Hans Leidekker | 0844b70 | 2006-01-26 13:23:08 +0100 | [diff] [blame] | 5877 | sys/mtio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5878 | sys/param.h \ |
| 5879 | sys/poll.h \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 5880 | sys/prctl.h \ |
Austin English | 94021a1 | 2009-01-20 17:42:53 -0600 | [diff] [blame] | 5881 | sys/protosw.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5882 | sys/ptrace.h \ |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 5883 | sys/resource.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5884 | sys/scsiio.h \ |
| 5885 | sys/shm.h \ |
| 5886 | sys/signal.h \ |
| 5887 | sys/socket.h \ |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5888 | sys/socketvar.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5889 | sys/sockio.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5890 | sys/soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5891 | sys/statvfs.h \ |
| 5892 | sys/strtio.h \ |
| 5893 | sys/syscall.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5894 | sys/tihdr.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5895 | sys/time.h \ |
Austin English | 8b19591 | 2009-01-21 21:59:11 -0600 | [diff] [blame] | 5896 | sys/timeout.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5897 | sys/times.h \ |
| 5898 | sys/uio.h \ |
| 5899 | sys/un.h \ |
Alexandre Julliard | 66eb4bd | 2008-12-09 19:33:06 +0100 | [diff] [blame] | 5900 | sys/utsname.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5901 | sys/vm86.h \ |
| 5902 | sys/wait.h \ |
| 5903 | syscall.h \ |
| 5904 | termios.h \ |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 5905 | tiffio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5906 | unistd.h \ |
| 5907 | utime.h \ |
John Reiser | 0a2c94e | 2008-07-24 13:31:53 -0700 | [diff] [blame] | 5908 | valgrind/memcheck.h \ |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 5909 | valgrind/valgrind.h \ |
| 5910 | zlib.h |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5911 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5912 | do : |
| 5913 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5914 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5915 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5916 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5917 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5918 | _ACEOF |
| 5919 | |
| 5920 | fi |
| 5921 | |
| 5922 | done |
| 5923 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5925 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5926 | if test "${ac_cv_header_stat_broken+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5927 | $as_echo_n "(cached) " >&6 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5928 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5930 | /* end confdefs.h. */ |
| 5931 | #include <sys/types.h> |
| 5932 | #include <sys/stat.h> |
| 5933 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5934 | #if defined S_ISBLK && defined S_IFDIR |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5935 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5936 | #endif |
| 5937 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5938 | #if defined S_ISBLK && defined S_IFCHR |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5939 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5940 | #endif |
| 5941 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5942 | #if defined S_ISLNK && defined S_IFREG |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5943 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5944 | #endif |
| 5945 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5946 | #if defined S_ISSOCK && defined S_IFREG |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5947 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5948 | #endif |
| 5949 | |
| 5950 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5951 | if ac_fn_c_try_compile "$LINENO"; then : |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5952 | ac_cv_header_stat_broken=no |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5953 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5954 | ac_cv_header_stat_broken=yes |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5955 | fi |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5957 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5959 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5960 | if test $ac_cv_header_stat_broken = yes; then |
| 5961 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5962 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5963 | |
| 5964 | fi |
| 5965 | |
| 5966 | |
| 5967 | |
Austin English | 51094be | 2008-12-27 14:53:53 -0600 | [diff] [blame] | 5968 | for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5969 | do : |
| 5970 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5971 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h> |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5972 | #ifdef HAVE_SYS_PARAM_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5973 | # include <sys/param.h> |
| 5974 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5975 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5976 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5977 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5978 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5979 | _ACEOF |
| 5980 | |
| 5981 | fi |
| 5982 | |
| 5983 | done |
| 5984 | |
| 5985 | |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 5986 | for ac_header in \ |
| 5987 | netinet/ip.h \ |
| 5988 | net/if.h \ |
| 5989 | net/if_arp.h \ |
| 5990 | net/if_dl.h \ |
| 5991 | net/if_types.h \ |
| 5992 | net/route.h \ |
| 5993 | netinet/if_ether.h \ |
Austin English | 337067a | 2009-01-22 10:44:06 -0600 | [diff] [blame] | 5994 | netinet/if_inarp.h \ |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 5995 | netinet/in_pcb.h \ |
| 5996 | netinet/ip_icmp.h \ |
| 5997 | netinet/ip_var.h \ |
| 5998 | netinet/udp.h \ |
| 5999 | netipx/ipx.h \ |
| 6000 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6001 | do : |
| 6002 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6003 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h> |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6004 | #ifdef HAVE_SYS_SOCKET_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6005 | # include <sys/socket.h> |
| 6006 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6007 | #ifdef HAVE_SYS_SOCKETVAR_H |
Ken Thomases | a609fee | 2007-10-19 16:18:17 -0500 | [diff] [blame] | 6008 | # include <sys/socketvar.h> |
| 6009 | #endif |
Austin English | bb3f258 | 2009-01-26 23:34:42 -0600 | [diff] [blame] | 6010 | #ifdef HAVE_NET_ROUTE_H |
| 6011 | # include <net/route.h> |
| 6012 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6013 | #ifdef HAVE_NETINET_IN_H |
Ken Thomases | ffd78b1 | 2007-10-19 16:18:27 -0500 | [diff] [blame] | 6014 | # include <netinet/in.h> |
| 6015 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 6016 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 6017 | # include <netinet/in_systm.h> |
| 6018 | #endif |
Alexandre Julliard | d7e846c | 2009-01-30 14:01:12 +0100 | [diff] [blame] | 6019 | #ifdef HAVE_NET_IF_H |
| 6020 | # include <net/if.h> |
| 6021 | #endif |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 6022 | #ifdef HAVE_NETINET_IP_H |
| 6023 | # include <netinet/ip.h> |
| 6024 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6025 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6026 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6027 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6028 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6029 | _ACEOF |
| 6030 | |
| 6031 | fi |
| 6032 | |
| 6033 | done |
| 6034 | |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6035 | |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 6036 | for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6037 | do : |
| 6038 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6039 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h> |
Eric Durbin | 020b0ef | 2008-06-24 22:45:51 -0500 | [diff] [blame] | 6040 | #ifdef HAVE_ALIAS_H |
| 6041 | # include <alias.h> |
| 6042 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6043 | #ifdef HAVE_SYS_SOCKET_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6044 | # include <sys/socket.h> |
| 6045 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6046 | #ifdef HAVE_SYS_SOCKETVAR_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6047 | # include <sys/socketvar.h> |
| 6048 | #endif |
Austin English | 53d3c46 | 2009-01-26 23:47:49 -0600 | [diff] [blame] | 6049 | #ifdef HAVE_SYS_TIMEOUT_H |
| 6050 | # include <sys/timeout.h> |
| 6051 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6052 | #ifdef HAVE_NETINET_IN_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6053 | # include <netinet/in.h> |
| 6054 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 6055 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 6056 | # include <netinet/in_systm.h> |
| 6057 | #endif |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 6058 | #ifdef HAVE_NETINET_IP_H |
| 6059 | # include <netinet/ip.h> |
| 6060 | #endif |
Eric Durbin | 6d4eab9 | 2008-06-24 22:44:13 -0500 | [diff] [blame] | 6061 | #ifdef HAVE_NETINET_IP_VAR_H |
| 6062 | # include <netinet/ip_var.h> |
| 6063 | #endif |
Eric Durbin | 020b0ef | 2008-06-24 22:45:51 -0500 | [diff] [blame] | 6064 | #ifdef HAVE_NETINET_IP_ICMP_H |
| 6065 | # include <netinet/ip_icmp.h> |
| 6066 | #endif |
Eric Durbin | 6d4eab9 | 2008-06-24 22:44:13 -0500 | [diff] [blame] | 6067 | #ifdef HAVE_NETINET_UDP_H |
| 6068 | # include <netinet/udp.h> |
| 6069 | #endif |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6070 | #ifdef HAVE_NETINET_TCP_H |
| 6071 | # include <netinet/tcp.h> |
| 6072 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 6073 | #ifdef HAVE_NETINET_TCP_TIMER_H |
| 6074 | #include <netinet/tcp_timer.h> |
| 6075 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6076 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6077 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6078 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6079 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6080 | _ACEOF |
| 6081 | |
| 6082 | fi |
| 6083 | |
| 6084 | done |
| 6085 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6086 | |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 6087 | for ac_header in linux/ipx.h linux/irda.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6088 | do : |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 6089 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6090 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h> |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6091 | #ifdef HAVE_ASM_TYPES_H |
| 6092 | # include <asm/types.h> |
| 6093 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6094 | #ifdef HAVE_SYS_SOCKET_H |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6095 | # include <sys/socket.h> |
| 6096 | #endif |
Francois Gouget | da1a352 | 2008-12-28 10:35:02 +0100 | [diff] [blame] | 6097 | #ifdef HAVE_LINUX_TYPES_H |
| 6098 | # include <linux/types.h> |
| 6099 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6100 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6101 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6102 | cat >>confdefs.h <<_ACEOF |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 6103 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6104 | _ACEOF |
| 6105 | |
| 6106 | fi |
| 6107 | |
| 6108 | done |
| 6109 | |
| 6110 | |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6111 | for ac_header in mach-o/dyld_images.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6112 | do : |
| 6113 | ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6114 | # include <stdbool.h> |
| 6115 | #endif |
| 6116 | #ifdef HAVE_STDINT_H |
| 6117 | # include <stdint.h> |
| 6118 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6119 | " |
| 6120 | if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then : |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6121 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6122 | #define HAVE_MACH_O_DYLD_IMAGES_H 1 |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6123 | _ACEOF |
| 6124 | |
| 6125 | fi |
| 6126 | |
| 6127 | done |
| 6128 | |
| 6129 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6130 | for ac_header in resolv.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6131 | do : |
| 6132 | ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h> |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6133 | #ifdef HAVE_SYS_SOCKET_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6134 | # include <sys/socket.h> |
| 6135 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6136 | #ifdef HAVE_NETINET_IN_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6137 | # include <netinet/in.h> |
| 6138 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6139 | #ifdef HAVE_ARPA_NAMESER_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6140 | # include <arpa/nameser.h> |
| 6141 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6142 | " |
| 6143 | if test "x$ac_cv_header_resolv_h" = x""yes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6144 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6145 | #define HAVE_RESOLV_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6146 | _ACEOF |
| 6147 | |
| 6148 | fi |
| 6149 | |
| 6150 | done |
| 6151 | |
| 6152 | |
Juan Lang | e3c0e30 | 2010-03-11 18:36:46 -0800 | [diff] [blame] | 6153 | for ac_header in ifaddrs.h |
| 6154 | do : |
| 6155 | ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h> |
| 6156 | " |
| 6157 | if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : |
| 6158 | cat >>confdefs.h <<_ACEOF |
| 6159 | #define HAVE_IFADDRS_H 1 |
| 6160 | _ACEOF |
| 6161 | |
| 6162 | fi |
| 6163 | |
| 6164 | done |
| 6165 | |
| 6166 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6167 | for ac_header in ucontext.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6168 | do : |
| 6169 | ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h> |
| 6170 | " |
| 6171 | if test "x$ac_cv_header_ucontext_h" = x""yes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6172 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6173 | #define HAVE_UCONTEXT_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6174 | _ACEOF |
| 6175 | |
| 6176 | fi |
| 6177 | |
| 6178 | done |
| 6179 | |
| 6180 | |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6181 | for ac_header in sys/thr.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6182 | do : |
| 6183 | ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h> |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6184 | #ifdef HAVE_UCONTEXT_H |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6185 | #include <ucontext.h> |
| 6186 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6187 | " |
| 6188 | if test "x$ac_cv_header_sys_thr_h" = x""yes; then : |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6189 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6190 | #define HAVE_SYS_THR_H 1 |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6191 | _ACEOF |
| 6192 | |
| 6193 | fi |
| 6194 | |
| 6195 | done |
| 6196 | |
| 6197 | |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6198 | for ac_header in pthread_np.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6199 | do : |
| 6200 | ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6201 | #include <pthread.h> |
| 6202 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6203 | " |
| 6204 | if test "x$ac_cv_header_pthread_np_h" = x""yes; then : |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6205 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6206 | #define HAVE_PTHREAD_NP_H 1 |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6207 | _ACEOF |
| 6208 | |
| 6209 | fi |
| 6210 | |
| 6211 | done |
| 6212 | |
| 6213 | |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6214 | for ac_header in linux/videodev.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6215 | do : |
| 6216 | ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6217 | #include <sys/time.h> |
| 6218 | #endif |
| 6219 | #include <sys/types.h> |
| 6220 | #ifdef HAVE_ASM_TYPES_H |
| 6221 | #include <asm/types.h> |
| 6222 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6223 | " |
| 6224 | if test "x$ac_cv_header_linux_videodev_h" = x""yes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6225 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6226 | #define HAVE_LINUX_VIDEODEV_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6227 | _ACEOF |
| 6228 | |
| 6229 | fi |
| 6230 | |
| 6231 | done |
| 6232 | |
| 6233 | |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6234 | for ac_header in linux/capi.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6235 | do : |
| 6236 | ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user |
| 6237 | " |
| 6238 | if test "x$ac_cv_header_linux_capi_h" = x""yes; then : |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6239 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6240 | #define HAVE_LINUX_CAPI_H 1 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6241 | _ACEOF |
| 6242 | |
| 6243 | fi |
| 6244 | |
| 6245 | done |
| 6246 | |
| 6247 | |
| 6248 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6249 | DLLEXT="" |
| 6250 | |
| 6251 | DLLFLAGS="-D_REENTRANT" |
| 6252 | |
| 6253 | LDSHARED="" |
| 6254 | |
| 6255 | LDDLLFLAGS="" |
| 6256 | |
| 6257 | LIBEXT="so" |
| 6258 | |
| 6259 | IMPLIBEXT="def" |
| 6260 | |
| 6261 | LDRPATH_INSTALL="" |
| 6262 | |
| 6263 | LDRPATH_LOCAL="" |
| 6264 | |
Alexandre Julliard | 950a0f8 | 2010-01-26 21:10:14 +0100 | [diff] [blame] | 6265 | STATIC_IMPLIBEXT="def.a" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6266 | # Extract the first word of "ldd", so it can be a program name with args. |
| 6267 | set dummy ldd; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6269 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6270 | if test "${ac_cv_path_LDD+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6271 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6272 | else |
| 6273 | case $LDD in |
| 6274 | [\\/]* | ?:[\\/]*) |
| 6275 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 6276 | ;; |
| 6277 | *) |
| 6278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6279 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 6280 | for as_dir in $as_dummy |
| 6281 | do |
| 6282 | IFS=$as_save_IFS |
| 6283 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6284 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6286 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6288 | break 2 |
| 6289 | fi |
| 6290 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6291 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6292 | IFS=$as_save_IFS |
| 6293 | |
| 6294 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 6295 | ;; |
| 6296 | esac |
| 6297 | fi |
| 6298 | LDD=$ac_cv_path_LDD |
| 6299 | if test -n "$LDD"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6301 | $as_echo "$LDD" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6302 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6304 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6305 | fi |
| 6306 | |
| 6307 | |
| 6308 | |
| 6309 | case $host_os in |
| 6310 | cygwin*|mingw32*) |
| 6311 | if test -n "$ac_tool_prefix"; then |
| 6312 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 6313 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6315 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6316 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6317 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6318 | else |
| 6319 | if test -n "$DLLTOOL"; then |
| 6320 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 6321 | else |
| 6322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6323 | for as_dir in $PATH |
| 6324 | do |
| 6325 | IFS=$as_save_IFS |
| 6326 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6327 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6329 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6331 | break 2 |
| 6332 | fi |
| 6333 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6334 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6335 | IFS=$as_save_IFS |
| 6336 | |
| 6337 | fi |
| 6338 | fi |
| 6339 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 6340 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6342 | $as_echo "$DLLTOOL" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6343 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6345 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6346 | fi |
| 6347 | |
| 6348 | |
| 6349 | fi |
| 6350 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 6351 | ac_ct_DLLTOOL=$DLLTOOL |
| 6352 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 6353 | set dummy dlltool; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6355 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6356 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6357 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6358 | else |
| 6359 | if test -n "$ac_ct_DLLTOOL"; then |
| 6360 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 6361 | else |
| 6362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6363 | for as_dir in $PATH |
| 6364 | do |
| 6365 | IFS=$as_save_IFS |
| 6366 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6367 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6369 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6371 | break 2 |
| 6372 | fi |
| 6373 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6374 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6375 | IFS=$as_save_IFS |
| 6376 | |
| 6377 | fi |
| 6378 | fi |
| 6379 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 6380 | if test -n "$ac_ct_DLLTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6382 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6383 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6385 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6386 | fi |
| 6387 | |
| 6388 | if test "x$ac_ct_DLLTOOL" = x; then |
| 6389 | DLLTOOL="false" |
| 6390 | else |
| 6391 | case $cross_compiling:$ac_tool_warned in |
| 6392 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6393 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6394 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6395 | ac_tool_warned=yes ;; |
| 6396 | esac |
| 6397 | DLLTOOL=$ac_ct_DLLTOOL |
| 6398 | fi |
| 6399 | else |
| 6400 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 6401 | fi |
| 6402 | |
| 6403 | if test -n "$ac_tool_prefix"; then |
| 6404 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 6405 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6407 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6408 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6409 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6410 | else |
| 6411 | if test -n "$DLLWRAP"; then |
| 6412 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 6413 | else |
| 6414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6415 | for as_dir in $PATH |
| 6416 | do |
| 6417 | IFS=$as_save_IFS |
| 6418 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6419 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6421 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6423 | break 2 |
| 6424 | fi |
| 6425 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6426 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6427 | IFS=$as_save_IFS |
| 6428 | |
| 6429 | fi |
| 6430 | fi |
| 6431 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 6432 | if test -n "$DLLWRAP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6434 | $as_echo "$DLLWRAP" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6435 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6437 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6438 | fi |
| 6439 | |
| 6440 | |
| 6441 | fi |
| 6442 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 6443 | ac_ct_DLLWRAP=$DLLWRAP |
| 6444 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 6445 | set dummy dllwrap; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6447 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6448 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6449 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6450 | else |
| 6451 | if test -n "$ac_ct_DLLWRAP"; then |
| 6452 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 6453 | else |
| 6454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6455 | for as_dir in $PATH |
| 6456 | do |
| 6457 | IFS=$as_save_IFS |
| 6458 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6459 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6460 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6461 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6463 | break 2 |
| 6464 | fi |
| 6465 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6466 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6467 | IFS=$as_save_IFS |
| 6468 | |
| 6469 | fi |
| 6470 | fi |
| 6471 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 6472 | if test -n "$ac_ct_DLLWRAP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6474 | $as_echo "$ac_ct_DLLWRAP" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6475 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6477 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6478 | fi |
| 6479 | |
| 6480 | if test "x$ac_ct_DLLWRAP" = x; then |
| 6481 | DLLWRAP="false" |
| 6482 | else |
| 6483 | case $cross_compiling:$ac_tool_warned in |
| 6484 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6486 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6487 | ac_tool_warned=yes ;; |
| 6488 | esac |
| 6489 | DLLWRAP=$ac_ct_DLLWRAP |
| 6490 | fi |
| 6491 | else |
| 6492 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 6493 | fi |
| 6494 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6495 | if test "$DLLWRAP" = "false"; then |
| 6496 | LIBEXT="a" |
| 6497 | else |
| 6498 | LIBEXT="dll" |
| 6499 | fi |
| 6500 | IMPLIBEXT="a" |
Alexandre Julliard | 950a0f8 | 2010-01-26 21:10:14 +0100 | [diff] [blame] | 6501 | STATIC_IMPLIBEXT="a" |
Alexandre Julliard | ec1ebfb | 2008-09-04 12:29:07 +0200 | [diff] [blame] | 6502 | enable_iphlpapi=${enable_iphlpapi:-no} |
| 6503 | enable_kernel32=${enable_kernel32:-no} |
| 6504 | enable_msvcrt=${enable_msvcrt:-no} |
| 6505 | enable_ntdll=${enable_ntdll:-no} |
| 6506 | enable_ws2_32=${enable_ws2_32:-no} |
| 6507 | enable_loader=${enable_loader:-no} |
| 6508 | enable_server=${enable_server:-no} |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 6509 | with_x=${with_x:-no} |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 6510 | with_pthread=${with_pthread:-no} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6511 | ;; |
| 6512 | darwin*|macosx*) |
| 6513 | DLLEXT=".so" |
| 6514 | LIBEXT="dylib" |
| 6515 | DLLFLAGS="$DLLFLAGS -fPIC" |
| 6516 | LDDLLFLAGS="-bundle -multiply_defined suppress" |
| 6517 | LIBWINE_LDFLAGS="-multiply_defined suppress" |
| 6518 | LDSHARED="\$(CC) -dynamiclib" |
| 6519 | STRIP="$STRIP -x" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6520 | LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@" |
Rob Shearman | 312a1db | 2007-11-26 22:57:35 +0000 | [diff] [blame] | 6521 | SECURITYLIB="-framework Security -framework CoreFoundation" |
| 6522 | |
| 6523 | COREFOUNDATIONLIB="-framework CoreFoundation" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6524 | |
| 6525 | IOKITLIB="-framework IOKit -framework CoreFoundation" |
| 6526 | |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 6527 | APPLICATIONSERVICESLIB="-framework ApplicationServices" |
| 6528 | |
Alexandre Julliard | 691bdbd | 2009-06-23 20:51:37 +0200 | [diff] [blame] | 6529 | LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6530 | |
| 6531 | if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes" |
| 6532 | then |
| 6533 | DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation" |
| 6534 | |
| 6535 | fi |
| 6536 | if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes" |
| 6537 | then |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 6538 | if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes" |
| 6539 | then |
| 6540 | COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6541 | |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 6542 | else |
| 6543 | COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI" |
| 6544 | |
| 6545 | fi |
Charles Davis | b149d7b | 2011-01-29 16:45:54 -0700 | [diff] [blame] | 6546 | ac_save_LIBS="$LIBS" |
| 6547 | LIBS="$LIBS $COREAUDIO" |
| 6548 | for ac_func in AUGraphAddNode |
| 6549 | do : |
| 6550 | ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode" |
| 6551 | if test "x$ac_cv_func_AUGraphAddNode" = x""yes; then : |
| 6552 | cat >>confdefs.h <<_ACEOF |
| 6553 | #define HAVE_AUGRAPHADDNODE 1 |
| 6554 | _ACEOF |
| 6555 | |
| 6556 | fi |
| 6557 | done |
| 6558 | |
| 6559 | LIBS="$ac_save_LIBS" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6560 | fi |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6561 | if test "$ac_cv_header_OpenAL_al_h" = "yes" |
| 6562 | then |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 6563 | FRAMEWORK_OPENAL="-framework OpenAL" |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6564 | |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 6565 | |
| 6566 | cat >>confdefs.h <<_ACEOF |
| 6567 | #define HAVE_OPENAL 1 |
| 6568 | _ACEOF |
| 6569 | |
| 6570 | ac_cv_lib_openal=yes |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6571 | fi |
Alexandre Julliard | fac6741 | 2010-12-03 14:16:55 +0100 | [diff] [blame] | 6572 | if test "$ac_cv_header_OpenCL_opencl_h" = "yes" |
| 6573 | then |
| 6574 | LIBOPENCL="-framework OpenCL" |
| 6575 | |
| 6576 | ac_cv_lib_OpenCL_clGetPlatformInfo=yes |
| 6577 | fi |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6578 | if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes" |
| 6579 | then |
| 6580 | ac_save_LIBS="$LIBS" |
| 6581 | LIBS="$LIBS $IOKITLIB" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6582 | for ac_func in IOHIDManagerCreate |
| 6583 | do : |
| 6584 | ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate" |
| 6585 | if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then : |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6586 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6587 | #define HAVE_IOHIDMANAGERCREATE 1 |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6588 | _ACEOF |
| 6589 | |
| 6590 | fi |
| 6591 | done |
| 6592 | |
| 6593 | LIBS="$ac_save_LIBS" |
| 6594 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6595 | case $host_cpu in |
| 6596 | *powerpc*) |
| 6597 | LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;; |
| 6598 | esac |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 6599 | if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes" |
| 6600 | then |
| 6601 | QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo" |
| 6602 | |
| 6603 | enable_wineqtdecoder=${enable_wineqtdecoder:-yes} |
| 6604 | else |
| 6605 | as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported." |
| 6606 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6607 | if test "$ac_cv_header_Carbon_Carbon_h" = "yes" |
| 6608 | then |
| 6609 | CARBONLIB="-framework Carbon" |
| 6610 | |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 6611 | enable_winequartz_drv=${enable_winequartz_drv:-yes} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6612 | fi |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6613 | if test "x$enable_win16" = "xyes" |
| 6614 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6616 | $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6617 | if test "$cross_compiling" = yes; then : |
| 6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6619 | $as_echo "cross-compiling, assuming yes" >&6; } |
| 6620 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6622 | /* end confdefs.h. */ |
| 6623 | asm(".text\n" |
| 6624 | "bad:\tnop;nop\n" |
| 6625 | "good:\tnop;nop\n\t" |
| 6626 | ".globl _testfunc\n" |
| 6627 | "_testfunc:\tcallw good"); |
| 6628 | extern void testfunc(); |
| 6629 | int |
| 6630 | main () |
| 6631 | { |
| 6632 | unsigned short *p = (unsigned short *)testfunc; |
| 6633 | return p[0] != 0xe866 || p[1] != 0xfffa |
| 6634 | ; |
| 6635 | return 0; |
| 6636 | } |
| 6637 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6638 | if ac_fn_c_try_run "$LINENO"; then : |
| 6639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6640 | $as_echo "yes" >&6; } |
| 6641 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6643 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6644 | as_fn_error $? "Xcode 3.x cannot build 16-bit code correctly. Use --disable-win16 if you don't need 16-bit support." "$LINENO" 5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6645 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6646 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6647 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6648 | fi |
| 6649 | |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6650 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6651 | ;; |
| 6652 | *) |
| 6653 | DLLFLAGS="$DLLFLAGS -fPIC" |
| 6654 | DLLEXT=".so" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6656 | $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6657 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6658 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6659 | else |
| 6660 | ac_wine_try_cflags_saved=$CFLAGS |
| 6661 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6663 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6664 | void myfunc() {} |
| 6665 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6666 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6667 | ac_cv_c_dll_gnuelf="yes" |
| 6668 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6669 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6670 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6671 | rm -f core conftest.err conftest.$ac_objext \ |
| 6672 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6673 | CFLAGS=$ac_wine_try_cflags_saved |
| 6674 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6676 | $as_echo "$ac_cv_c_dll_gnuelf" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6677 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 6678 | then |
| 6679 | LDSHARED="\$(CC) -shared" |
| 6680 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6682 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6683 | if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6684 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6685 | else |
| 6686 | ac_wine_try_cflags_saved=$CFLAGS |
| 6687 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6689 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6690 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6691 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6692 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6693 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes |
| 6694 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6695 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6696 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6697 | rm -f core conftest.err conftest.$ac_objext \ |
| 6698 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6699 | CFLAGS=$ac_wine_try_cflags_saved |
| 6700 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6702 | $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6703 | if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6704 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 6705 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6707 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6708 | if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6709 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6710 | else |
| 6711 | ac_wine_try_cflags_saved=$CFLAGS |
| 6712 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6714 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6715 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6716 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6717 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6718 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes |
| 6719 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6720 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6721 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6722 | rm -f core conftest.err conftest.$ac_objext \ |
| 6723 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6724 | CFLAGS=$ac_wine_try_cflags_saved |
| 6725 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6727 | $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6728 | if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6729 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)" |
| 6730 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6731 | fi |
| 6732 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6734 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6735 | if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6736 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6737 | else |
| 6738 | ac_wine_try_cflags_saved=$CFLAGS |
| 6739 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6741 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6742 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6743 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6744 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6745 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes |
| 6746 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6747 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6748 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6749 | rm -f core conftest.err conftest.$ac_objext \ |
| 6750 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6751 | CFLAGS=$ac_wine_try_cflags_saved |
| 6752 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6754 | $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6755 | if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6756 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
| 6757 | fi |
| 6758 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6760 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6761 | if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6762 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6763 | else |
| 6764 | ac_wine_try_cflags_saved=$CFLAGS |
| 6765 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6767 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6768 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6769 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6770 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6771 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes |
| 6772 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6773 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6774 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6775 | rm -f core conftest.err conftest.$ac_objext \ |
| 6776 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6777 | CFLAGS=$ac_wine_try_cflags_saved |
| 6778 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6780 | $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6781 | if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6782 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 6783 | fi |
| 6784 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6785 | echo '{ global: *; };' >conftest.map |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6786 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh` |
| 6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6788 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6789 | if eval "test \"\${$as_ac_var+set}\"" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6790 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6791 | else |
| 6792 | ac_wine_try_cflags_saved=$CFLAGS |
| 6793 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6795 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6796 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6797 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6798 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6799 | eval "$as_ac_var=yes" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6800 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6801 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6802 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6803 | rm -f core conftest.err conftest.$ac_objext \ |
| 6804 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6805 | CFLAGS=$ac_wine_try_cflags_saved |
| 6806 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6807 | eval ac_res=\$$as_ac_var |
| 6808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6809 | $as_echo "$ac_res" >&6; } |
| 6810 | if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6811 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" |
| 6812 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6813 | rm -f conftest.map |
| 6814 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6816 | $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6817 | if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6818 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6819 | else |
| 6820 | ac_wine_try_cflags_saved=$CFLAGS |
| 6821 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6823 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6824 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6825 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6826 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6827 | ac_cv_cflags__fPIC__Wl___export_dynamic=yes |
| 6828 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6829 | ac_cv_cflags__fPIC__Wl___export_dynamic=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6830 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6831 | rm -f core conftest.err conftest.$ac_objext \ |
| 6832 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6833 | CFLAGS=$ac_wine_try_cflags_saved |
| 6834 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6836 | $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6837 | if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6838 | LDEXECFLAGS="-Wl,--export-dynamic" |
| 6839 | |
| 6840 | fi |
| 6841 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6842 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh` |
| 6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6844 | $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6845 | if eval "test \"\${$as_ac_var+set}\"" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6846 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6847 | else |
| 6848 | ac_wine_try_cflags_saved=$CFLAGS |
| 6849 | CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6851 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6852 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6853 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6854 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6855 | eval "$as_ac_var=yes" |
| 6856 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6857 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6858 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6859 | rm -f core conftest.err conftest.$ac_objext \ |
| 6860 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6861 | CFLAGS=$ac_wine_try_cflags_saved |
| 6862 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6863 | eval ac_res=\$$as_ac_var |
| 6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6865 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6866 | if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6867 | LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6868 | LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6869 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6870 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh` |
| 6871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6872 | $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6873 | if eval "test \"\${$as_ac_var+set}\"" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6874 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6875 | else |
| 6876 | ac_wine_try_cflags_saved=$CFLAGS |
| 6877 | CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6879 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6880 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6881 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6882 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6883 | eval "$as_ac_var=yes" |
| 6884 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6885 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6886 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6887 | rm -f core conftest.err conftest.$ac_objext \ |
| 6888 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6889 | CFLAGS=$ac_wine_try_cflags_saved |
| 6890 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6891 | eval ac_res=\$$as_ac_var |
| 6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6893 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6894 | if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6895 | LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6896 | LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6897 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6898 | fi |
| 6899 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6901 | $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6902 | if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6903 | $as_echo_n "(cached) " >&6 |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6904 | else |
| 6905 | ac_wine_try_cflags_saved=$CFLAGS |
| 6906 | CFLAGS="$CFLAGS -Wl,--enable-new-dtags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6908 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6909 | int main(int argc, char **argv) { return 0; } |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6910 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6911 | if ac_fn_c_try_link "$LINENO"; then : |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6912 | ac_cv_cflags__Wl___enable_new_dtags=yes |
| 6913 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6914 | ac_cv_cflags__Wl___enable_new_dtags=no |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6915 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6916 | rm -f core conftest.err conftest.$ac_objext \ |
| 6917 | conftest$ac_exeext conftest.$ac_ext |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6918 | CFLAGS=$ac_wine_try_cflags_saved |
| 6919 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6921 | $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6922 | if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then : |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6923 | LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags" |
| 6924 | fi |
| 6925 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6926 | case $host_cpu in |
| 6927 | *i[3456789]86* | x86_64) |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6928 | as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh` |
| 6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6930 | $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6931 | if eval "test \"\${$as_ac_var+set}\"" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6932 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6933 | else |
| 6934 | ac_wine_try_cflags_saved=$CFLAGS |
| 6935 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6937 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6938 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6939 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6940 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6941 | eval "$as_ac_var=yes" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6942 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6943 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6944 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6945 | rm -f core conftest.err conftest.$ac_objext \ |
| 6946 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6947 | CFLAGS=$ac_wine_try_cflags_saved |
| 6948 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6949 | eval ac_res=\$$as_ac_var |
| 6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6951 | $as_echo "$ac_res" >&6; } |
| 6952 | if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then : |
Francois Gouget | 5f694dd | 2010-11-26 16:18:32 +0100 | [diff] [blame] | 6953 | case $host_os in |
| 6954 | freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;; |
| 6955 | *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;; |
| 6956 | esac |
| 6957 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6958 | fi |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 6959 | # Extract the first word of "prelink", so it can be a program name with args. |
| 6960 | set dummy prelink; ac_word=$2 |
| 6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6962 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6963 | if test "${ac_cv_path_PRELINK+set}" = set; then : |
| 6964 | $as_echo_n "(cached) " >&6 |
| 6965 | else |
| 6966 | case $PRELINK in |
| 6967 | [\\/]* | ?:[\\/]*) |
| 6968 | ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path. |
| 6969 | ;; |
| 6970 | *) |
| 6971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6972 | for as_dir in /sbin /usr/sbin $PATH |
| 6973 | do |
| 6974 | IFS=$as_save_IFS |
| 6975 | test -z "$as_dir" && as_dir=. |
| 6976 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6978 | ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext" |
| 6979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6980 | break 2 |
| 6981 | fi |
| 6982 | done |
| 6983 | done |
| 6984 | IFS=$as_save_IFS |
| 6985 | |
| 6986 | test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false" |
| 6987 | ;; |
| 6988 | esac |
| 6989 | fi |
| 6990 | PRELINK=$ac_cv_path_PRELINK |
| 6991 | if test -n "$PRELINK"; then |
| 6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5 |
| 6993 | $as_echo "$PRELINK" >&6; } |
| 6994 | else |
| 6995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6996 | $as_echo "no" >&6; } |
| 6997 | fi |
| 6998 | |
| 6999 | |
| 7000 | if test "x$PRELINK" = xfalse |
| 7001 | then |
| 7002 | as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly." |
| 7003 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7004 | ;; |
| 7005 | esac |
| 7006 | |
| 7007 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7009 | $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7010 | if test "${ac_cv_c_dll_unixware+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7011 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7012 | else |
| 7013 | ac_wine_try_cflags_saved=$CFLAGS |
| 7014 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7016 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7017 | void myfunc() {} |
| 7018 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7019 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7020 | ac_cv_c_dll_unixware="yes" |
| 7021 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7022 | ac_cv_c_dll_unixware="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7023 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7024 | rm -f core conftest.err conftest.$ac_objext \ |
| 7025 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7026 | CFLAGS=$ac_wine_try_cflags_saved |
| 7027 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7029 | $as_echo "$ac_cv_c_dll_unixware" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7030 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 7031 | then |
| 7032 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
| 7033 | LDDLLFLAGS="-Wl,-G,-B,symbolic" |
| 7034 | |
| 7035 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7037 | $as_echo_n "checking whether we can build an HP-UX dll... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7038 | if test "${ac_cv_c_dll_hpux+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7039 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7040 | else |
| 7041 | ac_wine_try_cflags_saved=$CFLAGS |
| 7042 | CFLAGS="$CFLAGS -shared" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7044 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7045 | void myfunc() {} |
| 7046 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7047 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7048 | ac_cv_c_dll_hpux="yes" |
| 7049 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7050 | ac_cv_c_dll_hpux="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7051 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7052 | rm -f core conftest.err conftest.$ac_objext \ |
| 7053 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7054 | CFLAGS=$ac_wine_try_cflags_saved |
| 7055 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7057 | $as_echo "$ac_cv_c_dll_hpux" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7058 | if test "$ac_cv_c_dll_hpux" = "yes" |
| 7059 | then |
| 7060 | LIBEXT="sl" |
| 7061 | DLLEXT=".sl" |
| 7062 | LDDLLFLAGS="-shared -fPIC" |
| 7063 | LDSHARED="\$(CC) -shared" |
| 7064 | fi |
| 7065 | fi |
| 7066 | fi |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7067 | ;; |
| 7068 | esac |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7069 | |
Aric Stewart | eefe6f6 | 2010-12-03 07:33:08 -0600 | [diff] [blame] | 7070 | enable_wineqtdecoder=${enable_wineqtdecoder:-no} |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7071 | enable_winequartz_drv=${enable_winequartz_drv:-no} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7072 | |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7073 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7074 | as_fn_error $? "could not find a way to build shared libraries. |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7075 | It is currently not possible to build Wine without shared library |
| 7076 | (.so) support to allow transparent switch between .so and .dll files. |
| 7077 | If you are using Linux, you will need a newer binutils. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7078 | " "$LINENO" 5 |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7079 | fi |
| 7080 | |
Alexandre Julliard | 7d2e772 | 2010-07-26 12:13:47 +0200 | [diff] [blame] | 7081 | CROSSTEST_DISABLE=\# |
| 7082 | |
| 7083 | if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll" |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7084 | then |
Alexandre Julliard | a91fb21 | 2009-12-07 15:36:09 +0100 | [diff] [blame] | 7085 | case "$host_cpu" in |
| 7086 | i[3456789]86*) |
Jacek Caban | 0b6bfad | 2010-12-21 18:08:38 +0100 | [diff] [blame] | 7087 | ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;; |
Alexandre Julliard | a91fb21 | 2009-12-07 15:36:09 +0100 | [diff] [blame] | 7088 | x86_64) |
Vincent Povirk | d210375 | 2010-10-11 15:55:40 -0500 | [diff] [blame] | 7089 | ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;; |
Alexandre Julliard | a91fb21 | 2009-12-07 15:36:09 +0100 | [diff] [blame] | 7090 | *) |
| 7091 | ac_prefix_list="" ;; |
| 7092 | esac |
| 7093 | for ac_prog in $ac_prefix_list |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7094 | do |
| 7095 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7096 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7098 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7099 | if test "${ac_cv_prog_CROSSCC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7100 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7101 | else |
| 7102 | if test -n "$CROSSCC"; then |
| 7103 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 7104 | else |
| 7105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7106 | for as_dir in $PATH |
| 7107 | do |
| 7108 | IFS=$as_save_IFS |
| 7109 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7110 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7112 | ac_cv_prog_CROSSCC="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7114 | break 2 |
| 7115 | fi |
| 7116 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7117 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7118 | IFS=$as_save_IFS |
| 7119 | |
| 7120 | fi |
| 7121 | fi |
| 7122 | CROSSCC=$ac_cv_prog_CROSSCC |
| 7123 | if test -n "$CROSSCC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7125 | $as_echo "$CROSSCC" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7126 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7128 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7129 | fi |
| 7130 | |
| 7131 | |
| 7132 | test -n "$CROSSCC" && break |
| 7133 | done |
| 7134 | test -n "$CROSSCC" || CROSSCC="false" |
| 7135 | |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7136 | if test "$CROSSCC" != "false" |
| 7137 | then |
Alexandre Julliard | c2a29db | 2010-08-04 13:16:19 +0200 | [diff] [blame] | 7138 | ac_save_CC="$CC" |
| 7139 | CC="$CROSSCC" |
| 7140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5 |
| 7141 | $as_echo_n "checking whether $CROSSCC works... " >&6; } |
| 7142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7143 | /* end confdefs.h. */ |
Alexandre Julliard | a2d88ab | 2009-05-30 17:08:06 +0200 | [diff] [blame] | 7144 | |
Alexandre Julliard | c2a29db | 2010-08-04 13:16:19 +0200 | [diff] [blame] | 7145 | int |
| 7146 | main () |
| 7147 | { |
| 7148 | |
| 7149 | ; |
| 7150 | return 0; |
| 7151 | } |
| 7152 | _ACEOF |
| 7153 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7155 | $as_echo "yes" >&6; } |
| 7156 | set x $CROSSCC |
| 7157 | shift |
| 7158 | target="" |
| 7159 | while test $# -ge 1 |
| 7160 | do |
| 7161 | case "$1" in |
| 7162 | *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;; |
| 7163 | esac |
| 7164 | shift |
| 7165 | done |
| 7166 | if test -n "$target" |
| 7167 | then |
| 7168 | CROSSTEST_DISABLE="" |
| 7169 | CROSSTARGET="$target" |
| 7170 | |
| 7171 | fi |
| 7172 | else |
| 7173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7174 | $as_echo "no" >&6; } |
| 7175 | fi |
| 7176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7177 | CC="$ac_save_CC" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7178 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7179 | fi |
| 7180 | |
| 7181 | |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7182 | if test "$ac_cv_header_pthread_h" = "yes" |
| 7183 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7185 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7186 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7187 | $as_echo_n "(cached) " >&6 |
| 7188 | else |
| 7189 | ac_check_lib_save_LIBS=$LIBS |
| 7190 | LIBS="-lpthread $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7192 | /* end confdefs.h. */ |
| 7193 | |
| 7194 | /* Override any GCC internal prototype to avoid an error. |
| 7195 | Use char because int might match the return type of a GCC |
| 7196 | builtin and then its argument prototype would still apply. */ |
| 7197 | #ifdef __cplusplus |
| 7198 | extern "C" |
| 7199 | #endif |
| 7200 | char pthread_create (); |
| 7201 | int |
| 7202 | main () |
| 7203 | { |
| 7204 | return pthread_create (); |
| 7205 | ; |
| 7206 | return 0; |
| 7207 | } |
| 7208 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7209 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7210 | ac_cv_lib_pthread_pthread_create=yes |
| 7211 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7212 | ac_cv_lib_pthread_pthread_create=no |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7213 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7214 | rm -f core conftest.err conftest.$ac_objext \ |
| 7215 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7216 | LIBS=$ac_check_lib_save_LIBS |
| 7217 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7219 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7220 | if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7221 | LIBPTHREAD="-lpthread" |
| 7222 | |
| 7223 | fi |
| 7224 | |
| 7225 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7226 | if test "x$LIBPTHREAD" = "x"; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7227 | case "x$with_pthread" in |
| 7228 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7229 | *) as_fn_error $? "pthread ${notice_platform}development files not found. |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7230 | Wine cannot support threads without libpthread. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7231 | Use the --without-pthread option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7232 | esac |
| 7233 | fi |
| 7234 | |
| 7235 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7237 | $as_echo_n "checking for X... " >&6; } |
| 7238 | |
| 7239 | |
| 7240 | # Check whether --with-x was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7241 | if test "${with_x+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7242 | withval=$with_x; |
| 7243 | fi |
| 7244 | |
| 7245 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 7246 | if test "x$with_x" = xno; then |
| 7247 | # The user explicitly disabled X. |
| 7248 | have_x=disabled |
| 7249 | else |
| 7250 | case $x_includes,$x_libraries in #( |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7251 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7252 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7253 | $as_echo_n "(cached) " >&6 |
| 7254 | else |
| 7255 | # One or both of the vars are not set, and there is no cached value. |
| 7256 | ac_x_includes=no ac_x_libraries=no |
| 7257 | rm -f -r conftest.dir |
| 7258 | if mkdir conftest.dir; then |
| 7259 | cd conftest.dir |
| 7260 | cat >Imakefile <<'_ACEOF' |
| 7261 | incroot: |
| 7262 | @echo incroot='${INCROOT}' |
| 7263 | usrlibdir: |
| 7264 | @echo usrlibdir='${USRLIBDIR}' |
| 7265 | libdir: |
| 7266 | @echo libdir='${LIBDIR}' |
| 7267 | _ACEOF |
| 7268 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7269 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7270 | for ac_var in incroot usrlibdir libdir; do |
| 7271 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 7272 | done |
| 7273 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 7274 | for ac_extension in a so sl dylib la dll; do |
| 7275 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 7276 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 7277 | ac_im_usrlibdir=$ac_im_libdir; break |
| 7278 | fi |
| 7279 | done |
| 7280 | # Screen out bogus values from the imake configuration. They are |
| 7281 | # bogus both because they are the default anyway, and because |
| 7282 | # using them would break gcc on systems where it needs fixed includes. |
| 7283 | case $ac_im_incroot in |
| 7284 | /usr/include) ac_x_includes= ;; |
| 7285 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 7286 | esac |
| 7287 | case $ac_im_usrlibdir in |
| 7288 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 7289 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 7290 | esac |
| 7291 | fi |
| 7292 | cd .. |
| 7293 | rm -f -r conftest.dir |
| 7294 | fi |
| 7295 | |
| 7296 | # Standard set of common directories for X headers. |
| 7297 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 7298 | ac_x_header_dirs=' |
| 7299 | /usr/X11/include |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7300 | /usr/X11R7/include |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7301 | /usr/X11R6/include |
| 7302 | /usr/X11R5/include |
| 7303 | /usr/X11R4/include |
| 7304 | |
| 7305 | /usr/include/X11 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7306 | /usr/include/X11R7 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7307 | /usr/include/X11R6 |
| 7308 | /usr/include/X11R5 |
| 7309 | /usr/include/X11R4 |
| 7310 | |
| 7311 | /usr/local/X11/include |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7312 | /usr/local/X11R7/include |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7313 | /usr/local/X11R6/include |
| 7314 | /usr/local/X11R5/include |
| 7315 | /usr/local/X11R4/include |
| 7316 | |
| 7317 | /usr/local/include/X11 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7318 | /usr/local/include/X11R7 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7319 | /usr/local/include/X11R6 |
| 7320 | /usr/local/include/X11R5 |
| 7321 | /usr/local/include/X11R4 |
| 7322 | |
| 7323 | /usr/X386/include |
| 7324 | /usr/x386/include |
| 7325 | /usr/XFree86/include/X11 |
| 7326 | |
| 7327 | /usr/include |
| 7328 | /usr/local/include |
| 7329 | /usr/unsupported/include |
| 7330 | /usr/athena/include |
| 7331 | /usr/local/x11r5/include |
| 7332 | /usr/lpp/Xamples/include |
| 7333 | |
| 7334 | /usr/openwin/include |
| 7335 | /usr/openwin/share/include' |
| 7336 | |
| 7337 | if test "$ac_x_includes" = no; then |
| 7338 | # Guess where to find include files, by looking for Xlib.h. |
| 7339 | # First, try using that file with no special directory specified. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7341 | /* end confdefs.h. */ |
| 7342 | #include <X11/Xlib.h> |
| 7343 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7344 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7345 | # We can compile using X headers with no special include directory. |
| 7346 | ac_x_includes= |
| 7347 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7348 | for ac_dir in $ac_x_header_dirs; do |
| 7349 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 7350 | ac_x_includes=$ac_dir |
| 7351 | break |
| 7352 | fi |
| 7353 | done |
| 7354 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7355 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7356 | fi # $ac_x_includes = no |
| 7357 | |
| 7358 | if test "$ac_x_libraries" = no; then |
| 7359 | # Check for the libraries. |
| 7360 | # See if we find them without any special options. |
| 7361 | # Don't add to $LIBS permanently. |
| 7362 | ac_save_LIBS=$LIBS |
| 7363 | LIBS="-lX11 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7365 | /* end confdefs.h. */ |
| 7366 | #include <X11/Xlib.h> |
| 7367 | int |
| 7368 | main () |
| 7369 | { |
| 7370 | XrmInitialize () |
| 7371 | ; |
| 7372 | return 0; |
| 7373 | } |
| 7374 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7375 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7376 | LIBS=$ac_save_LIBS |
| 7377 | # We can link X programs with no special library path. |
| 7378 | ac_x_libraries= |
| 7379 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7380 | LIBS=$ac_save_LIBS |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7381 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 7382 | do |
| 7383 | # Don't even attempt the hair of trying to link an X program! |
| 7384 | for ac_extension in a so sl dylib la dll; do |
| 7385 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 7386 | ac_x_libraries=$ac_dir |
| 7387 | break 2 |
| 7388 | fi |
| 7389 | done |
| 7390 | done |
| 7391 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7392 | rm -f core conftest.err conftest.$ac_objext \ |
| 7393 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7394 | fi # $ac_x_libraries = no |
| 7395 | |
| 7396 | case $ac_x_includes,$ac_x_libraries in #( |
| 7397 | no,* | *,no | *\'*) |
| 7398 | # Didn't find X, or a directory has "'" in its name. |
| 7399 | ac_cv_have_x="have_x=no";; #( |
| 7400 | *) |
| 7401 | # Record where we found X for the cache. |
| 7402 | ac_cv_have_x="have_x=yes\ |
| 7403 | ac_x_includes='$ac_x_includes'\ |
| 7404 | ac_x_libraries='$ac_x_libraries'" |
| 7405 | esac |
| 7406 | fi |
| 7407 | ;; #( |
| 7408 | *) have_x=yes;; |
| 7409 | esac |
| 7410 | eval "$ac_cv_have_x" |
| 7411 | fi # $with_x != no |
| 7412 | |
| 7413 | if test "$have_x" != yes; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7415 | $as_echo "$have_x" >&6; } |
| 7416 | no_x=yes |
| 7417 | else |
| 7418 | # If each of the values was on the command line, it overrides each guess. |
| 7419 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 7420 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 7421 | # Update the cache value to reflect the command line values. |
| 7422 | ac_cv_have_x="have_x=yes\ |
| 7423 | ac_x_includes='$x_includes'\ |
| 7424 | ac_x_libraries='$x_libraries'" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7426 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 7427 | fi |
| 7428 | |
| 7429 | if test "$no_x" = yes; then |
| 7430 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 7431 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7432 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7433 | |
| 7434 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 7435 | else |
| 7436 | if test -n "$x_includes"; then |
| 7437 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 7438 | fi |
| 7439 | |
| 7440 | # It would also be nice to do this for all -L options, not just this one. |
| 7441 | if test -n "$x_libraries"; then |
| 7442 | X_LIBS="$X_LIBS -L$x_libraries" |
| 7443 | # For Solaris; some versions of Sun CC require a space after -R and |
| 7444 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7446 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 7447 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 7448 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 7449 | ac_c_werror_flag=yes |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7451 | /* end confdefs.h. */ |
| 7452 | |
| 7453 | int |
| 7454 | main () |
| 7455 | { |
| 7456 | |
| 7457 | ; |
| 7458 | return 0; |
| 7459 | } |
| 7460 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7461 | if ac_fn_c_try_link "$LINENO"; then : |
| 7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7463 | $as_echo "no" >&6; } |
| 7464 | X_LIBS="$X_LIBS -R$x_libraries" |
| 7465 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7466 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 7467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7468 | /* end confdefs.h. */ |
| 7469 | |
| 7470 | int |
| 7471 | main () |
| 7472 | { |
| 7473 | |
| 7474 | ; |
| 7475 | return 0; |
| 7476 | } |
| 7477 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7478 | if ac_fn_c_try_link "$LINENO"; then : |
| 7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7480 | $as_echo "yes" >&6; } |
| 7481 | X_LIBS="$X_LIBS -R $x_libraries" |
| 7482 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7484 | $as_echo "neither works" >&6; } |
| 7485 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7486 | rm -f core conftest.err conftest.$ac_objext \ |
| 7487 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7488 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7489 | rm -f core conftest.err conftest.$ac_objext \ |
| 7490 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7491 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 7492 | LIBS=$ac_xsave_LIBS |
| 7493 | fi |
| 7494 | |
| 7495 | # Check for system-dependent libraries X programs must link with. |
| 7496 | # Do this before checking for the system-independent R6 libraries |
| 7497 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 7498 | |
| 7499 | if test "$ISC" = yes; then |
| 7500 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 7501 | else |
| 7502 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 7503 | # libraries were built with DECnet support. And Karl Berry says |
| 7504 | # the Alpha needs dnet_stub (dnet does not exist). |
| 7505 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7507 | /* end confdefs.h. */ |
| 7508 | |
| 7509 | /* Override any GCC internal prototype to avoid an error. |
| 7510 | Use char because int might match the return type of a GCC |
| 7511 | builtin and then its argument prototype would still apply. */ |
| 7512 | #ifdef __cplusplus |
| 7513 | extern "C" |
| 7514 | #endif |
| 7515 | char XOpenDisplay (); |
| 7516 | int |
| 7517 | main () |
| 7518 | { |
| 7519 | return XOpenDisplay (); |
| 7520 | ; |
| 7521 | return 0; |
| 7522 | } |
| 7523 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7524 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7525 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7526 | else |
| 7527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7528 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7529 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7530 | $as_echo_n "(cached) " >&6 |
| 7531 | else |
| 7532 | ac_check_lib_save_LIBS=$LIBS |
| 7533 | LIBS="-ldnet $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7535 | /* end confdefs.h. */ |
| 7536 | |
| 7537 | /* Override any GCC internal prototype to avoid an error. |
| 7538 | Use char because int might match the return type of a GCC |
| 7539 | builtin and then its argument prototype would still apply. */ |
| 7540 | #ifdef __cplusplus |
| 7541 | extern "C" |
| 7542 | #endif |
| 7543 | char dnet_ntoa (); |
| 7544 | int |
| 7545 | main () |
| 7546 | { |
| 7547 | return dnet_ntoa (); |
| 7548 | ; |
| 7549 | return 0; |
| 7550 | } |
| 7551 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7552 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7553 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 7554 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7555 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7556 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7557 | rm -f core conftest.err conftest.$ac_objext \ |
| 7558 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7559 | LIBS=$ac_check_lib_save_LIBS |
| 7560 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7562 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7563 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7564 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 7565 | fi |
| 7566 | |
| 7567 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7569 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7570 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7571 | $as_echo_n "(cached) " >&6 |
| 7572 | else |
| 7573 | ac_check_lib_save_LIBS=$LIBS |
| 7574 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7576 | /* end confdefs.h. */ |
| 7577 | |
| 7578 | /* Override any GCC internal prototype to avoid an error. |
| 7579 | Use char because int might match the return type of a GCC |
| 7580 | builtin and then its argument prototype would still apply. */ |
| 7581 | #ifdef __cplusplus |
| 7582 | extern "C" |
| 7583 | #endif |
| 7584 | char dnet_ntoa (); |
| 7585 | int |
| 7586 | main () |
| 7587 | { |
| 7588 | return dnet_ntoa (); |
| 7589 | ; |
| 7590 | return 0; |
| 7591 | } |
| 7592 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7593 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7594 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 7595 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7596 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7597 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7598 | rm -f core conftest.err conftest.$ac_objext \ |
| 7599 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7600 | LIBS=$ac_check_lib_save_LIBS |
| 7601 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7603 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7604 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7605 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 7606 | fi |
| 7607 | |
| 7608 | fi |
| 7609 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7610 | rm -f core conftest.err conftest.$ac_objext \ |
| 7611 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7612 | LIBS="$ac_xsave_LIBS" |
| 7613 | |
| 7614 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 7615 | # to get the SysV transport functions. |
| 7616 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 7617 | # needs -lnsl. |
| 7618 | # The nsl library prevents programs from opening the X display |
| 7619 | # on Irix 5.2, according to T.E. Dickey. |
| 7620 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 7621 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7622 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 7623 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7624 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7625 | fi |
| 7626 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7627 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7629 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7630 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7631 | $as_echo_n "(cached) " >&6 |
| 7632 | else |
| 7633 | ac_check_lib_save_LIBS=$LIBS |
| 7634 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7636 | /* end confdefs.h. */ |
| 7637 | |
| 7638 | /* Override any GCC internal prototype to avoid an error. |
| 7639 | Use char because int might match the return type of a GCC |
| 7640 | builtin and then its argument prototype would still apply. */ |
| 7641 | #ifdef __cplusplus |
| 7642 | extern "C" |
| 7643 | #endif |
| 7644 | char gethostbyname (); |
| 7645 | int |
| 7646 | main () |
| 7647 | { |
| 7648 | return gethostbyname (); |
| 7649 | ; |
| 7650 | return 0; |
| 7651 | } |
| 7652 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7653 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7654 | ac_cv_lib_nsl_gethostbyname=yes |
| 7655 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7656 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7657 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7658 | rm -f core conftest.err conftest.$ac_objext \ |
| 7659 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7660 | LIBS=$ac_check_lib_save_LIBS |
| 7661 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7663 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7664 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7665 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 7666 | fi |
| 7667 | |
| 7668 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7670 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7671 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7672 | $as_echo_n "(cached) " >&6 |
| 7673 | else |
| 7674 | ac_check_lib_save_LIBS=$LIBS |
| 7675 | LIBS="-lbsd $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7677 | /* end confdefs.h. */ |
| 7678 | |
| 7679 | /* Override any GCC internal prototype to avoid an error. |
| 7680 | Use char because int might match the return type of a GCC |
| 7681 | builtin and then its argument prototype would still apply. */ |
| 7682 | #ifdef __cplusplus |
| 7683 | extern "C" |
| 7684 | #endif |
| 7685 | char gethostbyname (); |
| 7686 | int |
| 7687 | main () |
| 7688 | { |
| 7689 | return gethostbyname (); |
| 7690 | ; |
| 7691 | return 0; |
| 7692 | } |
| 7693 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7694 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7695 | ac_cv_lib_bsd_gethostbyname=yes |
| 7696 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7697 | ac_cv_lib_bsd_gethostbyname=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7698 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7699 | rm -f core conftest.err conftest.$ac_objext \ |
| 7700 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7701 | LIBS=$ac_check_lib_save_LIBS |
| 7702 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7704 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7705 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7706 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 7707 | fi |
| 7708 | |
| 7709 | fi |
| 7710 | fi |
| 7711 | |
| 7712 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 7713 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 7714 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 7715 | # on later versions), says Simon Leinen: it contains gethostby* |
| 7716 | # variants that don't use the name server (or something). -lsocket |
| 7717 | # must be given before -lnsl if both are needed. We assume that |
| 7718 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7719 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| 7720 | if test "x$ac_cv_func_connect" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7721 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7722 | fi |
| 7723 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7724 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7726 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7727 | if test "${ac_cv_lib_socket_connect+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7728 | $as_echo_n "(cached) " >&6 |
| 7729 | else |
| 7730 | ac_check_lib_save_LIBS=$LIBS |
| 7731 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7733 | /* end confdefs.h. */ |
| 7734 | |
| 7735 | /* Override any GCC internal prototype to avoid an error. |
| 7736 | Use char because int might match the return type of a GCC |
| 7737 | builtin and then its argument prototype would still apply. */ |
| 7738 | #ifdef __cplusplus |
| 7739 | extern "C" |
| 7740 | #endif |
| 7741 | char connect (); |
| 7742 | int |
| 7743 | main () |
| 7744 | { |
| 7745 | return connect (); |
| 7746 | ; |
| 7747 | return 0; |
| 7748 | } |
| 7749 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7750 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7751 | ac_cv_lib_socket_connect=yes |
| 7752 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7753 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7754 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7755 | rm -f core conftest.err conftest.$ac_objext \ |
| 7756 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7757 | LIBS=$ac_check_lib_save_LIBS |
| 7758 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7760 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7761 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7762 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 7763 | fi |
| 7764 | |
| 7765 | fi |
| 7766 | |
| 7767 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7768 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| 7769 | if test "x$ac_cv_func_remove" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7770 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7771 | fi |
| 7772 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7773 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7775 | $as_echo_n "checking for remove in -lposix... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7776 | if test "${ac_cv_lib_posix_remove+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7777 | $as_echo_n "(cached) " >&6 |
| 7778 | else |
| 7779 | ac_check_lib_save_LIBS=$LIBS |
| 7780 | LIBS="-lposix $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7782 | /* end confdefs.h. */ |
| 7783 | |
| 7784 | /* Override any GCC internal prototype to avoid an error. |
| 7785 | Use char because int might match the return type of a GCC |
| 7786 | builtin and then its argument prototype would still apply. */ |
| 7787 | #ifdef __cplusplus |
| 7788 | extern "C" |
| 7789 | #endif |
| 7790 | char remove (); |
| 7791 | int |
| 7792 | main () |
| 7793 | { |
| 7794 | return remove (); |
| 7795 | ; |
| 7796 | return 0; |
| 7797 | } |
| 7798 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7799 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7800 | ac_cv_lib_posix_remove=yes |
| 7801 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7802 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7803 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7804 | rm -f core conftest.err conftest.$ac_objext \ |
| 7805 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7806 | LIBS=$ac_check_lib_save_LIBS |
| 7807 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7809 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7810 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7811 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 7812 | fi |
| 7813 | |
| 7814 | fi |
| 7815 | |
| 7816 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7817 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| 7818 | if test "x$ac_cv_func_shmat" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7819 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7820 | fi |
| 7821 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7822 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7824 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7825 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7826 | $as_echo_n "(cached) " >&6 |
| 7827 | else |
| 7828 | ac_check_lib_save_LIBS=$LIBS |
| 7829 | LIBS="-lipc $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7831 | /* end confdefs.h. */ |
| 7832 | |
| 7833 | /* Override any GCC internal prototype to avoid an error. |
| 7834 | Use char because int might match the return type of a GCC |
| 7835 | builtin and then its argument prototype would still apply. */ |
| 7836 | #ifdef __cplusplus |
| 7837 | extern "C" |
| 7838 | #endif |
| 7839 | char shmat (); |
| 7840 | int |
| 7841 | main () |
| 7842 | { |
| 7843 | return shmat (); |
| 7844 | ; |
| 7845 | return 0; |
| 7846 | } |
| 7847 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7848 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7849 | ac_cv_lib_ipc_shmat=yes |
| 7850 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7851 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7852 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7853 | rm -f core conftest.err conftest.$ac_objext \ |
| 7854 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7855 | LIBS=$ac_check_lib_save_LIBS |
| 7856 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7858 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7859 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7860 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 7861 | fi |
| 7862 | |
| 7863 | fi |
| 7864 | fi |
| 7865 | |
| 7866 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 7867 | ac_save_LDFLAGS=$LDFLAGS |
| 7868 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 7869 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 7870 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 7871 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 7872 | # These have to be linked with before -lX11, unlike the other |
| 7873 | # libraries we check for below, so use a different variable. |
| 7874 | # John Interrante, Karl Berry |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7876 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7877 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7878 | $as_echo_n "(cached) " >&6 |
| 7879 | else |
| 7880 | ac_check_lib_save_LIBS=$LIBS |
| 7881 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7883 | /* end confdefs.h. */ |
| 7884 | |
| 7885 | /* Override any GCC internal prototype to avoid an error. |
| 7886 | Use char because int might match the return type of a GCC |
| 7887 | builtin and then its argument prototype would still apply. */ |
| 7888 | #ifdef __cplusplus |
| 7889 | extern "C" |
| 7890 | #endif |
| 7891 | char IceConnectionNumber (); |
| 7892 | int |
| 7893 | main () |
| 7894 | { |
| 7895 | return IceConnectionNumber (); |
| 7896 | ; |
| 7897 | return 0; |
| 7898 | } |
| 7899 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7900 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7901 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 7902 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7903 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7904 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7905 | rm -f core conftest.err conftest.$ac_objext \ |
| 7906 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7907 | LIBS=$ac_check_lib_save_LIBS |
| 7908 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7910 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7911 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7912 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 7913 | fi |
| 7914 | |
| 7915 | LDFLAGS=$ac_save_LDFLAGS |
| 7916 | |
| 7917 | fi |
| 7918 | |
| 7919 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7920 | if test "$have_x" = "yes" |
| 7921 | then |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 7922 | XLIB="-lX11" |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7923 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 7924 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 7925 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7927 | $as_echo_n "checking for -lX11... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7928 | if test "${ac_cv_lib_soname_X11+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7929 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7930 | else |
| 7931 | ac_check_soname_save_LIBS=$LIBS |
| 7932 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7934 | /* end confdefs.h. */ |
| 7935 | |
| 7936 | /* Override any GCC internal prototype to avoid an error. |
| 7937 | Use char because int might match the return type of a GCC |
| 7938 | builtin and then its argument prototype would still apply. */ |
| 7939 | #ifdef __cplusplus |
| 7940 | extern "C" |
| 7941 | #endif |
| 7942 | char XCreateWindow (); |
| 7943 | int |
| 7944 | main () |
| 7945 | { |
| 7946 | return XCreateWindow (); |
| 7947 | ; |
| 7948 | return 0; |
| 7949 | } |
| 7950 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7951 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7952 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 7953 | dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7954 | 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'` ;; |
| 7955 | *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 7956 | esac |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7957 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7958 | rm -f core conftest.err conftest.$ac_objext \ |
| 7959 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7960 | LIBS=$ac_check_soname_save_LIBS |
| 7961 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7962 | if test "x$ac_cv_lib_soname_X11" = "x"; then : |
| 7963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7964 | $as_echo "not found" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7965 | |
| 7966 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7968 | $as_echo "$ac_cv_lib_soname_X11" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7969 | |
| 7970 | cat >>confdefs.h <<_ACEOF |
| 7971 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 7972 | _ACEOF |
| 7973 | |
| 7974 | |
| 7975 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7977 | $as_echo_n "checking for -lXext... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7978 | if test "${ac_cv_lib_soname_Xext+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7979 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7980 | else |
| 7981 | ac_check_soname_save_LIBS=$LIBS |
| 7982 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7984 | /* end confdefs.h. */ |
| 7985 | |
| 7986 | /* Override any GCC internal prototype to avoid an error. |
| 7987 | Use char because int might match the return type of a GCC |
| 7988 | builtin and then its argument prototype would still apply. */ |
| 7989 | #ifdef __cplusplus |
| 7990 | extern "C" |
| 7991 | #endif |
| 7992 | char XextCreateExtension (); |
| 7993 | int |
| 7994 | main () |
| 7995 | { |
| 7996 | return XextCreateExtension (); |
| 7997 | ; |
| 7998 | return 0; |
| 7999 | } |
| 8000 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8001 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8002 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8003 | dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8004 | 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'` ;; |
| 8005 | *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8006 | esac |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8007 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8008 | rm -f core conftest.err conftest.$ac_objext \ |
| 8009 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8010 | LIBS=$ac_check_soname_save_LIBS |
| 8011 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8012 | if test "x$ac_cv_lib_soname_Xext" = "x"; then : |
| 8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8014 | $as_echo "not found" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8015 | |
| 8016 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8018 | $as_echo "$ac_cv_lib_soname_Xext" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8019 | |
| 8020 | cat >>confdefs.h <<_ACEOF |
| 8021 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 8022 | _ACEOF |
| 8023 | |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8024 | XLIB="-lXext $XLIB" |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8025 | fi |
| 8026 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8027 | for ac_header in X11/Xlib.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8028 | X11/XKBlib.h \ |
| 8029 | X11/Xutil.h \ |
Andrew Riedi | 23e2cb1 | 2007-03-22 12:06:19 -0700 | [diff] [blame] | 8030 | X11/Xcursor/Xcursor.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8031 | X11/extensions/shape.h \ |
| 8032 | X11/extensions/XInput.h \ |
| 8033 | X11/extensions/XShm.h \ |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8034 | X11/extensions/Xcomposite.h \ |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8035 | X11/extensions/Xinerama.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8036 | X11/extensions/Xrandr.h \ |
| 8037 | X11/extensions/Xrender.h \ |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 8038 | X11/extensions/xf86vmode.h \ |
| 8039 | X11/extensions/xf86vmproto.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8040 | do : |
| 8041 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8042 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8043 | # include <X11/Xlib.h> |
| 8044 | #endif |
| 8045 | #ifdef HAVE_X11_XUTIL_H |
| 8046 | # include <X11/Xutil.h> |
| 8047 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8048 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8049 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8050 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8051 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8052 | _ACEOF |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8053 | |
| 8054 | fi |
| 8055 | |
| 8056 | done |
| 8057 | |
| 8058 | |
| 8059 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" |
| 8060 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8062 | $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8063 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8064 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8065 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8066 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8067 | LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8069 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8070 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8071 | /* Override any GCC internal prototype to avoid an error. |
| 8072 | Use char because int might match the return type of a GCC |
| 8073 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8074 | #ifdef __cplusplus |
| 8075 | extern "C" |
| 8076 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8077 | char XkbQueryExtension (); |
| 8078 | int |
| 8079 | main () |
| 8080 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8081 | return XkbQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8082 | ; |
| 8083 | return 0; |
| 8084 | } |
| 8085 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8086 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8087 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8088 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8089 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8090 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8091 | rm -f core conftest.err conftest.$ac_objext \ |
| 8092 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8093 | LIBS=$ac_check_lib_save_LIBS |
| 8094 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8096 | $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8097 | if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then : |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8098 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8099 | $as_echo "#define HAVE_XKB 1" >>confdefs.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8100 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8101 | fi |
| 8102 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8103 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8104 | |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8105 | if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes" |
| 8106 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8108 | $as_echo_n "checking for -lXcursor... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8109 | if test "${ac_cv_lib_soname_Xcursor+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8110 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8111 | else |
| 8112 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8113 | LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8115 | /* end confdefs.h. */ |
| 8116 | |
| 8117 | /* Override any GCC internal prototype to avoid an error. |
| 8118 | Use char because int might match the return type of a GCC |
| 8119 | builtin and then its argument prototype would still apply. */ |
| 8120 | #ifdef __cplusplus |
| 8121 | extern "C" |
| 8122 | #endif |
| 8123 | char XcursorImageLoadCursor (); |
| 8124 | int |
| 8125 | main () |
| 8126 | { |
| 8127 | return XcursorImageLoadCursor (); |
| 8128 | ; |
| 8129 | return 0; |
| 8130 | } |
| 8131 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8132 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8133 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8134 | dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8135 | dylib) ac_cv_lib_soname_Xcursor=`otool -L conftest$ac_exeext | grep "libXcursor\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcursor\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8136 | *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8137 | esac |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8138 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8139 | rm -f core conftest.err conftest.$ac_objext \ |
| 8140 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8141 | LIBS=$ac_check_soname_save_LIBS |
| 8142 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8143 | if test "x$ac_cv_lib_soname_Xcursor" = "x"; then : |
| 8144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8145 | $as_echo "not found" >&6; } |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8146 | |
| 8147 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8149 | $as_echo "$ac_cv_lib_soname_Xcursor" >&6; } |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8150 | |
| 8151 | cat >>confdefs.h <<_ACEOF |
| 8152 | #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor" |
| 8153 | _ACEOF |
| 8154 | |
| 8155 | |
| 8156 | fi |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8157 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8158 | if test "x$ac_cv_lib_soname_Xcursor" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8159 | case "x$with_xcursor" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8160 | x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8161 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8162 | *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported. |
| 8163 | This is an error since --with-xcursor was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8164 | esac |
| 8165 | fi |
| 8166 | |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8167 | if test "$ac_cv_header_X11_extensions_XInput_h" = "yes" |
| 8168 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8170 | $as_echo_n "checking for -lXi... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8171 | if test "${ac_cv_lib_soname_Xi+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8172 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8173 | else |
| 8174 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8175 | LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8177 | /* end confdefs.h. */ |
| 8178 | |
| 8179 | /* Override any GCC internal prototype to avoid an error. |
| 8180 | Use char because int might match the return type of a GCC |
| 8181 | builtin and then its argument prototype would still apply. */ |
| 8182 | #ifdef __cplusplus |
| 8183 | extern "C" |
| 8184 | #endif |
| 8185 | char XOpenDevice (); |
| 8186 | int |
| 8187 | main () |
| 8188 | { |
| 8189 | return XOpenDevice (); |
| 8190 | ; |
| 8191 | return 0; |
| 8192 | } |
| 8193 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8194 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8195 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8196 | dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8197 | 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'` ;; |
| 8198 | *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8199 | esac |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8200 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8201 | rm -f core conftest.err conftest.$ac_objext \ |
| 8202 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8203 | LIBS=$ac_check_soname_save_LIBS |
| 8204 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8205 | if test "x$ac_cv_lib_soname_Xi" = "x"; then : |
| 8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8207 | $as_echo "not found" >&6; } |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8208 | |
| 8209 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8211 | $as_echo "$ac_cv_lib_soname_Xi" >&6; } |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8212 | |
| 8213 | cat >>confdefs.h <<_ACEOF |
| 8214 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" |
| 8215 | _ACEOF |
| 8216 | |
| 8217 | |
| 8218 | fi |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8219 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8220 | if test "x$ac_cv_lib_soname_Xi" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8221 | case "x$with_xinput" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8222 | x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8223 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8224 | *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported. |
| 8225 | This is an error since --with-xinput was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8226 | esac |
| 8227 | fi |
| 8228 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8229 | if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 8230 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8232 | $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8233 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8234 | $as_echo_n "(cached) " >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8235 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8236 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8237 | LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8239 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8240 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8241 | /* Override any GCC internal prototype to avoid an error. |
| 8242 | Use char because int might match the return type of a GCC |
| 8243 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8244 | #ifdef __cplusplus |
| 8245 | extern "C" |
| 8246 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8247 | char XShmQueryExtension (); |
| 8248 | int |
| 8249 | main () |
| 8250 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8251 | return XShmQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8252 | ; |
| 8253 | return 0; |
| 8254 | } |
| 8255 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8256 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8257 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8258 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8259 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8260 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8261 | rm -f core conftest.err conftest.$ac_objext \ |
| 8262 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8263 | LIBS=$ac_check_lib_save_LIBS |
| 8264 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8266 | $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8267 | if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then : |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8268 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8269 | $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8270 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8271 | fi |
| 8272 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8273 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8274 | if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8275 | case "x$with_xshm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8276 | x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8277 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8278 | *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported. |
| 8279 | This is an error since --with-xshm was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8280 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8281 | fi |
| 8282 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8283 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
| 8284 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8286 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8287 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8288 | $as_echo_n "(cached) " >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8289 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8290 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8291 | LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8293 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8294 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8295 | /* Override any GCC internal prototype to avoid an error. |
| 8296 | Use char because int might match the return type of a GCC |
| 8297 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8298 | #ifdef __cplusplus |
| 8299 | extern "C" |
| 8300 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8301 | char XShapeQueryExtension (); |
| 8302 | int |
| 8303 | main () |
| 8304 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8305 | return XShapeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8306 | ; |
| 8307 | return 0; |
| 8308 | } |
| 8309 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8310 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8311 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8312 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8313 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8314 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8315 | rm -f core conftest.err conftest.$ac_objext \ |
| 8316 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8317 | LIBS=$ac_check_lib_save_LIBS |
| 8318 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8320 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8321 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8322 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8323 | $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8324 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8325 | fi |
| 8326 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8327 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8328 | if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8329 | case "x$with_xshape" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8330 | x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8331 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8332 | *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported. |
| 8333 | This is an error since --with-xshape was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8334 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8335 | fi |
| 8336 | |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 8337 | if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes" |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8338 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8340 | $as_echo_n "checking for -lXxf86vm... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8341 | if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8342 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8343 | else |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8344 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8345 | LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8347 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8348 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8349 | /* Override any GCC internal prototype to avoid an error. |
| 8350 | Use char because int might match the return type of a GCC |
| 8351 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8352 | #ifdef __cplusplus |
| 8353 | extern "C" |
| 8354 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8355 | char XF86VidModeQueryExtension (); |
| 8356 | int |
| 8357 | main () |
| 8358 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8359 | return XF86VidModeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8360 | ; |
| 8361 | return 0; |
| 8362 | } |
| 8363 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8364 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8365 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8366 | dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8367 | dylib) ac_cv_lib_soname_Xxf86vm=`otool -L conftest$ac_exeext | grep "libXxf86vm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXxf86vm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8368 | *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8369 | esac |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8370 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8371 | rm -f core conftest.err conftest.$ac_objext \ |
| 8372 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8373 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8374 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8375 | if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then : |
| 8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8377 | $as_echo "not found" >&6; } |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8378 | |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8379 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8381 | $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; } |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8382 | |
| 8383 | cat >>confdefs.h <<_ACEOF |
| 8384 | #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8385 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8386 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8387 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8388 | fi |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8389 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8390 | if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then : |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8391 | case "x$with_xxf86vm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8392 | x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8393 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8394 | *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported. |
| 8395 | This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8396 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8397 | fi |
| 8398 | |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8399 | if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x" -a "x$ac_cv_lib_soname_Xext" != "x" |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8400 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8402 | $as_echo_n "checking for -lXrender... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8403 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8404 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8405 | else |
| 8406 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8407 | LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8409 | /* end confdefs.h. */ |
| 8410 | |
| 8411 | /* Override any GCC internal prototype to avoid an error. |
| 8412 | Use char because int might match the return type of a GCC |
| 8413 | builtin and then its argument prototype would still apply. */ |
| 8414 | #ifdef __cplusplus |
| 8415 | extern "C" |
| 8416 | #endif |
| 8417 | char XRenderQueryExtension (); |
| 8418 | int |
| 8419 | main () |
| 8420 | { |
| 8421 | return XRenderQueryExtension (); |
| 8422 | ; |
| 8423 | return 0; |
| 8424 | } |
| 8425 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8426 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8427 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8428 | dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8429 | 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'` ;; |
| 8430 | *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8431 | esac |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8432 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8433 | rm -f core conftest.err conftest.$ac_objext \ |
| 8434 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8435 | LIBS=$ac_check_soname_save_LIBS |
| 8436 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8437 | if test "x$ac_cv_lib_soname_Xrender" = "x"; then : |
| 8438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8439 | $as_echo "not found" >&6; } |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8440 | |
| 8441 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8443 | $as_echo "$ac_cv_lib_soname_Xrender" >&6; } |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8444 | |
| 8445 | cat >>confdefs.h <<_ACEOF |
| 8446 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 8447 | _ACEOF |
| 8448 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8450 | $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8451 | if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8452 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8453 | else |
| 8454 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8455 | LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8457 | /* end confdefs.h. */ |
| 8458 | |
| 8459 | /* Override any GCC internal prototype to avoid an error. |
| 8460 | Use char because int might match the return type of a GCC |
| 8461 | builtin and then its argument prototype would still apply. */ |
| 8462 | #ifdef __cplusplus |
| 8463 | extern "C" |
| 8464 | #endif |
| 8465 | char XRenderSetPictureTransform (); |
| 8466 | int |
| 8467 | main () |
| 8468 | { |
| 8469 | return XRenderSetPictureTransform (); |
| 8470 | ; |
| 8471 | return 0; |
| 8472 | } |
| 8473 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8474 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8475 | ac_cv_lib_Xrender_XRenderSetPictureTransform=yes |
| 8476 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8477 | ac_cv_lib_Xrender_XRenderSetPictureTransform=no |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8478 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8479 | rm -f core conftest.err conftest.$ac_objext \ |
| 8480 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8481 | LIBS=$ac_check_lib_save_LIBS |
| 8482 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8484 | $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8485 | if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8486 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8487 | $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8488 | |
| 8489 | fi |
| 8490 | |
| 8491 | fi |
| 8492 | |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8493 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8494 | if test "x$ac_cv_lib_soname_Xrender" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8495 | case "x$with_xrender" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8496 | x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8497 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8498 | *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported. |
| 8499 | This is an error since --with-xrender was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8500 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8501 | fi |
| 8502 | |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8503 | if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x" |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8504 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8506 | /* end confdefs.h. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8507 | #include <X11/Xlib.h> |
| 8508 | #include <X11/extensions/Xrandr.h> |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8509 | int |
| 8510 | main () |
| 8511 | { |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8512 | static typeof(XRRSetScreenConfigAndRate) * func; |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8513 | ; |
| 8514 | return 0; |
| 8515 | } |
| 8516 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8517 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8519 | $as_echo_n "checking for -lXrandr... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8520 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8521 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8522 | else |
| 8523 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8524 | LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8526 | /* end confdefs.h. */ |
| 8527 | |
| 8528 | /* Override any GCC internal prototype to avoid an error. |
| 8529 | Use char because int might match the return type of a GCC |
| 8530 | builtin and then its argument prototype would still apply. */ |
| 8531 | #ifdef __cplusplus |
| 8532 | extern "C" |
| 8533 | #endif |
| 8534 | char XRRQueryExtension (); |
| 8535 | int |
| 8536 | main () |
| 8537 | { |
| 8538 | return XRRQueryExtension (); |
| 8539 | ; |
| 8540 | return 0; |
| 8541 | } |
| 8542 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8543 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8544 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8545 | dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8546 | 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'` ;; |
| 8547 | *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8548 | esac |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8549 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8550 | rm -f core conftest.err conftest.$ac_objext \ |
| 8551 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8552 | LIBS=$ac_check_soname_save_LIBS |
| 8553 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8554 | if test "x$ac_cv_lib_soname_Xrandr" = "x"; then : |
| 8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8556 | $as_echo "not found" >&6; } |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8557 | |
| 8558 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8560 | $as_echo "$ac_cv_lib_soname_Xrandr" >&6; } |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8561 | |
| 8562 | cat >>confdefs.h <<_ACEOF |
| 8563 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" |
| 8564 | _ACEOF |
| 8565 | |
| 8566 | |
| 8567 | fi |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8568 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8570 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8571 | if test "x$ac_cv_lib_soname_Xrandr" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8572 | case "x$with_xrandr" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8573 | x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8574 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8575 | *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported. |
| 8576 | This is an error since --with-xrandr was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8577 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8578 | fi |
| 8579 | |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8580 | if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes" |
| 8581 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8583 | /* end confdefs.h. */ |
| 8584 | #include <X11/Xlib.h> |
| 8585 | #include <X11/extensions/Xinerama.h> |
| 8586 | int |
| 8587 | main () |
| 8588 | { |
| 8589 | static typeof(XineramaQueryScreens) * func; |
| 8590 | ; |
| 8591 | return 0; |
| 8592 | } |
| 8593 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8594 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8596 | $as_echo_n "checking for -lXinerama... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8597 | if test "${ac_cv_lib_soname_Xinerama+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8598 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8599 | else |
| 8600 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8601 | LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8603 | /* end confdefs.h. */ |
| 8604 | |
| 8605 | /* Override any GCC internal prototype to avoid an error. |
| 8606 | Use char because int might match the return type of a GCC |
| 8607 | builtin and then its argument prototype would still apply. */ |
| 8608 | #ifdef __cplusplus |
| 8609 | extern "C" |
| 8610 | #endif |
| 8611 | char XineramaQueryScreens (); |
| 8612 | int |
| 8613 | main () |
| 8614 | { |
| 8615 | return XineramaQueryScreens (); |
| 8616 | ; |
| 8617 | return 0; |
| 8618 | } |
| 8619 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8620 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8621 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8622 | dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8623 | dylib) ac_cv_lib_soname_Xinerama=`otool -L conftest$ac_exeext | grep "libXinerama\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXinerama\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8624 | *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8625 | esac |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8626 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8627 | rm -f core conftest.err conftest.$ac_objext \ |
| 8628 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8629 | LIBS=$ac_check_soname_save_LIBS |
| 8630 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8631 | if test "x$ac_cv_lib_soname_Xinerama" = "x"; then : |
| 8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8633 | $as_echo "not found" >&6; } |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8634 | |
| 8635 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8637 | $as_echo "$ac_cv_lib_soname_Xinerama" >&6; } |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8638 | |
| 8639 | cat >>confdefs.h <<_ACEOF |
| 8640 | #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama" |
| 8641 | _ACEOF |
| 8642 | |
| 8643 | |
| 8644 | fi |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8645 | fi |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8647 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8648 | if test "x$ac_cv_lib_soname_Xinerama" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8649 | case "x$with_xinerama" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8650 | x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8651 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8652 | *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported. |
| 8653 | This is an error since --with-xinerama was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8654 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8655 | fi |
| 8656 | |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8657 | if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes" |
| 8658 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8660 | $as_echo_n "checking for -lXcomposite... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8661 | if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8662 | $as_echo_n "(cached) " >&6 |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8663 | else |
| 8664 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8665 | LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8667 | /* end confdefs.h. */ |
| 8668 | |
| 8669 | /* Override any GCC internal prototype to avoid an error. |
| 8670 | Use char because int might match the return type of a GCC |
| 8671 | builtin and then its argument prototype would still apply. */ |
| 8672 | #ifdef __cplusplus |
| 8673 | extern "C" |
| 8674 | #endif |
| 8675 | char XCompositeRedirectWindow (); |
| 8676 | int |
| 8677 | main () |
| 8678 | { |
| 8679 | return XCompositeRedirectWindow (); |
| 8680 | ; |
| 8681 | return 0; |
| 8682 | } |
| 8683 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8684 | if ac_fn_c_try_link "$LINENO"; then : |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8685 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8686 | dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8687 | dylib) ac_cv_lib_soname_Xcomposite=`otool -L conftest$ac_exeext | grep "libXcomposite\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcomposite\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8688 | *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8689 | esac |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8690 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8691 | rm -f core conftest.err conftest.$ac_objext \ |
| 8692 | conftest$ac_exeext conftest.$ac_ext |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8693 | LIBS=$ac_check_soname_save_LIBS |
| 8694 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8695 | if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then : |
| 8696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8697 | $as_echo "not found" >&6; } |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8698 | |
| 8699 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8701 | $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; } |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8702 | |
| 8703 | cat >>confdefs.h <<_ACEOF |
| 8704 | #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite" |
| 8705 | _ACEOF |
| 8706 | |
| 8707 | |
| 8708 | fi |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8709 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8710 | if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8711 | case "x$with_xcomposite" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8712 | x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8713 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8714 | *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported. |
| 8715 | This is an error since --with-xcomposite was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8716 | esac |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8717 | fi |
| 8718 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8719 | ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H |
Kusanagi Kouichi | 75e4022 | 2008-04-16 00:34:54 +0900 | [diff] [blame] | 8720 | #include <X11/Xlib.h> |
| 8721 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8722 | " |
| 8723 | if test "x$ac_cv_member_XICCallback_callback" = x""yes; then : |
Kusanagi Kouichi | 75e4022 | 2008-04-16 00:34:54 +0900 | [diff] [blame] | 8724 | |
| 8725 | cat >>confdefs.h <<_ACEOF |
| 8726 | #define HAVE_XICCALLBACK_CALLBACK 1 |
| 8727 | _ACEOF |
| 8728 | |
| 8729 | |
| 8730 | fi |
| 8731 | |
| 8732 | |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8733 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8734 | opengl_msg="" |
| 8735 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8736 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8737 | for ac_header in GL/gl.h GL/glx.h GL/glu.h |
| 8738 | do : |
| 8739 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8740 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8741 | # include <GL/glx.h> |
| 8742 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8743 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8744 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8745 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8746 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8747 | _ACEOF |
| 8748 | |
| 8749 | fi |
| 8750 | |
| 8751 | done |
| 8752 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8753 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
| 8754 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8756 | $as_echo_n "checking for up-to-date OpenGL version... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8757 | if test "${wine_cv_opengl_header_version_OK+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8758 | $as_echo_n "(cached) " >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8759 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8761 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8762 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8763 | int |
| 8764 | main () |
| 8765 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8766 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8767 | ; |
| 8768 | return 0; |
| 8769 | } |
| 8770 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8771 | if ac_fn_c_try_compile "$LINENO"; then : |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 8772 | wine_cv_opengl_header_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8773 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8774 | wine_cv_opengl_header_version_OK="no" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8775 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8777 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8779 | $as_echo "$wine_cv_opengl_header_version_OK" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8780 | |
Alexandre Julliard | cc6a08c | 2006-08-24 14:34:22 +0200 | [diff] [blame] | 8781 | if test "$wine_cv_opengl_header_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8782 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8784 | $as_echo_n "checking for -lGL... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8785 | if test "${ac_cv_lib_soname_GL+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8786 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8787 | else |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8788 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8789 | LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8791 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8792 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8793 | /* Override any GCC internal prototype to avoid an error. |
| 8794 | Use char because int might match the return type of a GCC |
| 8795 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8796 | #ifdef __cplusplus |
| 8797 | extern "C" |
| 8798 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8799 | char glXCreateContext (); |
| 8800 | int |
| 8801 | main () |
| 8802 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8803 | return glXCreateContext (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8804 | ; |
| 8805 | return 0; |
| 8806 | } |
| 8807 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8808 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8809 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8810 | dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8811 | 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'` ;; |
| 8812 | *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8813 | esac |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8814 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8815 | rm -f core conftest.err conftest.$ac_objext \ |
| 8816 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8817 | LIBS=$ac_check_soname_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8818 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8819 | if test "x$ac_cv_lib_soname_GL" = "x"; then : |
| 8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8821 | $as_echo "not found" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8823 | $as_echo_n "checking for -lGL... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8824 | if test "${ac_cv_lib_soname_GL+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8825 | $as_echo_n "(cached) " >&6 |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8826 | else |
| 8827 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8828 | LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8830 | /* end confdefs.h. */ |
| 8831 | |
| 8832 | /* Override any GCC internal prototype to avoid an error. |
| 8833 | Use char because int might match the return type of a GCC |
| 8834 | builtin and then its argument prototype would still apply. */ |
| 8835 | #ifdef __cplusplus |
| 8836 | extern "C" |
| 8837 | #endif |
| 8838 | char glXCreateContext (); |
| 8839 | int |
| 8840 | main () |
| 8841 | { |
| 8842 | return glXCreateContext (); |
| 8843 | ; |
| 8844 | return 0; |
| 8845 | } |
| 8846 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8847 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8848 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8849 | dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8850 | 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'` ;; |
| 8851 | *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8852 | esac |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8853 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8854 | rm -f core conftest.err conftest.$ac_objext \ |
| 8855 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8856 | LIBS=$ac_check_soname_save_LIBS |
| 8857 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8858 | if test "x$ac_cv_lib_soname_GL" = "x"; then : |
| 8859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8860 | $as_echo "not found" >&6; } |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8861 | if test -f /usr/X11R6/lib/libGL.a |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8862 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8863 | opengl_msg="/usr/X11R6/lib/libGL.a is present on your system. |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8864 | This probably prevents linking to OpenGL. Try deleting the file and restarting configure." |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8865 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8866 | opengl_msg="No OpenGL library found on this system." |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8867 | fi |
| 8868 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8870 | $as_echo "$ac_cv_lib_soname_GL" >&6; } |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8871 | |
| 8872 | cat >>confdefs.h <<_ACEOF |
| 8873 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 8874 | _ACEOF |
| 8875 | |
| 8876 | OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL" |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8877 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8878 | $as_echo "#define HAVE_OPENGL 1" >>confdefs.h |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8879 | |
| 8880 | fi |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8881 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8883 | $as_echo "$ac_cv_lib_soname_GL" >&6; } |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8884 | |
| 8885 | cat >>confdefs.h <<_ACEOF |
| 8886 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 8887 | _ACEOF |
| 8888 | |
| 8889 | OPENGL_LIBS="-lGL" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8890 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8891 | $as_echo "#define HAVE_OPENGL 1" >>confdefs.h |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8892 | |
Alexandre Julliard | c84c478 | 2006-09-22 09:36:12 +0200 | [diff] [blame] | 8893 | fi |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8894 | if test "$ac_cv_header_GL_glu_h" = "yes" |
| 8895 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8897 | $as_echo_n "checking for -lGLU... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8898 | if test "${ac_cv_lib_soname_GLU+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8899 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8900 | else |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8901 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8902 | LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8904 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8905 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8906 | /* Override any GCC internal prototype to avoid an error. |
| 8907 | Use char because int might match the return type of a GCC |
| 8908 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8909 | #ifdef __cplusplus |
| 8910 | extern "C" |
| 8911 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8912 | char gluLookAt (); |
| 8913 | int |
| 8914 | main () |
| 8915 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8916 | return gluLookAt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8917 | ; |
| 8918 | return 0; |
| 8919 | } |
| 8920 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8921 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8922 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8923 | dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8924 | dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8925 | *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8926 | esac |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8927 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8928 | rm -f core conftest.err conftest.$ac_objext \ |
| 8929 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8930 | LIBS=$ac_check_soname_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8931 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8932 | if test "x$ac_cv_lib_soname_GLU" = "x"; then : |
| 8933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8934 | $as_echo "not found" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8935 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8936 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8938 | $as_echo "$ac_cv_lib_soname_GLU" >&6; } |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8939 | |
| 8940 | cat >>confdefs.h <<_ACEOF |
| 8941 | #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU" |
| 8942 | _ACEOF |
| 8943 | |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 8944 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8945 | fi |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8946 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8947 | if test "x$ac_cv_lib_soname_GLU" = "x"; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8948 | case "x$with_glu" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8949 | x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;; |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8950 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8951 | *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported. |
| 8952 | This is an error since --with-glu was requested." "$LINENO" 5 ;; |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8953 | esac |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8954 | fi |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8955 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8956 | opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries." |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8957 | fi |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 8958 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8959 | opengl_msg="OpenGL development headers not found." |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8960 | fi |
Alexandre Julliard | 8e9504d | 2008-09-24 13:11:11 +0200 | [diff] [blame] | 8961 | test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no} |
| 8962 | test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no} |
| 8963 | else |
| 8964 | enable_opengl32=${enable_opengl32:-no} |
| 8965 | enable_glu32=${enable_glu32:-no} |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8966 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8967 | if test -n "$opengl_msg"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8968 | case "x$with_opengl" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8969 | x) as_fn_append wine_warnings "|$opengl_msg |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8970 | OpenGL and Direct3D won't be supported." ;; |
| 8971 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8972 | *) as_fn_error $? "$opengl_msg |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8973 | OpenGL and Direct3D won't be supported. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8974 | This is an error since --with-opengl was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8975 | esac |
| 8976 | fi |
| 8977 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8978 | NASLIBS="" |
| 8979 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8980 | for ac_header in audio/audiolib.h |
| 8981 | do : |
| 8982 | ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default" |
| 8983 | if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then : |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8984 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8985 | #define HAVE_AUDIO_AUDIOLIB_H 1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8986 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8987 | for ac_header in audio/soundlib.h |
| 8988 | do : |
| 8989 | ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h> |
| 8990 | " |
| 8991 | if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then : |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8992 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8993 | #define HAVE_AUDIO_SOUNDLIB_H 1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8994 | _ACEOF |
| 8995 | |
| 8996 | fi |
| 8997 | |
| 8998 | done |
| 8999 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9001 | $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9002 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9003 | $as_echo_n "(cached) " >&6 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9004 | else |
| 9005 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 9006 | LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9008 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9009 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9010 | /* Override any GCC internal prototype to avoid an error. |
| 9011 | Use char because int might match the return type of a GCC |
| 9012 | builtin and then its argument prototype would still apply. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9013 | #ifdef __cplusplus |
| 9014 | extern "C" |
| 9015 | #endif |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9016 | char AuCreateFlow (); |
| 9017 | int |
| 9018 | main () |
| 9019 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9020 | return AuCreateFlow (); |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9021 | ; |
| 9022 | return 0; |
| 9023 | } |
| 9024 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9025 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9026 | ac_cv_lib_audio_AuCreateFlow=yes |
| 9027 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9028 | ac_cv_lib_audio_AuCreateFlow=no |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9029 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9030 | rm -f core conftest.err conftest.$ac_objext \ |
| 9031 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9032 | LIBS=$ac_check_lib_save_LIBS |
| 9033 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9035 | $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9036 | if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then : |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9037 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9038 | $as_echo "#define HAVE_NAS 1" >>confdefs.h |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9039 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9041 | $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9042 | if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9043 | $as_echo_n "(cached) " >&6 |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9044 | else |
| 9045 | ac_check_lib_save_LIBS=$LIBS |
| 9046 | LIBS="-lXau $X_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9048 | /* end confdefs.h. */ |
| 9049 | |
| 9050 | /* Override any GCC internal prototype to avoid an error. |
| 9051 | Use char because int might match the return type of a GCC |
| 9052 | builtin and then its argument prototype would still apply. */ |
| 9053 | #ifdef __cplusplus |
| 9054 | extern "C" |
| 9055 | #endif |
| 9056 | char XauGetBestAuthByAddr (); |
| 9057 | int |
| 9058 | main () |
| 9059 | { |
| 9060 | return XauGetBestAuthByAddr (); |
| 9061 | ; |
| 9062 | return 0; |
| 9063 | } |
| 9064 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9065 | if ac_fn_c_try_link "$LINENO"; then : |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9066 | ac_cv_lib_Xau_XauGetBestAuthByAddr=yes |
| 9067 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9068 | ac_cv_lib_Xau_XauGetBestAuthByAddr=no |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9069 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9070 | rm -f core conftest.err conftest.$ac_objext \ |
| 9071 | conftest$ac_exeext conftest.$ac_ext |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9072 | LIBS=$ac_check_lib_save_LIBS |
| 9073 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9075 | $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9076 | if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then : |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 9077 | NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS" |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9078 | else |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 9079 | NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS" |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9080 | fi |
| 9081 | |
| 9082 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9083 | fi |
| 9084 | |
| 9085 | fi |
| 9086 | |
| 9087 | done |
| 9088 | |
| 9089 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 9090 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 9091 | else |
| 9092 | XLIB="" |
| 9093 | X_CFLAGS="" |
| 9094 | X_LIBS="" |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 9095 | enable_winex11_drv=${enable_winex11_drv:-no} |
| 9096 | enable_opengl32=${enable_opengl32:-no} |
| 9097 | enable_glu32=${enable_glu32:-no} |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 9098 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9099 | if test "x$XLIB" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9100 | case "x$with_x" in |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9101 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9102 | *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built |
Gerald Pfeifer | 5805d8b | 2010-09-19 21:10:13 +0200 | [diff] [blame] | 9103 | without X support, which probably isn't what you want. You will need |
| 9104 | to install ${notice_platform}development packages of Xlib/Xfree86 at the very least. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9105 | Use the --without-x option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9106 | esac |
| 9107 | fi |
| 9108 | |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 9109 | if test "$ac_cv_header_CL_cl_h" = "yes" |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 9110 | then |
| 9111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5 |
| 9112 | $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; } |
| 9113 | if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then : |
| 9114 | $as_echo_n "(cached) " >&6 |
| 9115 | else |
| 9116 | ac_check_lib_save_LIBS=$LIBS |
| 9117 | LIBS="-lOpenCL $LIBS" |
| 9118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9119 | /* end confdefs.h. */ |
| 9120 | |
| 9121 | /* Override any GCC internal prototype to avoid an error. |
| 9122 | Use char because int might match the return type of a GCC |
| 9123 | builtin and then its argument prototype would still apply. */ |
| 9124 | #ifdef __cplusplus |
| 9125 | extern "C" |
| 9126 | #endif |
| 9127 | char clGetPlatformInfo (); |
| 9128 | int |
| 9129 | main () |
| 9130 | { |
| 9131 | return clGetPlatformInfo (); |
| 9132 | ; |
| 9133 | return 0; |
| 9134 | } |
| 9135 | _ACEOF |
| 9136 | if ac_fn_c_try_link "$LINENO"; then : |
| 9137 | ac_cv_lib_OpenCL_clGetPlatformInfo=yes |
| 9138 | else |
| 9139 | ac_cv_lib_OpenCL_clGetPlatformInfo=no |
| 9140 | fi |
| 9141 | rm -f core conftest.err conftest.$ac_objext \ |
| 9142 | conftest$ac_exeext conftest.$ac_ext |
| 9143 | LIBS=$ac_check_lib_save_LIBS |
| 9144 | fi |
| 9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5 |
| 9146 | $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; } |
| 9147 | if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then : |
| 9148 | LIBOPENCL="-lOpenCL" |
| 9149 | |
| 9150 | fi |
| 9151 | |
| 9152 | fi |
| 9153 | if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then : |
| 9154 | case "x$with_opencl" in |
| 9155 | x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;; |
| 9156 | xno) ;; |
| 9157 | *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported. |
| 9158 | This is an error since --with-opencl was requested." "$LINENO" 5 ;; |
| 9159 | esac |
| 9160 | fi |
| 9161 | test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no} |
| 9162 | |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 9163 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9164 | XML2LIBS="" |
| 9165 | |
| 9166 | XML2INCL="" |
| 9167 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9168 | XSLTINCL="" |
| 9169 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9170 | if test "x$with_xml" != "xno" |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9171 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9172 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9173 | if test "$PKG_CONFIG" != "false" |
| 9174 | then |
| 9175 | ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`" |
| 9176 | ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`" |
| 9177 | else |
| 9178 | ac_xml_libs="`xml2-config --libs 2>/dev/null`" |
| 9179 | ac_xml_cflags="`xml2-config --cflags 2>/dev/null`" |
| 9180 | fi |
| 9181 | CPPFLAGS="$CPPFLAGS $ac_xml_cflags" |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9182 | for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9183 | do : |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9184 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9185 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9186 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9187 | cat >>confdefs.h <<_ACEOF |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9188 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9189 | _ACEOF |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9190 | |
| 9191 | fi |
| 9192 | |
| 9193 | done |
| 9194 | |
| 9195 | if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes" |
| 9196 | then |
| 9197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9198 | $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9199 | if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9200 | $as_echo_n "(cached) " >&6 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9201 | else |
| 9202 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9203 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9205 | /* end confdefs.h. */ |
| 9206 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9207 | /* Override any GCC internal prototype to avoid an error. |
| 9208 | Use char because int might match the return type of a GCC |
| 9209 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9210 | #ifdef __cplusplus |
| 9211 | extern "C" |
| 9212 | #endif |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9213 | char xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9214 | int |
| 9215 | main () |
| 9216 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9217 | return xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9218 | ; |
| 9219 | return 0; |
| 9220 | } |
| 9221 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9222 | if ac_fn_c_try_link "$LINENO"; then : |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9223 | ac_cv_lib_xml2_xmlParseMemory=yes |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9224 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9225 | ac_cv_lib_xml2_xmlParseMemory=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9226 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9227 | rm -f core conftest.err conftest.$ac_objext \ |
| 9228 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9229 | LIBS=$ac_check_lib_save_LIBS |
| 9230 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9232 | $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9233 | if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then : |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9234 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9235 | $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9236 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9237 | XML2LIBS="$ac_xml_libs" |
| 9238 | XML2INCL="$ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9239 | fi |
| 9240 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9242 | $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9243 | if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9244 | $as_echo_n "(cached) " >&6 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9245 | else |
| 9246 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9247 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9249 | /* end confdefs.h. */ |
| 9250 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9251 | /* Override any GCC internal prototype to avoid an error. |
| 9252 | Use char because int might match the return type of a GCC |
| 9253 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9254 | #ifdef __cplusplus |
| 9255 | extern "C" |
| 9256 | #endif |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9257 | char xmlReadMemory (); |
| 9258 | int |
| 9259 | main () |
| 9260 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9261 | return xmlReadMemory (); |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9262 | ; |
| 9263 | return 0; |
| 9264 | } |
| 9265 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9266 | if ac_fn_c_try_link "$LINENO"; then : |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9267 | ac_cv_lib_xml2_xmlReadMemory=yes |
| 9268 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9269 | ac_cv_lib_xml2_xmlReadMemory=no |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9270 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9271 | rm -f core conftest.err conftest.$ac_objext \ |
| 9272 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9273 | LIBS=$ac_check_lib_save_LIBS |
| 9274 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9276 | $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9277 | if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then : |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9278 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9279 | $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9280 | |
| 9281 | fi |
| 9282 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9284 | $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9285 | if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9286 | $as_echo_n "(cached) " >&6 |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9287 | else |
| 9288 | ac_check_lib_save_LIBS=$LIBS |
| 9289 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9291 | /* end confdefs.h. */ |
| 9292 | |
| 9293 | /* Override any GCC internal prototype to avoid an error. |
| 9294 | Use char because int might match the return type of a GCC |
| 9295 | builtin and then its argument prototype would still apply. */ |
| 9296 | #ifdef __cplusplus |
| 9297 | extern "C" |
| 9298 | #endif |
| 9299 | char xmlNewDocPI (); |
| 9300 | int |
| 9301 | main () |
| 9302 | { |
| 9303 | return xmlNewDocPI (); |
| 9304 | ; |
| 9305 | return 0; |
| 9306 | } |
| 9307 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9308 | if ac_fn_c_try_link "$LINENO"; then : |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9309 | ac_cv_lib_xml2_xmlNewDocPI=yes |
| 9310 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9311 | ac_cv_lib_xml2_xmlNewDocPI=no |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9312 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9313 | rm -f core conftest.err conftest.$ac_objext \ |
| 9314 | conftest$ac_exeext conftest.$ac_ext |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9315 | LIBS=$ac_check_lib_save_LIBS |
| 9316 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9318 | $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9319 | if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then : |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9320 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9321 | $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9322 | |
| 9323 | fi |
| 9324 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5 |
Adam Martinson | 6ee2231 | 2010-11-22 20:54:54 -0600 | [diff] [blame] | 9326 | $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; } |
| 9327 | if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then : |
| 9328 | $as_echo_n "(cached) " >&6 |
| 9329 | else |
| 9330 | ac_check_lib_save_LIBS=$LIBS |
| 9331 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9333 | /* end confdefs.h. */ |
| 9334 | |
| 9335 | /* Override any GCC internal prototype to avoid an error. |
| 9336 | Use char because int might match the return type of a GCC |
| 9337 | builtin and then its argument prototype would still apply. */ |
| 9338 | #ifdef __cplusplus |
| 9339 | extern "C" |
| 9340 | #endif |
| 9341 | char xmlSchemaSetParserStructuredErrors (); |
| 9342 | int |
| 9343 | main () |
| 9344 | { |
| 9345 | return xmlSchemaSetParserStructuredErrors (); |
| 9346 | ; |
| 9347 | return 0; |
| 9348 | } |
| 9349 | _ACEOF |
| 9350 | if ac_fn_c_try_link "$LINENO"; then : |
| 9351 | ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes |
| 9352 | else |
| 9353 | ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no |
| 9354 | fi |
| 9355 | rm -f core conftest.err conftest.$ac_objext \ |
| 9356 | conftest$ac_exeext conftest.$ac_ext |
| 9357 | LIBS=$ac_check_lib_save_LIBS |
| 9358 | fi |
| 9359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5 |
| 9360 | $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; } |
| 9361 | if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then : |
| 9362 | |
| 9363 | $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h |
| 9364 | |
| 9365 | fi |
| 9366 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5 |
Adam Martinson | be4d0e9 | 2010-11-01 14:11:16 -0500 | [diff] [blame] | 9368 | $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; } |
| 9369 | if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then : |
| 9370 | $as_echo_n "(cached) " >&6 |
| 9371 | else |
| 9372 | ac_check_lib_save_LIBS=$LIBS |
| 9373 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9375 | /* end confdefs.h. */ |
| 9376 | |
| 9377 | /* Override any GCC internal prototype to avoid an error. |
| 9378 | Use char because int might match the return type of a GCC |
| 9379 | builtin and then its argument prototype would still apply. */ |
| 9380 | #ifdef __cplusplus |
| 9381 | extern "C" |
| 9382 | #endif |
| 9383 | char xmlSchemaSetValidStructuredErrors (); |
| 9384 | int |
| 9385 | main () |
| 9386 | { |
| 9387 | return xmlSchemaSetValidStructuredErrors (); |
| 9388 | ; |
| 9389 | return 0; |
| 9390 | } |
| 9391 | _ACEOF |
| 9392 | if ac_fn_c_try_link "$LINENO"; then : |
| 9393 | ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes |
| 9394 | else |
| 9395 | ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no |
| 9396 | fi |
| 9397 | rm -f core conftest.err conftest.$ac_objext \ |
| 9398 | conftest$ac_exeext conftest.$ac_ext |
| 9399 | LIBS=$ac_check_lib_save_LIBS |
| 9400 | fi |
| 9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5 |
| 9402 | $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; } |
| 9403 | if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then : |
| 9404 | |
| 9405 | $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h |
| 9406 | |
| 9407 | fi |
| 9408 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5 |
Adam Martinson | 82f73c8 | 2010-11-11 15:16:24 -0600 | [diff] [blame] | 9410 | $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; } |
| 9411 | if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then : |
| 9412 | $as_echo_n "(cached) " >&6 |
| 9413 | else |
| 9414 | ac_check_lib_save_LIBS=$LIBS |
| 9415 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9417 | /* end confdefs.h. */ |
| 9418 | |
| 9419 | /* Override any GCC internal prototype to avoid an error. |
| 9420 | Use char because int might match the return type of a GCC |
| 9421 | builtin and then its argument prototype would still apply. */ |
| 9422 | #ifdef __cplusplus |
| 9423 | extern "C" |
| 9424 | #endif |
| 9425 | char xmlFirstElementChild (); |
| 9426 | int |
| 9427 | main () |
| 9428 | { |
| 9429 | return xmlFirstElementChild (); |
| 9430 | ; |
| 9431 | return 0; |
| 9432 | } |
| 9433 | _ACEOF |
| 9434 | if ac_fn_c_try_link "$LINENO"; then : |
| 9435 | ac_cv_lib_xml2_xmlFirstElementChild=yes |
| 9436 | else |
| 9437 | ac_cv_lib_xml2_xmlFirstElementChild=no |
| 9438 | fi |
| 9439 | rm -f core conftest.err conftest.$ac_objext \ |
| 9440 | conftest$ac_exeext conftest.$ac_ext |
| 9441 | LIBS=$ac_check_lib_save_LIBS |
| 9442 | fi |
| 9443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5 |
| 9444 | $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; } |
| 9445 | if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then : |
| 9446 | |
| 9447 | $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h |
| 9448 | |
| 9449 | fi |
| 9450 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9451 | ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h> |
Adam Martinson | 9408b49 | 2010-11-02 17:20:08 -0500 | [diff] [blame] | 9452 | " |
| 9453 | if test "x$ac_cv_type_xmlDocProperties" = x""yes; then : |
| 9454 | |
| 9455 | $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h |
| 9456 | |
| 9457 | fi |
| 9458 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9459 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9460 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9461 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9462 | if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9463 | case "x$with_xml" in |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9464 | x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9465 | xno) ;; |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9466 | *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9467 | This is an error since --with-xml was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9468 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9469 | fi |
| 9470 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9471 | if test "x$with_xslt" != "xno" |
Emmanuel Maillard | 2a98b40 | 2007-06-22 02:58:39 +0200 | [diff] [blame] | 9472 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9473 | if test "$PKG_CONFIG" != "false" |
| 9474 | then |
| 9475 | ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`" |
| 9476 | ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`" |
| 9477 | else |
| 9478 | ac_xslt_libs="`xslt-config --libs 2>/dev/null`" |
| 9479 | ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`" |
| 9480 | fi |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9481 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9482 | CPPFLAGS="$CPPFLAGS $ac_xslt_cflags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9483 | for ac_header in libxslt/pattern.h libxslt/transform.h |
| 9484 | do : |
| 9485 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9486 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H |
Vincent Béron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 9487 | # include <libxslt/pattern.h> |
| 9488 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9489 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9490 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9491 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9492 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9493 | _ACEOF |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9494 | |
| 9495 | fi |
| 9496 | |
| 9497 | done |
| 9498 | |
| 9499 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9500 | if test "$ac_cv_header_libxslt_transform_h" = "yes" |
| 9501 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5 |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9503 | $as_echo_n "checking for -lxslt... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9504 | if test "${ac_cv_lib_soname_xslt+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9505 | $as_echo_n "(cached) " >&6 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9506 | else |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9507 | ac_check_soname_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9508 | LIBS="-lxslt $ac_xslt_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9510 | /* end confdefs.h. */ |
| 9511 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9512 | /* Override any GCC internal prototype to avoid an error. |
| 9513 | Use char because int might match the return type of a GCC |
| 9514 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9515 | #ifdef __cplusplus |
| 9516 | extern "C" |
| 9517 | #endif |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9518 | char xsltCompilePattern (); |
| 9519 | int |
| 9520 | main () |
| 9521 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9522 | return xsltCompilePattern (); |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9523 | ; |
| 9524 | return 0; |
| 9525 | } |
| 9526 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9527 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9528 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9529 | dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9530 | dylib) ac_cv_lib_soname_xslt=`otool -L conftest$ac_exeext | grep "libxslt\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libxslt\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 9531 | *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9532 | esac |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9533 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9534 | rm -f core conftest.err conftest.$ac_objext \ |
| 9535 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9536 | LIBS=$ac_check_soname_save_LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9537 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9538 | if test "x$ac_cv_lib_soname_xslt" = "x"; then : |
| 9539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9540 | $as_echo "not found" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9541 | |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9542 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5 |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9544 | $as_echo "$ac_cv_lib_soname_xslt" >&6; } |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9545 | |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9546 | cat >>confdefs.h <<_ACEOF |
| 9547 | #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt" |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9548 | _ACEOF |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9549 | |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9550 | XSLTINCL="$ac_xslt_cflags" |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9551 | fi |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9552 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9553 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9554 | if test "x$ac_cv_lib_soname_xslt" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9555 | case "x$with_xslt" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9556 | x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9557 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9558 | *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported. |
| 9559 | This is an error since --with-xslt was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9560 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9561 | fi |
| 9562 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9563 | HALINCL="" |
| 9564 | |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9565 | if test "x$with_hal" != "xno" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9566 | then |
| 9567 | ac_save_CPPFLAGS="$CPPFLAGS" |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9568 | if test "$PKG_CONFIG" != "false" |
| 9569 | then |
| 9570 | ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`" |
| 9571 | ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`" |
| 9572 | CPPFLAGS="$CPPFLAGS $ac_hal_cflags" |
| 9573 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9574 | for ac_header in dbus/dbus.h hal/libhal.h |
| 9575 | do : |
| 9576 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9577 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9578 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9579 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9580 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9581 | _ACEOF |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9582 | |
| 9583 | fi |
| 9584 | |
| 9585 | done |
| 9586 | |
| 9587 | if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes" |
| 9588 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9590 | $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9591 | if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9592 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9593 | else |
| 9594 | ac_check_lib_save_LIBS=$LIBS |
| 9595 | LIBS="-ldbus-1 $ac_hal_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9597 | /* end confdefs.h. */ |
| 9598 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9599 | /* Override any GCC internal prototype to avoid an error. |
| 9600 | Use char because int might match the return type of a GCC |
| 9601 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9602 | #ifdef __cplusplus |
| 9603 | extern "C" |
| 9604 | #endif |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9605 | char dbus_connection_close (); |
| 9606 | int |
| 9607 | main () |
| 9608 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9609 | return dbus_connection_close (); |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9610 | ; |
| 9611 | return 0; |
| 9612 | } |
| 9613 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9614 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9615 | ac_cv_lib_dbus_1_dbus_connection_close=yes |
| 9616 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9617 | ac_cv_lib_dbus_1_dbus_connection_close=no |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9618 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9619 | rm -f core conftest.err conftest.$ac_objext \ |
| 9620 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9621 | LIBS=$ac_check_lib_save_LIBS |
| 9622 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9624 | $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9625 | if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then : |
| 9626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9627 | $as_echo_n "checking for -lhal... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9628 | if test "${ac_cv_lib_soname_hal+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9629 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9630 | else |
| 9631 | ac_check_soname_save_LIBS=$LIBS |
| 9632 | LIBS="-lhal $ac_hal_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9634 | /* end confdefs.h. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9635 | |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9636 | /* Override any GCC internal prototype to avoid an error. |
| 9637 | Use char because int might match the return type of a GCC |
| 9638 | builtin and then its argument prototype would still apply. */ |
| 9639 | #ifdef __cplusplus |
| 9640 | extern "C" |
| 9641 | #endif |
| 9642 | char libhal_ctx_new (); |
| 9643 | int |
| 9644 | main () |
| 9645 | { |
| 9646 | return libhal_ctx_new (); |
| 9647 | ; |
| 9648 | return 0; |
| 9649 | } |
| 9650 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9651 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9652 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9653 | dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9654 | 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'` ;; |
| 9655 | *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9656 | esac |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9657 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9658 | rm -f core conftest.err conftest.$ac_objext \ |
| 9659 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9660 | LIBS=$ac_check_soname_save_LIBS |
| 9661 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9662 | if test "x$ac_cv_lib_soname_hal" = "x"; then : |
| 9663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9664 | $as_echo "not found" >&6; } |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9665 | |
| 9666 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9668 | $as_echo "$ac_cv_lib_soname_hal" >&6; } |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9669 | |
| 9670 | cat >>confdefs.h <<_ACEOF |
| 9671 | #define SONAME_LIBHAL "$ac_cv_lib_soname_hal" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9672 | _ACEOF |
| 9673 | |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9674 | HALINCL="$ac_hal_cflags" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9675 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9676 | fi |
| 9677 | |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9678 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9679 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9680 | fi |
Alexandre Julliard | d806273 | 2010-04-26 06:57:49 -0500 | [diff] [blame] | 9681 | if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9682 | case "x$with_hal" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9683 | x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9684 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9685 | *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support. |
| 9686 | This is an error since --with-hal was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9687 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9688 | fi |
| 9689 | |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9690 | if test "x$with_gnutls" != "xno" |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9691 | then |
| 9692 | ac_save_CPPFLAGS="$CPPFLAGS" |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9693 | if test "$PKG_CONFIG" != "false" |
| 9694 | then |
| 9695 | ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`" |
| 9696 | ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`" |
| 9697 | CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags" |
| 9698 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9699 | ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" |
| 9700 | if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then : |
| 9701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9702 | /* end confdefs.h. */ |
| 9703 | #include <gnutls/gnutls.h> |
| 9704 | int |
| 9705 | main () |
| 9706 | { |
Henri Verbeet | 8c4a297 | 2008-12-30 09:45:20 +0100 | [diff] [blame] | 9707 | typeof(gnutls_mac_get_key_size) *pfunc; |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9708 | ; |
| 9709 | return 0; |
| 9710 | } |
| 9711 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9712 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9714 | $as_echo_n "checking for -lgnutls... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9715 | if test "${ac_cv_lib_soname_gnutls+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9716 | $as_echo_n "(cached) " >&6 |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9717 | else |
| 9718 | ac_check_soname_save_LIBS=$LIBS |
| 9719 | LIBS="-lgnutls $ac_gnutls_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9721 | /* end confdefs.h. */ |
| 9722 | |
| 9723 | /* Override any GCC internal prototype to avoid an error. |
| 9724 | Use char because int might match the return type of a GCC |
| 9725 | builtin and then its argument prototype would still apply. */ |
| 9726 | #ifdef __cplusplus |
| 9727 | extern "C" |
| 9728 | #endif |
| 9729 | char gnutls_global_init (); |
| 9730 | int |
| 9731 | main () |
| 9732 | { |
| 9733 | return gnutls_global_init (); |
| 9734 | ; |
| 9735 | return 0; |
| 9736 | } |
| 9737 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9738 | if ac_fn_c_try_link "$LINENO"; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9739 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9740 | dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9741 | dylib) ac_cv_lib_soname_gnutls=`otool -L conftest$ac_exeext | grep "libgnutls\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgnutls\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 9742 | *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9743 | esac |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9744 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9745 | rm -f core conftest.err conftest.$ac_objext \ |
| 9746 | conftest$ac_exeext conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9747 | LIBS=$ac_check_soname_save_LIBS |
| 9748 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9749 | if test "x$ac_cv_lib_soname_gnutls" = "x"; then : |
| 9750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9751 | $as_echo "not found" >&6; } |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9752 | |
| 9753 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9755 | $as_echo "$ac_cv_lib_soname_gnutls" >&6; } |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9756 | |
| 9757 | cat >>confdefs.h <<_ACEOF |
| 9758 | #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls" |
| 9759 | _ACEOF |
| 9760 | |
| 9761 | GNUTLSINCL="$ac_gnutls_cflags" |
| 9762 | |
| 9763 | fi |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9764 | fi |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9766 | fi |
| 9767 | |
| 9768 | |
| 9769 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9770 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9771 | if test "x$ac_cv_lib_soname_gnutls" = "x"; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9772 | case "x$with_gnutls" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9773 | x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;; |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9774 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9775 | *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support. |
| 9776 | This is an error since --with-gnutls was requested." "$LINENO" 5 ;; |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9777 | esac |
| 9778 | fi |
| 9779 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9780 | CURSESLIBS="" |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9781 | if test "$ac_cv_header_ncurses_h" = "yes" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 9782 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9784 | $as_echo_n "checking for -lncurses... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9785 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9786 | $as_echo_n "(cached) " >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9787 | else |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9788 | ac_check_soname_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9789 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9791 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9792 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9793 | /* Override any GCC internal prototype to avoid an error. |
| 9794 | Use char because int might match the return type of a GCC |
| 9795 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9796 | #ifdef __cplusplus |
| 9797 | extern "C" |
| 9798 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9799 | char waddch (); |
| 9800 | int |
| 9801 | main () |
| 9802 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9803 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9804 | ; |
| 9805 | return 0; |
| 9806 | } |
| 9807 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9808 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9809 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9810 | dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9811 | 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'` ;; |
| 9812 | *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9813 | esac |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9814 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9815 | rm -f core conftest.err conftest.$ac_objext \ |
| 9816 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9817 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9818 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9819 | if test "x$ac_cv_lib_soname_ncurses" = "x"; then : |
| 9820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9821 | $as_echo "not found" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9822 | |
| 9823 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9825 | $as_echo "$ac_cv_lib_soname_ncurses" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9826 | |
| 9827 | cat >>confdefs.h <<_ACEOF |
| 9828 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
| 9829 | _ACEOF |
| 9830 | |
| 9831 | CURSESLIBS="-lncurses" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9832 | fi |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9833 | elif test "$ac_cv_header_curses_h" = "yes" |
| 9834 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9836 | $as_echo_n "checking for -lcurses... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9837 | if test "${ac_cv_lib_soname_curses+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9838 | $as_echo_n "(cached) " >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9839 | else |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9840 | ac_check_soname_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9841 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9843 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9844 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9845 | /* Override any GCC internal prototype to avoid an error. |
| 9846 | Use char because int might match the return type of a GCC |
| 9847 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9848 | #ifdef __cplusplus |
| 9849 | extern "C" |
| 9850 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9851 | char waddch (); |
| 9852 | int |
| 9853 | main () |
| 9854 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9855 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9856 | ; |
| 9857 | return 0; |
| 9858 | } |
| 9859 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9860 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9861 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9862 | dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9863 | 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'` ;; |
| 9864 | *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9865 | esac |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9866 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9867 | rm -f core conftest.err conftest.$ac_objext \ |
| 9868 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9869 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9870 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9871 | if test "x$ac_cv_lib_soname_curses" = "x"; then : |
| 9872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9873 | $as_echo "not found" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9874 | |
| 9875 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9877 | $as_echo "$ac_cv_lib_soname_curses" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9878 | |
| 9879 | cat >>confdefs.h <<_ACEOF |
| 9880 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
| 9881 | _ACEOF |
| 9882 | |
| 9883 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9884 | fi |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9885 | fi |
| 9886 | ac_save_LIBS="$LIBS" |
| 9887 | LIBS="$LIBS $CURSESLIBS" |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9888 | for ac_func in mousemask |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9889 | do : |
| 9890 | ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask" |
| 9891 | if test "x$ac_cv_func_mousemask" = x""yes; then : |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9892 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9893 | #define HAVE_MOUSEMASK 1 |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9894 | _ACEOF |
| 9895 | |
| 9896 | fi |
| 9897 | done |
| 9898 | |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9899 | LIBS="$ac_save_LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9900 | if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9901 | case "x$with_curses" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9902 | x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9903 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9904 | *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported. |
| 9905 | This is an error since --with-curses was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9906 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9907 | fi |
| 9908 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9909 | if test "x$with_sane" != "xno" |
| 9910 | then |
| 9911 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9912 | # Extract the first word of "sane-config", so it can be a program name with args. |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9913 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9915 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9916 | if test "${ac_cv_prog_sane_devel+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9917 | $as_echo_n "(cached) " >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9918 | else |
| 9919 | if test -n "$sane_devel"; then |
| 9920 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 9921 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9923 | for as_dir in $PATH |
| 9924 | do |
| 9925 | IFS=$as_save_IFS |
| 9926 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9927 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 9928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9929 | ac_cv_prog_sane_devel="sane-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9931 | break 2 |
| 9932 | fi |
| 9933 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9934 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9935 | IFS=$as_save_IFS |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9936 | |
| 9937 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 9938 | fi |
| 9939 | fi |
| 9940 | sane_devel=$ac_cv_prog_sane_devel |
| 9941 | if test -n "$sane_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9943 | $as_echo "$sane_devel" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9944 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9946 | $as_echo "no" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9947 | fi |
| 9948 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9949 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9950 | if test "$sane_devel" != "no" |
| 9951 | then |
| 9952 | ac_sane_incl="`$sane_devel --cflags`" |
| 9953 | ac_sane_libs="`$sane_devel --ldflags`" |
| 9954 | CPPFLAGS="$CPPFLAGS $ac_sane_incl" |
| 9955 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9956 | ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default" |
| 9957 | if test "x$ac_cv_header_sane_sane_h" = x""yes; then : |
| 9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9959 | $as_echo_n "checking for -lsane... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9960 | if test "${ac_cv_lib_soname_sane+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9961 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9962 | else |
| 9963 | ac_check_soname_save_LIBS=$LIBS |
Francois Gouget | a9d7bab | 2008-07-20 22:41:41 +0200 | [diff] [blame] | 9964 | LIBS="-lsane $ac_sane_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9966 | /* end confdefs.h. */ |
| 9967 | |
| 9968 | /* Override any GCC internal prototype to avoid an error. |
| 9969 | Use char because int might match the return type of a GCC |
| 9970 | builtin and then its argument prototype would still apply. */ |
| 9971 | #ifdef __cplusplus |
| 9972 | extern "C" |
| 9973 | #endif |
| 9974 | char sane_init (); |
| 9975 | int |
| 9976 | main () |
| 9977 | { |
| 9978 | return sane_init (); |
| 9979 | ; |
| 9980 | return 0; |
| 9981 | } |
| 9982 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9983 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9984 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9985 | dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9986 | dylib) ac_cv_lib_soname_sane=`otool -L conftest$ac_exeext | grep "libsane\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libsane\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 9987 | *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9988 | esac |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9989 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9990 | rm -f core conftest.err conftest.$ac_objext \ |
| 9991 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9992 | LIBS=$ac_check_soname_save_LIBS |
| 9993 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9994 | if test "x$ac_cv_lib_soname_sane" = "x"; then : |
| 9995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9996 | $as_echo "not found" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9997 | |
| 9998 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10000 | $as_echo "$ac_cv_lib_soname_sane" >&6; } |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 10001 | |
| 10002 | cat >>confdefs.h <<_ACEOF |
| 10003 | #define SONAME_LIBSANE "$ac_cv_lib_soname_sane" |
| 10004 | _ACEOF |
| 10005 | |
| 10006 | SANEINCL="$ac_sane_incl" |
| 10007 | |
| 10008 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10009 | fi |
| 10010 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10011 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10012 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10013 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10014 | if test "x$ac_cv_lib_soname_sane" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10015 | case "x$with_sane" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10016 | x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10017 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10018 | *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported. |
| 10019 | This is an error since --with-sane was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10020 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10021 | fi |
| 10022 | |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 10023 | if test "x$with_v4l" != "xno" |
| 10024 | then |
| 10025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5 |
| 10026 | $as_echo_n "checking for -lv4l1... " >&6; } |
| 10027 | if test "${ac_cv_lib_soname_v4l1+set}" = set; then : |
| 10028 | $as_echo_n "(cached) " >&6 |
| 10029 | else |
| 10030 | ac_check_soname_save_LIBS=$LIBS |
| 10031 | LIBS="-lv4l1 $LIBS" |
| 10032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10033 | /* end confdefs.h. */ |
| 10034 | |
| 10035 | /* Override any GCC internal prototype to avoid an error. |
| 10036 | Use char because int might match the return type of a GCC |
| 10037 | builtin and then its argument prototype would still apply. */ |
| 10038 | #ifdef __cplusplus |
| 10039 | extern "C" |
| 10040 | #endif |
| 10041 | char v4l1_open (); |
| 10042 | int |
| 10043 | main () |
| 10044 | { |
| 10045 | return v4l1_open (); |
| 10046 | ; |
| 10047 | return 0; |
| 10048 | } |
| 10049 | _ACEOF |
| 10050 | if ac_fn_c_try_link "$LINENO"; then : |
| 10051 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10052 | dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 10053 | dylib) ac_cv_lib_soname_v4l1=`otool -L conftest$ac_exeext | grep "libv4l1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libv4l1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 10054 | *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10055 | esac |
| 10056 | fi |
| 10057 | rm -f core conftest.err conftest.$ac_objext \ |
| 10058 | conftest$ac_exeext conftest.$ac_ext |
| 10059 | LIBS=$ac_check_soname_save_LIBS |
| 10060 | fi |
| 10061 | if test "x$ac_cv_lib_soname_v4l1" = "x"; then : |
| 10062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 10063 | $as_echo "not found" >&6; } |
| 10064 | |
| 10065 | else |
| 10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5 |
| 10067 | $as_echo "$ac_cv_lib_soname_v4l1" >&6; } |
| 10068 | |
| 10069 | cat >>confdefs.h <<_ACEOF |
| 10070 | #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1" |
| 10071 | _ACEOF |
| 10072 | |
| 10073 | |
| 10074 | fi |
| 10075 | fi |
| 10076 | if test "x$ac_cv_lib_soname_v4l1" = "x"; then : |
| 10077 | case "x$with_v4l" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10078 | x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;; |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 10079 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10080 | *) as_fn_error $? "libv4l ${notice_platform}development files not found. |
| 10081 | This is an error since --with-v4l was requested." "$LINENO" 5 ;; |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 10082 | esac |
| 10083 | fi |
| 10084 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10085 | if test "x$with_gphoto" != "xno" |
| 10086 | then |
| 10087 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10088 | # Extract the first word of "gphoto2-config", so it can be a program name with args. |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10089 | set dummy gphoto2-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10091 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10092 | if test "${ac_cv_prog_gphoto2_devel+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10093 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10094 | else |
| 10095 | if test -n "$gphoto2_devel"; then |
| 10096 | ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test. |
| 10097 | else |
| 10098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10099 | for as_dir in $PATH |
| 10100 | do |
| 10101 | IFS=$as_save_IFS |
| 10102 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10103 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10104 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10105 | ac_cv_prog_gphoto2_devel="gphoto2-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10107 | break 2 |
| 10108 | fi |
| 10109 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10110 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10111 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10112 | |
| 10113 | test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no" |
| 10114 | fi |
| 10115 | fi |
| 10116 | gphoto2_devel=$ac_cv_prog_gphoto2_devel |
| 10117 | if test -n "$gphoto2_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10119 | $as_echo "$gphoto2_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10120 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10122 | $as_echo "no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10123 | fi |
| 10124 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10125 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10126 | # Extract the first word of "gphoto2-port-config", so it can be a program name with args. |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10127 | set dummy gphoto2-port-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10129 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10130 | if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10131 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10132 | else |
| 10133 | if test -n "$gphoto2port_devel"; then |
| 10134 | ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test. |
| 10135 | else |
| 10136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10137 | for as_dir in $PATH |
| 10138 | do |
| 10139 | IFS=$as_save_IFS |
| 10140 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10141 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10143 | ac_cv_prog_gphoto2port_devel="gphoto2-port-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10145 | break 2 |
| 10146 | fi |
| 10147 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10148 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10149 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10150 | |
| 10151 | test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no" |
| 10152 | fi |
| 10153 | fi |
| 10154 | gphoto2port_devel=$ac_cv_prog_gphoto2port_devel |
| 10155 | if test -n "$gphoto2port_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10157 | $as_echo "$gphoto2port_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10158 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10160 | $as_echo "no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10161 | fi |
| 10162 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10163 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10164 | if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no" |
| 10165 | then |
| 10166 | ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`" |
| 10167 | ac_gphoto2_libs="" |
| 10168 | for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs` |
| 10169 | do |
| 10170 | case "$i" in |
| 10171 | -L/usr/lib|-L/usr/lib64) ;; |
| 10172 | -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";; |
| 10173 | esac |
| 10174 | done |
| 10175 | CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl" |
| 10176 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 10177 | ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10178 | ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default" |
| 10179 | if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then : |
| 10180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10181 | $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10182 | if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10183 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10184 | else |
| 10185 | ac_check_lib_save_LIBS=$LIBS |
Francois Gouget | 4bc03fe | 2008-07-21 17:10:45 +0200 | [diff] [blame] | 10186 | LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10188 | /* end confdefs.h. */ |
| 10189 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10190 | /* Override any GCC internal prototype to avoid an error. |
| 10191 | Use char because int might match the return type of a GCC |
| 10192 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10193 | #ifdef __cplusplus |
| 10194 | extern "C" |
| 10195 | #endif |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10196 | char gp_camera_new (); |
| 10197 | int |
| 10198 | main () |
| 10199 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10200 | return gp_camera_new (); |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10201 | ; |
| 10202 | return 0; |
| 10203 | } |
| 10204 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10205 | if ac_fn_c_try_link "$LINENO"; then : |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10206 | ac_cv_lib_gphoto2_gp_camera_new=yes |
| 10207 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10208 | ac_cv_lib_gphoto2_gp_camera_new=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10209 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10210 | rm -f core conftest.err conftest.$ac_objext \ |
| 10211 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10212 | LIBS=$ac_check_lib_save_LIBS |
| 10213 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10215 | $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10216 | if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then : |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10217 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10218 | $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10219 | |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10220 | GPHOTO2LIBS="$ac_gphoto2_libs" |
| 10221 | |
| 10222 | GPHOTO2INCL="$ac_gphoto2_incl" |
| 10223 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10224 | fi |
| 10225 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10226 | fi |
| 10227 | |
| 10228 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10229 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10230 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10231 | if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10232 | case "x$with_gphoto" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10233 | x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10234 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10235 | *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported. |
| 10236 | This is an error since --with-gphoto was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10237 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10238 | fi |
| 10239 | |
| 10240 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10241 | if test "$ac_cv_header_resolv_h" = "yes" |
| 10242 | then |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10243 | ac_save_LIBS="$LIBS" |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10244 | for lib in '' -lresolv |
| 10245 | do |
| 10246 | LIBS="$lib $ac_save_LIBS" |
| 10247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10248 | /* end confdefs.h. */ |
Rob Shearman | ba34921 | 2009-01-02 12:12:06 +0000 | [diff] [blame] | 10249 | #ifdef HAVE_NETINET_IN_H |
| 10250 | #include <netinet/in.h> |
| 10251 | #endif |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10252 | #include <resolv.h> |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10253 | int |
| 10254 | main () |
| 10255 | { |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10256 | res_query("foo",ns_c_in,0,0,0); |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10257 | ; |
| 10258 | return 0; |
| 10259 | } |
| 10260 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10261 | if ac_fn_c_try_link "$LINENO"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10262 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10263 | $as_echo "#define HAVE_RESOLV 1" >>confdefs.h |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10264 | |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10265 | RESOLVLIBS="$lib" |
| 10266 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10267 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10268 | rm -f core conftest.err conftest.$ac_objext \ |
| 10269 | conftest$ac_exeext conftest.$ac_ext |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10270 | if test "${RESOLVLIBS+set}" = set; then |
| 10271 | break |
| 10272 | fi |
| 10273 | done |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10274 | LIBS="$ac_save_LIBS" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10275 | fi |
| 10276 | |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10277 | LCMSLIBS="" |
| 10278 | |
| 10279 | if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes" |
| 10280 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10282 | $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10283 | if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10284 | $as_echo_n "(cached) " >&6 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10285 | else |
| 10286 | ac_check_lib_save_LIBS=$LIBS |
| 10287 | LIBS="-llcms $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10289 | /* end confdefs.h. */ |
| 10290 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10291 | /* Override any GCC internal prototype to avoid an error. |
| 10292 | Use char because int might match the return type of a GCC |
| 10293 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10294 | #ifdef __cplusplus |
| 10295 | extern "C" |
| 10296 | #endif |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10297 | char cmsOpenProfileFromFile (); |
| 10298 | int |
| 10299 | main () |
| 10300 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10301 | return cmsOpenProfileFromFile (); |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10302 | ; |
| 10303 | return 0; |
| 10304 | } |
| 10305 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10306 | if ac_fn_c_try_link "$LINENO"; then : |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10307 | ac_cv_lib_lcms_cmsOpenProfileFromFile=yes |
| 10308 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10309 | ac_cv_lib_lcms_cmsOpenProfileFromFile=no |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10310 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10311 | rm -f core conftest.err conftest.$ac_objext \ |
| 10312 | conftest$ac_exeext conftest.$ac_ext |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10313 | LIBS=$ac_check_lib_save_LIBS |
| 10314 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10316 | $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10317 | if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then : |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10318 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10319 | $as_echo "#define HAVE_LCMS 1" >>confdefs.h |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10320 | |
| 10321 | LCMSLIBS="-llcms" |
| 10322 | fi |
| 10323 | |
| 10324 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10325 | if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10326 | case "x$with_cms" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10327 | x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10328 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10329 | *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported. |
| 10330 | This is an error since --with-cms was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10331 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10332 | fi |
| 10333 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10334 | if test "x$with_freetype" != "xno" |
| 10335 | then |
| 10336 | for ac_prog in freetype-config freetype2-config |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10337 | do |
| 10338 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10339 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10341 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10342 | if test "${ac_cv_prog_ft_devel+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10343 | $as_echo_n "(cached) " >&6 |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10344 | else |
| 10345 | if test -n "$ft_devel"; then |
| 10346 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 10347 | else |
| 10348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10349 | for as_dir in $PATH |
| 10350 | do |
| 10351 | IFS=$as_save_IFS |
| 10352 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10353 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10354 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10355 | ac_cv_prog_ft_devel="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10356 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10357 | break 2 |
| 10358 | fi |
| 10359 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10360 | done |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10361 | IFS=$as_save_IFS |
| 10362 | |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10363 | fi |
| 10364 | fi |
| 10365 | ft_devel=$ac_cv_prog_ft_devel |
| 10366 | if test -n "$ft_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10368 | $as_echo "$ft_devel" >&6; } |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10369 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10371 | $as_echo "no" >&6; } |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10372 | fi |
| 10373 | |
| 10374 | |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10375 | test -n "$ft_devel" && break |
| 10376 | done |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10377 | test -n "$ft_devel" || ft_devel="no" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10378 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10379 | if test "$ft_devel" != "no" |
| 10380 | then |
| 10381 | ac_freetype_incl=`$ft_devel --cflags` |
| 10382 | ac_freetype_libs=`$ft_devel --libs` |
| 10383 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 10384 | ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10386 | $as_echo_n "checking for -lfreetype... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10387 | if test "${ac_cv_lib_soname_freetype+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10388 | $as_echo_n "(cached) " >&6 |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10389 | else |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10390 | ac_check_soname_save_LIBS=$LIBS |
| 10391 | LIBS="-lfreetype $ac_freetype_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10393 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10394 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10395 | /* Override any GCC internal prototype to avoid an error. |
| 10396 | Use char because int might match the return type of a GCC |
| 10397 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10398 | #ifdef __cplusplus |
| 10399 | extern "C" |
| 10400 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10401 | char FT_Init_FreeType (); |
| 10402 | int |
| 10403 | main () |
| 10404 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10405 | return FT_Init_FreeType (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10406 | ; |
| 10407 | return 0; |
| 10408 | } |
| 10409 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10410 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10411 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10412 | dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10413 | 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'` ;; |
| 10414 | *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10415 | esac |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10416 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10417 | rm -f core conftest.err conftest.$ac_objext \ |
| 10418 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10419 | LIBS=$ac_check_soname_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10420 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10421 | if test "x$ac_cv_lib_soname_freetype" = "x"; then : |
| 10422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10423 | $as_echo "not found" >&6; } |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10424 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10425 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10427 | $as_echo "$ac_cv_lib_soname_freetype" >&6; } |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10428 | |
| 10429 | cat >>confdefs.h <<_ACEOF |
| 10430 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 10431 | _ACEOF |
| 10432 | |
| 10433 | ft_lib=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10434 | fi |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10435 | if test "$ft_lib" = "yes" |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10436 | then |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10437 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10438 | CPPFLAGS="$ac_freetype_incl $CPPFLAGS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10439 | for ac_header in ft2build.h \ |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 10440 | freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10441 | freetype/ftglyph.h \ |
Dmitry Timoshkov | b0d1590 | 2007-09-20 19:10:31 +0900 | [diff] [blame] | 10442 | freetype/fttypes.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10443 | freetype/tttables.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10444 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 10445 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10446 | freetype/ftoutln.h \ |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 10447 | freetype/ftwinfnt.h \ |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 10448 | freetype/ftmodapi.h \ |
ByeongSik Jeon | 028617b | 2008-12-10 23:50:44 +0900 | [diff] [blame] | 10449 | freetype/ftlcdfil.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10450 | freetype/internal/sfnt.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10451 | do : |
| 10452 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10453 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 10454 | # include <ft2build.h> |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10455 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10456 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10457 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10458 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10459 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10460 | _ACEOF |
| 10461 | |
| 10462 | fi |
| 10463 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10464 | done |
| 10465 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10467 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10468 | #include <ft2build.h> |
| 10469 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10470 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10471 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10472 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10473 | $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10474 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10475 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10476 | else |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10477 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10478 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10479 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10480 | ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h> |
| 10481 | " |
| 10482 | if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then : |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 10483 | |
| 10484 | cat >>confdefs.h <<_ACEOF |
| 10485 | #define HAVE_FT_TRUETYPEENGINETYPE 1 |
| 10486 | _ACEOF |
| 10487 | |
| 10488 | |
| 10489 | fi |
| 10490 | |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 10491 | ac_save_CFLAGS="$CFLAGS" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10492 | CFLAGS="$CFLAGS $ac_freetype_libs" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10493 | for ac_func in FT_Load_Sfnt_Table |
| 10494 | do : |
| 10495 | ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table" |
| 10496 | if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then : |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 10497 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10498 | #define HAVE_FT_LOAD_SFNT_TABLE 1 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 10499 | _ACEOF |
| 10500 | |
| 10501 | fi |
| 10502 | done |
| 10503 | |
| 10504 | CFLAGS="$ac_save_CFLAGS" |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10505 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10506 | 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] | 10507 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10508 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10509 | $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10510 | |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10511 | FREETYPELIBS="$ac_freetype_libs" |
| 10512 | |
| 10513 | FREETYPEINCL="$ac_freetype_incl" |
| 10514 | |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10515 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10516 | fi |
| 10517 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10518 | if test "x$FREETYPELIBS" = "x"; then : |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10519 | case "x$with_freetype" in |
| 10520 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10521 | *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built. |
| 10522 | Use the --without-freetype option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10523 | esac |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10524 | fi |
Alexandre Julliard | 6de0af1 | 2008-08-25 14:41:03 +0200 | [diff] [blame] | 10525 | test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no} |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10526 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10528 | $as_echo_n "checking for parport header/ppdev.h... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10529 | if test "${ac_cv_c_ppdev+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10530 | $as_echo_n "(cached) " >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 10531 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10533 | /* end confdefs.h. */ |
Yann Droneaud | dd33ee9 | 2010-03-08 14:46:46 +0100 | [diff] [blame] | 10534 | #ifdef HAVE_SYS_IOCTL_H |
| 10535 | # include <sys/ioctl.h> |
| 10536 | #endif |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10537 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10538 | int |
| 10539 | main () |
| 10540 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10541 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10542 | ; |
| 10543 | return 0; |
| 10544 | } |
| 10545 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10546 | if ac_fn_c_try_compile "$LINENO"; then : |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10547 | ac_cv_c_ppdev="yes" |
| 10548 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10549 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10550 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10552 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10554 | $as_echo "$ac_cv_c_ppdev" >&6; } |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10555 | if test "$ac_cv_c_ppdev" = "yes" |
| 10556 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10557 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10558 | $as_echo "#define HAVE_PPDEV 1" >>confdefs.h |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10559 | |
| 10560 | fi |
| 10561 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10562 | ac_wine_check_funcs_save_LIBS="$LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10563 | LIBS="$LIBS $LIBPTHREAD" |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 10564 | for ac_func in \ |
Tijl Coosemans | fc8172f | 2006-08-05 23:31:07 +0200 | [diff] [blame] | 10565 | pthread_attr_get_np \ |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 10566 | pthread_getattr_np \ |
| 10567 | pthread_get_stackaddr_np \ |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10568 | pthread_get_stacksize_np |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10569 | do : |
| 10570 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10571 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10572 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10573 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10574 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10575 | _ACEOF |
| 10576 | |
| 10577 | fi |
| 10578 | done |
| 10579 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10580 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10581 | |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10582 | if test "$ac_cv_header_zlib_h" = "yes" |
| 10583 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10585 | $as_echo_n "checking for inflate in -lz... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10586 | if test "${ac_cv_lib_z_inflate+set}" = set; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10587 | $as_echo_n "(cached) " >&6 |
| 10588 | else |
| 10589 | ac_check_lib_save_LIBS=$LIBS |
| 10590 | LIBS="-lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10592 | /* end confdefs.h. */ |
| 10593 | |
| 10594 | /* Override any GCC internal prototype to avoid an error. |
| 10595 | Use char because int might match the return type of a GCC |
| 10596 | builtin and then its argument prototype would still apply. */ |
| 10597 | #ifdef __cplusplus |
| 10598 | extern "C" |
| 10599 | #endif |
| 10600 | char inflate (); |
| 10601 | int |
| 10602 | main () |
| 10603 | { |
| 10604 | return inflate (); |
| 10605 | ; |
| 10606 | return 0; |
| 10607 | } |
| 10608 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10609 | if ac_fn_c_try_link "$LINENO"; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10610 | ac_cv_lib_z_inflate=yes |
| 10611 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10612 | ac_cv_lib_z_inflate=no |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10613 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10614 | rm -f core conftest.err conftest.$ac_objext \ |
| 10615 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10616 | LIBS=$ac_check_lib_save_LIBS |
| 10617 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10619 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10620 | if test "x$ac_cv_lib_z_inflate" = x""yes; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10621 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10622 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10623 | |
| 10624 | ZLIB="-lz" |
| 10625 | |
| 10626 | fi |
| 10627 | |
| 10628 | fi |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 10629 | if test "x$ZLIB" = "x"; then : |
| 10630 | case "x$with_zlib" in |
| 10631 | x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;; |
| 10632 | xno) ;; |
| 10633 | *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported. |
| 10634 | This is an error since --with-zlib was requested." "$LINENO" 5 ;; |
| 10635 | esac |
| 10636 | fi |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10637 | |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10638 | if test "x$enable_tools" != xno |
| 10639 | then |
| 10640 | if test "$ac_cv_header_gettext_po_h" = "yes" |
| 10641 | then |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5 |
| 10643 | $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; } |
| 10644 | if test "${ac_cv_lib_gettextpo_po_message_msgctxt+set}" = set; then : |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10645 | $as_echo_n "(cached) " >&6 |
| 10646 | else |
| 10647 | ac_check_lib_save_LIBS=$LIBS |
| 10648 | LIBS="-lgettextpo $LIBS" |
| 10649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10650 | /* end confdefs.h. */ |
| 10651 | |
| 10652 | /* Override any GCC internal prototype to avoid an error. |
| 10653 | Use char because int might match the return type of a GCC |
| 10654 | builtin and then its argument prototype would still apply. */ |
| 10655 | #ifdef __cplusplus |
| 10656 | extern "C" |
| 10657 | #endif |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10658 | char po_message_msgctxt (); |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10659 | int |
| 10660 | main () |
| 10661 | { |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10662 | return po_message_msgctxt (); |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10663 | ; |
| 10664 | return 0; |
| 10665 | } |
| 10666 | _ACEOF |
| 10667 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10668 | ac_cv_lib_gettextpo_po_message_msgctxt=yes |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10669 | else |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10670 | ac_cv_lib_gettextpo_po_message_msgctxt=no |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10671 | fi |
| 10672 | rm -f core conftest.err conftest.$ac_objext \ |
| 10673 | conftest$ac_exeext conftest.$ac_ext |
| 10674 | LIBS=$ac_check_lib_save_LIBS |
| 10675 | fi |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5 |
| 10677 | $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; } |
| 10678 | if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = x""yes; then : |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10679 | |
| 10680 | $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h |
| 10681 | |
| 10682 | LIBGETTEXTPO="-lgettextpo" |
| 10683 | |
| 10684 | fi |
| 10685 | |
| 10686 | fi |
| 10687 | if test "x$LIBGETTEXTPO" = "x"; then : |
| 10688 | case "x$with_gettextpo" in |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10689 | x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;; |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10690 | xno) ;; |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10691 | *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported. |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10692 | This is an error since --with-gettextpo was requested." "$LINENO" 5 ;; |
| 10693 | esac |
| 10694 | fi |
| 10695 | fi |
| 10696 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10697 | if test "x$with_esd" != xno |
| 10698 | then |
| 10699 | save_CFLAGS="$CFLAGS" |
| 10700 | # Extract the first word of "esd-config", so it can be a program name with args. |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10701 | set dummy esd-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10703 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10704 | if test "${ac_cv_path_ESDCONFIG+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10705 | $as_echo_n "(cached) " >&6 |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10706 | else |
| 10707 | case $ESDCONFIG in |
| 10708 | [\\/]* | ?:[\\/]*) |
| 10709 | ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path. |
| 10710 | ;; |
| 10711 | *) |
| 10712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10713 | for as_dir in $PATH |
| 10714 | do |
| 10715 | IFS=$as_save_IFS |
| 10716 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10717 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10719 | ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10721 | break 2 |
| 10722 | fi |
| 10723 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10724 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10725 | IFS=$as_save_IFS |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10726 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10727 | test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no" |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10728 | ;; |
| 10729 | esac |
| 10730 | fi |
| 10731 | ESDCONFIG=$ac_cv_path_ESDCONFIG |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10732 | if test -n "$ESDCONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10734 | $as_echo "$ESDCONFIG" >&6; } |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10735 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10737 | $as_echo "no" >&6; } |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10738 | fi |
| 10739 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10740 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10741 | if test "x$ESDCONFIG" != "xno" |
| 10742 | then |
| 10743 | ac_esd_incl="" |
| 10744 | for i in `$ESDCONFIG --cflags` |
| 10745 | do |
| 10746 | case "$i" in |
| 10747 | -I*) ac_esd_incl="$ac_esd_incl $i";; |
| 10748 | esac |
| 10749 | done |
| 10750 | ac_esd_libs=`$ESDCONFIG --libs` |
| 10751 | CFLAGS="$CFLAGS $ac_esd_incl" |
| 10752 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 10753 | ac_esd_libs=${ac_esd_libs:-"-lesd"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10754 | ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default" |
| 10755 | if test "x$ac_cv_header_esd_h" = x""yes; then : |
| 10756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10757 | $as_echo_n "checking for esd_open_sound in -lesd... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10758 | if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10759 | $as_echo_n "(cached) " >&6 |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10760 | else |
| 10761 | ac_check_lib_save_LIBS=$LIBS |
Francois Gouget | e9b1a40 | 2008-07-21 23:41:21 +0200 | [diff] [blame] | 10762 | LIBS="-lesd $ac_esd_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10764 | /* end confdefs.h. */ |
| 10765 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10766 | /* Override any GCC internal prototype to avoid an error. |
| 10767 | Use char because int might match the return type of a GCC |
| 10768 | builtin and then its argument prototype would still apply. */ |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10769 | #ifdef __cplusplus |
| 10770 | extern "C" |
| 10771 | #endif |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10772 | char esd_open_sound (); |
| 10773 | int |
| 10774 | main () |
| 10775 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10776 | return esd_open_sound (); |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10777 | ; |
| 10778 | return 0; |
| 10779 | } |
| 10780 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10781 | if ac_fn_c_try_link "$LINENO"; then : |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10782 | ac_cv_lib_esd_esd_open_sound=yes |
| 10783 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10784 | ac_cv_lib_esd_esd_open_sound=no |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10785 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10786 | rm -f core conftest.err conftest.$ac_objext \ |
| 10787 | conftest$ac_exeext conftest.$ac_ext |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10788 | LIBS=$ac_check_lib_save_LIBS |
| 10789 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10791 | $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10792 | if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then : |
Francois Gouget | e9b1a40 | 2008-07-21 23:41:21 +0200 | [diff] [blame] | 10793 | ESDINCL="$ac_esd_incl" |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10794 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10795 | ESDLIBS="$ac_esd_libs" |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10796 | |
| 10797 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10798 | $as_echo "#define HAVE_ESD 1" >>confdefs.h |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10799 | |
| 10800 | fi |
| 10801 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10802 | fi |
| 10803 | |
| 10804 | |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10805 | CFLAGS="$save_CFLAGS" |
| 10806 | fi |
| 10807 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10808 | if test "x$with_gstreamer" != "xno" |
| 10809 | then |
| 10810 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10811 | if test "$PKG_CONFIG" != "false"; then |
| 10812 | ac_gst_incl="" |
| 10813 | for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null` |
| 10814 | do |
| 10815 | case "$i" in |
| 10816 | -I*) ac_gst_incl="$ac_gst_incl $i";; |
| 10817 | esac |
| 10818 | done |
| 10819 | ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`" |
| 10820 | CPPFLAGS="$CPPFLAGS $ac_gst_incl" |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10821 | ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default" |
| 10822 | if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then : |
| 10823 | ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default" |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10824 | if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then : |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5 |
| 10826 | $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; } |
| 10827 | if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then : |
| 10828 | $as_echo_n "(cached) " >&6 |
| 10829 | else |
| 10830 | ac_check_lib_save_LIBS=$LIBS |
| 10831 | LIBS="-lgstreamer-0.10 $LIBS" |
| 10832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10833 | /* end confdefs.h. */ |
| 10834 | |
| 10835 | /* Override any GCC internal prototype to avoid an error. |
| 10836 | Use char because int might match the return type of a GCC |
| 10837 | builtin and then its argument prototype would still apply. */ |
| 10838 | #ifdef __cplusplus |
| 10839 | extern "C" |
| 10840 | #endif |
| 10841 | char gst_pad_get_caps_reffed (); |
| 10842 | int |
| 10843 | main () |
| 10844 | { |
| 10845 | return gst_pad_get_caps_reffed (); |
| 10846 | ; |
| 10847 | return 0; |
| 10848 | } |
| 10849 | _ACEOF |
| 10850 | if ac_fn_c_try_link "$LINENO"; then : |
| 10851 | ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes |
| 10852 | else |
| 10853 | ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no |
| 10854 | fi |
| 10855 | rm -f core conftest.err conftest.$ac_objext \ |
| 10856 | conftest$ac_exeext conftest.$ac_ext |
| 10857 | LIBS=$ac_check_lib_save_LIBS |
| 10858 | fi |
| 10859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5 |
| 10860 | $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; } |
| 10861 | if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then : |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5 |
| 10863 | $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; } |
| 10864 | if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then : |
| 10865 | $as_echo_n "(cached) " >&6 |
| 10866 | else |
| 10867 | ac_check_lib_save_LIBS=$LIBS |
| 10868 | LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS" |
| 10869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10870 | /* end confdefs.h. */ |
| 10871 | |
| 10872 | /* Override any GCC internal prototype to avoid an error. |
| 10873 | Use char because int might match the return type of a GCC |
| 10874 | builtin and then its argument prototype would still apply. */ |
| 10875 | #ifdef __cplusplus |
| 10876 | extern "C" |
| 10877 | #endif |
| 10878 | char gst_app_buffer_new (); |
| 10879 | int |
| 10880 | main () |
| 10881 | { |
| 10882 | return gst_app_buffer_new (); |
| 10883 | ; |
| 10884 | return 0; |
| 10885 | } |
| 10886 | _ACEOF |
| 10887 | if ac_fn_c_try_link "$LINENO"; then : |
| 10888 | ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes |
| 10889 | else |
| 10890 | ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no |
| 10891 | fi |
| 10892 | rm -f core conftest.err conftest.$ac_objext \ |
| 10893 | conftest$ac_exeext conftest.$ac_ext |
| 10894 | LIBS=$ac_check_lib_save_LIBS |
| 10895 | fi |
| 10896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5 |
| 10897 | $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; } |
| 10898 | if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then : |
| 10899 | GSTREAMER_LIBS="$ac_gst_libs" |
| 10900 | |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10901 | GSTREAMER_INCL="$ac_gst_incl" |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10902 | |
| 10903 | fi |
| 10904 | |
| 10905 | fi |
| 10906 | |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10907 | fi |
| 10908 | |
| 10909 | |
| 10910 | fi |
| 10911 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10912 | |
| 10913 | fi |
| 10914 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10915 | fi |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 10916 | if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then : |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10917 | case "x$with_gstreamer" in |
Detlef Riekenberg | 654bb4a | 2010-12-12 22:48:56 +0100 | [diff] [blame] | 10918 | x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;; |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10919 | xno) ;; |
Detlef Riekenberg | 654bb4a | 2010-12-12 22:48:56 +0100 | [diff] [blame] | 10920 | *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10921 | This is an error since --with-gstreamer was requested." "$LINENO" 5 ;; |
| 10922 | esac |
| 10923 | fi |
| 10924 | test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no} |
| 10925 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10926 | ALSALIBS="" |
| 10927 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10928 | 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] | 10929 | then |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5 |
| 10931 | $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; } |
| 10932 | if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10933 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10934 | else |
| 10935 | ac_check_lib_save_LIBS=$LIBS |
| 10936 | LIBS="-lasound $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10938 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10939 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10940 | /* Override any GCC internal prototype to avoid an error. |
| 10941 | Use char because int might match the return type of a GCC |
| 10942 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10943 | #ifdef __cplusplus |
| 10944 | extern "C" |
| 10945 | #endif |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10946 | char snd_pcm_hw_params_get_access_mask (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10947 | int |
| 10948 | main () |
| 10949 | { |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10950 | return snd_pcm_hw_params_get_access_mask (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10951 | ; |
| 10952 | return 0; |
| 10953 | } |
| 10954 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10955 | if ac_fn_c_try_link "$LINENO"; then : |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10956 | ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10957 | else |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10958 | ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10959 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10960 | rm -f core conftest.err conftest.$ac_objext \ |
| 10961 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10962 | LIBS=$ac_check_lib_save_LIBS |
| 10963 | fi |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5 |
| 10965 | $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; } |
| 10966 | if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = x""yes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10968 | /* end confdefs.h. */ |
| 10969 | #ifdef HAVE_ALSA_ASOUNDLIB_H |
| 10970 | #include <alsa/asoundlib.h> |
| 10971 | #elif defined(HAVE_SYS_ASOUNDLIB_H) |
| 10972 | #include <sys/asoundlib.h> |
| 10973 | #endif |
| 10974 | int |
| 10975 | main () |
| 10976 | { |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10977 | int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL) |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10978 | ; |
| 10979 | return 0; |
| 10980 | } |
| 10981 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10982 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10983 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10984 | $as_echo "#define HAVE_ALSA 1" >>confdefs.h |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10985 | |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10986 | ALSALIBS="-lasound" |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10987 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10989 | fi |
| 10990 | |
| 10991 | fi |
| 10992 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10993 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 10994 | if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes" |
| 10995 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10997 | $as_echo_n "checking for -lcapi20... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10998 | if test "${ac_cv_lib_soname_capi20+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10999 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11000 | else |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11001 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11002 | LIBS="-lcapi20 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11004 | /* end confdefs.h. */ |
| 11005 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11006 | /* Override any GCC internal prototype to avoid an error. |
| 11007 | Use char because int might match the return type of a GCC |
| 11008 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11009 | #ifdef __cplusplus |
| 11010 | extern "C" |
| 11011 | #endif |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11012 | char capi20_register (); |
| 11013 | int |
| 11014 | main () |
| 11015 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11016 | return capi20_register (); |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11017 | ; |
| 11018 | return 0; |
| 11019 | } |
| 11020 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11021 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11022 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11023 | dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11024 | 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'` ;; |
| 11025 | *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11026 | esac |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11027 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11028 | rm -f core conftest.err conftest.$ac_objext \ |
| 11029 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11030 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11031 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11032 | if test "x$ac_cv_lib_soname_capi20" = "x"; then : |
| 11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11034 | $as_echo "not found" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11035 | |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11036 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11038 | $as_echo "$ac_cv_lib_soname_capi20" >&6; } |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11039 | |
| 11040 | cat >>confdefs.h <<_ACEOF |
| 11041 | #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20" |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11042 | _ACEOF |
| 11043 | |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11044 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11045 | fi |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11046 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11047 | if test "x$ac_cv_lib_soname_capi20" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11048 | case "x$with_capi" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11049 | x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11050 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11051 | *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported. |
| 11052 | This is an error since --with-capi was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11053 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 11054 | fi |
| 11055 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11056 | CUPSINCL="" |
| 11057 | |
| 11058 | if test "x$with_cups" != "xno" |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11059 | then |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11060 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11061 | ac_cups_cflags=`cups-config --cflags 2>/dev/null` |
Alexandre Julliard | a991a56 | 2008-07-28 12:04:46 +0200 | [diff] [blame] | 11062 | ac_cups_libs=`cups-config --ldflags 2>/dev/null` |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11063 | CPPFLAGS="$CPPFLAGS $ac_cups_cflags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11064 | for ac_header in cups/cups.h |
| 11065 | do : |
| 11066 | ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default" |
| 11067 | if test "x$ac_cv_header_cups_cups_h" = x""yes; then : |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11068 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11069 | #define HAVE_CUPS_CUPS_H 1 |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11070 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11072 | $as_echo_n "checking for -lcups... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11073 | if test "${ac_cv_lib_soname_cups+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11074 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11075 | else |
| 11076 | ac_check_soname_save_LIBS=$LIBS |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11077 | LIBS="-lcups $ac_cups_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11079 | /* end confdefs.h. */ |
| 11080 | |
| 11081 | /* Override any GCC internal prototype to avoid an error. |
| 11082 | Use char because int might match the return type of a GCC |
| 11083 | builtin and then its argument prototype would still apply. */ |
| 11084 | #ifdef __cplusplus |
| 11085 | extern "C" |
| 11086 | #endif |
| 11087 | char cupsGetDefault (); |
| 11088 | int |
| 11089 | main () |
| 11090 | { |
| 11091 | return cupsGetDefault (); |
| 11092 | ; |
| 11093 | return 0; |
| 11094 | } |
| 11095 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11096 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11097 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11098 | dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11099 | 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'` ;; |
| 11100 | *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11101 | esac |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11102 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11103 | rm -f core conftest.err conftest.$ac_objext \ |
| 11104 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11105 | LIBS=$ac_check_soname_save_LIBS |
| 11106 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11107 | if test "x$ac_cv_lib_soname_cups" = "x"; then : |
| 11108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11109 | $as_echo "not found" >&6; } |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11110 | |
| 11111 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11113 | $as_echo "$ac_cv_lib_soname_cups" >&6; } |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11114 | |
| 11115 | cat >>confdefs.h <<_ACEOF |
| 11116 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 11117 | _ACEOF |
| 11118 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11119 | CUPSINCL="$ac_cups_cflags" |
| 11120 | fi |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11121 | fi |
| 11122 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11123 | done |
| 11124 | |
| 11125 | CPPFLAGS="$ac_save_CPPFLAGS" |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11126 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11127 | if test "x$ac_cv_lib_soname_cups" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11128 | case "x$with_cups" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11129 | x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11130 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11131 | *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported. |
| 11132 | This is an error since --with-cups was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11133 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 11134 | fi |
| 11135 | |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11136 | if test "$ac_cv_header_jack_jack_h" = "yes" |
| 11137 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11139 | $as_echo_n "checking for -ljack... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11140 | if test "${ac_cv_lib_soname_jack+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11141 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11142 | else |
| 11143 | ac_check_soname_save_LIBS=$LIBS |
| 11144 | LIBS="-ljack $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11146 | /* end confdefs.h. */ |
| 11147 | |
| 11148 | /* Override any GCC internal prototype to avoid an error. |
| 11149 | Use char because int might match the return type of a GCC |
| 11150 | builtin and then its argument prototype would still apply. */ |
| 11151 | #ifdef __cplusplus |
| 11152 | extern "C" |
| 11153 | #endif |
| 11154 | char jack_client_new (); |
| 11155 | int |
| 11156 | main () |
| 11157 | { |
| 11158 | return jack_client_new (); |
| 11159 | ; |
| 11160 | return 0; |
| 11161 | } |
| 11162 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11163 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11164 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11165 | dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Francois Gouget | 90a6fb0 | 2008-07-11 17:47:23 +0200 | [diff] [blame] | 11166 | dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11167 | *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11168 | esac |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11169 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11170 | rm -f core conftest.err conftest.$ac_objext \ |
| 11171 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11172 | LIBS=$ac_check_soname_save_LIBS |
| 11173 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11174 | if test "x$ac_cv_lib_soname_jack" = "x"; then : |
| 11175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11176 | $as_echo "not found" >&6; } |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11177 | |
| 11178 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11180 | $as_echo "$ac_cv_lib_soname_jack" >&6; } |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11181 | |
| 11182 | cat >>confdefs.h <<_ACEOF |
| 11183 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 11184 | _ACEOF |
| 11185 | |
| 11186 | |
| 11187 | fi |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11188 | fi |
| 11189 | |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11190 | if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes" |
| 11191 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11193 | $as_echo_n "checking for -lfontconfig... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11194 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11195 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11196 | else |
| 11197 | ac_check_soname_save_LIBS=$LIBS |
| 11198 | LIBS="-lfontconfig $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11200 | /* end confdefs.h. */ |
| 11201 | |
| 11202 | /* Override any GCC internal prototype to avoid an error. |
| 11203 | Use char because int might match the return type of a GCC |
| 11204 | builtin and then its argument prototype would still apply. */ |
| 11205 | #ifdef __cplusplus |
| 11206 | extern "C" |
| 11207 | #endif |
| 11208 | char FcInit (); |
| 11209 | int |
| 11210 | main () |
| 11211 | { |
| 11212 | return FcInit (); |
| 11213 | ; |
| 11214 | return 0; |
| 11215 | } |
| 11216 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11217 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11218 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11219 | dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11220 | 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'` ;; |
| 11221 | *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11222 | esac |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11223 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11224 | rm -f core conftest.err conftest.$ac_objext \ |
| 11225 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11226 | LIBS=$ac_check_soname_save_LIBS |
| 11227 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11228 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
| 11229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11230 | $as_echo "not found" >&6; } |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11231 | |
| 11232 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11234 | $as_echo "$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11235 | |
| 11236 | cat >>confdefs.h <<_ACEOF |
| 11237 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 11238 | _ACEOF |
| 11239 | |
| 11240 | |
| 11241 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11242 | elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno" |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11243 | then |
| 11244 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11245 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11246 | $as_unset ac_cv_header_fontconfig_fontconfig_h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11247 | for ac_header in fontconfig/fontconfig.h |
| 11248 | do : |
| 11249 | ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
| 11250 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then : |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11251 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11252 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11253 | _ACEOF |
| 11254 | |
| 11255 | fi |
| 11256 | |
| 11257 | done |
| 11258 | |
| 11259 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11260 | if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes" |
| 11261 | then |
| 11262 | FONTCONFIGINCL="$X_CFLAGS" |
| 11263 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11265 | $as_echo_n "checking for -lfontconfig... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11266 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11267 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11268 | else |
| 11269 | ac_check_soname_save_LIBS=$LIBS |
| 11270 | LIBS="-lfontconfig $X_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11272 | /* end confdefs.h. */ |
| 11273 | |
| 11274 | /* Override any GCC internal prototype to avoid an error. |
| 11275 | Use char because int might match the return type of a GCC |
| 11276 | builtin and then its argument prototype would still apply. */ |
| 11277 | #ifdef __cplusplus |
| 11278 | extern "C" |
| 11279 | #endif |
| 11280 | char FcInit (); |
| 11281 | int |
| 11282 | main () |
| 11283 | { |
| 11284 | return FcInit (); |
| 11285 | ; |
| 11286 | return 0; |
| 11287 | } |
| 11288 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11289 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11290 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11291 | dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11292 | 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'` ;; |
| 11293 | *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11294 | esac |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11295 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11296 | rm -f core conftest.err conftest.$ac_objext \ |
| 11297 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11298 | LIBS=$ac_check_soname_save_LIBS |
| 11299 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11300 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
| 11301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11302 | $as_echo "not found" >&6; } |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11303 | |
| 11304 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11306 | $as_echo "$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11307 | |
| 11308 | cat >>confdefs.h <<_ACEOF |
| 11309 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 11310 | _ACEOF |
| 11311 | |
| 11312 | |
| 11313 | fi |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11314 | fi |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11315 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11316 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11317 | case "x$with_fontconfig" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11318 | x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11319 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11320 | *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported. |
| 11321 | This is an error since --with-fontconfig was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11322 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11323 | fi |
| 11324 | |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11325 | if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes" |
| 11326 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11328 | $as_echo_n "checking for -lssl... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11329 | if test "${ac_cv_lib_soname_ssl+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11330 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11331 | else |
| 11332 | ac_check_soname_save_LIBS=$LIBS |
| 11333 | LIBS="-lssl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11335 | /* end confdefs.h. */ |
| 11336 | |
| 11337 | /* Override any GCC internal prototype to avoid an error. |
| 11338 | Use char because int might match the return type of a GCC |
| 11339 | builtin and then its argument prototype would still apply. */ |
| 11340 | #ifdef __cplusplus |
| 11341 | extern "C" |
| 11342 | #endif |
| 11343 | char SSL_library_init (); |
| 11344 | int |
| 11345 | main () |
| 11346 | { |
| 11347 | return SSL_library_init (); |
| 11348 | ; |
| 11349 | return 0; |
| 11350 | } |
| 11351 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11352 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11353 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11354 | dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11355 | 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'` ;; |
| 11356 | *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11357 | esac |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11358 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11359 | rm -f core conftest.err conftest.$ac_objext \ |
| 11360 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11361 | LIBS=$ac_check_soname_save_LIBS |
| 11362 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11363 | if test "x$ac_cv_lib_soname_ssl" = "x"; then : |
| 11364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11365 | $as_echo "not found" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11366 | |
| 11367 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11369 | $as_echo "$ac_cv_lib_soname_ssl" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11370 | |
| 11371 | cat >>confdefs.h <<_ACEOF |
| 11372 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 11373 | _ACEOF |
| 11374 | |
| 11375 | |
| 11376 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11378 | $as_echo_n "checking for -lcrypto... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11379 | if test "${ac_cv_lib_soname_crypto+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11380 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11381 | else |
| 11382 | ac_check_soname_save_LIBS=$LIBS |
| 11383 | LIBS="-lcrypto $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11385 | /* end confdefs.h. */ |
| 11386 | |
| 11387 | /* Override any GCC internal prototype to avoid an error. |
| 11388 | Use char because int might match the return type of a GCC |
| 11389 | builtin and then its argument prototype would still apply. */ |
| 11390 | #ifdef __cplusplus |
| 11391 | extern "C" |
| 11392 | #endif |
| 11393 | char BIO_new_socket (); |
| 11394 | int |
| 11395 | main () |
| 11396 | { |
| 11397 | return BIO_new_socket (); |
| 11398 | ; |
| 11399 | return 0; |
| 11400 | } |
| 11401 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11402 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11403 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11404 | dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11405 | 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'` ;; |
| 11406 | *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11407 | esac |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11408 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11409 | rm -f core conftest.err conftest.$ac_objext \ |
| 11410 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11411 | LIBS=$ac_check_soname_save_LIBS |
| 11412 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11413 | if test "x$ac_cv_lib_soname_crypto" = "x"; then : |
| 11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11415 | $as_echo "not found" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11416 | |
| 11417 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11419 | $as_echo "$ac_cv_lib_soname_crypto" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11420 | |
| 11421 | cat >>confdefs.h <<_ACEOF |
| 11422 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 11423 | _ACEOF |
| 11424 | |
| 11425 | |
| 11426 | fi |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11427 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11428 | if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11429 | case "x$with_openssl" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11430 | x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11431 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11432 | *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported. |
| 11433 | This is an error since --with-openssl was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11434 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11435 | fi |
| 11436 | |
Maarten Lankhorst | c186d8a | 2009-08-05 11:35:50 +0200 | [diff] [blame] | 11437 | if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes" |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11438 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5 |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11440 | $as_echo_n "checking for -lgsm... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11441 | if test "${ac_cv_lib_soname_gsm+set}" = set; then : |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11442 | $as_echo_n "(cached) " >&6 |
| 11443 | else |
| 11444 | ac_check_soname_save_LIBS=$LIBS |
| 11445 | LIBS="-lgsm $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11447 | /* end confdefs.h. */ |
| 11448 | |
| 11449 | /* Override any GCC internal prototype to avoid an error. |
| 11450 | Use char because int might match the return type of a GCC |
| 11451 | builtin and then its argument prototype would still apply. */ |
| 11452 | #ifdef __cplusplus |
| 11453 | extern "C" |
| 11454 | #endif |
| 11455 | char gsm_create (); |
| 11456 | int |
| 11457 | main () |
| 11458 | { |
| 11459 | return gsm_create (); |
| 11460 | ; |
| 11461 | return 0; |
| 11462 | } |
| 11463 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11464 | if ac_fn_c_try_link "$LINENO"; then : |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11465 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11466 | dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11467 | dylib) ac_cv_lib_soname_gsm=`otool -L conftest$ac_exeext | grep "libgsm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgsm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11468 | *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11469 | esac |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11470 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11471 | rm -f core conftest.err conftest.$ac_objext \ |
| 11472 | conftest$ac_exeext conftest.$ac_ext |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11473 | LIBS=$ac_check_soname_save_LIBS |
| 11474 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11475 | if test "x$ac_cv_lib_soname_gsm" = "x"; then : |
| 11476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11477 | $as_echo "not found" >&6; } |
| 11478 | |
| 11479 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5 |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11481 | $as_echo "$ac_cv_lib_soname_gsm" >&6; } |
| 11482 | |
| 11483 | cat >>confdefs.h <<_ACEOF |
| 11484 | #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm" |
| 11485 | _ACEOF |
| 11486 | |
| 11487 | |
| 11488 | fi |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11489 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11490 | if test "x$ac_cv_lib_soname_gsm" = "x"; then : |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 11491 | case "x$with_gsm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11492 | x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;; |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11493 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11494 | *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported. |
| 11495 | This is an error since --with-gsm was requested." "$LINENO" 5 ;; |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11496 | esac |
| 11497 | fi |
| 11498 | |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11499 | if test "$ac_cv_header_jpeglib_h" = "yes" |
| 11500 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11502 | $as_echo_n "checking for -ljpeg... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11503 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11504 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11505 | else |
| 11506 | ac_check_soname_save_LIBS=$LIBS |
| 11507 | LIBS="-ljpeg $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11509 | /* end confdefs.h. */ |
| 11510 | |
| 11511 | /* Override any GCC internal prototype to avoid an error. |
| 11512 | Use char because int might match the return type of a GCC |
| 11513 | builtin and then its argument prototype would still apply. */ |
| 11514 | #ifdef __cplusplus |
| 11515 | extern "C" |
| 11516 | #endif |
| 11517 | char jpeg_start_decompress (); |
| 11518 | int |
| 11519 | main () |
| 11520 | { |
| 11521 | return jpeg_start_decompress (); |
| 11522 | ; |
| 11523 | return 0; |
| 11524 | } |
| 11525 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11526 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11527 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11528 | dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11529 | 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'` ;; |
| 11530 | *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11531 | esac |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11532 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11533 | rm -f core conftest.err conftest.$ac_objext \ |
| 11534 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11535 | LIBS=$ac_check_soname_save_LIBS |
| 11536 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11537 | if test "x$ac_cv_lib_soname_jpeg" = "x"; then : |
| 11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11539 | $as_echo "not found" >&6; } |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11540 | |
| 11541 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11543 | $as_echo "$ac_cv_lib_soname_jpeg" >&6; } |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11544 | |
| 11545 | cat >>confdefs.h <<_ACEOF |
| 11546 | #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg" |
| 11547 | _ACEOF |
| 11548 | |
| 11549 | |
| 11550 | fi |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11551 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11552 | if test "x$ac_cv_lib_soname_jpeg" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11553 | case "x$with_jpeg" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11554 | x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11555 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11556 | *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported. |
| 11557 | This is an error since --with-jpeg was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11558 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11559 | fi |
| 11560 | |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11561 | if test "$ac_cv_header_png_h" = "yes" |
| 11562 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11564 | $as_echo_n "checking for -lpng... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11565 | if test "${ac_cv_lib_soname_png+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11566 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11567 | else |
| 11568 | ac_check_soname_save_LIBS=$LIBS |
Austin English | fe8879e | 2008-12-28 19:10:19 -0600 | [diff] [blame] | 11569 | LIBS="-lpng -lm -lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11571 | /* end confdefs.h. */ |
| 11572 | |
| 11573 | /* Override any GCC internal prototype to avoid an error. |
| 11574 | Use char because int might match the return type of a GCC |
| 11575 | builtin and then its argument prototype would still apply. */ |
| 11576 | #ifdef __cplusplus |
| 11577 | extern "C" |
| 11578 | #endif |
| 11579 | char png_create_read_struct (); |
| 11580 | int |
| 11581 | main () |
| 11582 | { |
| 11583 | return png_create_read_struct (); |
| 11584 | ; |
| 11585 | return 0; |
| 11586 | } |
| 11587 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11588 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11589 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11590 | dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11591 | dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11592 | *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11593 | esac |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11594 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11595 | rm -f core conftest.err conftest.$ac_objext \ |
| 11596 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11597 | LIBS=$ac_check_soname_save_LIBS |
| 11598 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11599 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
| 11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11601 | $as_echo "not found" >&6; } |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11602 | |
| 11603 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11605 | $as_echo "$ac_cv_lib_soname_png" >&6; } |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11606 | |
| 11607 | cat >>confdefs.h <<_ACEOF |
| 11608 | #define SONAME_LIBPNG "$ac_cv_lib_soname_png" |
| 11609 | _ACEOF |
| 11610 | |
| 11611 | |
| 11612 | fi |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5 |
| 11614 | $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; } |
| 11615 | if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then : |
| 11616 | $as_echo_n "(cached) " >&6 |
| 11617 | else |
| 11618 | ac_check_lib_save_LIBS=$LIBS |
| 11619 | LIBS="-lpng -lm -lz $LIBS" |
| 11620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11621 | /* end confdefs.h. */ |
| 11622 | |
| 11623 | /* Override any GCC internal prototype to avoid an error. |
| 11624 | Use char because int might match the return type of a GCC |
| 11625 | builtin and then its argument prototype would still apply. */ |
| 11626 | #ifdef __cplusplus |
| 11627 | extern "C" |
| 11628 | #endif |
| 11629 | char png_set_expand_gray_1_2_4_to_8 (); |
| 11630 | int |
| 11631 | main () |
| 11632 | { |
| 11633 | return png_set_expand_gray_1_2_4_to_8 (); |
| 11634 | ; |
| 11635 | return 0; |
| 11636 | } |
| 11637 | _ACEOF |
| 11638 | if ac_fn_c_try_link "$LINENO"; then : |
| 11639 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes |
| 11640 | else |
| 11641 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no |
| 11642 | fi |
| 11643 | rm -f core conftest.err conftest.$ac_objext \ |
| 11644 | conftest$ac_exeext conftest.$ac_ext |
| 11645 | LIBS=$ac_check_lib_save_LIBS |
| 11646 | fi |
| 11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5 |
| 11648 | $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; } |
| 11649 | if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then : |
| 11650 | |
| 11651 | $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h |
| 11652 | |
| 11653 | |
| 11654 | fi |
| 11655 | |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11656 | elif test -n "$X_CFLAGS" -a "x$with_png" != "xno" |
| 11657 | then |
| 11658 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11659 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11660 | $as_unset ac_cv_header_png_h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11661 | for ac_header in png.h |
| 11662 | do : |
| 11663 | ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" |
| 11664 | if test "x$ac_cv_header_png_h" = x""yes; then : |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11665 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11666 | #define HAVE_PNG_H 1 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11667 | _ACEOF |
| 11668 | |
| 11669 | fi |
| 11670 | |
| 11671 | done |
| 11672 | |
| 11673 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11674 | if test "$ac_cv_header_png_h" = "yes" |
| 11675 | then |
| 11676 | PNGINCL="$X_CFLAGS" |
| 11677 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11679 | $as_echo_n "checking for -lpng... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11680 | if test "${ac_cv_lib_soname_png+set}" = set; then : |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11681 | $as_echo_n "(cached) " >&6 |
| 11682 | else |
| 11683 | ac_check_soname_save_LIBS=$LIBS |
| 11684 | LIBS="-lpng $X_LIBS -lm -lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11686 | /* end confdefs.h. */ |
| 11687 | |
| 11688 | /* Override any GCC internal prototype to avoid an error. |
| 11689 | Use char because int might match the return type of a GCC |
| 11690 | builtin and then its argument prototype would still apply. */ |
| 11691 | #ifdef __cplusplus |
| 11692 | extern "C" |
| 11693 | #endif |
| 11694 | char png_create_read_struct (); |
| 11695 | int |
| 11696 | main () |
| 11697 | { |
| 11698 | return png_create_read_struct (); |
| 11699 | ; |
| 11700 | return 0; |
| 11701 | } |
| 11702 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11703 | if ac_fn_c_try_link "$LINENO"; then : |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11704 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11705 | dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11706 | dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11707 | *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11708 | esac |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11709 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11710 | rm -f core conftest.err conftest.$ac_objext \ |
| 11711 | conftest$ac_exeext conftest.$ac_ext |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11712 | LIBS=$ac_check_soname_save_LIBS |
| 11713 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11714 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
| 11715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11716 | $as_echo "not found" >&6; } |
| 11717 | |
| 11718 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11720 | $as_echo "$ac_cv_lib_soname_png" >&6; } |
| 11721 | |
| 11722 | cat >>confdefs.h <<_ACEOF |
| 11723 | #define SONAME_LIBPNG "$ac_cv_lib_soname_png" |
| 11724 | _ACEOF |
| 11725 | |
| 11726 | |
| 11727 | fi |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5 |
| 11729 | $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; } |
| 11730 | if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then : |
| 11731 | $as_echo_n "(cached) " >&6 |
| 11732 | else |
| 11733 | ac_check_lib_save_LIBS=$LIBS |
| 11734 | LIBS="-lpng $X_LIBS -lm -lz $LIBS" |
| 11735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11736 | /* end confdefs.h. */ |
| 11737 | |
| 11738 | /* Override any GCC internal prototype to avoid an error. |
| 11739 | Use char because int might match the return type of a GCC |
| 11740 | builtin and then its argument prototype would still apply. */ |
| 11741 | #ifdef __cplusplus |
| 11742 | extern "C" |
| 11743 | #endif |
| 11744 | char png_set_expand_gray_1_2_4_to_8 (); |
| 11745 | int |
| 11746 | main () |
| 11747 | { |
| 11748 | return png_set_expand_gray_1_2_4_to_8 (); |
| 11749 | ; |
| 11750 | return 0; |
| 11751 | } |
| 11752 | _ACEOF |
| 11753 | if ac_fn_c_try_link "$LINENO"; then : |
| 11754 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes |
| 11755 | else |
| 11756 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no |
| 11757 | fi |
| 11758 | rm -f core conftest.err conftest.$ac_objext \ |
| 11759 | conftest$ac_exeext conftest.$ac_ext |
| 11760 | LIBS=$ac_check_lib_save_LIBS |
| 11761 | fi |
| 11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5 |
| 11763 | $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; } |
| 11764 | if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then : |
| 11765 | $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h |
| 11766 | |
| 11767 | fi |
| 11768 | |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11769 | fi |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11770 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11771 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11772 | case "x$with_png" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11773 | x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11774 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11775 | *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported. |
| 11776 | This is an error since --with-png was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11777 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11778 | fi |
| 11779 | |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11780 | if test "$ac_cv_header_tiffio_h" = "yes" |
| 11781 | then |
| 11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5 |
| 11783 | $as_echo_n "checking for -ltiff... " >&6; } |
| 11784 | if test "${ac_cv_lib_soname_tiff+set}" = set; then : |
| 11785 | $as_echo_n "(cached) " >&6 |
| 11786 | else |
| 11787 | ac_check_soname_save_LIBS=$LIBS |
| 11788 | LIBS="-ltiff $LIBS" |
| 11789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11790 | /* end confdefs.h. */ |
| 11791 | |
| 11792 | /* Override any GCC internal prototype to avoid an error. |
| 11793 | Use char because int might match the return type of a GCC |
| 11794 | builtin and then its argument prototype would still apply. */ |
| 11795 | #ifdef __cplusplus |
| 11796 | extern "C" |
| 11797 | #endif |
| 11798 | char TIFFClientOpen (); |
| 11799 | int |
| 11800 | main () |
| 11801 | { |
| 11802 | return TIFFClientOpen (); |
| 11803 | ; |
| 11804 | return 0; |
| 11805 | } |
| 11806 | _ACEOF |
| 11807 | if ac_fn_c_try_link "$LINENO"; then : |
| 11808 | case "$LIBEXT" in |
| 11809 | dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
| 11810 | dylib) ac_cv_lib_soname_tiff=`otool -L conftest$ac_exeext | grep "libtiff\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libtiff\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11811 | *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11812 | esac |
| 11813 | fi |
| 11814 | rm -f core conftest.err conftest.$ac_objext \ |
| 11815 | conftest$ac_exeext conftest.$ac_ext |
| 11816 | LIBS=$ac_check_soname_save_LIBS |
| 11817 | fi |
| 11818 | if test "x$ac_cv_lib_soname_tiff" = "x"; then : |
| 11819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11820 | $as_echo "not found" >&6; } |
| 11821 | |
| 11822 | else |
| 11823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5 |
| 11824 | $as_echo "$ac_cv_lib_soname_tiff" >&6; } |
| 11825 | |
| 11826 | cat >>confdefs.h <<_ACEOF |
| 11827 | #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff" |
| 11828 | _ACEOF |
| 11829 | |
| 11830 | |
| 11831 | fi |
| 11832 | fi |
| 11833 | if test "x$ac_cv_lib_soname_tiff" = "x"; then : |
| 11834 | case "x$with_tiff" in |
| 11835 | x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;; |
| 11836 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11837 | *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported. |
| 11838 | This is an error since --with-tiff was requested." "$LINENO" 5 ;; |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11839 | esac |
| 11840 | fi |
| 11841 | |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11842 | if test "$ac_cv_header_mpg123_h" = "yes" |
| 11843 | then |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5 |
| 11845 | $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; } |
| 11846 | if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then : |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11847 | $as_echo_n "(cached) " >&6 |
| 11848 | else |
| 11849 | ac_check_lib_save_LIBS=$LIBS |
| 11850 | LIBS="-lmpg123 $LIBS" |
| 11851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11852 | /* end confdefs.h. */ |
| 11853 | |
| 11854 | /* Override any GCC internal prototype to avoid an error. |
| 11855 | Use char because int might match the return type of a GCC |
| 11856 | builtin and then its argument prototype would still apply. */ |
| 11857 | #ifdef __cplusplus |
| 11858 | extern "C" |
| 11859 | #endif |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11860 | char mpg123_feed (); |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11861 | int |
| 11862 | main () |
| 11863 | { |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11864 | return mpg123_feed (); |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11865 | ; |
| 11866 | return 0; |
| 11867 | } |
| 11868 | _ACEOF |
| 11869 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11870 | ac_cv_lib_mpg123_mpg123_feed=yes |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11871 | else |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11872 | ac_cv_lib_mpg123_mpg123_feed=no |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11873 | fi |
| 11874 | rm -f core conftest.err conftest.$ac_objext \ |
| 11875 | conftest$ac_exeext conftest.$ac_ext |
| 11876 | LIBS=$ac_check_lib_save_LIBS |
| 11877 | fi |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5 |
| 11879 | $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; } |
| 11880 | if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then : |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11881 | LIBMPG123="-lmpg123" |
| 11882 | |
| 11883 | fi |
| 11884 | |
| 11885 | fi |
Aric Stewart | 4430ab4 | 2010-03-17 10:58:32 -0500 | [diff] [blame] | 11886 | if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then : |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11887 | case "x$with_mpg123" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11888 | x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;; |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11889 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11890 | *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported. |
| 11891 | This is an error since --with-mpg123 was requested." "$LINENO" 5 ;; |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11892 | esac |
| 11893 | fi |
Kristofer Henriksson | c58eff6 | 2010-05-24 15:04:42 -0400 | [diff] [blame] | 11894 | test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_header_AudioToolbox_AudioConverter_h" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no} |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11895 | |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11896 | if test "$ac_cv_header_AL_al_h" = "yes" |
| 11897 | then |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5 |
| 11899 | $as_echo_n "checking for -lopenal... " >&6; } |
| 11900 | if test "${ac_cv_lib_soname_openal+set}" = set; then : |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11901 | $as_echo_n "(cached) " >&6 |
| 11902 | else |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11903 | ac_check_soname_save_LIBS=$LIBS |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11904 | LIBS="-lopenal $LIBS" |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11906 | /* end confdefs.h. */ |
| 11907 | |
| 11908 | /* Override any GCC internal prototype to avoid an error. |
| 11909 | Use char because int might match the return type of a GCC |
| 11910 | builtin and then its argument prototype would still apply. */ |
| 11911 | #ifdef __cplusplus |
| 11912 | extern "C" |
| 11913 | #endif |
| 11914 | char alGetSource3i (); |
| 11915 | int |
| 11916 | main () |
| 11917 | { |
| 11918 | return alGetSource3i (); |
| 11919 | ; |
| 11920 | return 0; |
| 11921 | } |
| 11922 | _ACEOF |
| 11923 | if ac_fn_c_try_link "$LINENO"; then : |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11924 | case "$LIBEXT" in |
| 11925 | dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
| 11926 | dylib) ac_cv_lib_soname_openal=`otool -L conftest$ac_exeext | grep "libopenal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libopenal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11927 | *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11928 | esac |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11929 | fi |
| 11930 | rm -f core conftest.err conftest.$ac_objext \ |
| 11931 | conftest$ac_exeext conftest.$ac_ext |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11932 | LIBS=$ac_check_soname_save_LIBS |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11933 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11934 | if test "x$ac_cv_lib_soname_openal" = "x"; then : |
| 11935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11936 | $as_echo "not found" >&6; } |
| 11937 | |
| 11938 | else |
| 11939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5 |
| 11940 | $as_echo "$ac_cv_lib_soname_openal" >&6; } |
| 11941 | |
| 11942 | cat >>confdefs.h <<_ACEOF |
| 11943 | #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal" |
| 11944 | _ACEOF |
| 11945 | |
| 11946 | LIBOPENAL="-lopenal" |
| 11947 | |
| 11948 | ac_cv_lib_openal=yes |
| 11949 | |
| 11950 | cat >>confdefs.h <<_ACEOF |
| 11951 | #define HAVE_OPENAL 1 |
| 11952 | _ACEOF |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11953 | |
| 11954 | fi |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11955 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11956 | if test "x$ac_cv_lib_openal" != xyes; then : |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11957 | case "x$with_openal" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11958 | x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;; |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11959 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11960 | *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported. |
| 11961 | This is an error since --with-openal was requested." "$LINENO" 5 ;; |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11962 | esac |
| 11963 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11964 | test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no} |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11965 | |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11966 | if test "$ac_cv_header_kstat_h" = "yes" |
| 11967 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11969 | $as_echo_n "checking for kstat_open in -lkstat... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11970 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11971 | $as_echo_n "(cached) " >&6 |
| 11972 | else |
| 11973 | ac_check_lib_save_LIBS=$LIBS |
| 11974 | LIBS="-lkstat $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11976 | /* end confdefs.h. */ |
| 11977 | |
| 11978 | /* Override any GCC internal prototype to avoid an error. |
| 11979 | Use char because int might match the return type of a GCC |
| 11980 | builtin and then its argument prototype would still apply. */ |
| 11981 | #ifdef __cplusplus |
| 11982 | extern "C" |
| 11983 | #endif |
| 11984 | char kstat_open (); |
| 11985 | int |
| 11986 | main () |
| 11987 | { |
| 11988 | return kstat_open (); |
| 11989 | ; |
| 11990 | return 0; |
| 11991 | } |
| 11992 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11993 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11994 | ac_cv_lib_kstat_kstat_open=yes |
| 11995 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11996 | ac_cv_lib_kstat_kstat_open=no |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11997 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11998 | rm -f core conftest.err conftest.$ac_objext \ |
| 11999 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 12000 | LIBS=$ac_check_lib_save_LIBS |
| 12001 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 12003 | $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12004 | if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 12005 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12006 | $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 12007 | |
| 12008 | LIBKSTAT="-lkstat" |
| 12009 | |
| 12010 | fi |
| 12011 | |
| 12012 | fi |
| 12013 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12015 | $as_echo_n "checking for -lodbc... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12016 | if test "${ac_cv_lib_soname_odbc+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12017 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12018 | else |
| 12019 | ac_check_soname_save_LIBS=$LIBS |
| 12020 | LIBS="-lodbc $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12022 | /* end confdefs.h. */ |
| 12023 | |
| 12024 | /* Override any GCC internal prototype to avoid an error. |
| 12025 | Use char because int might match the return type of a GCC |
| 12026 | builtin and then its argument prototype would still apply. */ |
| 12027 | #ifdef __cplusplus |
| 12028 | extern "C" |
| 12029 | #endif |
| 12030 | char SQLConnect (); |
| 12031 | int |
| 12032 | main () |
| 12033 | { |
| 12034 | return SQLConnect (); |
| 12035 | ; |
| 12036 | return 0; |
| 12037 | } |
| 12038 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12039 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12040 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 12041 | dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12042 | dylib) ac_cv_lib_soname_odbc=`otool -L conftest$ac_exeext | grep "libodbc\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libodbc\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 12043 | *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 12044 | esac |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12045 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12046 | rm -f core conftest.err conftest.$ac_objext \ |
| 12047 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12048 | LIBS=$ac_check_soname_save_LIBS |
| 12049 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12050 | if test "x$ac_cv_lib_soname_odbc" = "x"; then : |
| 12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12052 | $as_echo "not found" >&6; } |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12053 | cat >>confdefs.h <<_ACEOF |
| 12054 | #define SONAME_LIBODBC "libodbc.$LIBEXT" |
| 12055 | _ACEOF |
| 12056 | |
| 12057 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12059 | $as_echo "$ac_cv_lib_soname_odbc" >&6; } |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12060 | |
| 12061 | cat >>confdefs.h <<_ACEOF |
| 12062 | #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc" |
| 12063 | _ACEOF |
| 12064 | |
| 12065 | |
| 12066 | fi |
| 12067 | |
Michael Stefaniuc | a2f0750 | 2010-12-17 11:11:42 +0100 | [diff] [blame] | 12068 | if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \ |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 12069 | "$ac_cv_header_sys_soundcard_h" != "yes" -a \ |
| 12070 | "$ac_cv_header_machine_soundcard_h" != "yes" -a \ |
| 12071 | "$ac_cv_header_soundcard_h" != "yes" -a \ |
Michael Stefaniuc | a2f0750 | 2010-12-17 11:11:42 +0100 | [diff] [blame] | 12072 | "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 12073 | then |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 12074 | as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent." |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 12075 | fi |
| 12076 | |
| 12077 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12078 | EXTRACFLAGS="" |
| 12079 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12080 | if test "x${GCC}" = "xyes" |
| 12081 | then |
Hans Leidekker | d17b232 | 2004-01-06 21:37:44 +0000 | [diff] [blame] | 12082 | EXTRACFLAGS="-Wall -pipe" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12083 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12085 | $as_echo_n "checking for gcc strength-reduce bug... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12086 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12087 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12088 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12089 | if test "$cross_compiling" = yes; then : |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12090 | ac_cv_c_gcc_strength_bug="yes" |
| 12091 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12093 | /* end confdefs.h. */ |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12094 | int L[4] = {0,1,2,3}; |
| 12095 | int |
| 12096 | main () |
| 12097 | { |
| 12098 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12099 | unsigned int B = 3; |
| 12100 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 12101 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 12102 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 12103 | L[i] = 4; |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12104 | return (Array[1] != -2 || L[2] != 3) |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12105 | ; |
| 12106 | return 0; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12107 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12108 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12109 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12110 | ac_cv_c_gcc_strength_bug="no" |
| 12111 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12112 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12113 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12114 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12115 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12116 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12117 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12118 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12120 | $as_echo "$ac_cv_c_gcc_strength_bug" >&6; } |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12121 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 12122 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12123 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12124 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12125 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12127 | $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12128 | if test "${ac_cv_cflags__fno_builtin+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12129 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12130 | else |
| 12131 | ac_wine_try_cflags_saved=$CFLAGS |
| 12132 | CFLAGS="$CFLAGS -fno-builtin" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12134 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12135 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12136 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12137 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12138 | ac_cv_cflags__fno_builtin=yes |
| 12139 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12140 | ac_cv_cflags__fno_builtin=no |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12141 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12142 | rm -f core conftest.err conftest.$ac_objext \ |
| 12143 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12144 | CFLAGS=$ac_wine_try_cflags_saved |
| 12145 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12147 | $as_echo "$ac_cv_cflags__fno_builtin" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12148 | if test $ac_cv_cflags__fno_builtin = yes; then : |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12149 | BUILTINFLAG="-fno-builtin" |
| 12150 | |
| 12151 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12153 | $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12154 | if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12155 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12156 | else |
| 12157 | ac_wine_try_cflags_saved=$CFLAGS |
| 12158 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12160 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12161 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12162 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12163 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12164 | ac_cv_cflags__fno_strict_aliasing=yes |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12165 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12166 | ac_cv_cflags__fno_strict_aliasing=no |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12167 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12168 | rm -f core conftest.err conftest.$ac_objext \ |
| 12169 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12170 | CFLAGS=$ac_wine_try_cflags_saved |
| 12171 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12173 | $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12174 | if test $ac_cv_cflags__fno_strict_aliasing = yes; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12175 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 12176 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12178 | $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12179 | if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12180 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12181 | else |
| 12182 | ac_wine_try_cflags_saved=$CFLAGS |
| 12183 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12185 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12186 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12187 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12188 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12189 | ac_cv_cflags__Wdeclaration_after_statement=yes |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12190 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12191 | ac_cv_cflags__Wdeclaration_after_statement=no |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12192 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12193 | rm -f core conftest.err conftest.$ac_objext \ |
| 12194 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12195 | CFLAGS=$ac_wine_try_cflags_saved |
| 12196 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12198 | $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12199 | if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12200 | EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement" |
| 12201 | fi |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 12202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5 |
| 12203 | $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; } |
| 12204 | if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then : |
| 12205 | $as_echo_n "(cached) " >&6 |
| 12206 | else |
| 12207 | ac_wine_try_cflags_saved=$CFLAGS |
| 12208 | CFLAGS="$CFLAGS -Wstrict-prototypes" |
| 12209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12210 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12211 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 12212 | _ACEOF |
| 12213 | if ac_fn_c_try_link "$LINENO"; then : |
| 12214 | ac_cv_cflags__Wstrict_prototypes=yes |
| 12215 | else |
| 12216 | ac_cv_cflags__Wstrict_prototypes=no |
| 12217 | fi |
| 12218 | rm -f core conftest.err conftest.$ac_objext \ |
| 12219 | conftest$ac_exeext conftest.$ac_ext |
| 12220 | CFLAGS=$ac_wine_try_cflags_saved |
| 12221 | fi |
| 12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5 |
| 12223 | $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; } |
| 12224 | if test $ac_cv_cflags__Wstrict_prototypes = yes; then : |
| 12225 | EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes" |
| 12226 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12228 | $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12229 | if test "${ac_cv_cflags__Wtype_limits+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12230 | $as_echo_n "(cached) " >&6 |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12231 | else |
| 12232 | ac_wine_try_cflags_saved=$CFLAGS |
| 12233 | CFLAGS="$CFLAGS -Wtype-limits" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12235 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12236 | int main(int argc, char **argv) { return 0; } |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12237 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12238 | if ac_fn_c_try_link "$LINENO"; then : |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12239 | ac_cv_cflags__Wtype_limits=yes |
| 12240 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12241 | ac_cv_cflags__Wtype_limits=no |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12242 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12243 | rm -f core conftest.err conftest.$ac_objext \ |
| 12244 | conftest$ac_exeext conftest.$ac_ext |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12245 | CFLAGS=$ac_wine_try_cflags_saved |
| 12246 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12248 | $as_echo "$ac_cv_cflags__Wtype_limits" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12249 | if test $ac_cv_cflags__Wtype_limits = yes; then : |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12250 | EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits" |
| 12251 | fi |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5 |
| 12253 | $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; } |
| 12254 | if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then : |
| 12255 | $as_echo_n "(cached) " >&6 |
| 12256 | else |
| 12257 | ac_wine_try_cflags_saved=$CFLAGS |
| 12258 | CFLAGS="$CFLAGS -Wwrite-strings" |
| 12259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12260 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12261 | int main(int argc, char **argv) { return 0; } |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12262 | _ACEOF |
| 12263 | if ac_fn_c_try_link "$LINENO"; then : |
| 12264 | ac_cv_cflags__Wwrite_strings=yes |
| 12265 | else |
| 12266 | ac_cv_cflags__Wwrite_strings=no |
| 12267 | fi |
| 12268 | rm -f core conftest.err conftest.$ac_objext \ |
| 12269 | conftest$ac_exeext conftest.$ac_ext |
| 12270 | CFLAGS=$ac_wine_try_cflags_saved |
| 12271 | fi |
| 12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5 |
| 12273 | $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; } |
| 12274 | if test $ac_cv_cflags__Wwrite_strings = yes; then : |
| 12275 | EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings" |
| 12276 | fi |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12277 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12278 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12279 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5 |
| 12281 | $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12282 | if test "${ac_cv_c_string_h_warnings+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12283 | $as_echo_n "(cached) " >&6 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12284 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12286 | /* end confdefs.h. */ |
| 12287 | #include <string.h> |
| 12288 | int |
| 12289 | main () |
| 12290 | { |
| 12291 | |
| 12292 | ; |
| 12293 | return 0; |
| 12294 | } |
| 12295 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12296 | if ac_fn_c_try_compile "$LINENO"; then : |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12297 | ac_cv_c_string_h_warnings=no |
| 12298 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12299 | ac_cv_c_string_h_warnings=yes |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12300 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12302 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12304 | $as_echo "$ac_cv_c_string_h_warnings" >&6; } |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12305 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12306 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 12307 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12308 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12309 | fi |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12310 | |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12311 | saved_CFLAGS="$CFLAGS" |
| 12312 | CFLAGS="$CFLAGS -Wlogical-op -Werror" |
| 12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5 |
| 12314 | $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; } |
| 12315 | if test "${ac_cv_c_logicalop_noisy+set}" = set; then : |
| 12316 | $as_echo_n "(cached) " >&6 |
| 12317 | else |
| 12318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12319 | /* end confdefs.h. */ |
| 12320 | #include <string.h> |
| 12321 | int |
| 12322 | main () |
| 12323 | { |
| 12324 | char*f(const char *h,char n) {return strchr(h,n);} |
| 12325 | ; |
| 12326 | return 0; |
| 12327 | } |
| 12328 | _ACEOF |
| 12329 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12330 | ac_cv_c_logicalop_noisy=no |
| 12331 | else |
| 12332 | ac_cv_c_logicalop_noisy=yes |
| 12333 | fi |
| 12334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12335 | fi |
| 12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5 |
| 12337 | $as_echo "$ac_cv_c_logicalop_noisy" >&6; } |
| 12338 | CFLAGS="$saved_CFLAGS" |
| 12339 | if test "$ac_cv_c_logicalop_noisy" = "no" |
| 12340 | then |
| 12341 | EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op" |
| 12342 | fi |
| 12343 | |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 12344 | if test "x$enable_maintainer_mode" = "xyes" |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12345 | then |
| 12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5 |
| 12347 | $as_echo_n "checking whether the compiler supports -Werror... " >&6; } |
| 12348 | if test "${ac_cv_cflags__Werror+set}" = set; then : |
| 12349 | $as_echo_n "(cached) " >&6 |
| 12350 | else |
| 12351 | ac_wine_try_cflags_saved=$CFLAGS |
| 12352 | CFLAGS="$CFLAGS -Werror" |
| 12353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12354 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12355 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12356 | _ACEOF |
| 12357 | if ac_fn_c_try_link "$LINENO"; then : |
| 12358 | ac_cv_cflags__Werror=yes |
| 12359 | else |
| 12360 | ac_cv_cflags__Werror=no |
| 12361 | fi |
| 12362 | rm -f core conftest.err conftest.$ac_objext \ |
| 12363 | conftest$ac_exeext conftest.$ac_ext |
| 12364 | CFLAGS=$ac_wine_try_cflags_saved |
| 12365 | fi |
| 12366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5 |
| 12367 | $as_echo "$ac_cv_cflags__Werror" >&6; } |
| 12368 | if test $ac_cv_cflags__Werror = yes; then : |
| 12369 | EXTRACFLAGS="$EXTRACFLAGS -Werror" |
| 12370 | fi |
| 12371 | fi |
Stefan Dösinger | fdac5e5 | 2009-09-12 14:08:53 +0200 | [diff] [blame] | 12372 | |
| 12373 | saved_CFLAGS="$CFLAGS" |
| 12374 | CFLAGS="$CFLAGS -Werror" |
| 12375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5 |
| 12376 | $as_echo_n "checking for ms_hook_prologue attribute... " >&6; } |
| 12377 | if test "${ac_cv_have_ms_hook_prologue+set}" = set; then : |
| 12378 | $as_echo_n "(cached) " >&6 |
| 12379 | else |
| 12380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12381 | /* end confdefs.h. */ |
| 12382 | int __attribute__((__ms_hook_prologue__)) test(void) { return 0; } |
| 12383 | int |
| 12384 | main () |
| 12385 | { |
| 12386 | |
| 12387 | ; |
| 12388 | return 0; |
| 12389 | } |
| 12390 | _ACEOF |
| 12391 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12392 | ac_cv_have_ms_hook_prologue="yes" |
| 12393 | else |
| 12394 | ac_cv_have_ms_hook_prologue="no" |
| 12395 | fi |
| 12396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12397 | fi |
| 12398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5 |
| 12399 | $as_echo "$ac_cv_have_ms_hook_prologue" >&6; } |
| 12400 | CFLAGS="$saved_CFLAGS" |
| 12401 | if test "$ac_cv_have_ms_hook_prologue" = "yes" |
| 12402 | then |
| 12403 | |
| 12404 | $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h |
| 12405 | |
| 12406 | else |
| 12407 | $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h |
| 12408 | |
| 12409 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12410 | fi |
| 12411 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12412 | |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5 |
| 12414 | $as_echo_n "checking for the need to disable Fortify... " >&6; } |
| 12415 | if test "${ac_cv_c_fortify_enabled+set}" = set; then : |
| 12416 | $as_echo_n "(cached) " >&6 |
| 12417 | else |
| 12418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12419 | /* end confdefs.h. */ |
| 12420 | #include <string.h> |
| 12421 | int |
| 12422 | main () |
| 12423 | { |
| 12424 | #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0 |
| 12425 | #error Fortify enabled |
| 12426 | #endif |
| 12427 | ; |
| 12428 | return 0; |
| 12429 | } |
| 12430 | _ACEOF |
| 12431 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12432 | ac_cv_c_fortify_enabled=no |
| 12433 | else |
| 12434 | ac_cv_c_fortify_enabled=yes |
| 12435 | fi |
| 12436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12437 | fi |
| 12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5 |
| 12439 | $as_echo "$ac_cv_c_fortify_enabled" >&6; } |
| 12440 | if test "$ac_cv_c_fortify_enabled" = yes |
| 12441 | then |
Alexandre Julliard | b10fb86 | 2010-10-29 14:25:01 +0200 | [diff] [blame] | 12442 | CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0" |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12443 | fi |
| 12444 | |
| 12445 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5 |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12447 | $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12448 | if test "${ac_cv_c_extern_prefix+set}" = set; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12449 | $as_echo_n "(cached) " >&6 |
| 12450 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12452 | /* end confdefs.h. */ |
| 12453 | extern int ac_test; |
| 12454 | int |
| 12455 | main () |
| 12456 | { |
| 12457 | asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1 |
| 12458 | ; |
| 12459 | return 0; |
| 12460 | } |
| 12461 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12462 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12463 | ac_cv_c_extern_prefix="yes" |
| 12464 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12465 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12466 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12467 | rm -f core conftest.err conftest.$ac_objext \ |
| 12468 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12469 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5 |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12471 | $as_echo "$ac_cv_c_extern_prefix" >&6; } |
| 12472 | |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12473 | case $host_cpu in |
| 12474 | *i[3456789]86*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5 |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12476 | $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12477 | if test "${ac_cv_c_stdcall_suffix+set}" = set; then : |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12478 | $as_echo_n "(cached) " >&6 |
| 12479 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12481 | /* end confdefs.h. */ |
| 12482 | #ifndef _MSC_VER |
| 12483 | #define __stdcall __attribute__((__stdcall__)) |
| 12484 | #endif |
| 12485 | int __stdcall ac_test(int i) { return i; } |
| 12486 | int |
| 12487 | main () |
| 12488 | { |
| 12489 | asm("jmp _ac_test@4"); if (ac_test(1)) return 1 |
| 12490 | ; |
| 12491 | return 0; |
| 12492 | } |
| 12493 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12494 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12495 | ac_cv_c_stdcall_suffix="yes" |
| 12496 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12497 | ac_cv_c_stdcall_suffix="no" |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12498 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12499 | rm -f core conftest.err conftest.$ac_objext \ |
| 12500 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12501 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5 |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12503 | $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;; |
| 12504 | *) ac_cv_c_stdcall_suffix="no" ;; |
| 12505 | esac |
| 12506 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12507 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12508 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 12509 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12510 | $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12511 | |
| 12512 | asm_name_prefix="_" |
| 12513 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12514 | $as_echo "#define __ASM_NAME(name) name" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12515 | |
| 12516 | asm_name_prefix="" |
| 12517 | fi |
| 12518 | |
| 12519 | |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12520 | if test "$ac_cv_c_stdcall_suffix" = "yes" |
| 12521 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12522 | $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12523 | |
| 12524 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12525 | $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12526 | |
| 12527 | fi |
| 12528 | |
| 12529 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12531 | $as_echo_n "checking how to define a function in assembly code... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12532 | if test "${ac_cv_asm_func_def+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12533 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12534 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12536 | /* end confdefs.h. */ |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12537 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12538 | int |
| 12539 | main () |
| 12540 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12541 | asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12542 | ; |
| 12543 | return 0; |
| 12544 | } |
| 12545 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12546 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12547 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12548 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12550 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12551 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12552 | int |
| 12553 | main () |
| 12554 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12555 | 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] | 12556 | ; |
| 12557 | return 0; |
| 12558 | } |
| 12559 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12560 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12561 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12562 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12564 | /* end confdefs.h. */ |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12565 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12566 | int |
| 12567 | main () |
| 12568 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12569 | 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] | 12570 | ; |
| 12571 | return 0; |
| 12572 | } |
| 12573 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12574 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12575 | ac_cv_asm_func_def=".type 2" |
| 12576 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12577 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12578 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12579 | rm -f core conftest.err conftest.$ac_objext \ |
| 12580 | conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12581 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12582 | rm -f core conftest.err conftest.$ac_objext \ |
| 12583 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12584 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12585 | rm -f core conftest.err conftest.$ac_objext \ |
| 12586 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12587 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12589 | $as_echo "$ac_cv_asm_func_def" >&6; } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12590 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12591 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12592 | case "$ac_cv_asm_func_def" in |
| 12593 | ".def") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12594 | $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12595 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12596 | asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12597 | ".type @function") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12598 | $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12599 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12600 | asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12601 | ".type 2") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12602 | $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12603 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12604 | asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12605 | *) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12606 | $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12607 | |
| 12608 | asm_func_header="" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12609 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12610 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5 |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12612 | $as_echo_n "checking whether asm() works outside of functions... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12613 | if test "${ac_cv_c_asm_outside_funcs+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12614 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12615 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12617 | /* end confdefs.h. */ |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12618 | asm(".text\n\t.long 0"); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12619 | int |
| 12620 | main () |
| 12621 | { |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12622 | |
| 12623 | ; |
| 12624 | return 0; |
| 12625 | } |
| 12626 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12627 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12628 | ac_cv_c_asm_outside_funcs="yes" |
| 12629 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12630 | ac_cv_c_asm_outside_funcs="no" |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12631 | fi |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12633 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5 |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12635 | $as_echo "$ac_cv_c_asm_outside_funcs" >&6; } |
| 12636 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5 |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12638 | $as_echo_n "checking whether .previous is supported in assembly code... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12639 | if test "${ac_cv_c_dot_previous+set}" = set; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12640 | $as_echo_n "(cached) " >&6 |
| 12641 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12643 | /* end confdefs.h. */ |
| 12644 | |
| 12645 | int |
| 12646 | main () |
| 12647 | { |
| 12648 | asm(".text\nac_test:\t.long 0\n\t.previous"); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12649 | ; |
| 12650 | return 0; |
| 12651 | } |
| 12652 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12653 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12654 | ac_cv_c_dot_previous="yes" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12655 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12656 | ac_cv_c_dot_previous="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12657 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12658 | rm -f core conftest.err conftest.$ac_objext \ |
| 12659 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12660 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5 |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12662 | $as_echo "$ac_cv_c_dot_previous" >&6; } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12663 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5 |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12665 | $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12666 | if test "${ac_cv_c_cfi_support+set}" = set; then : |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12667 | $as_echo_n "(cached) " >&6 |
| 12668 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12670 | /* end confdefs.h. */ |
| 12671 | asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc"); |
| 12672 | int |
| 12673 | main () |
| 12674 | { |
| 12675 | |
| 12676 | ; |
| 12677 | return 0; |
| 12678 | } |
| 12679 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12680 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12681 | ac_cv_c_cfi_support="yes" |
| 12682 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12683 | ac_cv_c_cfi_support="no" |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12684 | fi |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12686 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5 |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12688 | $as_echo "$ac_cv_c_cfi_support" >&6; } |
| 12689 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12690 | asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t" |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12691 | asm_func_trailer="" |
| 12692 | if test "$ac_cv_c_dot_previous" = "yes" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12693 | then |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12694 | asm_func_trailer="\\n\\t.previous" |
| 12695 | fi |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12696 | if test "$ac_cv_c_cfi_support" = "yes" |
| 12697 | then |
| 12698 | asm_func_header="$asm_func_header.cfi_startproc\\n\\t" |
| 12699 | asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer" |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12700 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12701 | $as_echo "#define __ASM_CFI(str) str" >>confdefs.h |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12702 | |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 12703 | UNWINDFLAGS=-fasynchronous-unwind-tables |
| 12704 | |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12705 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12706 | $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12707 | |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12708 | fi |
| 12709 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12710 | asm_func_code="$asm_func_header\" code \"$asm_func_trailer" |
| 12711 | |
| 12712 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12713 | if test "$ac_cv_c_asm_outside_funcs" = "yes" |
| 12714 | then |
| 12715 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12716 | #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code"); |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12717 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12718 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12719 | else |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12720 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12721 | #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12722 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12723 | |
| 12724 | fi |
| 12725 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12726 | $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12727 | |
| 12728 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12729 | $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12730 | |
| 12731 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12732 | |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12733 | LDPATH="" |
| 12734 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12735 | case $build_os in |
| 12736 | cygwin*|mingw32*) |
Alexandre Julliard | b860c4a | 2009-09-01 22:36:13 +0200 | [diff] [blame] | 12737 | TOOLSEXT=".exe" |
| 12738 | |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 12739 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\"" |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12740 | ;; |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 12741 | darwin*|macosx*) |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12742 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12743 | *) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 12744 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12745 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12746 | esac |
| 12747 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12748 | case $host_os in |
| 12749 | mingw32*) |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 12750 | CRTLIBS="-lmsvcrt" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 12751 | |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 12752 | SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 12753 | |
| 12754 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 12755 | esac |
| 12756 | |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 12757 | MAIN_BINARY="wine" |
| 12758 | |
Alexandre Julliard | f3831cf | 2010-05-16 17:01:52 +0200 | [diff] [blame] | 12759 | test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64" |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 12760 | |
Alexandre Julliard | 0a08620 | 2010-12-16 16:54:15 +0100 | [diff] [blame] | 12761 | case $host_os in |
| 12762 | linux*) |
| 12763 | case $host_cpu in |
| 12764 | *i[3456789]86*) EXTRA_BINARIES="wine-preloader" |
| 12765 | ;; |
| 12766 | x86_64*) EXTRA_BINARIES="wine64-preloader" |
Tijl Coosemans | 9f5c69c | 2007-08-24 15:46:36 +0200 | [diff] [blame] | 12767 | ;; |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 12768 | esac |
Emmanuel Maillard | 3bc8d2e | 2004-07-19 20:11:10 +0000 | [diff] [blame] | 12769 | ;; |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12770 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12771 | |
| 12772 | |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12773 | ac_save_CFLAGS="$CFLAGS" |
| 12774 | CFLAGS="$CFLAGS $BUILTINFLAG" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12775 | for ac_func in \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12776 | _pclose \ |
| 12777 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12778 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 12779 | _spawnvp \ |
Bang Jun-young | ff96bd6 | 2007-10-15 17:09:12 +0900 | [diff] [blame] | 12780 | _strdup \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12781 | _stricmp \ |
| 12782 | _strnicmp \ |
Rob Shearman | e9f5bce | 2008-03-03 21:48:18 +0000 | [diff] [blame] | 12783 | _strtoi64 \ |
| 12784 | _strtoui64 \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 12785 | _vsnprintf \ |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 12786 | asctime_r \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12787 | chsize \ |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12788 | dlopen \ |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 12789 | epoll_create \ |
Hans Leidekker | c3de6ef | 2004-10-19 23:53:26 +0000 | [diff] [blame] | 12790 | ffs \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 12791 | finite \ |
Alexandre Julliard | 7d5e565 | 2009-06-01 12:51:54 +0200 | [diff] [blame] | 12792 | fnmatch \ |
Hans Leidekker | bed3842 | 2004-10-14 03:08:57 +0000 | [diff] [blame] | 12793 | fork \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 12794 | fpclass \ |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 12795 | fstatfs \ |
| 12796 | fstatvfs \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12797 | ftruncate \ |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 12798 | futimes \ |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 12799 | futimesat \ |
Charles Davis | 4e44e15 | 2011-01-18 13:09:44 -0700 | [diff] [blame] | 12800 | getattrlist \ |
Alexandre Julliard | a9f214c | 2006-11-13 15:42:48 +0100 | [diff] [blame] | 12801 | getdirentries \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 12802 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12803 | getpagesize \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 12804 | getpwuid \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 12805 | gettimeofday \ |
Steven Edwards | e7c3ab1 | 2004-10-04 20:45:49 +0000 | [diff] [blame] | 12806 | getuid \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 12807 | kqueue \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 12808 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12809 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 12810 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12811 | pclose \ |
Alexandre Julliard | 6f68b77 | 2009-07-01 12:13:34 +0200 | [diff] [blame] | 12812 | pipe2 \ |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12813 | poll \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12814 | popen \ |
Albert Lee | 01b972d | 2009-11-20 18:35:26 -0500 | [diff] [blame] | 12815 | port_create \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 12816 | prctl \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12817 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 12818 | pwrite \ |
Rob Shearman | 87175c6 | 2008-10-03 12:55:21 +0100 | [diff] [blame] | 12819 | readdir \ |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 12820 | readlink \ |
Jeremy White | 08c0f69 | 2004-10-09 02:26:29 +0000 | [diff] [blame] | 12821 | sched_yield \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12822 | select \ |
Gerald Pfeifer | 39f6727 | 2008-01-20 21:23:08 +0100 | [diff] [blame] | 12823 | setproctitle \ |
Paul Millar | df10b7d | 2006-07-16 15:06:28 +0100 | [diff] [blame] | 12824 | setrlimit \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12825 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12826 | sigaltstack \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 12827 | sigprocmask \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12828 | snprintf \ |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 12829 | spawnvp \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12830 | statfs \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 12831 | statvfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 12832 | strcasecmp \ |
Bang Jun-young | ff96bd6 | 2007-10-15 17:09:12 +0900 | [diff] [blame] | 12833 | strdup \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12834 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 12835 | strncasecmp \ |
Louis Lenders | 6c04a18 | 2006-12-17 17:56:50 +0000 | [diff] [blame] | 12836 | strtold \ |
Rob Shearman | e9f5bce | 2008-03-03 21:48:18 +0000 | [diff] [blame] | 12837 | strtoll \ |
| 12838 | strtoull \ |
Alexandre Julliard | 0fbd556 | 2008-12-22 10:47:16 +0100 | [diff] [blame] | 12839 | symlink \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12840 | tcgetattr \ |
Tijl Coosemans | 0c4f152 | 2007-08-23 14:12:37 +0200 | [diff] [blame] | 12841 | thr_kill2 \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12842 | timegm \ |
| 12843 | usleep \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 12844 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12845 | wait4 \ |
| 12846 | waitpid \ |
| 12847 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12848 | do : |
| 12849 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12850 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 12851 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12852 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12853 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12854 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 12855 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12856 | fi |
| 12857 | done |
| 12858 | |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12859 | CFLAGS="$ac_save_CFLAGS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12860 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12861 | if test "$ac_cv_func_dlopen" = no |
| 12862 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12864 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12865 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12866 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12867 | else |
| 12868 | ac_check_lib_save_LIBS=$LIBS |
| 12869 | LIBS="-ldl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12871 | /* end confdefs.h. */ |
| 12872 | |
| 12873 | /* Override any GCC internal prototype to avoid an error. |
| 12874 | Use char because int might match the return type of a GCC |
| 12875 | builtin and then its argument prototype would still apply. */ |
| 12876 | #ifdef __cplusplus |
| 12877 | extern "C" |
| 12878 | #endif |
| 12879 | char dlopen (); |
| 12880 | int |
| 12881 | main () |
| 12882 | { |
| 12883 | return dlopen (); |
| 12884 | ; |
| 12885 | return 0; |
| 12886 | } |
| 12887 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12888 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12889 | ac_cv_lib_dl_dlopen=yes |
| 12890 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12891 | ac_cv_lib_dl_dlopen=no |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12892 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12893 | rm -f core conftest.err conftest.$ac_objext \ |
| 12894 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12895 | LIBS=$ac_check_lib_save_LIBS |
| 12896 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12898 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12899 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| 12900 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12901 | LIBDL="-ldl" |
| 12902 | |
| 12903 | fi |
| 12904 | |
| 12905 | fi |
| 12906 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 12907 | LIBS="$LIBS $LIBDL" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12908 | for ac_func in dladdr |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12909 | do : |
| 12910 | ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" |
| 12911 | if test "x$ac_cv_func_dladdr" = x""yes; then : |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12912 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12913 | #define HAVE_DLADDR 1 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12914 | _ACEOF |
| 12915 | |
| 12916 | fi |
| 12917 | done |
| 12918 | |
| 12919 | LIBS="$ac_wine_check_funcs_save_LIBS" |
| 12920 | |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12921 | if test "$ac_cv_func_poll" = no |
| 12922 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12924 | $as_echo_n "checking for poll in -lpoll... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12925 | if test "${ac_cv_lib_poll_poll+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12926 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12927 | else |
| 12928 | ac_check_lib_save_LIBS=$LIBS |
| 12929 | LIBS="-lpoll $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12931 | /* end confdefs.h. */ |
| 12932 | |
| 12933 | /* Override any GCC internal prototype to avoid an error. |
| 12934 | Use char because int might match the return type of a GCC |
| 12935 | builtin and then its argument prototype would still apply. */ |
| 12936 | #ifdef __cplusplus |
| 12937 | extern "C" |
| 12938 | #endif |
| 12939 | char poll (); |
| 12940 | int |
| 12941 | main () |
| 12942 | { |
| 12943 | return poll (); |
| 12944 | ; |
| 12945 | return 0; |
| 12946 | } |
| 12947 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12948 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12949 | ac_cv_lib_poll_poll=yes |
| 12950 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12951 | ac_cv_lib_poll_poll=no |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12952 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12953 | rm -f core conftest.err conftest.$ac_objext \ |
| 12954 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12955 | LIBS=$ac_check_lib_save_LIBS |
| 12956 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12958 | $as_echo "$ac_cv_lib_poll_poll" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12959 | if test "x$ac_cv_lib_poll_poll" = x""yes; then : |
| 12960 | $as_echo "#define HAVE_POLL 1" >>confdefs.h |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12961 | LIBPOLL="-lpoll" |
| 12962 | |
| 12963 | fi |
| 12964 | |
| 12965 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12966 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12968 | $as_echo_n "checking for library containing gethostbyname... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12969 | if test "${ac_cv_search_gethostbyname+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12970 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12971 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12972 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12974 | /* end confdefs.h. */ |
| 12975 | |
| 12976 | /* Override any GCC internal prototype to avoid an error. |
| 12977 | Use char because int might match the return type of a GCC |
| 12978 | builtin and then its argument prototype would still apply. */ |
| 12979 | #ifdef __cplusplus |
| 12980 | extern "C" |
| 12981 | #endif |
| 12982 | char gethostbyname (); |
| 12983 | int |
| 12984 | main () |
| 12985 | { |
| 12986 | return gethostbyname (); |
| 12987 | ; |
| 12988 | return 0; |
| 12989 | } |
| 12990 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12991 | for ac_lib in '' nsl; do |
| 12992 | if test -z "$ac_lib"; then |
| 12993 | ac_res="none required" |
| 12994 | else |
| 12995 | ac_res=-l$ac_lib |
| 12996 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12997 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12998 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12999 | ac_cv_search_gethostbyname=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13000 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13001 | rm -f core conftest.err conftest.$ac_objext \ |
| 13002 | conftest$ac_exeext |
| 13003 | if test "${ac_cv_search_gethostbyname+set}" = set; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13004 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13005 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13006 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13007 | if test "${ac_cv_search_gethostbyname+set}" = set; then : |
| 13008 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13009 | else |
| 13010 | ac_cv_search_gethostbyname=no |
| 13011 | fi |
| 13012 | rm conftest.$ac_ext |
| 13013 | LIBS=$ac_func_search_save_LIBS |
| 13014 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13016 | $as_echo "$ac_cv_search_gethostbyname" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13017 | ac_res=$ac_cv_search_gethostbyname |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13018 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13019 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13020 | |
| 13021 | fi |
| 13022 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13023 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13025 | $as_echo_n "checking for library containing connect... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13026 | if test "${ac_cv_search_connect+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13027 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13028 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13029 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13031 | /* end confdefs.h. */ |
| 13032 | |
| 13033 | /* Override any GCC internal prototype to avoid an error. |
| 13034 | Use char because int might match the return type of a GCC |
| 13035 | builtin and then its argument prototype would still apply. */ |
| 13036 | #ifdef __cplusplus |
| 13037 | extern "C" |
| 13038 | #endif |
| 13039 | char connect (); |
| 13040 | int |
| 13041 | main () |
| 13042 | { |
| 13043 | return connect (); |
| 13044 | ; |
| 13045 | return 0; |
| 13046 | } |
| 13047 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13048 | for ac_lib in '' socket; do |
| 13049 | if test -z "$ac_lib"; then |
| 13050 | ac_res="none required" |
| 13051 | else |
| 13052 | ac_res=-l$ac_lib |
| 13053 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13054 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13055 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13056 | ac_cv_search_connect=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13057 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13058 | rm -f core conftest.err conftest.$ac_objext \ |
| 13059 | conftest$ac_exeext |
| 13060 | if test "${ac_cv_search_connect+set}" = set; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13061 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13062 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13063 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13064 | if test "${ac_cv_search_connect+set}" = set; then : |
| 13065 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13066 | else |
| 13067 | ac_cv_search_connect=no |
| 13068 | fi |
| 13069 | rm conftest.$ac_ext |
| 13070 | LIBS=$ac_func_search_save_LIBS |
| 13071 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13073 | $as_echo "$ac_cv_search_connect" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13074 | ac_res=$ac_cv_search_connect |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13075 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13076 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13077 | |
| 13078 | fi |
| 13079 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13080 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13082 | $as_echo_n "checking for library containing inet_aton... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13083 | if test "${ac_cv_search_inet_aton+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13084 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13085 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13086 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13088 | /* end confdefs.h. */ |
| 13089 | |
| 13090 | /* Override any GCC internal prototype to avoid an error. |
| 13091 | Use char because int might match the return type of a GCC |
| 13092 | builtin and then its argument prototype would still apply. */ |
| 13093 | #ifdef __cplusplus |
| 13094 | extern "C" |
| 13095 | #endif |
| 13096 | char inet_aton (); |
| 13097 | int |
| 13098 | main () |
| 13099 | { |
| 13100 | return inet_aton (); |
| 13101 | ; |
| 13102 | return 0; |
| 13103 | } |
| 13104 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13105 | for ac_lib in '' resolv; do |
| 13106 | if test -z "$ac_lib"; then |
| 13107 | ac_res="none required" |
| 13108 | else |
| 13109 | ac_res=-l$ac_lib |
| 13110 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13111 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13112 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13113 | ac_cv_search_inet_aton=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13114 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13115 | rm -f core conftest.err conftest.$ac_objext \ |
| 13116 | conftest$ac_exeext |
| 13117 | if test "${ac_cv_search_inet_aton+set}" = set; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13118 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13119 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13120 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13121 | if test "${ac_cv_search_inet_aton+set}" = set; then : |
| 13122 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13123 | else |
| 13124 | ac_cv_search_inet_aton=no |
| 13125 | fi |
| 13126 | rm conftest.$ac_ext |
| 13127 | LIBS=$ac_func_search_save_LIBS |
| 13128 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13130 | $as_echo "$ac_cv_search_inet_aton" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13131 | ac_res=$ac_cv_search_inet_aton |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13132 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13133 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13134 | |
| 13135 | fi |
| 13136 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13137 | |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13138 | for ac_func in \ |
| 13139 | getaddrinfo \ |
| 13140 | getnameinfo \ |
| 13141 | getnetbyname \ |
| 13142 | getprotobyname \ |
| 13143 | getprotobynumber \ |
| 13144 | getservbyport \ |
| 13145 | inet_network \ |
Austin English | 0656691 | 2009-03-28 00:13:09 -0500 | [diff] [blame] | 13146 | inet_ntop \ |
| 13147 | inet_pton \ |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13148 | sendmsg \ |
Alexandre Julliard | 98bec05 | 2009-03-26 11:07:28 +0100 | [diff] [blame] | 13149 | socketpair \ |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13150 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13151 | do : |
| 13152 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13153 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13154 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13155 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13156 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13157 | _ACEOF |
| 13158 | |
| 13159 | fi |
| 13160 | done |
| 13161 | |
| 13162 | |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13163 | LDAPLIBS="" |
| 13164 | |
| 13165 | if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes" |
| 13166 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13167 | ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h> |
| 13168 | " |
| 13169 | if test "x$ac_cv_type_LDAPSortKey" = x""yes; then : |
| 13170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13171 | $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13172 | if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13173 | $as_echo_n "(cached) " >&6 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13174 | else |
| 13175 | ac_check_lib_save_LIBS=$LIBS |
| 13176 | LIBS="-lldap_r $LIBPTHREAD $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13178 | /* end confdefs.h. */ |
| 13179 | |
| 13180 | /* Override any GCC internal prototype to avoid an error. |
| 13181 | Use char because int might match the return type of a GCC |
| 13182 | builtin and then its argument prototype would still apply. */ |
| 13183 | #ifdef __cplusplus |
| 13184 | extern "C" |
| 13185 | #endif |
| 13186 | char ldap_initialize (); |
| 13187 | int |
| 13188 | main () |
| 13189 | { |
| 13190 | return ldap_initialize (); |
| 13191 | ; |
| 13192 | return 0; |
| 13193 | } |
| 13194 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13195 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13196 | ac_cv_lib_ldap_r_ldap_initialize=yes |
| 13197 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13198 | ac_cv_lib_ldap_r_ldap_initialize=no |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13199 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13200 | rm -f core conftest.err conftest.$ac_objext \ |
| 13201 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13202 | LIBS=$ac_check_lib_save_LIBS |
| 13203 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13205 | $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13206 | if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then : |
| 13207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13208 | $as_echo_n "checking for ber_init in -llber... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13209 | if test "${ac_cv_lib_lber_ber_init+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13210 | $as_echo_n "(cached) " >&6 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13211 | else |
| 13212 | ac_check_lib_save_LIBS=$LIBS |
| 13213 | LIBS="-llber $LIBPTHREAD $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13215 | /* end confdefs.h. */ |
| 13216 | |
| 13217 | /* Override any GCC internal prototype to avoid an error. |
| 13218 | Use char because int might match the return type of a GCC |
| 13219 | builtin and then its argument prototype would still apply. */ |
| 13220 | #ifdef __cplusplus |
| 13221 | extern "C" |
| 13222 | #endif |
| 13223 | char ber_init (); |
| 13224 | int |
| 13225 | main () |
| 13226 | { |
| 13227 | return ber_init (); |
| 13228 | ; |
| 13229 | return 0; |
| 13230 | } |
| 13231 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13232 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13233 | ac_cv_lib_lber_ber_init=yes |
| 13234 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13235 | ac_cv_lib_lber_ber_init=no |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13236 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13237 | rm -f core conftest.err conftest.$ac_objext \ |
| 13238 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13239 | LIBS=$ac_check_lib_save_LIBS |
| 13240 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13242 | $as_echo "$ac_cv_lib_lber_ber_init" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13243 | if test "x$ac_cv_lib_lber_ber_init" = x""yes; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13244 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13245 | $as_echo "#define HAVE_LDAP 1" >>confdefs.h |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13246 | |
| 13247 | LDAPLIBS="-lldap_r -llber" |
| 13248 | fi |
| 13249 | |
| 13250 | fi |
| 13251 | |
| 13252 | fi |
| 13253 | |
| 13254 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 13255 | LIBS="$LIBS $LDAPLIBS $LIBPTHREAD" |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13256 | for ac_func in \ |
| 13257 | ldap_count_references \ |
| 13258 | ldap_first_reference \ |
| 13259 | ldap_next_reference \ |
| 13260 | ldap_parse_reference \ |
| 13261 | ldap_parse_sort_control \ |
| 13262 | ldap_parse_sortresponse_control \ |
| 13263 | ldap_parse_vlv_control \ |
| 13264 | ldap_parse_vlvresponse_control |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13265 | do : |
| 13266 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13267 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13268 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13269 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13270 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13271 | _ACEOF |
| 13272 | |
| 13273 | fi |
| 13274 | done |
| 13275 | |
| 13276 | LIBS="$ac_wine_check_funcs_save_LIBS" |
| 13277 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13278 | if test "x$LDAPLIBS" = "x"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13279 | case "x$with_ldap" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 13280 | x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;; |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13281 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13282 | *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported. |
| 13283 | This is an error since --with-ldap was requested." "$LINENO" 5 ;; |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13284 | esac |
| 13285 | fi |
| 13286 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5 |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13288 | $as_echo_n "checking whether mkdir takes only one argument... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13289 | if test "${wine_cv_one_arg_mkdir+set}" = set; then : |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13290 | $as_echo_n "(cached) " >&6 |
| 13291 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13293 | /* end confdefs.h. */ |
| 13294 | #include <sys/stat.h> |
| 13295 | int |
| 13296 | main () |
| 13297 | { |
| 13298 | mkdir("foo"); |
| 13299 | ; |
| 13300 | return 0; |
| 13301 | } |
| 13302 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13303 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13304 | wine_cv_one_arg_mkdir=yes |
| 13305 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13306 | wine_cv_one_arg_mkdir=no |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13307 | fi |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13309 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5 |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13311 | $as_echo "$wine_cv_one_arg_mkdir" >&6; } |
| 13312 | if test "$wine_cv_one_arg_mkdir" = "yes" |
| 13313 | then |
| 13314 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13315 | $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13316 | |
| 13317 | fi |
| 13318 | |
Andrew Nguyen | 2f22a50 | 2011-02-22 07:10:22 -0600 | [diff] [blame] | 13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5 |
| 13320 | $as_echo_n "checking for sched_setaffinity... " >&6; } |
| 13321 | if test "${wine_cv_have_sched_setaffinity+set}" = set; then : |
| 13322 | $as_echo_n "(cached) " >&6 |
| 13323 | else |
| 13324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13325 | /* end confdefs.h. */ |
| 13326 | #define _GNU_SOURCE |
| 13327 | #include <sched.h> |
| 13328 | int |
| 13329 | main () |
| 13330 | { |
| 13331 | sched_setaffinity(0, 0, 0); |
| 13332 | ; |
| 13333 | return 0; |
| 13334 | } |
| 13335 | _ACEOF |
| 13336 | if ac_fn_c_try_link "$LINENO"; then : |
| 13337 | wine_cv_have_sched_setaffinity=yes |
| 13338 | else |
| 13339 | wine_cv_have_sched_setaffinity=no |
| 13340 | fi |
| 13341 | rm -f core conftest.err conftest.$ac_objext \ |
| 13342 | conftest$ac_exeext conftest.$ac_ext |
| 13343 | fi |
| 13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5 |
| 13345 | $as_echo "$wine_cv_have_sched_setaffinity" >&6; } |
| 13346 | if test "$wine_cv_have_sched_setaffinity" = "yes" |
| 13347 | then |
| 13348 | |
| 13349 | $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h |
| 13350 | |
| 13351 | fi |
| 13352 | |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13353 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13355 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13356 | if test "${ac_cv_c_const+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13357 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13358 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13360 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13361 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13362 | int |
| 13363 | main () |
| 13364 | { |
| 13365 | /* FIXME: Include the comments suggested by Paul. */ |
| 13366 | #ifndef __cplusplus |
| 13367 | /* Ultrix mips cc rejects this. */ |
| 13368 | typedef int charset[2]; |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13369 | const charset cs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13370 | /* SunOS 4.1.1 cc rejects this. */ |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13371 | char const *const *pcpcc; |
| 13372 | char **ppc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13373 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13374 | struct point {int x, y;}; |
| 13375 | static struct point const zero = {0,0}; |
| 13376 | /* AIX XL C 1.02.0.0 rejects this. |
| 13377 | It does not let you subtract one const X* pointer from another in |
| 13378 | an arm of an if-expression whose if-part is not a constant |
| 13379 | expression */ |
| 13380 | const char *g = "string"; |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13381 | pcpcc = &g + (g ? g-g : 0); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13382 | /* HPUX 7.0 cc rejects these. */ |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13383 | ++pcpcc; |
| 13384 | ppc = (char**) pcpcc; |
| 13385 | pcpcc = (char const *const *) ppc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13386 | { /* SCO 3.2v4 cc rejects this. */ |
| 13387 | char *t; |
| 13388 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13389 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13390 | *t++ = 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13391 | if (s) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13392 | } |
| 13393 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13394 | int x[] = {25, 17}; |
| 13395 | const int *foo = &x[0]; |
| 13396 | ++foo; |
| 13397 | } |
| 13398 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13399 | typedef const int *iptr; |
| 13400 | iptr p = 0; |
| 13401 | ++p; |
| 13402 | } |
| 13403 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13404 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13405 | struct s { int j; const int *ap[3]; }; |
| 13406 | struct s *b; b->j = 5; |
| 13407 | } |
| 13408 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13409 | const int foo = 10; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13410 | if (!foo) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13411 | } |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13412 | return !cs[0] && !zero.x; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13413 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13414 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13415 | ; |
| 13416 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13417 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13418 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13419 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13420 | ac_cv_c_const=yes |
| 13421 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13422 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13423 | fi |
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 | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13425 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13427 | $as_echo "$ac_cv_c_const" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13428 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13429 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13430 | $as_echo "#define const /**/" >>confdefs.h |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13431 | |
| 13432 | fi |
| 13433 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13435 | $as_echo_n "checking for inline... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13436 | if test "${ac_cv_c_inline+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13437 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13438 | else |
| 13439 | ac_cv_c_inline=no |
| 13440 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13442 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13443 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13444 | typedef int foo_t; |
| 13445 | static $ac_kw foo_t static_foo () {return 0; } |
| 13446 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13447 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13448 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13449 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13450 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13451 | ac_cv_c_inline=$ac_kw |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13452 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13454 | test "$ac_cv_c_inline" != no && break |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13455 | done |
| 13456 | |
| 13457 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13459 | $as_echo "$ac_cv_c_inline" >&6; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13460 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13461 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13462 | inline | yes) ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13463 | *) |
| 13464 | case $ac_cv_c_inline in |
| 13465 | no) ac_val=;; |
| 13466 | *) ac_val=$ac_cv_c_inline;; |
| 13467 | esac |
| 13468 | cat >>confdefs.h <<_ACEOF |
| 13469 | #ifndef __cplusplus |
| 13470 | #define inline $ac_val |
| 13471 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13472 | _ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13473 | ;; |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13474 | esac |
| 13475 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13476 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 13477 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13478 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13479 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13480 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13481 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13482 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13483 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13484 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13485 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 13486 | if test "x$ac_cv_type_off_t" = x""yes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13487 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13488 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13489 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13490 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13491 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13492 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13493 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13494 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 13495 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13496 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13497 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13498 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13499 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13500 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13501 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13502 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13503 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 13504 | if test "x$ac_cv_type_size_t" = x""yes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13505 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13506 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13507 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13508 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13509 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13510 | |
| 13511 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13512 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 13513 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13514 | |
| 13515 | cat >>confdefs.h <<_ACEOF |
| 13516 | #define HAVE_SSIZE_T 1 |
| 13517 | _ACEOF |
| 13518 | |
| 13519 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13520 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13521 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
| 13522 | if test "x$ac_cv_type_long_long" = x""yes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13523 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13524 | cat >>confdefs.h <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13525 | #define HAVE_LONG_LONG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13526 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13527 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13528 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13529 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13530 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default" |
| 13531 | if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13532 | |
| 13533 | cat >>confdefs.h <<_ACEOF |
| 13534 | #define HAVE_FSBLKCNT_T 1 |
| 13535 | _ACEOF |
| 13536 | |
| 13537 | |
| 13538 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13539 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default" |
| 13540 | if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13541 | |
| 13542 | cat >>confdefs.h <<_ACEOF |
| 13543 | #define HAVE_FSFILCNT_T 1 |
| 13544 | _ACEOF |
| 13545 | |
| 13546 | |
| 13547 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13548 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13549 | ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h> |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13550 | #include <signal.h> |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13551 | " |
| 13552 | if test "x$ac_cv_type_sigset_t" = x""yes; then : |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13553 | |
| 13554 | cat >>confdefs.h <<_ACEOF |
| 13555 | #define HAVE_SIGSET_T 1 |
| 13556 | _ACEOF |
| 13557 | |
| 13558 | |
| 13559 | fi |
| 13560 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13561 | ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h> |
| 13562 | " |
| 13563 | if test "x$ac_cv_type_request_sense" = x""yes; then : |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 13564 | |
| 13565 | cat >>confdefs.h <<_ACEOF |
| 13566 | #define HAVE_REQUEST_SENSE 1 |
| 13567 | _ACEOF |
| 13568 | |
| 13569 | |
| 13570 | fi |
| 13571 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13572 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13573 | ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h> |
Austin English | 68f2db2 | 2009-01-29 08:28:37 -0600 | [diff] [blame] | 13574 | #ifdef HAVE_SYS_SOCKET_H |
| 13575 | #include <sys/socket.h> |
| 13576 | #endif |
| 13577 | #ifdef HAVE_SYS_SOCKETVAR_H |
| 13578 | #include <sys/socketvar.h> |
| 13579 | #endif |
| 13580 | #ifdef HAVE_NET_ROUTE_H |
| 13581 | #include <net/route.h> |
| 13582 | #endif |
| 13583 | #ifdef HAVE_NETINET_IN_H |
| 13584 | #include <netinet/in.h> |
| 13585 | #endif |
| 13586 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 13587 | #include <netinet/in_systm.h> |
| 13588 | #endif |
| 13589 | #ifdef HAVE_NETINET_IP_H |
| 13590 | #include <netinet/ip.h> |
| 13591 | #endif |
| 13592 | #ifdef HAVE_NETINET_IN_PCB_H |
| 13593 | #include <netinet/in_pcb.h> |
| 13594 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13595 | " |
| 13596 | if test "x$ac_cv_type_struct_xinpgen" = x""yes; then : |
Austin English | 68f2db2 | 2009-01-29 08:28:37 -0600 | [diff] [blame] | 13597 | |
| 13598 | cat >>confdefs.h <<_ACEOF |
| 13599 | #define HAVE_STRUCT_XINPGEN 1 |
| 13600 | _ACEOF |
| 13601 | |
| 13602 | |
| 13603 | fi |
| 13604 | |
| 13605 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13606 | ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 13607 | #include <linux/input.h> |
| 13608 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13609 | " |
| 13610 | if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then : |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 13611 | |
| 13612 | cat >>confdefs.h <<_ACEOF |
| 13613 | #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1 |
| 13614 | _ACEOF |
| 13615 | |
| 13616 | |
| 13617 | fi |
| 13618 | |
| 13619 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13621 | $as_echo_n "checking for sigaddset... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13622 | if test "${wine_cv_have_sigaddset+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13623 | $as_echo_n "(cached) " >&6 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13624 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13626 | /* end confdefs.h. */ |
| 13627 | #include <signal.h> |
| 13628 | int |
| 13629 | main () |
| 13630 | { |
| 13631 | sigset_t set; sigaddset(&set,SIGTERM); |
| 13632 | ; |
| 13633 | return 0; |
| 13634 | } |
| 13635 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13636 | if ac_fn_c_try_link "$LINENO"; then : |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13637 | wine_cv_have_sigaddset=yes |
| 13638 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13639 | wine_cv_have_sigaddset=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13640 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13641 | rm -f core conftest.err conftest.$ac_objext \ |
| 13642 | conftest$ac_exeext conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13643 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13645 | $as_echo "$wine_cv_have_sigaddset" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13646 | if test "$wine_cv_have_sigaddset" = "yes" |
| 13647 | then |
| 13648 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13649 | $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13650 | |
| 13651 | fi |
| 13652 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13653 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13655 | $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13656 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13657 | $as_echo_n "(cached) " >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13658 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13660 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13661 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13662 | int |
| 13663 | main () |
| 13664 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13665 | |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13666 | char *name=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13667 | struct hostent he; |
| 13668 | struct hostent *result; |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13669 | char *buf=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13670 | int bufsize=0; |
| 13671 | int res,errnr; |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13672 | char *addr=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13673 | int addrlen=0; |
| 13674 | int addrtype=0; |
| 13675 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 13676 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13677 | |
| 13678 | ; |
| 13679 | return 0; |
| 13680 | } |
| 13681 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13682 | if ac_fn_c_try_link "$LINENO"; then : |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13683 | wine_cv_linux_gethostbyname_r_6=yes |
| 13684 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13685 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13686 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13687 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13688 | rm -f core conftest.err conftest.$ac_objext \ |
| 13689 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13690 | |
| 13691 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13693 | $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; } |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13694 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 13695 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13696 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13697 | $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13698 | |
| 13699 | fi |
| 13700 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13701 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13702 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13704 | $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13705 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13706 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13707 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13709 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13710 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13711 | #include <sys/ioctl.h> |
Marcus Meissner | 7c43499 | 2007-04-12 12:12:05 +0200 | [diff] [blame] | 13712 | #include <sys/types.h> |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13713 | #include <linux/joystick.h> |
| 13714 | |
| 13715 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 13716 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 13717 | #error "no 2.2 header" |
| 13718 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13719 | |
| 13720 | int |
| 13721 | main () |
| 13722 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13723 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13724 | ; |
| 13725 | return 0; |
| 13726 | } |
| 13727 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13728 | if ac_fn_c_try_compile "$LINENO"; then : |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13729 | wine_cv_linux_joystick_22_api=yes |
| 13730 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13731 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13732 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13734 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13735 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13737 | $as_echo "$wine_cv_linux_joystick_22_api" >&6; } |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 13738 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13739 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13740 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13741 | $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13742 | |
| 13743 | fi |
| 13744 | fi |
| 13745 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13746 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13747 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13748 | #ifdef HAVE_SYS_PARAM_H |
| 13749 | # include <sys/param.h> |
| 13750 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13751 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13752 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13753 | #endif |
| 13754 | #ifdef HAVE_SYS_VFS_H |
| 13755 | # include <sys/vfs.h> |
| 13756 | #endif |
| 13757 | #ifdef HAVE_SYS_STATFS_H |
| 13758 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13759 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13760 | " |
| 13761 | if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then : |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13762 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13763 | cat >>confdefs.h <<_ACEOF |
| 13764 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13765 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13766 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13767 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13768 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13769 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13770 | #ifdef HAVE_SYS_PARAM_H |
| 13771 | # include <sys/param.h> |
| 13772 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13773 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13774 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13775 | #endif |
| 13776 | #ifdef HAVE_SYS_VFS_H |
| 13777 | # include <sys/vfs.h> |
| 13778 | #endif |
| 13779 | #ifdef HAVE_SYS_STATFS_H |
| 13780 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13781 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13782 | " |
| 13783 | if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then : |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13784 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13785 | cat >>confdefs.h <<_ACEOF |
| 13786 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13787 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13788 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13789 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13790 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13791 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13792 | #ifdef HAVE_SYS_PARAM_H |
| 13793 | # include <sys/param.h> |
| 13794 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13795 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13796 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13797 | #endif |
| 13798 | #ifdef HAVE_SYS_VFS_H |
| 13799 | # include <sys/vfs.h> |
| 13800 | #endif |
| 13801 | #ifdef HAVE_SYS_STATFS_H |
| 13802 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13803 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13804 | " |
| 13805 | if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13806 | |
| 13807 | cat >>confdefs.h <<_ACEOF |
| 13808 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 |
| 13809 | _ACEOF |
| 13810 | |
| 13811 | |
| 13812 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13813 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13814 | #ifdef HAVE_SYS_PARAM_H |
| 13815 | # include <sys/param.h> |
| 13816 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13817 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13818 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13819 | #endif |
| 13820 | #ifdef HAVE_SYS_VFS_H |
| 13821 | # include <sys/vfs.h> |
| 13822 | #endif |
| 13823 | #ifdef HAVE_SYS_STATFS_H |
| 13824 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13825 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13826 | " |
| 13827 | if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13828 | |
| 13829 | cat >>confdefs.h <<_ACEOF |
| 13830 | #define HAVE_STRUCT_STATFS_F_FFREE 1 |
| 13831 | _ACEOF |
| 13832 | |
| 13833 | |
| 13834 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13835 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13836 | #ifdef HAVE_SYS_PARAM_H |
| 13837 | # include <sys/param.h> |
| 13838 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13839 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13840 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13841 | #endif |
| 13842 | #ifdef HAVE_SYS_VFS_H |
| 13843 | # include <sys/vfs.h> |
| 13844 | #endif |
| 13845 | #ifdef HAVE_SYS_STATFS_H |
| 13846 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13847 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13848 | " |
| 13849 | if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13850 | |
| 13851 | cat >>confdefs.h <<_ACEOF |
| 13852 | #define HAVE_STRUCT_STATFS_F_FAVAIL 1 |
| 13853 | _ACEOF |
| 13854 | |
| 13855 | |
| 13856 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13857 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13858 | #ifdef HAVE_SYS_PARAM_H |
| 13859 | # include <sys/param.h> |
| 13860 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13861 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13862 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13863 | #endif |
| 13864 | #ifdef HAVE_SYS_VFS_H |
| 13865 | # include <sys/vfs.h> |
| 13866 | #endif |
| 13867 | #ifdef HAVE_SYS_STATFS_H |
| 13868 | # include <sys/statfs.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13869 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13870 | " |
| 13871 | if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then : |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13872 | |
| 13873 | cat >>confdefs.h <<_ACEOF |
| 13874 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 |
| 13875 | _ACEOF |
| 13876 | |
| 13877 | |
| 13878 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13879 | |
| 13880 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13881 | ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13882 | #include <sys/statvfs.h> |
| 13883 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13884 | " |
| 13885 | if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13886 | |
| 13887 | cat >>confdefs.h <<_ACEOF |
| 13888 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 |
| 13889 | _ACEOF |
| 13890 | |
| 13891 | |
| 13892 | fi |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13893 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13894 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13895 | ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13896 | #ifdef HAVE_SYS_SOCKET_H |
| 13897 | # include <sys/socket.h> |
| 13898 | #endif |
| 13899 | #ifdef HAVE_SYS_UN_H |
| 13900 | # include <sys/un.h> |
| 13901 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13902 | " |
| 13903 | if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then : |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13904 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13905 | cat >>confdefs.h <<_ACEOF |
| 13906 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13907 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13908 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13909 | |
| 13910 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13911 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13912 | #ifdef HAVE_SYS_SOCKET_H |
| 13913 | # include <sys/socket.h> |
| 13914 | #endif |
| 13915 | #ifdef HAVE_SYS_UN_H |
| 13916 | # include <sys/un.h> |
| 13917 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13918 | " |
| 13919 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13920 | |
| 13921 | cat >>confdefs.h <<_ACEOF |
| 13922 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 13923 | _ACEOF |
| 13924 | |
| 13925 | |
| 13926 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13927 | ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13928 | #ifdef HAVE_SYS_SOCKET_H |
| 13929 | # include <sys/socket.h> |
| 13930 | #endif |
| 13931 | #ifdef HAVE_SYS_UN_H |
| 13932 | # include <sys/un.h> |
| 13933 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13934 | " |
| 13935 | if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then : |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13936 | |
| 13937 | cat >>confdefs.h <<_ACEOF |
| 13938 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 13939 | _ACEOF |
| 13940 | |
| 13941 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13942 | fi |
| 13943 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13944 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13945 | ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h> |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 13946 | #ifdef HAVE_SCSI_SG_H |
| 13947 | #include <scsi/sg.h> |
| 13948 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13949 | " |
| 13950 | if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then : |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 13951 | |
| 13952 | cat >>confdefs.h <<_ACEOF |
| 13953 | #define HAVE_SCSIREQ_T_CMD 1 |
| 13954 | _ACEOF |
| 13955 | |
| 13956 | |
| 13957 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13958 | ac_fn_c_check_member "$LINENO" "sg_io_hdr_t" "interface_id" "ac_cv_member_sg_io_hdr_t_interface_id" "#include <sys/types.h> |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 13959 | #ifdef HAVE_SCSI_SG_H |
| 13960 | #include <scsi/sg.h> |
| 13961 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13962 | " |
| 13963 | if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then : |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 13964 | |
| 13965 | cat >>confdefs.h <<_ACEOF |
| 13966 | #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1 |
| 13967 | _ACEOF |
| 13968 | |
| 13969 | |
| 13970 | fi |
| 13971 | |
| 13972 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13973 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h> |
| 13974 | " |
| 13975 | if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then : |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13976 | |
| 13977 | cat >>confdefs.h <<_ACEOF |
| 13978 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 13979 | _ACEOF |
| 13980 | |
| 13981 | |
| 13982 | fi |
| 13983 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13984 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13985 | ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 13986 | #ifdef HAVE_SYS_MTIO_H |
| 13987 | #include <sys/mtio.h> |
| 13988 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13989 | " |
| 13990 | if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then : |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 13991 | |
| 13992 | cat >>confdefs.h <<_ACEOF |
| 13993 | #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1 |
| 13994 | _ACEOF |
| 13995 | |
| 13996 | |
| 13997 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13998 | ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 13999 | #ifdef HAVE_SYS_MTIO_H |
| 14000 | #include <sys/mtio.h> |
| 14001 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14002 | " |
| 14003 | if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then : |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 14004 | |
| 14005 | cat >>confdefs.h <<_ACEOF |
| 14006 | #define HAVE_STRUCT_MTGET_MT_GSTAT 1 |
| 14007 | _ACEOF |
| 14008 | |
| 14009 | |
| 14010 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14011 | ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h> |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 14012 | #ifdef HAVE_SYS_MTIO_H |
| 14013 | #include <sys/mtio.h> |
| 14014 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14015 | " |
| 14016 | if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then : |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 14017 | |
| 14018 | cat >>confdefs.h <<_ACEOF |
| 14019 | #define HAVE_STRUCT_MTGET_MT_BLKNO 1 |
| 14020 | _ACEOF |
| 14021 | |
| 14022 | |
| 14023 | fi |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 14024 | |
| 14025 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14026 | ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 14027 | #include <getopt.h> |
| 14028 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14029 | " |
| 14030 | if test "x$ac_cv_member_struct_option_name" = x""yes; then : |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 14031 | |
| 14032 | cat >>confdefs.h <<_ACEOF |
| 14033 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 14034 | _ACEOF |
| 14035 | |
| 14036 | |
| 14037 | fi |
| 14038 | |
| 14039 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14040 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
| 14041 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 14042 | |
| 14043 | cat >>confdefs.h <<_ACEOF |
| 14044 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 14045 | _ACEOF |
| 14046 | |
| 14047 | |
| 14048 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14049 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" |
| 14050 | if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then : |
Michael Karcher | af2d274 | 2008-08-17 19:03:44 +0200 | [diff] [blame] | 14051 | |
| 14052 | cat >>confdefs.h <<_ACEOF |
| 14053 | #define HAVE_STRUCT_STAT_ST_MTIM 1 |
| 14054 | _ACEOF |
| 14055 | |
| 14056 | |
| 14057 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14058 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default" |
| 14059 | if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then : |
Michael Karcher | af2d274 | 2008-08-17 19:03:44 +0200 | [diff] [blame] | 14060 | |
| 14061 | cat >>confdefs.h <<_ACEOF |
| 14062 | #define HAVE_STRUCT_STAT_ST_CTIM 1 |
| 14063 | _ACEOF |
| 14064 | |
| 14065 | |
| 14066 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14067 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
| 14068 | if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then : |
Michael Karcher | af2d274 | 2008-08-17 19:03:44 +0200 | [diff] [blame] | 14069 | |
| 14070 | cat >>confdefs.h <<_ACEOF |
| 14071 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 14072 | _ACEOF |
| 14073 | |
| 14074 | |
| 14075 | fi |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 14076 | |
| 14077 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14078 | ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#ifdef HAVE_SYS_TYPES_H |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 14079 | #include <sys/types.h> |
| 14080 | #endif |
| 14081 | #ifdef HAVE_NETINET_IN_H |
| 14082 | #include <netinet/in.h> |
| 14083 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14084 | " |
| 14085 | if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then : |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 14086 | |
| 14087 | cat >>confdefs.h <<_ACEOF |
| 14088 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 14089 | _ACEOF |
| 14090 | |
| 14091 | |
| 14092 | fi |
| 14093 | |
| 14094 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14095 | ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 14096 | #include <sys/types.h> |
| 14097 | #endif |
| 14098 | #ifdef HAVE_NETINET_IN_H |
| 14099 | # include <netinet/in.h> |
| 14100 | #endif |
| 14101 | #ifdef HAVE_ARPA_NAMESER_H |
| 14102 | # include <arpa/nameser.h> |
| 14103 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14104 | " |
| 14105 | if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then : |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 14106 | |
| 14107 | cat >>confdefs.h <<_ACEOF |
| 14108 | #define HAVE_NS_MSG__MSG_PTR 1 |
| 14109 | _ACEOF |
| 14110 | |
| 14111 | |
| 14112 | fi |
| 14113 | |
| 14114 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14115 | ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H |
Austin English | ac0252d | 2009-01-30 10:18:10 -0600 | [diff] [blame] | 14116 | #include <sys/types.h> |
| 14117 | #endif |
| 14118 | #ifdef HAVE_ALIAS_H |
| 14119 | #include <alias.h> |
| 14120 | #endif |
| 14121 | #ifdef HAVE_SYS_SOCKET_H |
| 14122 | #include <sys/socket.h> |
| 14123 | #endif |
| 14124 | #ifdef HAVE_SYS_SOCKETVAR_H |
| 14125 | #include <sys/socketvar.h> |
| 14126 | #endif |
| 14127 | #ifdef HAVE_SYS_TIMEOUT_H |
| 14128 | #include <sys/timeout.h> |
| 14129 | #endif |
| 14130 | #ifdef HAVE_NETINET_IN_H |
| 14131 | #include <netinet/in.h> |
| 14132 | #endif |
| 14133 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 14134 | #include <netinet/in_systm.h> |
| 14135 | #endif |
| 14136 | #ifdef HAVE_NETINET_IP_H |
| 14137 | #include <netinet/ip.h> |
| 14138 | #endif |
| 14139 | #ifdef HAVE_NETINET_IP_VAR_H |
| 14140 | #include <netinet/ip_var.h> |
| 14141 | #endif |
| 14142 | #ifdef HAVE_NETINET_IP_ICMP_H |
| 14143 | #include <netinet/ip_icmp.h> |
| 14144 | #endif |
| 14145 | #ifdef HAVE_NETINET_ICMP_VAR |
| 14146 | #include <netinet/icmp_var.h> |
| 14147 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14148 | " |
| 14149 | if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then : |
Austin English | ac0252d | 2009-01-30 10:18:10 -0600 | [diff] [blame] | 14150 | |
| 14151 | cat >>confdefs.h <<_ACEOF |
| 14152 | #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1 |
| 14153 | _ACEOF |
| 14154 | |
| 14155 | |
| 14156 | fi |
| 14157 | |
| 14158 | |
Juan Lang | 984c3b2 | 2010-03-12 10:38:46 -0800 | [diff] [blame] | 14159 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H |
| 14160 | #include <sys/types.h> |
| 14161 | #endif |
| 14162 | #ifdef HAVE_NET_IF_H |
| 14163 | # include <net/if.h> |
| 14164 | #endif |
| 14165 | " |
| 14166 | if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : |
| 14167 | |
| 14168 | cat >>confdefs.h <<_ACEOF |
| 14169 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 |
| 14170 | _ACEOF |
| 14171 | |
| 14172 | |
| 14173 | fi |
| 14174 | |
| 14175 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14177 | $as_echo_n "checking for timezone variable... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14178 | if test "${ac_cv_have_timezone+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14179 | $as_echo_n "(cached) " >&6 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14180 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14182 | /* end confdefs.h. */ |
| 14183 | #include <time.h> |
| 14184 | int |
| 14185 | main () |
| 14186 | { |
Alexandre Julliard | ff2bd66 | 2006-08-25 13:23:29 +0200 | [diff] [blame] | 14187 | timezone = 1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14188 | ; |
| 14189 | return 0; |
| 14190 | } |
| 14191 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14192 | if ac_fn_c_try_link "$LINENO"; then : |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14193 | ac_cv_have_timezone="yes" |
| 14194 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14195 | ac_cv_have_timezone="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14196 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14197 | rm -f core conftest.err conftest.$ac_objext \ |
| 14198 | conftest$ac_exeext conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14199 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14201 | $as_echo "$ac_cv_have_timezone" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14202 | if test "$ac_cv_have_timezone" = "yes" |
| 14203 | then |
| 14204 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14205 | $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14206 | |
| 14207 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14209 | $as_echo_n "checking for daylight variable... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14210 | if test "${ac_cv_have_daylight+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14211 | $as_echo_n "(cached) " >&6 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14212 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14214 | /* end confdefs.h. */ |
| 14215 | #include <time.h> |
| 14216 | int |
| 14217 | main () |
| 14218 | { |
Alexandre Julliard | ff2bd66 | 2006-08-25 13:23:29 +0200 | [diff] [blame] | 14219 | daylight = 1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14220 | ; |
| 14221 | return 0; |
| 14222 | } |
| 14223 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14224 | if ac_fn_c_try_link "$LINENO"; then : |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14225 | ac_cv_have_daylight="yes" |
| 14226 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14227 | ac_cv_have_daylight="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14228 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14229 | rm -f core conftest.err conftest.$ac_objext \ |
| 14230 | conftest$ac_exeext conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14231 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14233 | $as_echo "$ac_cv_have_daylight" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14234 | if test "$ac_cv_have_daylight" = "yes" |
| 14235 | then |
| 14236 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14237 | $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14238 | |
| 14239 | fi |
| 14240 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14242 | $as_echo_n "checking for isinf... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14243 | if test "${ac_cv_have_isinf+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14244 | $as_echo_n "(cached) " >&6 |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14245 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14247 | /* end confdefs.h. */ |
| 14248 | #include <math.h> |
| 14249 | int |
| 14250 | main () |
| 14251 | { |
Francois Gouget | 2fef93a | 2008-06-26 15:59:05 +0200 | [diff] [blame] | 14252 | float f = 0.0; int i=isinf(f) |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14253 | ; |
| 14254 | return 0; |
| 14255 | } |
| 14256 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14257 | if ac_fn_c_try_link "$LINENO"; then : |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14258 | ac_cv_have_isinf="yes" |
| 14259 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14260 | ac_cv_have_isinf="no" |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14261 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14262 | rm -f core conftest.err conftest.$ac_objext \ |
| 14263 | conftest$ac_exeext conftest.$ac_ext |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14264 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14266 | $as_echo "$ac_cv_have_isinf" >&6; } |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14267 | if test "$ac_cv_have_isinf" = "yes" |
| 14268 | then |
| 14269 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14270 | $as_echo "#define HAVE_ISINF 1" >>confdefs.h |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14271 | |
| 14272 | fi |
| 14273 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14275 | $as_echo_n "checking for isnan... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14276 | if test "${ac_cv_have_isnan+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14277 | $as_echo_n "(cached) " >&6 |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14278 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14280 | /* end confdefs.h. */ |
| 14281 | #include <math.h> |
| 14282 | int |
| 14283 | main () |
| 14284 | { |
| 14285 | float f = 0.0; int i=isnan(f) |
| 14286 | ; |
| 14287 | return 0; |
| 14288 | } |
| 14289 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14290 | if ac_fn_c_try_link "$LINENO"; then : |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14291 | ac_cv_have_isnan="yes" |
| 14292 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14293 | ac_cv_have_isnan="no" |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14294 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14295 | rm -f core conftest.err conftest.$ac_objext \ |
| 14296 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14297 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14299 | $as_echo "$ac_cv_have_isnan" >&6; } |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14300 | if test "$ac_cv_have_isnan" = "yes" |
| 14301 | then |
| 14302 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14303 | $as_echo "#define HAVE_ISNAN 1" >>confdefs.h |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14304 | |
| 14305 | fi |
| 14306 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14307 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14308 | case $host_cpu in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14309 | *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14310 | $as_echo_n "checking whether we need to define __i386__... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14311 | if test "${ac_cv_cpp_def___i386__+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14312 | $as_echo_n "(cached) " >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 14313 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14315 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14316 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14317 | yes |
| 14318 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14319 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14320 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14321 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14322 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14323 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14324 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14325 | fi |
| 14326 | rm -f conftest* |
| 14327 | |
| 14328 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14330 | $as_echo "$ac_cv_cpp_def___i386__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14331 | if test $ac_cv_cpp_def___i386__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14332 | CFLAGS="$CFLAGS -D__i386__" |
| 14333 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14334 | fi ;; |
| 14335 | *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14336 | $as_echo_n "checking whether we need to define __x86_64__... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14337 | if test "${ac_cv_cpp_def___x86_64__+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14338 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14339 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14341 | /* end confdefs.h. */ |
| 14342 | #ifndef __x86_64__ |
| 14343 | yes |
| 14344 | #endif |
| 14345 | _ACEOF |
| 14346 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14347 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14348 | ac_cv_cpp_def___x86_64__=yes |
| 14349 | else |
| 14350 | ac_cv_cpp_def___x86_64__=no |
| 14351 | fi |
| 14352 | rm -f conftest* |
| 14353 | |
| 14354 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14356 | $as_echo "$ac_cv_cpp_def___x86_64__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14357 | if test $ac_cv_cpp_def___x86_64__ = yes; then : |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14358 | CFLAGS="$CFLAGS -D__x86_64__" |
| 14359 | LINTFLAGS="$LINTFLAGS -D__x86_64__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14360 | fi ;; |
| 14361 | *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14362 | $as_echo_n "checking whether we need to define __ALPHA__... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14363 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14364 | $as_echo_n "(cached) " >&6 |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 14365 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14367 | /* end confdefs.h. */ |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 14368 | #ifndef __ALPHA__ |
| 14369 | yes |
| 14370 | #endif |
| 14371 | _ACEOF |
| 14372 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14373 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14374 | ac_cv_cpp_def___ALPHA__=yes |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 14375 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14376 | ac_cv_cpp_def___ALPHA__=no |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 14377 | fi |
| 14378 | rm -f conftest* |
| 14379 | |
| 14380 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14382 | $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14383 | if test $ac_cv_cpp_def___ALPHA__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14384 | CFLAGS="$CFLAGS -D__ALPHA__" |
| 14385 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14386 | fi ;; |
| 14387 | *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14388 | $as_echo_n "checking whether we need to define __sparc__... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14389 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14390 | $as_echo_n "(cached) " >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14391 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14393 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14394 | #ifndef __sparc__ |
| 14395 | yes |
| 14396 | #endif |
| 14397 | _ACEOF |
| 14398 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14399 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14400 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14401 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14402 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14403 | fi |
| 14404 | rm -f conftest* |
| 14405 | |
| 14406 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14408 | $as_echo "$ac_cv_cpp_def___sparc__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14409 | if test $ac_cv_cpp_def___sparc__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14410 | CFLAGS="$CFLAGS -D__sparc__" |
| 14411 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14412 | fi ;; |
| 14413 | *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14414 | $as_echo_n "checking whether we need to define __powerpc__... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14415 | if test "${ac_cv_cpp_def___powerpc__+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14416 | $as_echo_n "(cached) " >&6 |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14417 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14419 | /* end confdefs.h. */ |
| 14420 | #ifndef __powerpc__ |
| 14421 | yes |
| 14422 | #endif |
| 14423 | _ACEOF |
| 14424 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14425 | $EGREP "yes" >/dev/null 2>&1; then : |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14426 | ac_cv_cpp_def___powerpc__=yes |
| 14427 | else |
| 14428 | ac_cv_cpp_def___powerpc__=no |
| 14429 | fi |
| 14430 | rm -f conftest* |
| 14431 | |
| 14432 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14434 | $as_echo "$ac_cv_cpp_def___powerpc__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14435 | if test $ac_cv_cpp_def___powerpc__ = yes; then : |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14436 | CFLAGS="$CFLAGS -D__powerpc__" |
| 14437 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14438 | fi ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14439 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14440 | |
| 14441 | case $host_vendor in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14442 | *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14443 | $as_echo_n "checking whether we need to define __sun__... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14444 | if test "${ac_cv_cpp_def___sun__+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14445 | $as_echo_n "(cached) " >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14446 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14448 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14449 | #ifndef __sun__ |
| 14450 | yes |
| 14451 | #endif |
| 14452 | _ACEOF |
| 14453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14454 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14455 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14456 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14457 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14458 | fi |
| 14459 | rm -f conftest* |
| 14460 | |
| 14461 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14463 | $as_echo "$ac_cv_cpp_def___sun__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14464 | if test $ac_cv_cpp_def___sun__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14465 | CFLAGS="$CFLAGS -D__sun__" |
| 14466 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14467 | fi ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14468 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14469 | |
| 14470 | |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14471 | |
Alexandre Julliard | 7d83115 | 2010-03-20 15:07:45 +0100 | [diff] [blame] | 14472 | |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 14473 | |
Alexandre Julliard | 7d83115 | 2010-03-20 15:07:45 +0100 | [diff] [blame] | 14474 | ac_config_commands="$ac_config_commands include/stamp-h" |
| 14475 | |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14476 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14477 | ALL_MAKEFILE_DEPENDS=" |
| 14478 | # Rules automatically generated by configure |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14479 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14480 | .INIT: Makefile |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14481 | .MAKEFILEDEPS: |
Alexandre Julliard | bd3110d | 2010-05-23 10:34:36 +0200 | [diff] [blame] | 14482 | all: Makefile |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 14483 | Makefile: Makefile.in Make.vars.in Make.rules config.status |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14484 | @./config.status Make.tmp Makefile" |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14485 | |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14486 | ALL_POT_FILES="" |
Alexandre Julliard | d5addea | 2010-02-08 21:27:54 +0100 | [diff] [blame] | 14487 | ALL_WINETEST_DEPENDS="# Test binaries" |
| 14488 | |
Alexandre Julliard | 454fb3c | 2010-02-08 21:29:13 +0100 | [diff] [blame] | 14489 | ALL_TEST_BINARIES="" |
| 14490 | |
Alexandre Julliard | 49163da | 2008-08-25 12:02:27 +0200 | [diff] [blame] | 14491 | |
Alexandre Julliard | 2de10c4 | 2010-02-11 23:23:45 +0100 | [diff] [blame] | 14492 | wine_fn_append_file () |
| 14493 | { |
| 14494 | as_fn_append $1 " \\$as_nl $2" |
| 14495 | } |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14496 | |
Alexandre Julliard | 2de10c4 | 2010-02-11 23:23:45 +0100 | [diff] [blame] | 14497 | wine_fn_append_rule () |
| 14498 | { |
| 14499 | as_fn_append $1 "$as_nl$2" |
| 14500 | } |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14501 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14502 | wine_fn_has_flag () |
| 14503 | { |
| 14504 | expr ",$2," : ".*,$1,.*" >/dev/null |
| 14505 | } |
| 14506 | |
Alexandre Julliard | 943cd73 | 2010-03-25 21:52:56 +0100 | [diff] [blame] | 14507 | wine_fn_all_dir_rules () |
| 14508 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14509 | ac_dir=$1 |
| 14510 | ac_alldeps=$2 |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14511 | ac_makedep="\$(MAKEDEP)" |
| 14512 | ac_input=Make.vars.in:$ac_dir/Makefile.in |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14513 | if test $ac_dir != tools |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14514 | then |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14515 | ac_alldeps="$2 $ac_makedep" |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14516 | fi |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14517 | case $2 in |
| 14518 | *.in) ac_input=$ac_input:$2 ;; |
| 14519 | *) ac_makedep="$2 $ac_makedep" ;; |
| 14520 | esac |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14521 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14522 | wine_fn_append_file ALL_DIRS $ac_dir |
Alexandre Julliard | 943cd73 | 2010-03-25 21:52:56 +0100 | [diff] [blame] | 14523 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14524 | "__clean__: $ac_dir/__clean__ |
| 14525 | .PHONY: $ac_dir/__clean__ |
| 14526 | $ac_dir/__clean__: $ac_dir/Makefile |
| 14527 | @cd $ac_dir && \$(MAKE) clean |
| 14528 | \$(RM) $ac_dir/Makefile |
| 14529 | $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14530 | @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14531 | depend: $ac_dir/__depend__ |
| 14532 | .PHONY: $ac_dir/__depend__ |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14533 | $ac_dir/__depend__: $ac_makedep dummy |
| 14534 | @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend" |
Alexandre Julliard | 943cd73 | 2010-03-25 21:52:56 +0100 | [diff] [blame] | 14535 | } |
| 14536 | |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14537 | wine_fn_config_makefile () |
| 14538 | { |
| 14539 | ac_dir=$1 |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14540 | ac_enable=$2 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14541 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | 9bdd027 | 2010-06-30 17:34:20 +0200 | [diff] [blame] | 14542 | return 0 |
| 14543 | fi |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14544 | |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14545 | wine_fn_all_dir_rules $ac_dir Make.rules |
Alexandre Julliard | 9bdd027 | 2010-06-30 17:34:20 +0200 | [diff] [blame] | 14546 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14547 | "all: $ac_dir |
| 14548 | .PHONY: $ac_dir |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14549 | $ac_dir: $ac_dir/Makefile dummy |
| 14550 | @cd $ac_dir && \$(MAKE) |
Alexandre Julliard | e84063b | 2010-03-25 21:46:41 +0100 | [diff] [blame] | 14551 | install:: $ac_dir |
| 14552 | @cd $ac_dir && \$(MAKE) install |
| 14553 | install-lib:: $ac_dir |
| 14554 | @cd $ac_dir && \$(MAKE) install-lib |
| 14555 | install-dev:: $ac_dir |
| 14556 | @cd $ac_dir && \$(MAKE) install-dev |
| 14557 | uninstall:: $ac_dir/Makefile |
| 14558 | @cd $ac_dir && \$(MAKE) uninstall" |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14559 | } |
| 14560 | |
| 14561 | wine_fn_config_lib () |
| 14562 | { |
| 14563 | ac_name=$1 |
Alexandre Julliard | b8fb1d5 | 2010-03-20 14:50:53 +0100 | [diff] [blame] | 14564 | ac_dir=dlls/$ac_name |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14565 | wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14566 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | c2c3c21 | 2010-03-25 11:13:07 +0100 | [diff] [blame] | 14567 | "all __builddeps__: $ac_dir |
Alexandre Julliard | 7d2e772 | 2010-07-26 12:13:47 +0200 | [diff] [blame] | 14568 | $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14569 | @cd $ac_dir && \$(MAKE) |
Alexandre Julliard | c2c3c21 | 2010-03-25 11:13:07 +0100 | [diff] [blame] | 14570 | install install-dev:: $ac_dir |
| 14571 | @cd $ac_dir && \$(MAKE) install |
| 14572 | uninstall:: $ac_dir/Makefile |
| 14573 | @cd $ac_dir && \$(MAKE) uninstall" |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14574 | } |
| 14575 | |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14576 | wine_fn_config_dll () |
| 14577 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14578 | ac_name=$1 |
| 14579 | ac_dir=dlls/$ac_name |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14580 | ac_enable=$2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14581 | ac_flags=$3 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14582 | ac_implib=${4:-$ac_name} |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14583 | ac_file=$ac_dir/lib$ac_implib |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14584 | ac_deps="tools/widl tools/winebuild tools/winegcc include" |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14585 | ac_implibflags="" |
| 14586 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14587 | case $ac_name in |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14588 | *16) ac_implibflags=" -m16" ;; |
| 14589 | esac |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14590 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14591 | wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules |
Alexandre Julliard | 82b743f | 2010-03-25 11:15:32 +0100 | [diff] [blame] | 14592 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14593 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14594 | test "$ac_enable" != enable_win16 || return 0 |
| 14595 | else |
Alexandre Julliard | 60a05ad | 2010-03-25 12:05:44 +0100 | [diff] [blame] | 14596 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14597 | "all: $ac_dir |
| 14598 | .PHONY: $ac_dir |
| 14599 | $ac_dir: $ac_dir/Makefile __builddeps__ dummy |
| 14600 | @cd $ac_dir && \$(MAKE) |
| 14601 | install:: $ac_dir/Makefile __builddeps__ |
| 14602 | @cd $ac_dir && \$(MAKE) install |
| 14603 | install-lib:: $ac_dir/Makefile __builddeps__ |
| 14604 | @cd $ac_dir && \$(MAKE) install-lib |
| 14605 | uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile |
| 14606 | @cd $ac_dir && \$(MAKE) \$@" |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14607 | |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14608 | if test "x$enable_maintainer_mode" = xyes |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14609 | then |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14610 | if wine_fn_has_flag mc $ac_flags |
| 14611 | then |
| 14612 | wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot |
| 14613 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14614 | "$ac_dir/msg.pot: $ac_dir" |
| 14615 | fi |
| 14616 | if wine_fn_has_flag po $ac_flags |
| 14617 | then |
| 14618 | wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot |
| 14619 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14620 | "$ac_dir/rsrc.pot: $ac_dir" |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14621 | fi |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14622 | fi |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14623 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14624 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14625 | if wine_fn_has_flag staticimplib $ac_flags |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14626 | then |
| 14627 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14628 | "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14629 | $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14630 | $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile |
| 14631 | @cd $ac_dir && \$(MAKE) lib$ac_implib.def |
| 14632 | $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy |
| 14633 | @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT |
| 14634 | install-dev:: $ac_dir/Makefile __builddeps__ |
| 14635 | @cd $ac_dir && \$(MAKE) install-dev" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14636 | if test "x$CROSSTEST_DISABLE" = x |
| 14637 | then |
| 14638 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14639 | "__builddeps__: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14640 | $ac_file.cross.a: $ac_dir/Makefile dummy |
| 14641 | @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14642 | fi |
| 14643 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14644 | elif wine_fn_has_flag implib $ac_flags |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14645 | then |
| 14646 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14647 | "__builddeps__: $ac_file.$IMPLIBEXT |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14648 | $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14649 | \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec |
| 14650 | $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14651 | \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec |
| 14652 | install-dev:: $ac_dir/Makefile __builddeps__ |
| 14653 | @cd $ac_dir && \$(MAKE) install-dev" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14654 | if test "x$CROSSTEST_DISABLE" = x |
| 14655 | then |
| 14656 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14657 | "__builddeps__: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14658 | $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14659 | \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14660 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14661 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14662 | if test "$ac_name" != "$ac_implib" |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14663 | then |
| 14664 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14665 | "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14666 | dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14667 | \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@ |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14668 | clean:: |
| 14669 | \$(RM) dlls/lib$ac_implib.$IMPLIBEXT" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14670 | if test "x$CROSSTEST_DISABLE" = x |
| 14671 | then |
| 14672 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14673 | "__builddeps__: dlls/lib$ac_implib.cross.a |
| 14674 | dlls/lib$ac_implib.cross.a: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14675 | \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14676 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14677 | fi |
| 14678 | fi |
| 14679 | } |
| 14680 | |
| 14681 | wine_fn_config_program () |
| 14682 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14683 | ac_name=$1 |
| 14684 | ac_dir=programs/$ac_name |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14685 | ac_enable=$2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14686 | ac_flags=$3 |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14687 | wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14688 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14689 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14690 | |
| 14691 | else |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14692 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14693 | "all: $ac_dir |
| 14694 | .PHONY: $ac_dir |
| 14695 | $ac_dir: $ac_dir/Makefile __builddeps__ dummy |
| 14696 | @cd $ac_dir && \$(MAKE)" |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14697 | |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14698 | if test "x$enable_maintainer_mode" = xyes |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14699 | then |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14700 | if wine_fn_has_flag mc $ac_flags |
| 14701 | then |
| 14702 | wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot |
| 14703 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14704 | "$ac_dir/msg.pot: $ac_dir" |
| 14705 | fi |
| 14706 | if wine_fn_has_flag po $ac_flags |
| 14707 | then |
| 14708 | wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot |
| 14709 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14710 | "$ac_dir/rsrc.pot: $ac_dir" |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14711 | fi |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14712 | fi |
| 14713 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14714 | wine_fn_has_flag install $ac_flags || return |
Alexandre Julliard | 2fb3021 | 2010-03-26 09:24:33 +0100 | [diff] [blame] | 14715 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14716 | "install install-lib:: $ac_dir/Makefile __builddeps__ |
| 14717 | @cd $ac_dir && \$(MAKE) install |
| 14718 | uninstall:: $ac_dir/Makefile |
| 14719 | @cd $ac_dir && \$(MAKE) uninstall" |
Alexandre Julliard | c1e2958 | 2011-01-03 18:28:27 +0100 | [diff] [blame] | 14720 | if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags |
Alexandre Julliard | 2fb3021 | 2010-03-26 09:24:33 +0100 | [diff] [blame] | 14721 | then |
| 14722 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 718ea42 | 2010-03-26 09:29:10 +0100 | [diff] [blame] | 14723 | "install install-lib:: tools \$(DESTDIR)\$(bindir) |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14724 | \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name |
Alexandre Julliard | 2fb3021 | 2010-03-26 09:24:33 +0100 | [diff] [blame] | 14725 | uninstall:: |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14726 | \$(RM) \$(DESTDIR)\$(bindir)/$ac_name" |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14727 | fi |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14728 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14729 | } |
| 14730 | |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14731 | wine_fn_config_test () |
| 14732 | { |
| 14733 | ac_dir=$1 |
| 14734 | ac_name=$2 |
| 14735 | wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe |
| 14736 | wine_fn_append_rule ALL_WINETEST_DEPENDS \ |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 14737 | "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT |
| 14738 | cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@ |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14739 | $ac_name.rc: |
| 14740 | echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false) |
| 14741 | $ac_name.res: $ac_name.rc $ac_name.exe" |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14742 | wine_fn_all_dir_rules $ac_dir Maketest.rules |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14743 | |
Alexandre Julliard | dc3afa1 | 2010-03-20 14:51:52 +0100 | [diff] [blame] | 14744 | if test "x$enable_tests" = x""no; then : |
| 14745 | |
| 14746 | else |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14747 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14748 | "all programs/winetest: $ac_dir |
| 14749 | .PHONY: $ac_dir |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14750 | $ac_dir: $ac_dir/Makefile __builddeps__ dummy |
| 14751 | @cd $ac_dir && \$(MAKE) |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14752 | test: $ac_dir/__test__ |
| 14753 | .PHONY: $ac_dir/__test__ |
Alexandre Julliard | eab7efd | 2010-03-25 21:42:54 +0100 | [diff] [blame] | 14754 | $ac_dir/__test__: dummy |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14755 | @cd $ac_dir && \$(MAKE) test |
| 14756 | testclean:: |
| 14757 | \$(RM) $ac_dir/*.ok" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14758 | |
| 14759 | if test "x$CROSSTEST_DISABLE" = x |
| 14760 | then |
| 14761 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14762 | "crosstest: $ac_dir/__crosstest__ |
| 14763 | .PHONY: $ac_dir/__crosstest__ |
| 14764 | $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy |
| 14765 | @cd $ac_dir && \$(MAKE) crosstest" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14766 | fi |
Alexandre Julliard | dc3afa1 | 2010-03-20 14:51:52 +0100 | [diff] [blame] | 14767 | fi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14768 | } |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 14769 | |
| 14770 | wine_fn_config_tool () |
| 14771 | { |
| 14772 | ac_dir=$1 |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14773 | wine_fn_all_dir_rules $ac_dir Make.rules |
Alexandre Julliard | 6dbe7a0 | 2010-03-25 11:51:24 +0100 | [diff] [blame] | 14774 | |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 14775 | if test "x$enable_tools" = x""no; then : |
| 14776 | |
| 14777 | else |
Alexandre Julliard | 6dbe7a0 | 2010-03-25 11:51:24 +0100 | [diff] [blame] | 14778 | case $ac_dir in |
| 14779 | tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14780 | "install:: $ac_dir |
| 14781 | @cd $ac_dir && \$(MAKE) install |
| 14782 | install-lib:: $ac_dir |
| 14783 | @cd $ac_dir && \$(MAKE) install-lib |
| 14784 | install-dev:: $ac_dir |
| 14785 | @cd $ac_dir && \$(MAKE) install-dev" ;; |
| 14786 | *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14787 | "install install-dev:: $ac_dir |
| 14788 | @cd $ac_dir && \$(MAKE) install" ;; |
| 14789 | esac |
| 14790 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14791 | "uninstall:: $ac_dir/Makefile |
| 14792 | @cd $ac_dir && \$(MAKE) uninstall |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14793 | all __tooldeps__: $ac_dir |
| 14794 | .PHONY: $ac_dir |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14795 | $ac_dir: $ac_dir/Makefile libs/port dummy |
| 14796 | @cd $ac_dir && \$(MAKE)" |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14797 | case $ac_dir in |
| 14798 | tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;; |
| 14799 | esac |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 14800 | fi |
| 14801 | } |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14802 | |
| 14803 | wine_fn_config_makerules () |
| 14804 | { |
| 14805 | ac_rules=$1 |
| 14806 | ac_deps=$2 |
| 14807 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14808 | "$ac_rules: $ac_rules.in $ac_deps config.status |
| 14809 | @./config.status $ac_rules |
| 14810 | distclean:: |
| 14811 | \$(RM) $ac_rules" |
| 14812 | } |
| 14813 | |
| 14814 | wine_fn_config_symlink () |
| 14815 | { |
| 14816 | ac_link=$1 |
| 14817 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14818 | "$ac_link: |
| 14819 | @./config.status $ac_link |
| 14820 | distclean:: |
| 14821 | \$(RM) $ac_link" |
| 14822 | } |
Alexandre Julliard | a070f9b | 2010-07-26 20:53:12 +0200 | [diff] [blame] | 14823 | |
| 14824 | if test "x$CROSSTEST_DISABLE" != x |
| 14825 | then |
| 14826 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14827 | "crosstest: |
| 14828 | @echo \"crosstest is not supported (mingw not installed?)\" && false" |
| 14829 | fi |
Alexandre Julliard | 40977bf | 2010-11-11 12:24:46 +0100 | [diff] [blame] | 14830 | ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS" |
| 14831 | wine_fn_config_symlink dlls/shell32/AUTHORS |
Alexandre Julliard | a632052 | 2010-02-03 13:14:03 +0100 | [diff] [blame] | 14832 | ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14833 | test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14834 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14835 | ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14836 | test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14837 | fi |
| 14838 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14839 | ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14840 | test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14841 | fi |
| 14842 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14843 | ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14844 | test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14845 | fi |
| 14846 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14847 | ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14848 | test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14849 | fi |
Alexandre Julliard | 321d388 | 2010-05-06 20:51:53 +0200 | [diff] [blame] | 14850 | ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls" |
| 14851 | test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 14852 | ac_config_links="$ac_config_links wine:tools/winewrapper" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14853 | wine_fn_config_symlink wine |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 14854 | |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 14855 | ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 14856 | |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 14857 | ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 14858 | |
Alexandre Julliard | 1c60e3b | 2006-09-12 16:10:51 +0200 | [diff] [blame] | 14859 | ac_config_commands="$ac_config_commands dlls/kernel32/nls" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14860 | |
Alexandre Julliard | b8a2e3b | 2006-11-16 14:49:25 +0100 | [diff] [blame] | 14861 | ac_config_commands="$ac_config_commands dlls/user32/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14862 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14863 | ac_config_commands="$ac_config_commands dlls/wineps.drv/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14864 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14865 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14866 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 14867 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14868 | wine_fn_config_makerules Make.rules |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 14869 | MAKE_RULES=Make.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14870 | ac_config_files="$ac_config_files Make.rules" |
| 14871 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14872 | wine_fn_config_makerules Maketest.rules Make.rules |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 14873 | MAKE_TEST_RULES=Maketest.rules |
| 14874 | ac_config_files="$ac_config_files Maketest.rules" |
| 14875 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14876 | wine_fn_config_makerules dlls/Makedll.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14877 | MAKE_DLL_RULES=dlls/Makedll.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14878 | ac_config_files="$ac_config_files dlls/Makedll.rules" |
| 14879 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14880 | wine_fn_config_makerules dlls/Makeimplib.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14881 | MAKE_IMPLIB_RULES=dlls/Makeimplib.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14882 | ac_config_files="$ac_config_files dlls/Makeimplib.rules" |
| 14883 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14884 | wine_fn_config_makerules programs/Makeprog.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14885 | MAKE_PROG_RULES=programs/Makeprog.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14886 | ac_config_files="$ac_config_files programs/Makeprog.rules" |
| 14887 | |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14888 | |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14889 | wine_fn_config_dll acledit enable_acledit |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14890 | wine_fn_config_dll aclui enable_aclui implib |
| 14891 | wine_fn_config_dll activeds enable_activeds implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14892 | wine_fn_config_dll actxprxy enable_actxprxy |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14893 | wine_fn_config_lib adsiid |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14894 | wine_fn_config_dll advapi32 enable_advapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14895 | wine_fn_config_test dlls/advapi32/tests advapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14896 | wine_fn_config_dll advpack enable_advpack implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14897 | wine_fn_config_test dlls/advpack/tests advpack_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14898 | wine_fn_config_dll amstream enable_amstream |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14899 | wine_fn_config_test dlls/amstream/tests amstream_test |
Alexandre Julliard | 902f10c | 2011-01-13 15:16:02 +0100 | [diff] [blame] | 14900 | wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14901 | wine_fn_config_dll atl enable_atl implib |
Marcus Meissner | b3f0425 | 2010-06-15 11:04:33 +0200 | [diff] [blame] | 14902 | wine_fn_config_test dlls/atl/tests atl_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14903 | wine_fn_config_dll authz enable_authz |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14904 | wine_fn_config_dll avicap32 enable_avicap32 implib |
Alexandre Julliard | af743a6 | 2011-01-13 15:37:43 +0100 | [diff] [blame] | 14905 | wine_fn_config_dll avifil32 enable_avifil32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14906 | wine_fn_config_test dlls/avifil32/tests avifil32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14907 | wine_fn_config_dll avifile.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14908 | wine_fn_config_dll avrt enable_avrt implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14909 | wine_fn_config_dll bcrypt enable_bcrypt |
Alexandre Julliard | 4447900 | 2011-01-11 12:56:17 +0100 | [diff] [blame] | 14910 | wine_fn_config_dll browseui enable_browseui po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14911 | wine_fn_config_test dlls/browseui/tests browseui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14912 | wine_fn_config_dll cabinet enable_cabinet implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14913 | wine_fn_config_test dlls/cabinet/tests cabinet_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14914 | wine_fn_config_dll capi2032 enable_capi2032 implib |
| 14915 | wine_fn_config_dll cards enable_cards implib |
| 14916 | wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib |
| 14917 | wine_fn_config_dll clusapi enable_clusapi implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14918 | wine_fn_config_dll comcat enable_comcat |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14919 | wine_fn_config_test dlls/comcat/tests comcat_test |
Alexandre Julliard | 54684cf | 2011-01-11 13:43:35 +0100 | [diff] [blame] | 14920 | wine_fn_config_dll comctl32 enable_comctl32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14921 | wine_fn_config_test dlls/comctl32/tests comctl32_test |
Alexandre Julliard | 7294f7d | 2011-01-14 12:27:20 +0100 | [diff] [blame] | 14922 | wine_fn_config_dll comdlg32 enable_comdlg32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14923 | wine_fn_config_test dlls/comdlg32/tests comdlg32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14924 | wine_fn_config_dll comm.drv16 enable_win16 |
| 14925 | wine_fn_config_dll commdlg.dll16 enable_win16 |
| 14926 | wine_fn_config_dll compobj.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14927 | wine_fn_config_dll compstui enable_compstui implib |
Alexandre Julliard | b6e78c4 | 2011-01-12 15:19:02 +0100 | [diff] [blame] | 14928 | wine_fn_config_dll credui enable_credui po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14929 | wine_fn_config_test dlls/credui/tests credui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14930 | wine_fn_config_dll crtdll enable_crtdll implib |
Alexandre Julliard | c485b18 | 2011-01-06 12:18:02 +0100 | [diff] [blame] | 14931 | wine_fn_config_dll crypt32 enable_crypt32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14932 | wine_fn_config_test dlls/crypt32/tests crypt32_test |
Alexandre Julliard | 8484e96 | 2011-01-06 12:28:26 +0100 | [diff] [blame] | 14933 | wine_fn_config_dll cryptdlg enable_cryptdlg po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14934 | wine_fn_config_dll cryptdll enable_cryptdll implib |
| 14935 | wine_fn_config_dll cryptnet enable_cryptnet implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14936 | wine_fn_config_test dlls/cryptnet/tests cryptnet_test |
Alexandre Julliard | aa1bdef | 2011-01-12 15:30:17 +0100 | [diff] [blame] | 14937 | wine_fn_config_dll cryptui enable_cryptui po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14938 | wine_fn_config_test dlls/cryptui/tests cryptui_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14939 | wine_fn_config_dll ctapi32 enable_ctapi32 |
| 14940 | wine_fn_config_dll ctl3d.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14941 | wine_fn_config_dll ctl3d32 enable_ctl3d32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14942 | wine_fn_config_dll ctl3dv2.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14943 | wine_fn_config_dll d3d10 enable_d3d10 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14944 | wine_fn_config_test dlls/d3d10/tests d3d10_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14945 | wine_fn_config_dll d3d10core enable_d3d10core implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14946 | wine_fn_config_test dlls/d3d10core/tests d3d10core_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14947 | wine_fn_config_dll d3d8 enable_d3d8 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14948 | wine_fn_config_test dlls/d3d8/tests d3d8_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14949 | wine_fn_config_dll d3d9 enable_d3d9 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14950 | wine_fn_config_test dlls/d3d9/tests d3d9_test |
Matteo Bruni | 0ac336f | 2010-07-29 01:53:54 +0200 | [diff] [blame] | 14951 | wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33 |
Matteo Bruni | 66d4499 | 2010-07-29 01:47:13 +0200 | [diff] [blame] | 14952 | wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34 |
Matteo Bruni | 8ea7583 | 2010-07-28 16:44:37 +0200 | [diff] [blame] | 14953 | wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35 |
Matteo Bruni | 458eb08 | 2010-07-28 16:37:28 +0200 | [diff] [blame] | 14954 | wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36 |
Matteo Bruni | 3c59b9c | 2010-07-28 16:22:11 +0200 | [diff] [blame] | 14955 | wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37 |
Matteo Bruni | fbf1e83 | 2010-07-28 16:13:40 +0200 | [diff] [blame] | 14956 | wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38 |
Matteo Bruni | 9949146 | 2010-07-28 04:31:18 +0200 | [diff] [blame] | 14957 | wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39 |
Matteo Bruni | fd4efcd | 2010-07-28 04:09:13 +0200 | [diff] [blame] | 14958 | wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40 |
Matteo Bruni | 79c1bc4 | 2010-08-03 18:44:25 +0200 | [diff] [blame] | 14959 | wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41 |
Matteo Bruni | fe05070 | 2010-08-03 18:44:25 +0200 | [diff] [blame] | 14960 | wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14961 | wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler |
Rico Schüller | 5ad7f7b | 2010-08-19 21:33:43 +0200 | [diff] [blame] | 14962 | wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14963 | wine_fn_config_dll d3dim enable_d3dim implib |
| 14964 | wine_fn_config_dll d3drm enable_d3drm implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14965 | wine_fn_config_test dlls/d3drm/tests d3drm_test |
Owen Rudge | 9870c04 | 2010-08-18 16:02:22 -0500 | [diff] [blame] | 14966 | wine_fn_config_dll d3dx10_33 enable_d3dx10_33 |
Owen Rudge | 49dbdc1 | 2010-08-18 16:02:20 -0500 | [diff] [blame] | 14967 | wine_fn_config_dll d3dx10_34 enable_d3dx10_34 |
Owen Rudge | 955b844 | 2010-08-18 16:02:18 -0500 | [diff] [blame] | 14968 | wine_fn_config_dll d3dx10_35 enable_d3dx10_35 |
Owen Rudge | f44830e | 2010-08-18 16:02:16 -0500 | [diff] [blame] | 14969 | wine_fn_config_dll d3dx10_36 enable_d3dx10_36 |
Owen Rudge | 4196ba2 | 2010-08-18 16:02:10 -0500 | [diff] [blame] | 14970 | wine_fn_config_dll d3dx10_37 enable_d3dx10_37 |
Owen Rudge | 199ff9b | 2010-08-18 16:02:08 -0500 | [diff] [blame] | 14971 | wine_fn_config_dll d3dx10_38 enable_d3dx10_38 |
Owen Rudge | fb8d7cd | 2010-08-18 16:02:06 -0500 | [diff] [blame] | 14972 | wine_fn_config_dll d3dx10_39 enable_d3dx10_39 |
Owen Rudge | 662cbb1 | 2010-08-18 16:02:03 -0500 | [diff] [blame] | 14973 | wine_fn_config_dll d3dx10_40 enable_d3dx10_40 |
Owen Rudge | 17591cc | 2010-08-18 16:01:59 -0500 | [diff] [blame] | 14974 | wine_fn_config_dll d3dx10_41 enable_d3dx10_41 |
Owen Rudge | e5d9e12 | 2010-08-18 16:01:57 -0500 | [diff] [blame] | 14975 | wine_fn_config_dll d3dx10_42 enable_d3dx10_42 |
Owen Rudge | 3c5b2e6 | 2010-08-18 16:01:53 -0500 | [diff] [blame] | 14976 | wine_fn_config_dll d3dx10_43 enable_d3dx10_43 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14977 | wine_fn_config_dll d3dx9_24 enable_d3dx9_24 |
| 14978 | wine_fn_config_dll d3dx9_25 enable_d3dx9_25 |
| 14979 | wine_fn_config_dll d3dx9_26 enable_d3dx9_26 |
| 14980 | wine_fn_config_dll d3dx9_27 enable_d3dx9_27 |
| 14981 | wine_fn_config_dll d3dx9_28 enable_d3dx9_28 |
| 14982 | wine_fn_config_dll d3dx9_29 enable_d3dx9_29 |
| 14983 | wine_fn_config_dll d3dx9_30 enable_d3dx9_30 |
| 14984 | wine_fn_config_dll d3dx9_31 enable_d3dx9_31 |
| 14985 | wine_fn_config_dll d3dx9_32 enable_d3dx9_32 |
| 14986 | wine_fn_config_dll d3dx9_33 enable_d3dx9_33 |
| 14987 | wine_fn_config_dll d3dx9_34 enable_d3dx9_34 |
| 14988 | wine_fn_config_dll d3dx9_35 enable_d3dx9_35 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14989 | wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14990 | wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14991 | wine_fn_config_dll d3dx9_37 enable_d3dx9_37 |
| 14992 | wine_fn_config_dll d3dx9_38 enable_d3dx9_38 |
| 14993 | wine_fn_config_dll d3dx9_39 enable_d3dx9_39 |
| 14994 | wine_fn_config_dll d3dx9_40 enable_d3dx9_40 |
| 14995 | wine_fn_config_dll d3dx9_41 enable_d3dx9_41 |
| 14996 | wine_fn_config_dll d3dx9_42 enable_d3dx9_42 |
Matteo Bruni | 90c615a | 2010-08-25 17:12:51 +0200 | [diff] [blame] | 14997 | wine_fn_config_dll d3dx9_43 enable_d3dx9_43 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14998 | wine_fn_config_dll d3dxof enable_d3dxof implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14999 | wine_fn_config_test dlls/d3dxof/tests d3dxof_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15000 | wine_fn_config_dll dbgeng enable_dbgeng implib |
| 15001 | wine_fn_config_dll dbghelp enable_dbghelp implib |
| 15002 | wine_fn_config_dll dciman32 enable_dciman32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15003 | wine_fn_config_dll ddeml.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15004 | wine_fn_config_dll ddraw enable_ddraw implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15005 | wine_fn_config_test dlls/ddraw/tests ddraw_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15006 | wine_fn_config_dll ddrawex enable_ddrawex |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15007 | wine_fn_config_test dlls/ddrawex/tests ddrawex_test |
Alexandre Julliard | 0cdd147 | 2011-01-06 12:37:11 +0100 | [diff] [blame] | 15008 | wine_fn_config_dll devenum enable_devenum po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15009 | wine_fn_config_dll dinput enable_dinput implib,staticimplib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15010 | wine_fn_config_test dlls/dinput/tests dinput_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15011 | wine_fn_config_dll dinput8 enable_dinput8 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15012 | wine_fn_config_dll dispdib.dll16 enable_win16 |
| 15013 | wine_fn_config_dll dispex enable_dispex |
Huw Davies | df07561 | 2010-03-19 13:34:53 +0000 | [diff] [blame] | 15014 | wine_fn_config_test dlls/dispex/tests dispex_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15015 | wine_fn_config_dll display.drv16 enable_win16 |
| 15016 | wine_fn_config_dll dmband enable_dmband |
| 15017 | wine_fn_config_dll dmcompos enable_dmcompos |
| 15018 | wine_fn_config_dll dmime enable_dmime |
Austin Lund | 203272e | 2010-08-06 17:50:49 +1000 | [diff] [blame] | 15019 | wine_fn_config_test dlls/dmime/tests dmime_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15020 | wine_fn_config_dll dmloader enable_dmloader |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15021 | wine_fn_config_test dlls/dmloader/tests dmloader_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15022 | wine_fn_config_dll dmscript enable_dmscript |
| 15023 | wine_fn_config_dll dmstyle enable_dmstyle |
| 15024 | wine_fn_config_dll dmsynth enable_dmsynth |
| 15025 | wine_fn_config_dll dmusic enable_dmusic |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15026 | wine_fn_config_dll dmusic32 enable_dmusic32 implib |
| 15027 | wine_fn_config_dll dnsapi enable_dnsapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15028 | wine_fn_config_test dlls/dnsapi/tests dnsapi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15029 | wine_fn_config_dll dplay enable_dplay implib |
| 15030 | wine_fn_config_dll dplayx enable_dplayx implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15031 | wine_fn_config_test dlls/dplayx/tests dplayx_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15032 | wine_fn_config_dll dpnaddr enable_dpnaddr |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15033 | wine_fn_config_dll dpnet enable_dpnet implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15034 | wine_fn_config_dll dpnhpast enable_dpnhpast |
| 15035 | wine_fn_config_dll dpnlobby enable_dpnlobby |
| 15036 | wine_fn_config_dll dpwsockx enable_dpwsockx |
| 15037 | wine_fn_config_dll drmclien enable_drmclien |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15038 | wine_fn_config_dll dsound enable_dsound implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15039 | wine_fn_config_test dlls/dsound/tests dsound_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15040 | wine_fn_config_dll dssenh enable_dssenh |
| 15041 | wine_fn_config_dll dswave enable_dswave |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15042 | wine_fn_config_dll dwmapi enable_dwmapi implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15043 | wine_fn_config_dll dxdiagn enable_dxdiagn |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15044 | wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15045 | wine_fn_config_lib dxerr8 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15046 | wine_fn_config_lib dxerr9 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15047 | wine_fn_config_dll dxgi enable_dxgi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15048 | wine_fn_config_test dlls/dxgi/tests dxgi_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15049 | wine_fn_config_lib dxguid |
David Hedberg | e2cf9ad | 2010-07-31 20:02:45 +0200 | [diff] [blame] | 15050 | wine_fn_config_dll explorerframe enable_explorerframe |
David Hedberg | 87212d5 | 2010-07-31 20:02:49 +0200 | [diff] [blame] | 15051 | wine_fn_config_test dlls/explorerframe/tests explorerframe_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15052 | wine_fn_config_dll faultrep enable_faultrep implib |
Detlef Riekenberg | 53fca11 | 2010-10-26 10:11:13 +0200 | [diff] [blame] | 15053 | wine_fn_config_test dlls/faultrep/tests faultrep_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15054 | wine_fn_config_dll fltlib enable_fltlib |
| 15055 | wine_fn_config_dll fusion enable_fusion |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15056 | wine_fn_config_test dlls/fusion/tests fusion_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15057 | wine_fn_config_dll fwpuclnt enable_fwpuclnt |
Mariusz Pluciński | b3a9ce4 | 2010-07-22 23:59:34 +0200 | [diff] [blame] | 15058 | wine_fn_config_dll gameux enable_gameux |
Mariusz Pluciński | cb886f4 | 2010-08-03 11:58:01 +0200 | [diff] [blame] | 15059 | wine_fn_config_test dlls/gameux/tests gameux_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15060 | wine_fn_config_dll gdi.exe16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15061 | wine_fn_config_dll gdi32 enable_gdi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15062 | wine_fn_config_test dlls/gdi32/tests gdi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15063 | wine_fn_config_dll gdiplus enable_gdiplus implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15064 | wine_fn_config_test dlls/gdiplus/tests gdiplus_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15065 | wine_fn_config_dll glu32 enable_glu32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15066 | wine_fn_config_dll gphoto2.ds enable_gphoto2_ds |
| 15067 | wine_fn_config_dll gpkcsp enable_gpkcsp |
| 15068 | wine_fn_config_dll hal enable_hal |
Alexandre Julliard | c9b52d2 | 2011-01-06 13:19:58 +0100 | [diff] [blame] | 15069 | wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15070 | wine_fn_config_dll hid enable_hid implib |
| 15071 | wine_fn_config_dll hlink enable_hlink implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15072 | wine_fn_config_test dlls/hlink/tests hlink_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15073 | wine_fn_config_dll hnetcfg enable_hnetcfg |
| 15074 | wine_fn_config_dll httpapi enable_httpapi |
Alexandre Julliard | 9c6444c | 2011-01-06 13:31:16 +0100 | [diff] [blame] | 15075 | wine_fn_config_dll iccvid enable_iccvid po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15076 | wine_fn_config_dll icmp enable_icmp |
| 15077 | wine_fn_config_dll ifsmgr.vxd enable_win16 |
| 15078 | wine_fn_config_dll imaadp32.acm enable_imaadp32_acm |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15079 | wine_fn_config_dll imagehlp enable_imagehlp implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15080 | wine_fn_config_test dlls/imagehlp/tests imagehlp_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15081 | wine_fn_config_dll imm.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15082 | wine_fn_config_dll imm32 enable_imm32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15083 | wine_fn_config_test dlls/imm32/tests imm32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15084 | wine_fn_config_dll inetcomm enable_inetcomm implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15085 | wine_fn_config_test dlls/inetcomm/tests inetcomm_test |
Alexandre Julliard | be52106 | 2011-01-12 15:49:32 +0100 | [diff] [blame] | 15086 | wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15087 | wine_fn_config_dll inetmib1 enable_inetmib1 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15088 | wine_fn_config_test dlls/inetmib1/tests inetmib1_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15089 | wine_fn_config_dll infosoft enable_infosoft |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15090 | wine_fn_config_test dlls/infosoft/tests infosoft_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15091 | wine_fn_config_dll initpki enable_initpki |
| 15092 | wine_fn_config_dll inkobj enable_inkobj |
| 15093 | wine_fn_config_dll inseng enable_inseng |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15094 | wine_fn_config_dll iphlpapi enable_iphlpapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15095 | wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15096 | wine_fn_config_dll itircl enable_itircl |
| 15097 | wine_fn_config_dll itss enable_itss |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15098 | wine_fn_config_test dlls/itss/tests itss_test |
Alexandre Julliard | 0ccf1d8 | 2011-01-06 13:38:57 +0100 | [diff] [blame] | 15099 | wine_fn_config_dll jscript enable_jscript po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15100 | wine_fn_config_test dlls/jscript/tests jscript_test |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 15101 | wine_fn_config_dll kernel32 enable_kernel32 mc,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15102 | wine_fn_config_test dlls/kernel32/tests kernel32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15103 | wine_fn_config_dll keyboard.drv16 enable_win16 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15104 | wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel |
Vincent Povirk | 8f87459 | 2010-09-26 16:38:44 -0500 | [diff] [blame] | 15105 | wine_fn_config_dll ktmw32 enable_ktmw32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15106 | wine_fn_config_dll loadperf enable_loadperf implib |
Alexandre Julliard | 7df87f3 | 2011-01-06 14:24:05 +0100 | [diff] [blame] | 15107 | wine_fn_config_dll localspl enable_localspl po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15108 | wine_fn_config_test dlls/localspl/tests localspl_test |
Alexandre Julliard | 0546dd5 | 2011-01-12 16:11:26 +0100 | [diff] [blame] | 15109 | wine_fn_config_dll localui enable_localui po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15110 | wine_fn_config_test dlls/localui/tests localui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15111 | wine_fn_config_dll lz32 enable_lz32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15112 | wine_fn_config_test dlls/lz32/tests lz32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15113 | wine_fn_config_dll lzexpand.dll16 enable_win16 |
Alexandre Julliard | b41fc57 | 2011-01-06 16:14:33 +0100 | [diff] [blame] | 15114 | wine_fn_config_dll mapi32 enable_mapi32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15115 | wine_fn_config_test dlls/mapi32/tests mapi32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15116 | wine_fn_config_dll mapistub enable_mapistub |
| 15117 | wine_fn_config_dll mciavi32 enable_mciavi32 |
| 15118 | wine_fn_config_dll mcicda enable_mcicda |
| 15119 | wine_fn_config_dll mciqtz32 enable_mciqtz32 |
| 15120 | wine_fn_config_dll mciseq enable_mciseq |
| 15121 | wine_fn_config_dll mciwave enable_mciwave |
| 15122 | wine_fn_config_dll midimap enable_midimap |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15123 | wine_fn_config_dll mlang enable_mlang implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15124 | wine_fn_config_test dlls/mlang/tests mlang_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15125 | wine_fn_config_dll mmdevapi enable_mmdevapi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15126 | wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15127 | wine_fn_config_dll mmdevldr.vxd enable_win16 |
| 15128 | wine_fn_config_dll mmsystem.dll16 enable_win16 |
| 15129 | wine_fn_config_dll monodebg.vxd enable_win16 |
| 15130 | wine_fn_config_dll mountmgr.sys enable_mountmgr_sys |
| 15131 | wine_fn_config_dll mouse.drv16 enable_win16 |
Alexandre Julliard | 142d416 | 2011-01-12 16:27:50 +0100 | [diff] [blame] | 15132 | wine_fn_config_dll mpr enable_mpr po,implib |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15133 | wine_fn_config_dll mprapi enable_mprapi implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15134 | wine_fn_config_dll msacm.dll16 enable_win16 |
| 15135 | wine_fn_config_dll msacm32.drv enable_msacm32_drv |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15136 | wine_fn_config_dll msacm32 enable_msacm32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15137 | wine_fn_config_test dlls/msacm32/tests msacm32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15138 | wine_fn_config_dll msadp32.acm enable_msadp32_acm |
| 15139 | wine_fn_config_dll mscat32 enable_mscat32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15140 | wine_fn_config_dll mscms enable_mscms implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15141 | wine_fn_config_test dlls/mscms/tests mscms_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15142 | wine_fn_config_dll mscoree enable_mscoree |
Louis Lenders | a852870 | 2010-08-24 11:48:01 +0200 | [diff] [blame] | 15143 | wine_fn_config_test dlls/mscoree/tests mscoree_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15144 | wine_fn_config_dll msctf enable_msctf |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15145 | wine_fn_config_test dlls/msctf/tests msctf_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15146 | wine_fn_config_dll msdaps enable_msdaps |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15147 | wine_fn_config_dll msdmo enable_msdmo implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15148 | wine_fn_config_dll msftedit enable_msftedit |
| 15149 | wine_fn_config_dll msg711.acm enable_msg711_acm |
| 15150 | wine_fn_config_dll msgsm32.acm enable_msgsm32_acm |
| 15151 | wine_fn_config_dll mshtml.tlb enable_mshtml_tlb |
Alexandre Julliard | 50c23ad | 2011-01-12 17:12:44 +0100 | [diff] [blame] | 15152 | wine_fn_config_dll mshtml enable_mshtml po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15153 | wine_fn_config_test dlls/mshtml/tests mshtml_test |
Alexandre Julliard | 214ca2c | 2011-01-06 16:21:30 +0100 | [diff] [blame] | 15154 | wine_fn_config_dll msi enable_msi po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15155 | wine_fn_config_test dlls/msi/tests msi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15156 | wine_fn_config_dll msimg32 enable_msimg32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15157 | wine_fn_config_dll msimtf enable_msimtf |
| 15158 | wine_fn_config_dll msisip enable_msisip |
| 15159 | wine_fn_config_dll msisys.ocx enable_msisys_ocx |
| 15160 | wine_fn_config_dll msnet32 enable_msnet32 |
Alexandre Julliard | ad5605b | 2011-01-06 16:36:14 +0100 | [diff] [blame] | 15161 | wine_fn_config_dll msrle32 enable_msrle32 po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15162 | wine_fn_config_dll mssign32 enable_mssign32 |
| 15163 | wine_fn_config_dll mssip32 enable_mssip32 |
| 15164 | wine_fn_config_dll mstask enable_mstask |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15165 | wine_fn_config_test dlls/mstask/tests mstask_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15166 | wine_fn_config_dll msvcirt enable_msvcirt |
Piotr Caban | 71a49eb | 2010-08-23 16:36:24 +0200 | [diff] [blame] | 15167 | wine_fn_config_dll msvcp80 enable_msvcp80 |
Piotr Caban | 9ae9d26 | 2010-07-20 23:22:16 +0200 | [diff] [blame] | 15168 | wine_fn_config_dll msvcp90 enable_msvcp90 |
Piotr Caban | d589d95 | 2010-07-20 23:24:32 +0200 | [diff] [blame] | 15169 | wine_fn_config_test dlls/msvcp90/tests msvcp90_test |
Detlef Riekenberg | 1434ef4 | 2010-04-30 14:07:34 +0200 | [diff] [blame] | 15170 | wine_fn_config_dll msvcr100 enable_msvcr100 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15171 | wine_fn_config_dll msvcr70 enable_msvcr70 implib |
| 15172 | wine_fn_config_dll msvcr71 enable_msvcr71 implib |
Piotr Caban | c452249 | 2010-03-25 11:06:29 +0100 | [diff] [blame] | 15173 | wine_fn_config_dll msvcr80 enable_msvcr80 |
| 15174 | wine_fn_config_dll msvcr90 enable_msvcr90 |
Detlef Riekenberg | 73e669c | 2010-03-20 00:32:17 +0100 | [diff] [blame] | 15175 | wine_fn_config_test dlls/msvcr90/tests msvcr90_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15176 | wine_fn_config_dll msvcrt enable_msvcrt implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15177 | wine_fn_config_test dlls/msvcrt/tests msvcrt_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15178 | wine_fn_config_dll msvcrt20 enable_msvcrt20 implib |
| 15179 | wine_fn_config_dll msvcrt40 enable_msvcrt40 implib |
| 15180 | wine_fn_config_dll msvcrtd enable_msvcrtd implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15181 | wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test |
Alexandre Julliard | f14712a | 2011-01-12 17:24:03 +0100 | [diff] [blame] | 15182 | wine_fn_config_dll msvfw32 enable_msvfw32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15183 | wine_fn_config_test dlls/msvfw32/tests msvfw32_test |
Alexandre Julliard | 958ecd6 | 2011-01-06 17:07:23 +0100 | [diff] [blame] | 15184 | wine_fn_config_dll msvidc32 enable_msvidc32 po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15185 | wine_fn_config_dll msvideo.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15186 | wine_fn_config_dll mswsock enable_mswsock implib |
Alexandre Julliard | 25ccc90 | 2010-12-21 12:03:14 +0100 | [diff] [blame] | 15187 | wine_fn_config_dll msxml enable_msxml |
Alexandre Julliard | 41d6a92 | 2010-12-21 13:27:20 +0100 | [diff] [blame] | 15188 | wine_fn_config_dll msxml2 enable_msxml2 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15189 | wine_fn_config_dll msxml3 enable_msxml3 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15190 | wine_fn_config_test dlls/msxml3/tests msxml3_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15191 | wine_fn_config_dll msxml4 enable_msxml4 |
Nikolay Sivov | 25bce45 | 2010-08-30 01:31:07 +0400 | [diff] [blame] | 15192 | wine_fn_config_dll msxml6 enable_msxml6 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15193 | wine_fn_config_dll nddeapi enable_nddeapi implib |
| 15194 | wine_fn_config_dll netapi32 enable_netapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15195 | wine_fn_config_test dlls/netapi32/tests netapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15196 | wine_fn_config_dll newdev enable_newdev implib |
Thomas Mullaly | 858ccff | 2011-01-02 17:13:43 -0500 | [diff] [blame] | 15197 | wine_fn_config_dll normaliz enable_normaliz implib |
Jacek Caban | 4a91265 | 2010-12-02 19:15:28 +0100 | [diff] [blame] | 15198 | wine_fn_config_dll npmshtml enable_npmshtml |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15199 | wine_fn_config_dll ntdll enable_ntdll implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15200 | wine_fn_config_test dlls/ntdll/tests ntdll_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15201 | wine_fn_config_dll ntdsapi enable_ntdsapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15202 | wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15203 | wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15204 | wine_fn_config_dll ntprint enable_ntprint |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15205 | wine_fn_config_test dlls/ntprint/tests ntprint_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15206 | wine_fn_config_dll objsel enable_objsel |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15207 | wine_fn_config_dll odbc32 enable_odbc32 implib |
| 15208 | wine_fn_config_dll odbccp32 enable_odbccp32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15209 | wine_fn_config_test dlls/odbccp32/tests odbccp32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15210 | wine_fn_config_dll ole2.dll16 enable_win16 |
| 15211 | wine_fn_config_dll ole2conv.dll16 enable_win16 |
| 15212 | wine_fn_config_dll ole2disp.dll16 enable_win16 |
| 15213 | wine_fn_config_dll ole2nls.dll16 enable_win16 |
| 15214 | wine_fn_config_dll ole2prox.dll16 enable_win16 |
| 15215 | wine_fn_config_dll ole2thk.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15216 | wine_fn_config_dll ole32 enable_ole32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15217 | wine_fn_config_test dlls/ole32/tests ole32_test |
Alexandre Julliard | 8062ec1 | 2011-01-13 16:00:53 +0100 | [diff] [blame] | 15218 | wine_fn_config_dll oleacc enable_oleacc po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15219 | wine_fn_config_test dlls/oleacc/tests oleacc_test |
Alexandre Julliard | 000bb24 | 2011-01-06 17:31:16 +0100 | [diff] [blame] | 15220 | wine_fn_config_dll oleaut32 enable_oleaut32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15221 | wine_fn_config_test dlls/oleaut32/tests oleaut32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15222 | wine_fn_config_dll olecli.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15223 | wine_fn_config_dll olecli32 enable_olecli32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15224 | wine_fn_config_dll oledb32 enable_oledb32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15225 | wine_fn_config_test dlls/oledb32/tests oledb32_test |
Alexandre Julliard | 7f59564 | 2011-01-13 16:18:24 +0100 | [diff] [blame] | 15226 | wine_fn_config_dll oledlg enable_oledlg po,implib |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15227 | wine_fn_config_dll olepro32 enable_olepro32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15228 | wine_fn_config_dll olesvr.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15229 | wine_fn_config_dll olesvr32 enable_olesvr32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15230 | wine_fn_config_dll olethk32 enable_olethk32 |
| 15231 | wine_fn_config_dll openal32 enable_openal32 |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 15232 | wine_fn_config_dll opencl enable_opencl |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15233 | wine_fn_config_dll opengl32 enable_opengl32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15234 | wine_fn_config_test dlls/opengl32/tests opengl32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15235 | wine_fn_config_dll pdh enable_pdh implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15236 | wine_fn_config_test dlls/pdh/tests pdh_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15237 | wine_fn_config_dll pidgen enable_pidgen |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15238 | wine_fn_config_dll powrprof enable_powrprof implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15239 | wine_fn_config_dll printui enable_printui |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15240 | wine_fn_config_dll propsys enable_propsys implib |
Andrew Nguyen | c20908b | 2010-07-25 21:57:59 -0500 | [diff] [blame] | 15241 | wine_fn_config_test dlls/propsys/tests propsys_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15242 | wine_fn_config_dll psapi enable_psapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15243 | wine_fn_config_test dlls/psapi/tests psapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15244 | wine_fn_config_dll pstorec enable_pstorec |
| 15245 | wine_fn_config_dll qcap enable_qcap |
| 15246 | wine_fn_config_dll qedit enable_qedit |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15247 | wine_fn_config_test dlls/qedit/tests qedit_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15248 | wine_fn_config_dll qmgr enable_qmgr |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15249 | wine_fn_config_test dlls/qmgr/tests qmgr_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15250 | wine_fn_config_dll qmgrprxy enable_qmgrprxy |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15251 | wine_fn_config_dll quartz enable_quartz implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15252 | wine_fn_config_test dlls/quartz/tests quartz_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15253 | wine_fn_config_dll query enable_query |
| 15254 | wine_fn_config_dll rasapi16.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15255 | wine_fn_config_dll rasapi32 enable_rasapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15256 | wine_fn_config_test dlls/rasapi32/tests rasapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15257 | wine_fn_config_dll rasdlg enable_rasdlg implib |
| 15258 | wine_fn_config_dll resutils enable_resutils implib |
| 15259 | wine_fn_config_dll riched20 enable_riched20 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15260 | wine_fn_config_test dlls/riched20/tests riched20_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15261 | wine_fn_config_dll riched32 enable_riched32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15262 | wine_fn_config_test dlls/riched32/tests riched32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15263 | wine_fn_config_dll rpcrt4 enable_rpcrt4 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15264 | wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15265 | wine_fn_config_dll rsabase enable_rsabase |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15266 | wine_fn_config_dll rsaenh enable_rsaenh implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15267 | wine_fn_config_test dlls/rsaenh/tests rsaenh_test |
Louis Lenders | 85b3f29 | 2010-08-27 11:45:11 +0200 | [diff] [blame] | 15268 | wine_fn_config_dll rstrtmgr enable_rstrtmgr |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15269 | wine_fn_config_dll rtutils enable_rtutils implib |
Louis Lenders | 1ae673f | 2010-05-11 22:59:22 +0200 | [diff] [blame] | 15270 | wine_fn_config_dll samlib enable_samlib |
Alexandre Julliard | 036fe88 | 2011-01-14 12:48:59 +0100 | [diff] [blame] | 15271 | wine_fn_config_dll sane.ds enable_sane_ds po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15272 | wine_fn_config_dll sccbase enable_sccbase |
| 15273 | wine_fn_config_dll schannel enable_schannel |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15274 | wine_fn_config_test dlls/schannel/tests schannel_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15275 | wine_fn_config_dll secur32 enable_secur32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15276 | wine_fn_config_test dlls/secur32/tests secur32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15277 | wine_fn_config_dll security enable_security |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15278 | wine_fn_config_dll sensapi enable_sensapi implib |
| 15279 | wine_fn_config_dll serialui enable_serialui implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15280 | wine_fn_config_test dlls/serialui/tests serialui_test |
Alexandre Julliard | fac153b | 2011-01-12 17:37:02 +0100 | [diff] [blame] | 15281 | wine_fn_config_dll setupapi enable_setupapi po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15282 | wine_fn_config_test dlls/setupapi/tests setupapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15283 | wine_fn_config_dll setupx.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15284 | wine_fn_config_dll sfc enable_sfc implib |
| 15285 | wine_fn_config_dll sfc_os enable_sfc_os implib |
Alexandre Julliard | b31d231 | 2011-01-06 17:42:05 +0100 | [diff] [blame] | 15286 | wine_fn_config_dll shdoclc enable_shdoclc po |
Alexandre Julliard | d3a1131 | 2011-01-12 17:52:15 +0100 | [diff] [blame] | 15287 | wine_fn_config_dll shdocvw enable_shdocvw po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15288 | wine_fn_config_test dlls/shdocvw/tests shdocvw_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15289 | wine_fn_config_dll shell.dll16 enable_win16 |
Alexandre Julliard | db60006 | 2011-01-13 17:00:16 +0100 | [diff] [blame] | 15290 | wine_fn_config_dll shell32 enable_shell32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15291 | wine_fn_config_test dlls/shell32/tests shell32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15292 | wine_fn_config_dll shfolder enable_shfolder implib |
Alexandre Julliard | 944d218 | 2011-01-12 17:58:54 +0100 | [diff] [blame] | 15293 | wine_fn_config_dll shlwapi enable_shlwapi po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15294 | wine_fn_config_test dlls/shlwapi/tests shlwapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15295 | wine_fn_config_dll slbcsp enable_slbcsp |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15296 | wine_fn_config_dll slc enable_slc implib |
| 15297 | wine_fn_config_dll snmpapi enable_snmpapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15298 | wine_fn_config_test dlls/snmpapi/tests snmpapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15299 | wine_fn_config_dll softpub enable_softpub |
| 15300 | wine_fn_config_dll sound.drv16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15301 | wine_fn_config_dll spoolss enable_spoolss implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15302 | wine_fn_config_test dlls/spoolss/tests spoolss_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15303 | wine_fn_config_dll stdole2.tlb enable_stdole2_tlb |
| 15304 | wine_fn_config_dll stdole32.tlb enable_stdole32_tlb |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15305 | wine_fn_config_dll sti enable_sti implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15306 | wine_fn_config_test dlls/sti/tests sti_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15307 | wine_fn_config_dll storage.dll16 enable_win16 |
| 15308 | wine_fn_config_dll stress.dll16 enable_win16 |
Aric Stewart | 9619210 | 2010-10-04 09:48:25 -0500 | [diff] [blame] | 15309 | wine_fn_config_lib strmbase |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15310 | wine_fn_config_lib strmiids |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15311 | wine_fn_config_dll svrapi enable_svrapi |
| 15312 | wine_fn_config_dll sxs enable_sxs |
| 15313 | wine_fn_config_dll system.drv16 enable_win16 |
| 15314 | wine_fn_config_dll t2embed enable_t2embed |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15315 | wine_fn_config_dll tapi32 enable_tapi32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15316 | wine_fn_config_dll toolhelp.dll16 enable_win16 |
| 15317 | wine_fn_config_dll traffic enable_traffic |
| 15318 | wine_fn_config_dll twain.dll16 enable_win16 |
| 15319 | wine_fn_config_dll twain_32 enable_twain_32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15320 | wine_fn_config_test dlls/twain_32/tests twain_32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15321 | wine_fn_config_dll typelib.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15322 | wine_fn_config_dll unicows enable_unicows implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15323 | wine_fn_config_dll updspapi enable_updspapi |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15324 | wine_fn_config_dll url enable_url implib |
| 15325 | wine_fn_config_dll urlmon enable_urlmon implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15326 | wine_fn_config_test dlls/urlmon/tests urlmon_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15327 | wine_fn_config_dll usbd.sys enable_usbd_sys implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15328 | wine_fn_config_dll user.exe16 enable_win16 |
Alexandre Julliard | 39558f8 | 2011-01-13 17:24:15 +0100 | [diff] [blame] | 15329 | wine_fn_config_dll user32 enable_user32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15330 | wine_fn_config_test dlls/user32/tests user32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15331 | wine_fn_config_dll userenv enable_userenv implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15332 | wine_fn_config_test dlls/userenv/tests userenv_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15333 | wine_fn_config_dll usp10 enable_usp10 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15334 | wine_fn_config_test dlls/usp10/tests usp10_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15335 | wine_fn_config_lib uuid |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15336 | wine_fn_config_dll uxtheme enable_uxtheme implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15337 | wine_fn_config_test dlls/uxtheme/tests uxtheme_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15338 | wine_fn_config_dll vdhcp.vxd enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15339 | wine_fn_config_dll vdmdbg enable_vdmdbg implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15340 | wine_fn_config_dll ver.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15341 | wine_fn_config_dll version enable_version implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15342 | wine_fn_config_test dlls/version/tests version_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15343 | wine_fn_config_dll vmm.vxd enable_win16 |
| 15344 | wine_fn_config_dll vnbt.vxd enable_win16 |
| 15345 | wine_fn_config_dll vnetbios.vxd enable_win16 |
| 15346 | wine_fn_config_dll vtdapi.vxd enable_win16 |
| 15347 | wine_fn_config_dll vwin32.vxd enable_win16 |
| 15348 | wine_fn_config_dll w32skrnl enable_win16 |
| 15349 | wine_fn_config_dll w32sys.dll16 enable_win16 |
| 15350 | wine_fn_config_dll wbemprox enable_wbemprox |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15351 | wine_fn_config_dll wer enable_wer implib |
Detlef Riekenberg | d8a5bc9 | 2010-10-26 11:37:17 +0200 | [diff] [blame] | 15352 | wine_fn_config_test dlls/wer/tests wer_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15353 | wine_fn_config_dll wiaservc enable_wiaservc |
| 15354 | wine_fn_config_dll win32s16.dll16 enable_win16 |
| 15355 | wine_fn_config_dll win87em.dll16 enable_win16 |
| 15356 | wine_fn_config_dll winaspi.dll16 enable_win16 |
| 15357 | wine_fn_config_dll windebug.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15358 | wine_fn_config_dll windowscodecs enable_windowscodecs implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15359 | wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15360 | wine_fn_config_dll winealsa.drv enable_winealsa_drv |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15361 | wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15362 | wine_fn_config_lib winecrt0 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15363 | wine_fn_config_dll wined3d enable_wined3d implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15364 | wine_fn_config_dll wineesd.drv enable_wineesd_drv |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 15365 | wine_fn_config_dll winegstreamer enable_winegstreamer |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15366 | wine_fn_config_dll winejack.drv enable_winejack_drv |
| 15367 | wine_fn_config_dll winejoystick.drv enable_winejoystick_drv |
| 15368 | wine_fn_config_dll winemapi enable_winemapi |
| 15369 | wine_fn_config_dll winemp3.acm enable_winemp3_acm |
| 15370 | wine_fn_config_dll winenas.drv enable_winenas_drv |
| 15371 | wine_fn_config_dll wineoss.drv enable_wineoss_drv |
| 15372 | wine_fn_config_dll wineps.drv enable_wineps_drv |
| 15373 | wine_fn_config_dll wineps16.drv16 enable_win16 |
Aric Stewart | eefe6f6 | 2010-12-03 07:33:08 -0600 | [diff] [blame] | 15374 | wine_fn_config_dll wineqtdecoder enable_wineqtdecoder |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15375 | wine_fn_config_dll winequartz.drv enable_winequartz_drv |
| 15376 | wine_fn_config_dll winex11.drv enable_winex11_drv |
| 15377 | wine_fn_config_dll wing.dll16 enable_win16 |
| 15378 | wine_fn_config_dll wing32 enable_wing32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15379 | wine_fn_config_dll winhttp enable_winhttp implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15380 | wine_fn_config_test dlls/winhttp/tests winhttp_test |
Alexandre Julliard | ec54750 | 2011-01-12 18:03:56 +0100 | [diff] [blame] | 15381 | wine_fn_config_dll wininet enable_wininet po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15382 | wine_fn_config_test dlls/wininet/tests wininet_test |
Alexandre Julliard | 8aefc90 | 2011-01-06 17:50:17 +0100 | [diff] [blame] | 15383 | wine_fn_config_dll winmm enable_winmm po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15384 | wine_fn_config_test dlls/winmm/tests winmm_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15385 | wine_fn_config_dll winnls.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15386 | wine_fn_config_dll winnls32 enable_winnls32 implib |
| 15387 | wine_fn_config_dll winscard enable_winscard implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15388 | wine_fn_config_dll winsock.dll16 enable_win16 |
Alexandre Julliard | 35f3db4 | 2011-01-12 18:10:48 +0100 | [diff] [blame] | 15389 | wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15390 | wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15391 | wine_fn_config_dll wintab.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15392 | wine_fn_config_dll wintab32 enable_wintab32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15393 | wine_fn_config_test dlls/wintab32/tests wintab32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15394 | wine_fn_config_dll wintrust enable_wintrust implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15395 | wine_fn_config_test dlls/wintrust/tests wintrust_test |
Ričardas Barkauskas | 303079f | 2010-10-20 11:21:15 +0300 | [diff] [blame] | 15396 | wine_fn_config_dll wlanapi enable_wlanapi |
Alexandre Julliard | d1d494b | 2011-01-06 17:57:43 +0100 | [diff] [blame] | 15397 | wine_fn_config_dll wldap32 enable_wldap32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15398 | wine_fn_config_test dlls/wldap32/tests wldap32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15399 | wine_fn_config_dll wmi enable_wmi |
| 15400 | wine_fn_config_dll wmiutils enable_wmiutils |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15401 | wine_fn_config_dll wnaspi32 enable_wnaspi32 implib |
| 15402 | wine_fn_config_dll wow32 enable_win16 implib |
| 15403 | wine_fn_config_dll ws2_32 enable_ws2_32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15404 | wine_fn_config_test dlls/ws2_32/tests ws2_32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15405 | wine_fn_config_dll wsock32 enable_wsock32 implib |
| 15406 | wine_fn_config_dll wtsapi32 enable_wtsapi32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15407 | wine_fn_config_dll wuapi enable_wuapi |
| 15408 | wine_fn_config_dll wuaueng enable_wuaueng |
Louis Lenders | 934d676 | 2010-11-12 11:23:37 +0100 | [diff] [blame] | 15409 | wine_fn_config_dll xapofx1_1 enable_xapofx1_1 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15410 | wine_fn_config_dll xinput1_1 enable_xinput1_1 |
| 15411 | wine_fn_config_dll xinput1_2 enable_xinput1_2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15412 | wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15413 | wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15414 | wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0 |
| 15415 | wine_fn_config_dll xmllite enable_xmllite |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15416 | wine_fn_config_test dlls/xmllite/tests xmllite_test |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 15417 | wine_fn_config_makefile documentation enable_documentation |
| 15418 | wine_fn_config_makefile fonts enable_fonts |
| 15419 | wine_fn_config_makefile include enable_include |
| 15420 | wine_fn_config_makefile libs/port enable_libs_port |
| 15421 | wine_fn_config_makefile libs/wine enable_libs_wine |
| 15422 | wine_fn_config_makefile libs/wpp enable_libs_wpp |
| 15423 | wine_fn_config_makefile loader enable_loader |
Hans Leidekker | ab789c6 | 2010-10-13 14:23:09 +0200 | [diff] [blame] | 15424 | wine_fn_config_program aspnet_regiis enable_aspnet_regiis install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15425 | wine_fn_config_program attrib enable_attrib install |
Alexandre Julliard | 30bdbed | 2011-02-02 22:44:47 +0100 | [diff] [blame] | 15426 | wine_fn_config_program cabarc enable_cabarc install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15427 | wine_fn_config_program cacls enable_cacls install |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 15428 | wine_fn_config_program clock enable_clock po,install |
Alexandre Julliard | 6864716 | 2011-01-04 00:03:40 +0100 | [diff] [blame] | 15429 | wine_fn_config_program cmd enable_cmd po,install |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15430 | wine_fn_config_test programs/cmd/tests cmd.exe_test |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15431 | wine_fn_config_program cmdlgtst enable_cmdlgtst |
| 15432 | wine_fn_config_program control enable_control install |
| 15433 | wine_fn_config_program dxdiag enable_dxdiag install |
| 15434 | wine_fn_config_program eject enable_eject install |
| 15435 | wine_fn_config_program expand enable_expand install |
| 15436 | wine_fn_config_program explorer enable_explorer install |
| 15437 | wine_fn_config_program extrac32 enable_extrac32 install |
| 15438 | wine_fn_config_program hh enable_hh install |
| 15439 | wine_fn_config_program icinfo enable_icinfo install |
| 15440 | wine_fn_config_program iexplore enable_iexplore install |
Alexandre Julliard | 6ec2a53 | 2011-01-04 10:49:45 +0100 | [diff] [blame] | 15441 | wine_fn_config_program ipconfig enable_ipconfig po,install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15442 | wine_fn_config_program lodctr enable_lodctr install |
Hans Leidekker | f15aea2 | 2010-09-29 09:57:34 +0200 | [diff] [blame] | 15443 | wine_fn_config_program mofcomp enable_mofcomp install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15444 | wine_fn_config_program mshta enable_mshta install |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15445 | wine_fn_config_program msiexec enable_msiexec install,installbin |
Alexandre Julliard | b8c80c9 | 2011-01-04 17:55:21 +0100 | [diff] [blame] | 15446 | wine_fn_config_program net enable_net po,install |
Hans Leidekker | 8ad7d2e | 2010-12-06 13:19:41 +0100 | [diff] [blame] | 15447 | wine_fn_config_program netsh enable_netsh install |
Vincent Povirk | 4d3e6f4 | 2010-04-02 10:19:18 -0500 | [diff] [blame] | 15448 | wine_fn_config_program ngen enable_ngen install |
Alexandre Julliard | ff71d91 | 2011-01-08 12:53:31 +0100 | [diff] [blame] | 15449 | wine_fn_config_program notepad enable_notepad po,install,installbin |
Alexandre Julliard | 4c934cf | 2011-01-13 21:45:59 +0100 | [diff] [blame] | 15450 | wine_fn_config_program oleview enable_oleview po,install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15451 | wine_fn_config_program ping enable_ping install |
Hans Leidekker | 2133b6c | 2011-01-31 15:26:17 +0100 | [diff] [blame] | 15452 | wine_fn_config_program plugplay enable_plugplay install |
Alexandre Julliard | 8a4daab | 2011-01-08 16:19:06 +0100 | [diff] [blame] | 15453 | wine_fn_config_program progman enable_progman po,install |
Alexandre Julliard | 7ca7138 | 2011-01-04 18:03:01 +0100 | [diff] [blame] | 15454 | wine_fn_config_program reg enable_reg po,install |
Alexandre Julliard | 30b5e22 | 2011-01-13 22:24:00 +0100 | [diff] [blame] | 15455 | wine_fn_config_program regedit enable_regedit po,install,installbin |
Andrew Eikum | f3c6c62 | 2010-07-30 16:02:34 -0500 | [diff] [blame] | 15456 | wine_fn_config_test programs/regedit/tests regedit.exe_test |
Hans Leidekker | ab5fbeb | 2010-11-12 13:07:40 +0100 | [diff] [blame] | 15457 | wine_fn_config_program regsvcs enable_regsvcs install |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15458 | wine_fn_config_program regsvr32 enable_regsvr32 install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15459 | wine_fn_config_program rpcss enable_rpcss install |
Detlef Riekenberg | df898ea | 2010-07-18 19:15:57 +0200 | [diff] [blame] | 15460 | wine_fn_config_program rundll.exe16 enable_win16 install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15461 | wine_fn_config_program rundll32 enable_rundll32 install |
Hans Leidekker | 544da28 | 2010-05-03 12:56:58 +0200 | [diff] [blame] | 15462 | wine_fn_config_program sc enable_sc install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15463 | wine_fn_config_program secedit enable_secedit install |
Hans Leidekker | 1885c3d | 2010-11-18 12:09:11 +0100 | [diff] [blame] | 15464 | wine_fn_config_program servicemodelreg enable_servicemodelreg install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15465 | wine_fn_config_program services enable_services install |
| 15466 | wine_fn_config_program spoolsv enable_spoolsv install |
Alexandre Julliard | 1d3ef69 | 2011-01-04 19:24:34 +0100 | [diff] [blame] | 15467 | wine_fn_config_program start enable_start po,install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15468 | wine_fn_config_program svchost enable_svchost install |
Alexandre Julliard | f067301 | 2011-01-04 19:30:25 +0100 | [diff] [blame] | 15469 | wine_fn_config_program taskkill enable_taskkill po,install |
Alexandre Julliard | dfcd36c | 2011-01-08 16:43:38 +0100 | [diff] [blame] | 15470 | wine_fn_config_program taskmgr enable_taskmgr po,install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15471 | wine_fn_config_program termsv enable_termsv install |
Alexandre Julliard | 4bca334 | 2011-01-04 19:38:45 +0100 | [diff] [blame] | 15472 | wine_fn_config_program uninstaller enable_uninstaller po,install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15473 | wine_fn_config_program unlodctr enable_unlodctr install |
Alexandre Julliard | 9d6489a | 2011-01-10 13:25:22 +0100 | [diff] [blame] | 15474 | wine_fn_config_program view enable_view po |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15475 | wine_fn_config_program wineboot enable_wineboot install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15476 | wine_fn_config_program winebrowser enable_winebrowser install |
Alexandre Julliard | a2be59a | 2011-01-13 22:44:59 +0100 | [diff] [blame] | 15477 | wine_fn_config_program winecfg enable_winecfg po,install,installbin |
Alexandre Julliard | 389f0e7 | 2011-01-10 13:42:09 +0100 | [diff] [blame] | 15478 | wine_fn_config_program wineconsole enable_wineconsole po,install,installbin |
Alexandre Julliard | 4f103ef | 2011-01-10 13:54:23 +0100 | [diff] [blame] | 15479 | wine_fn_config_program winedbg enable_winedbg po,install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15480 | wine_fn_config_program winedevice enable_winedevice install |
Alexandre Julliard | 08b919f | 2011-01-10 23:37:15 +0100 | [diff] [blame] | 15481 | wine_fn_config_program winefile enable_winefile po,install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15482 | wine_fn_config_program winemenubuilder enable_winemenubuilder install |
Alexandre Julliard | 490a47e | 2011-01-10 19:35:32 +0100 | [diff] [blame] | 15483 | wine_fn_config_program winemine enable_winemine po,install,installbin |
Hans Leidekker | 1370072 | 2011-02-01 14:01:42 +0100 | [diff] [blame] | 15484 | wine_fn_config_program winemsibuilder enable_winemsibuilder install |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15485 | wine_fn_config_program winepath enable_winepath install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15486 | wine_fn_config_program winetest enable_winetest |
| 15487 | wine_fn_config_program winevdm enable_win16 install |
| 15488 | wine_fn_config_program winhelp.exe16 enable_win16 install |
Alexandre Julliard | 433e240 | 2011-01-10 20:30:14 +0100 | [diff] [blame] | 15489 | wine_fn_config_program winhlp32 enable_winhlp32 po,install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15490 | wine_fn_config_program winoldap.mod16 enable_win16 install |
| 15491 | wine_fn_config_program winver enable_winver install |
Louis Lenders | 4b281b2 | 2010-12-06 23:04:20 +0100 | [diff] [blame] | 15492 | wine_fn_config_program wmic enable_wmic install |
Alexandre Julliard | 88daff7 | 2011-01-11 12:41:31 +0100 | [diff] [blame] | 15493 | wine_fn_config_program wordpad enable_wordpad po,install |
Alexandre Julliard | 26c924e | 2011-01-04 19:43:36 +0100 | [diff] [blame] | 15494 | wine_fn_config_program write enable_write po,install |
Jacek Caban | 16bad58 | 2010-07-27 15:51:18 +0200 | [diff] [blame] | 15495 | wine_fn_config_program wscript enable_wscript install |
Jacek Caban | f5eb15a | 2011-02-22 19:48:37 +0100 | [diff] [blame] | 15496 | wine_fn_config_test programs/wscript/tests wscript.exe_test |
Alexandre Julliard | f8be8ff | 2011-01-04 20:15:50 +0100 | [diff] [blame] | 15497 | wine_fn_config_program xcopy enable_xcopy po,install |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 15498 | wine_fn_config_makefile server enable_server |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 15499 | wine_fn_config_tool tools |
| 15500 | wine_fn_config_tool tools/widl |
| 15501 | wine_fn_config_tool tools/winebuild |
| 15502 | wine_fn_config_tool tools/winedump |
| 15503 | wine_fn_config_tool tools/winegcc |
| 15504 | wine_fn_config_tool tools/wmc |
| 15505 | wine_fn_config_tool tools/wrc |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 15506 | |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15507 | LINGUAS="\ |
Alexandre Julliard | ff71d91 | 2011-01-08 12:53:31 +0100 | [diff] [blame] | 15508 | ar \ |
Alexandre Julliard | 4bca334 | 2011-01-04 19:38:45 +0100 | [diff] [blame] | 15509 | bg \ |
Alexandre Julliard | 39558f8 | 2011-01-13 17:24:15 +0100 | [diff] [blame] | 15510 | ca \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15511 | cs \ |
| 15512 | da \ |
| 15513 | de \ |
Alexandre Julliard | c9b52d2 | 2011-01-06 13:19:58 +0100 | [diff] [blame] | 15514 | el \ |
| 15515 | en \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15516 | en_US \ |
| 15517 | eo \ |
| 15518 | es \ |
Alexandre Julliard | ff71d91 | 2011-01-08 12:53:31 +0100 | [diff] [blame] | 15519 | fa \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15520 | fi \ |
| 15521 | fr \ |
| 15522 | he \ |
| 15523 | hi \ |
| 15524 | hu \ |
| 15525 | it \ |
| 15526 | ja \ |
| 15527 | ko \ |
| 15528 | lt \ |
| 15529 | ml \ |
| 15530 | nb_NO \ |
| 15531 | nl \ |
| 15532 | or \ |
| 15533 | pa \ |
| 15534 | pl \ |
| 15535 | pt_BR \ |
| 15536 | pt_PT \ |
Alexandre Julliard | 433e240 | 2011-01-10 20:30:14 +0100 | [diff] [blame] | 15537 | rm \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15538 | ro \ |
| 15539 | ru \ |
| 15540 | sk \ |
| 15541 | sl \ |
Alexandre Julliard | c0b813f | 2011-01-07 12:11:41 +0100 | [diff] [blame] | 15542 | sr_RS@cyrillic \ |
| 15543 | sr_RS@latin \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15544 | sv \ |
| 15545 | te \ |
| 15546 | th \ |
| 15547 | tr \ |
| 15548 | uk \ |
| 15549 | wa \ |
| 15550 | zh_CN \ |
| 15551 | zh_TW" |
| 15552 | |
| 15553 | |
| 15554 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 15555 | ac_config_commands="$ac_config_commands Makefile" |
| 15556 | |
| 15557 | |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 15558 | ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in" |
Alexandre Julliard | 92b5731 | 2010-03-22 20:25:30 +0100 | [diff] [blame] | 15559 | |
| 15560 | |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15561 | |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15562 | if test "x$enable_maintainer_mode" = xyes |
| 15563 | then |
| 15564 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4 |
| 15565 | cd \$(srcdir) && autoconf --warnings=all |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15566 | \$(srcdir)/include/config.h.in: include/stamp-h.in |
| 15567 | \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4 |
| 15568 | cd \$(srcdir) && autoheader --warnings=all |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 15569 | @echo timestamp > \$@ |
| 15570 | |
| 15571 | ALL_POT_FILES =$ALL_POT_FILES |
| 15572 | all: \$(ALL_PO_FILES) |
| 15573 | \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot |
Alexandre Julliard | 945ccf5 | 2011-01-27 15:09:55 +0100 | [diff] [blame] | 15574 | msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@ |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 15575 | \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES) |
| 15576 | msgcat -o \$@ \$(ALL_POT_FILES)" |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15577 | fi |
| 15578 | |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15579 | if test -n "$with_wine64" |
| 15580 | then |
Alexandre Julliard | 3c42b62 | 2010-12-27 14:37:57 +0100 | [diff] [blame] | 15581 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15582 | fonts server: |
| 15583 | \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@ |
Alexandre Julliard | f3831cf | 2010-05-16 17:01:52 +0200 | [diff] [blame] | 15584 | $with_wine64/loader/wine: |
| 15585 | \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@ |
Alexandre Julliard | 3c42b62 | 2010-12-27 14:37:57 +0100 | [diff] [blame] | 15586 | $with_wine64/loader/wine-preloader: |
| 15587 | \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@ |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15588 | clean:: |
Alexandre Julliard | 3c42b62 | 2010-12-27 14:37:57 +0100 | [diff] [blame] | 15589 | \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader" |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15590 | fi |
| 15591 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 15592 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall:: |
| 15593 | -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)" |
| 15594 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15595 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15596 | # This file is a shell script that caches the results of configure |
| 15597 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15598 | # scripts and configure runs, see configure's option --config-cache. |
| 15599 | # It is not useful on other systems. If it contains results you don't |
| 15600 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15601 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15602 | # config.status only pays attention to the cache file if you give it |
| 15603 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15604 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15605 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15606 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15607 | # following values. |
| 15608 | |
| 15609 | _ACEOF |
| 15610 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 15611 | # The following way of writing the cache mishandles newlines in values, |
| 15612 | # but we know of no workaround that is simple, portable, and efficient. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15613 | # So, we kill variables containing newlines. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15614 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15615 | # 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] | 15616 | ( |
| 15617 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15618 | eval ac_val=\$$ac_var |
| 15619 | case $ac_val in #( |
| 15620 | *${as_nl}*) |
| 15621 | case $ac_var in #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15622 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15623 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15624 | esac |
| 15625 | case $ac_var in #( |
| 15626 | _ | IFS | as_nl) ;; #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15627 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15628 | *) { eval $ac_var=; unset $ac_var;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15629 | esac ;; |
| 15630 | esac |
| 15631 | done |
| 15632 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15633 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15634 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15635 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15636 | # `set' does not quote correctly, so add quotes: double-quote |
| 15637 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15638 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15639 | "s/'/'\\\\''/g; |
| 15640 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15641 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15642 | *) |
| 15643 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15644 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15645 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15646 | esac | |
| 15647 | sort |
| 15648 | ) | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15649 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15650 | /^ac_cv_env_/b end |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15651 | t clear |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15652 | :clear |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15653 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15654 | t end |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15655 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15656 | :end' >>confcache |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15657 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15658 | if test -w "$cache_file"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15659 | test "x$cache_file" != "x/dev/null" && |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15660 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15661 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15662 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15663 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15664 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15665 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15666 | fi |
| 15667 | fi |
| 15668 | rm -f confcache |
| 15669 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15670 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15671 | # Let make expand exec_prefix. |
| 15672 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15673 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15674 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15675 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15676 | ac_libobjs= |
| 15677 | ac_ltlibobjs= |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15678 | U= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15679 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15680 | # 1. Remove the extension, and $U if already installed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15681 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15682 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15683 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15684 | # will be set to the directory where LIBOBJS objects are built. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15685 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15686 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15687 | done |
| 15688 | LIBOBJS=$ac_libobjs |
| 15689 | |
| 15690 | LTLIBOBJS=$ac_ltlibobjs |
| 15691 | |
| 15692 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15693 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15694 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15695 | ac_write_fail=0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15696 | ac_clean_files_save=$ac_clean_files |
| 15697 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15698 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15699 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15700 | as_write_fail=0 |
| 15701 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15702 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15703 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15704 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15705 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15706 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15707 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15708 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15709 | ac_cs_recheck=false |
| 15710 | ac_cs_silent=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15711 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15712 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15713 | export SHELL |
| 15714 | _ASEOF |
| 15715 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 15716 | ## -------------------- ## |
| 15717 | ## M4sh Initialization. ## |
| 15718 | ## -------------------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15719 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15720 | # Be more Bourne compatible |
| 15721 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15722 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15723 | emulate sh |
| 15724 | NULLCMD=: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15725 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15726 | # is contrary to our usage. Disable this feature. |
| 15727 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15728 | setopt NO_GLOB_SUBST |
| 15729 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15730 | case `(set -o) 2>/dev/null` in #( |
| 15731 | *posix*) : |
| 15732 | set -o posix ;; #( |
| 15733 | *) : |
| 15734 | ;; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15735 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 15736 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15737 | |
| 15738 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15739 | as_nl=' |
| 15740 | ' |
| 15741 | export as_nl |
| 15742 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 15743 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 15744 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15745 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15746 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 15747 | # but without wasting forks for bash or zsh. |
| 15748 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 15749 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15750 | as_echo='print -r --' |
| 15751 | as_echo_n='print -rn --' |
| 15752 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15753 | as_echo='printf %s\n' |
| 15754 | as_echo_n='printf %s' |
| 15755 | else |
| 15756 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 15757 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 15758 | as_echo_n='/usr/ucb/echo -n' |
| 15759 | else |
| 15760 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 15761 | as_echo_n_body='eval |
| 15762 | arg=$1; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15763 | case $arg in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15764 | *"$as_nl"*) |
| 15765 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 15766 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 15767 | esac; |
| 15768 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 15769 | ' |
| 15770 | export as_echo_n_body |
| 15771 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 15772 | fi |
| 15773 | export as_echo_body |
| 15774 | as_echo='sh -c $as_echo_body as_echo' |
| 15775 | fi |
| 15776 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15777 | # The user is always right. |
| 15778 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15779 | PATH_SEPARATOR=: |
| 15780 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 15781 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 15782 | PATH_SEPARATOR=';' |
| 15783 | } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15784 | fi |
| 15785 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15786 | |
| 15787 | # IFS |
| 15788 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15789 | # there to prevent editors from complaining about space-tab. |
| 15790 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15791 | # splitting by setting IFS to empty value.) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15792 | IFS=" "" $as_nl" |
| 15793 | |
| 15794 | # Find who we are. Look in the path if we contain no directory separator. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15795 | case $0 in #(( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15796 | *[\\/]* ) as_myself=$0 ;; |
| 15797 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15798 | for as_dir in $PATH |
| 15799 | do |
| 15800 | IFS=$as_save_IFS |
| 15801 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15802 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15803 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15804 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15805 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15806 | ;; |
| 15807 | esac |
| 15808 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15809 | # in which case we are not to be found in the path. |
| 15810 | if test "x$as_myself" = x; then |
| 15811 | as_myself=$0 |
| 15812 | fi |
| 15813 | if test ! -f "$as_myself"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15814 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15815 | exit 1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15816 | fi |
| 15817 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15818 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 15819 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 15820 | # suppresses any "Segmentation fault" message there. '((' could |
| 15821 | # trigger a bug in pdksh 5.2.14. |
| 15822 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 15823 | do eval test x\${$as_var+set} = xset \ |
| 15824 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15825 | done |
| 15826 | PS1='$ ' |
| 15827 | PS2='> ' |
| 15828 | PS4='+ ' |
| 15829 | |
| 15830 | # NLS nuisances. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15831 | LC_ALL=C |
| 15832 | export LC_ALL |
| 15833 | LANGUAGE=C |
| 15834 | export LANGUAGE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15835 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15836 | # CDPATH. |
| 15837 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15838 | |
| 15839 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15840 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 15841 | # ---------------------------------------- |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15842 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 15843 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15844 | # script with STATUS, using 1 if that was 0. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15845 | as_fn_error () |
| 15846 | { |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15847 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 15848 | if test "$4"; then |
| 15849 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 15850 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15851 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15852 | $as_echo "$as_me: error: $2" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15853 | as_fn_exit $as_status |
| 15854 | } # as_fn_error |
| 15855 | |
| 15856 | |
| 15857 | # as_fn_set_status STATUS |
| 15858 | # ----------------------- |
| 15859 | # Set $? to STATUS, without forking. |
| 15860 | as_fn_set_status () |
| 15861 | { |
| 15862 | return $1 |
| 15863 | } # as_fn_set_status |
| 15864 | |
| 15865 | # as_fn_exit STATUS |
| 15866 | # ----------------- |
| 15867 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 15868 | as_fn_exit () |
| 15869 | { |
| 15870 | set +e |
| 15871 | as_fn_set_status $1 |
| 15872 | exit $1 |
| 15873 | } # as_fn_exit |
| 15874 | |
| 15875 | # as_fn_unset VAR |
| 15876 | # --------------- |
| 15877 | # Portably unset VAR. |
| 15878 | as_fn_unset () |
| 15879 | { |
| 15880 | { eval $1=; unset $1;} |
| 15881 | } |
| 15882 | as_unset=as_fn_unset |
| 15883 | # as_fn_append VAR VALUE |
| 15884 | # ---------------------- |
| 15885 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 15886 | # advantage of any shell optimizations that allow amortized linear growth over |
| 15887 | # repeated appends, instead of the typical quadratic growth present in naive |
| 15888 | # implementations. |
| 15889 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 15890 | eval 'as_fn_append () |
| 15891 | { |
| 15892 | eval $1+=\$2 |
| 15893 | }' |
| 15894 | else |
| 15895 | as_fn_append () |
| 15896 | { |
| 15897 | eval $1=\$$1\$2 |
| 15898 | } |
| 15899 | fi # as_fn_append |
| 15900 | |
| 15901 | # as_fn_arith ARG... |
| 15902 | # ------------------ |
| 15903 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 15904 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 15905 | # must be portable across $(()) and expr. |
| 15906 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 15907 | eval 'as_fn_arith () |
| 15908 | { |
| 15909 | as_val=$(( $* )) |
| 15910 | }' |
| 15911 | else |
| 15912 | as_fn_arith () |
| 15913 | { |
| 15914 | as_val=`expr "$@" || test $? -eq 1` |
| 15915 | } |
| 15916 | fi # as_fn_arith |
| 15917 | |
| 15918 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15919 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15920 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15921 | as_expr=expr |
| 15922 | else |
| 15923 | as_expr=false |
| 15924 | fi |
| 15925 | |
| 15926 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15927 | as_basename=basename |
| 15928 | else |
| 15929 | as_basename=false |
| 15930 | fi |
| 15931 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15932 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15933 | as_dirname=dirname |
| 15934 | else |
| 15935 | as_dirname=false |
| 15936 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15937 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15938 | as_me=`$as_basename -- "$0" || |
| 15939 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15940 | X"$0" : 'X\(//\)$' \| \ |
| 15941 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15942 | $as_echo X/"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15943 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15944 | s//\1/ |
| 15945 | q |
| 15946 | } |
| 15947 | /^X\/\(\/\/\)$/{ |
| 15948 | s//\1/ |
| 15949 | q |
| 15950 | } |
| 15951 | /^X\/\(\/\).*/{ |
| 15952 | s//\1/ |
| 15953 | q |
| 15954 | } |
| 15955 | s/.*/./; q'` |
| 15956 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15957 | # Avoid depending upon Character Ranges. |
| 15958 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15959 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15960 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15961 | as_cr_digits='0123456789' |
| 15962 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15963 | |
| 15964 | ECHO_C= ECHO_N= ECHO_T= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15965 | case `echo -n x` in #((((( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15966 | -n*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15967 | case `echo 'xy\c'` in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15968 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15969 | xy) ECHO_C='\c';; |
| 15970 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 15971 | ECHO_T=' ';; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15972 | esac;; |
| 15973 | *) |
| 15974 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15975 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15976 | |
| 15977 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15978 | if test -d conf$$.dir; then |
| 15979 | rm -f conf$$.dir/conf$$.file |
| 15980 | else |
| 15981 | rm -f conf$$.dir |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15982 | mkdir conf$$.dir 2>/dev/null |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15983 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15984 | if (echo >conf$$.file) 2>/dev/null; then |
| 15985 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15986 | as_ln_s='ln -s' |
| 15987 | # ... but there are two gotchas: |
| 15988 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15989 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15990 | # In both cases, we have to default to `cp -p'. |
| 15991 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 15992 | as_ln_s='cp -p' |
| 15993 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15994 | as_ln_s=ln |
| 15995 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15996 | as_ln_s='cp -p' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15997 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15998 | else |
| 15999 | as_ln_s='cp -p' |
| 16000 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16001 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 16002 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16003 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16004 | |
| 16005 | # as_fn_mkdir_p |
| 16006 | # ------------- |
| 16007 | # Create "$as_dir" as a directory, including parents if necessary. |
| 16008 | as_fn_mkdir_p () |
| 16009 | { |
| 16010 | |
| 16011 | case $as_dir in #( |
| 16012 | -*) as_dir=./$as_dir;; |
| 16013 | esac |
| 16014 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 16015 | as_dirs= |
| 16016 | while :; do |
| 16017 | case $as_dir in #( |
| 16018 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 16019 | *) as_qdir=$as_dir;; |
| 16020 | esac |
| 16021 | as_dirs="'$as_qdir' $as_dirs" |
| 16022 | as_dir=`$as_dirname -- "$as_dir" || |
| 16023 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16024 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16025 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16026 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 16027 | $as_echo X"$as_dir" | |
| 16028 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16029 | s//\1/ |
| 16030 | q |
| 16031 | } |
| 16032 | /^X\(\/\/\)[^/].*/{ |
| 16033 | s//\1/ |
| 16034 | q |
| 16035 | } |
| 16036 | /^X\(\/\/\)$/{ |
| 16037 | s//\1/ |
| 16038 | q |
| 16039 | } |
| 16040 | /^X\(\/\).*/{ |
| 16041 | s//\1/ |
| 16042 | q |
| 16043 | } |
| 16044 | s/.*/./; q'` |
| 16045 | test -d "$as_dir" && break |
| 16046 | done |
| 16047 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16048 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16049 | |
| 16050 | |
| 16051 | } # as_fn_mkdir_p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16052 | if mkdir -p . 2>/dev/null; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16053 | as_mkdir_p='mkdir -p "$as_dir"' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16054 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16055 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16056 | as_mkdir_p=false |
| 16057 | fi |
| 16058 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16059 | if test -x / >/dev/null 2>&1; then |
| 16060 | as_test_x='test -x' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16061 | else |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16062 | if ls -dL / >/dev/null 2>&1; then |
| 16063 | as_ls_L_option=L |
| 16064 | else |
| 16065 | as_ls_L_option= |
| 16066 | fi |
| 16067 | as_test_x=' |
| 16068 | eval sh -c '\'' |
| 16069 | if test -d "$1"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16070 | test -d "$1/."; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16071 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16072 | case $1 in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16073 | -*)set "./$1";; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16074 | esac; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16075 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16076 | ???[sx]*):;;*)false;;esac;fi |
| 16077 | '\'' sh |
| 16078 | ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16079 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16080 | as_executable_p=$as_test_x |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16081 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16082 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16083 | 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] | 16084 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16085 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16086 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16087 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16088 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16089 | exec 6>&1 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16090 | ## ----------------------------------- ## |
| 16091 | ## Main body of $CONFIG_STATUS script. ## |
| 16092 | ## ----------------------------------- ## |
| 16093 | _ASEOF |
| 16094 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16095 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16096 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16097 | # 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] | 16098 | # report actual input values of CONFIG_FILES etc. instead of their |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16099 | # values after options handling. |
| 16100 | ac_log=" |
Alexandre Julliard | e44875b | 2011-03-04 19:25:23 +0100 | [diff] [blame] | 16101 | This file was extended by Wine $as_me 1.3.15, which was |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16102 | generated by GNU Autoconf 2.67. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16103 | |
| 16104 | CONFIG_FILES = $CONFIG_FILES |
| 16105 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16106 | CONFIG_LINKS = $CONFIG_LINKS |
| 16107 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16108 | $ $0 $@ |
| 16109 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16110 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 16111 | " |
| 16112 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16113 | _ACEOF |
| 16114 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16115 | case $ac_config_files in *" |
| 16116 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 16117 | esac |
| 16118 | |
| 16119 | case $ac_config_headers in *" |
| 16120 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 16121 | esac |
| 16122 | |
| 16123 | |
| 16124 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16125 | # Files that config.status was made for. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16126 | config_files="$ac_config_files" |
| 16127 | config_headers="$ac_config_headers" |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16128 | config_links="$ac_config_links" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16129 | config_commands="$ac_config_commands" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16130 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16131 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16132 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16133 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16134 | ac_cs_usage="\ |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16135 | \`$as_me' instantiates files and other configuration actions |
| 16136 | from templates according to the current configuration. Unless the files |
| 16137 | and actions are specified as TAGs, all are instantiated by default. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16138 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16139 | Usage: $0 [OPTION]... [TAG]... |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16140 | |
| 16141 | -h, --help print this help, then exit |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 16142 | -V, --version print version number and configuration settings, then exit |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16143 | --config print configuration, then exit |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16144 | -q, --quiet, --silent |
| 16145 | do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16146 | -d, --debug don't remove temporary files |
| 16147 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16148 | --file=FILE[:TEMPLATE] |
| 16149 | instantiate the configuration file FILE |
| 16150 | --header=FILE[:TEMPLATE] |
| 16151 | instantiate the configuration header FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16152 | |
| 16153 | Configuration files: |
| 16154 | $config_files |
| 16155 | |
| 16156 | Configuration headers: |
| 16157 | $config_headers |
| 16158 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16159 | Configuration links: |
| 16160 | $config_links |
| 16161 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16162 | Configuration commands: |
| 16163 | $config_commands |
| 16164 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16165 | Report bugs to <wine-devel@winehq.org>. |
| 16166 | Wine home page: <http://www.winehq.org>." |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 16167 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16168 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16169 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16170 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16171 | ac_cs_version="\\ |
Alexandre Julliard | e44875b | 2011-03-04 19:25:23 +0100 | [diff] [blame] | 16172 | Wine config.status 1.3.15 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16173 | configured by $0, generated by GNU Autoconf 2.67, |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16174 | with options \\"\$ac_cs_config\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16175 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16176 | Copyright (C) 2010 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16177 | This config.status script is free software; the Free Software Foundation |
| 16178 | gives unlimited permission to copy, distribute and modify it." |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16179 | |
| 16180 | ac_pwd='$ac_pwd' |
| 16181 | srcdir='$srcdir' |
| 16182 | INSTALL='$INSTALL' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16183 | test -n "\$AWK" || AWK=awk |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16184 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16185 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16186 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16187 | # The default lists apply if the user does not specify any file. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16188 | ac_need_defaults=: |
| 16189 | while test $# != 0 |
| 16190 | do |
| 16191 | case $1 in |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16192 | --*=?*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16193 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16194 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16195 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16196 | ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16197 | --*=) |
| 16198 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16199 | ac_optarg= |
| 16200 | ac_shift=: |
| 16201 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16202 | *) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16203 | ac_option=$1 |
| 16204 | ac_optarg=$2 |
| 16205 | ac_shift=shift |
| 16206 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16207 | esac |
| 16208 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16209 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16210 | # Handling of the options. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16211 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16212 | ac_cs_recheck=: ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16213 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16214 | $as_echo "$ac_cs_version"; exit ;; |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16215 | --config | --confi | --conf | --con | --co | --c ) |
| 16216 | $as_echo "$ac_cs_config"; exit ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16217 | --debug | --debu | --deb | --de | --d | -d ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16218 | debug=: ;; |
| 16219 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16220 | $ac_shift |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16221 | case $ac_optarg in |
| 16222 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16223 | '') as_fn_error $? "missing file argument" ;; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16224 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16225 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16226 | ac_need_defaults=false;; |
| 16227 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16228 | $ac_shift |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16229 | case $ac_optarg in |
| 16230 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 16231 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16232 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16233 | ac_need_defaults=false;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16234 | --he | --h) |
| 16235 | # Conflict between --help and --header |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16236 | as_fn_error $? "ambiguous option: \`$1' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16237 | Try \`$0 --help' for more information.";; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16238 | --help | --hel | -h ) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16239 | $as_echo "$ac_cs_usage"; exit ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16240 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16241 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16242 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16243 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16244 | # This is an error. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16245 | -*) as_fn_error $? "unrecognized option: \`$1' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16246 | Try \`$0 --help' for more information." ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16247 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16248 | *) as_fn_append ac_config_targets " $1" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16249 | ac_need_defaults=false ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16250 | |
| 16251 | esac |
| 16252 | shift |
| 16253 | done |
| 16254 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16255 | ac_configure_extra_args= |
| 16256 | |
| 16257 | if $ac_cs_silent; then |
| 16258 | exec 6>/dev/null |
| 16259 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16260 | fi |
| 16261 | |
| 16262 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16263 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16264 | if \$ac_cs_recheck; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16265 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 16266 | shift |
| 16267 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 16268 | CONFIG_SHELL='$SHELL' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16269 | export CONFIG_SHELL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16270 | exec "\$@" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16271 | fi |
| 16272 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16273 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16274 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16275 | exec 5>>config.log |
| 16276 | { |
| 16277 | echo |
| 16278 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16279 | ## Running $as_me. ## |
| 16280 | _ASBOX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16281 | $as_echo "$ac_log" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16282 | } >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16283 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16284 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16285 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16286 | # |
| 16287 | # INIT-COMMANDS |
| 16288 | # |
| 16289 | wine_fn_output_makefile () |
| 16290 | { |
| 16291 | cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return |
| 16292 | $ALL_MAKEFILE_DEPENDS |
| 16293 | _WINE_EOF |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16294 | as_fn_error $? "could not create Makefile" "$LINENO" 5 |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16295 | } |
| 16296 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16297 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16298 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16299 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16300 | |
| 16301 | # Handling of arguments. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16302 | for ac_config_target in $ac_config_targets |
| 16303 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16304 | case $ac_config_target in |
| 16305 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | c4704c2 | 2006-09-22 09:33:00 +0200 | [diff] [blame] | 16306 | "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;; |
Alexandre Julliard | 40977bf | 2010-11-11 12:24:46 +0100 | [diff] [blame] | 16307 | "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;; |
Alexandre Julliard | a632052 | 2010-02-03 13:14:03 +0100 | [diff] [blame] | 16308 | "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;; |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 16309 | "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;; |
| 16310 | "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;; |
| 16311 | "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;; |
| 16312 | "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;; |
Alexandre Julliard | 321d388 | 2010-05-06 20:51:53 +0200 | [diff] [blame] | 16313 | "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;; |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16314 | "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;; |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 16315 | "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;; |
| 16316 | "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;; |
Alexandre Julliard | 1c60e3b | 2006-09-12 16:10:51 +0200 | [diff] [blame] | 16317 | "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;; |
Alexandre Julliard | b8a2e3b | 2006-11-16 14:49:25 +0100 | [diff] [blame] | 16318 | "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16319 | "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;; |
| 16320 | "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
| 16321 | "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 16322 | "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16323 | "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
| 16324 | "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16325 | "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16326 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 16327 | "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16328 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16329 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16330 | esac |
| 16331 | done |
| 16332 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16333 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16334 | # If the user did not use the arguments to specify the items to instantiate, |
| 16335 | # then the envvar interface is used. Set only those that are not. |
| 16336 | # We use the long form for the default assignment because of an extremely |
| 16337 | # bizarre bug on SunOS 4.1.3. |
| 16338 | if $ac_need_defaults; then |
| 16339 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16340 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16341 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16342 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 16343 | fi |
| 16344 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16345 | # Have a temporary directory for convenience. Make it in the build tree |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16346 | # 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] | 16347 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16348 | # Hook for its removal unless debugging. |
| 16349 | # Note that there is a small window in which the directory will not be cleaned: |
| 16350 | # after its creation but before its name has been assigned to `$tmp'. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16351 | $debug || |
| 16352 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16353 | tmp= |
| 16354 | trap 'exit_status=$? |
| 16355 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 16356 | ' 0 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16357 | trap 'as_fn_exit 1' 1 2 13 15 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16358 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16359 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16360 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16361 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16362 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16363 | test -n "$tmp" && test -d "$tmp" |
| 16364 | } || |
| 16365 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16366 | tmp=./conf$$-$RANDOM |
| 16367 | (umask 077 && mkdir "$tmp") |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16368 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16369 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16370 | # Set up the scripts for CONFIG_FILES section. |
| 16371 | # No need to generate them if there are no CONFIG_FILES. |
| 16372 | # This happens for instance with `./config.status config.h'. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16373 | if test -n "$CONFIG_FILES"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16374 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16375 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 16376 | ac_cs_awk_getline=: |
| 16377 | ac_cs_awk_pipe_init= |
| 16378 | ac_cs_awk_read_file=' |
| 16379 | while ((getline aline < (F[key])) > 0) |
| 16380 | print(aline) |
| 16381 | close(F[key])' |
| 16382 | ac_cs_awk_pipe_fini= |
| 16383 | else |
| 16384 | ac_cs_awk_getline=false |
| 16385 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 16386 | ac_cs_awk_read_file=' |
| 16387 | print "|#_!!_#|" |
| 16388 | print "cat " F[key] " &&" |
| 16389 | '$ac_cs_awk_pipe_init |
| 16390 | # The final `:' finishes the AND list. |
| 16391 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 16392 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16393 | ac_cr=`echo X | tr X '\015'` |
| 16394 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16395 | # But we know of no other shell where ac_cr would be empty at this |
| 16396 | # point, so we can use a bashism as a fallback. |
| 16397 | if test "x$ac_cr" = x; then |
| 16398 | eval ac_cr=\$\'\\r\' |
| 16399 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16400 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16401 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16402 | ac_cs_awk_cr='\\r' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16403 | else |
| 16404 | ac_cs_awk_cr=$ac_cr |
| 16405 | fi |
| 16406 | |
| 16407 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16408 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16409 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16410 | # Create commands to substitute file output variables. |
| 16411 | { |
| 16412 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
| 16413 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && |
| 16414 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 16415 | echo "_ACAWK" && |
| 16416 | echo "_ACEOF" |
| 16417 | } >conf$$files.sh && |
| 16418 | . ./conf$$files.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16419 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16420 | rm -f conf$$files.sh |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16421 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16422 | { |
| 16423 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16424 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16425 | echo "_ACEOF" |
| 16426 | } >conf$$subs.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16427 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16428 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16429 | ac_delim='%!_!# ' |
| 16430 | for ac_last_try in false false false false false :; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16431 | . ./conf$$subs.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16432 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16433 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16434 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16435 | if test $ac_delim_n = $ac_delim_num; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16436 | break |
| 16437 | elif $ac_last_try; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16438 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16439 | else |
| 16440 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16441 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16442 | done |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16443 | rm -f conf$$subs.sh |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16444 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16445 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16446 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16447 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16448 | sed -n ' |
| 16449 | h |
| 16450 | s/^/S["/; s/!.*/"]=/ |
| 16451 | p |
| 16452 | g |
| 16453 | s/^[^!]*!// |
| 16454 | :repl |
| 16455 | t repl |
| 16456 | s/'"$ac_delim"'$// |
| 16457 | t delim |
| 16458 | :nl |
| 16459 | h |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16460 | s/\(.\{148\}\)..*/\1/ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16461 | t more1 |
| 16462 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16463 | p |
| 16464 | n |
| 16465 | b repl |
| 16466 | :more1 |
| 16467 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16468 | p |
| 16469 | g |
| 16470 | s/.\{148\}// |
| 16471 | t nl |
| 16472 | :delim |
| 16473 | h |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16474 | s/\(.\{148\}\)..*/\1/ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16475 | t more2 |
| 16476 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 16477 | p |
| 16478 | b |
| 16479 | :more2 |
| 16480 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16481 | p |
| 16482 | g |
| 16483 | s/.\{148\}// |
| 16484 | t delim |
| 16485 | ' <conf$$subs.awk | sed ' |
| 16486 | /^[^""]/{ |
| 16487 | N |
| 16488 | s/\n// |
| 16489 | } |
| 16490 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16491 | rm -f conf$$subs.awk |
| 16492 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16493 | _ACAWK |
| 16494 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 16495 | for (key in S) S_is_set[key] = 1 |
| 16496 | FS = "" |
| 16497 | \$ac_cs_awk_pipe_init |
| 16498 | } |
| 16499 | { |
| 16500 | line = $ 0 |
| 16501 | nfields = split(line, field, "@") |
| 16502 | substed = 0 |
| 16503 | len = length(field[1]) |
| 16504 | for (i = 2; i < nfields; i++) { |
| 16505 | key = field[i] |
| 16506 | keylen = length(key) |
| 16507 | if (S_is_set[key]) { |
| 16508 | value = S[key] |
| 16509 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 16510 | len += length(value) + length(field[++i]) |
| 16511 | substed = 1 |
| 16512 | } else |
| 16513 | len += 1 + keylen |
| 16514 | } |
| 16515 | if (nfields == 3 && !substed) { |
| 16516 | key = field[2] |
| 16517 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 16518 | \$ac_cs_awk_read_file |
| 16519 | next |
| 16520 | } |
| 16521 | } |
| 16522 | print line |
| 16523 | } |
| 16524 | \$ac_cs_awk_pipe_fini |
| 16525 | _ACAWK |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16526 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16527 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16528 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 16529 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 16530 | else |
| 16531 | cat |
| 16532 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16533 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16534 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16535 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16536 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 16537 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16538 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16539 | # (actually we leave an empty line to preserve line numbers). |
| 16540 | if test "x$srcdir" = x.; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16541 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 16542 | h |
| 16543 | s/// |
| 16544 | s/^/:/ |
| 16545 | s/[ ]*$/:/ |
| 16546 | s/:\$(srcdir):/:/g |
| 16547 | s/:\${srcdir}:/:/g |
| 16548 | s/:@srcdir@:/:/g |
| 16549 | s/^:*// |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16550 | s/:*$// |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16551 | x |
| 16552 | s/\(=[ ]*\).*/\1/ |
| 16553 | G |
| 16554 | s/\n// |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16555 | s/^[^=]*=[ ]*$// |
| 16556 | }' |
| 16557 | fi |
| 16558 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16559 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16560 | fi # test -n "$CONFIG_FILES" |
| 16561 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16562 | # Set up the scripts for CONFIG_HEADERS section. |
| 16563 | # No need to generate them if there are no CONFIG_HEADERS. |
| 16564 | # This happens for instance with `./config.status Makefile'. |
| 16565 | if test -n "$CONFIG_HEADERS"; then |
| 16566 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 16567 | BEGIN { |
| 16568 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16569 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16570 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 16571 | # here-document in config.status, that substitutes the proper values into |
| 16572 | # config.h.in to produce config.h. |
| 16573 | |
| 16574 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 16575 | # handling of long lines. |
| 16576 | ac_delim='%!_!# ' |
| 16577 | for ac_last_try in false false :; do |
| 16578 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 16579 | if test -z "$ac_t"; then |
| 16580 | break |
| 16581 | elif $ac_last_try; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16582 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16583 | else |
| 16584 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16585 | fi |
| 16586 | done |
| 16587 | |
| 16588 | # For the awk script, D is an array of macro values keyed by name, |
| 16589 | # likewise P contains macro parameters if any. Preserve backslash |
| 16590 | # newline sequences. |
| 16591 | |
| 16592 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 16593 | sed -n ' |
| 16594 | s/.\{148\}/&'"$ac_delim"'/g |
| 16595 | t rset |
| 16596 | :rset |
| 16597 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 16598 | t def |
| 16599 | d |
| 16600 | :def |
| 16601 | s/\\$// |
| 16602 | t bsnl |
| 16603 | s/["\\]/\\&/g |
| 16604 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16605 | D["\1"]=" \3"/p |
| 16606 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 16607 | d |
| 16608 | :bsnl |
| 16609 | s/["\\]/\\&/g |
| 16610 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16611 | D["\1"]=" \3\\\\\\n"\\/p |
| 16612 | t cont |
| 16613 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 16614 | t cont |
| 16615 | d |
| 16616 | :cont |
| 16617 | n |
| 16618 | s/.\{148\}/&'"$ac_delim"'/g |
| 16619 | t clear |
| 16620 | :clear |
| 16621 | s/\\$// |
| 16622 | t bsnlc |
| 16623 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 16624 | d |
| 16625 | :bsnlc |
| 16626 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 16627 | b cont |
| 16628 | ' <confdefs.h | sed ' |
| 16629 | s/'"$ac_delim"'/"\\\ |
| 16630 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16631 | |
| 16632 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16633 | for (key in D) D_is_set[key] = 1 |
| 16634 | FS = "" |
| 16635 | } |
| 16636 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 16637 | line = \$ 0 |
| 16638 | split(line, arg, " ") |
| 16639 | if (arg[1] == "#") { |
| 16640 | defundef = arg[2] |
| 16641 | mac1 = arg[3] |
| 16642 | } else { |
| 16643 | defundef = substr(arg[1], 2) |
| 16644 | mac1 = arg[2] |
| 16645 | } |
| 16646 | split(mac1, mac2, "(") #) |
| 16647 | macro = mac2[1] |
| 16648 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 16649 | if (D_is_set[macro]) { |
| 16650 | # Preserve the white space surrounding the "#". |
| 16651 | print prefix "define", macro P[macro] D[macro] |
| 16652 | next |
| 16653 | } else { |
| 16654 | # Replace #undef with comments. This is necessary, for example, |
| 16655 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 16656 | # on some systems where configure will not decide to define it. |
| 16657 | if (defundef == "undef") { |
| 16658 | print "/*", prefix defundef, macro, "*/" |
| 16659 | next |
| 16660 | } |
| 16661 | } |
| 16662 | } |
| 16663 | { print } |
| 16664 | _ACAWK |
| 16665 | _ACEOF |
| 16666 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16667 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16668 | fi # test -n "$CONFIG_HEADERS" |
| 16669 | |
| 16670 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16671 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16672 | shift |
| 16673 | for ac_tag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16674 | do |
| 16675 | case $ac_tag in |
| 16676 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16677 | esac |
| 16678 | case $ac_mode$ac_tag in |
| 16679 | :[FHL]*:*);; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16680 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16681 | :[FH]-) ac_tag=-:-;; |
| 16682 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16683 | esac |
| 16684 | ac_save_IFS=$IFS |
| 16685 | IFS=: |
| 16686 | set x $ac_tag |
| 16687 | IFS=$ac_save_IFS |
| 16688 | shift |
| 16689 | ac_file=$1 |
| 16690 | shift |
| 16691 | |
| 16692 | case $ac_mode in |
| 16693 | :L) ac_source=$1;; |
| 16694 | :[FH]) |
| 16695 | ac_file_inputs= |
| 16696 | for ac_f |
| 16697 | do |
| 16698 | case $ac_f in |
| 16699 | -) ac_f="$tmp/stdin";; |
| 16700 | *) # Look for the file first in the build tree, then in the source tree |
| 16701 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16702 | # because $ac_f cannot contain `:'. |
| 16703 | test -f "$ac_f" || |
| 16704 | case $ac_f in |
| 16705 | [\\/$]*) false;; |
| 16706 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16707 | esac || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16708 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16709 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16710 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16711 | as_fn_append ac_file_inputs " '$ac_f'" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16712 | done |
| 16713 | |
| 16714 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16715 | # use $as_me), people would be surprised to read: |
| 16716 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16717 | configure_input='Generated from '` |
| 16718 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 16719 | `' by configure.' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16720 | if test x"$ac_file" != x-; then |
| 16721 | configure_input="$ac_file. $configure_input" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16722 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16723 | $as_echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16724 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16725 | # Neutralize special characters interpreted by sed in replacement strings. |
| 16726 | case $configure_input in #( |
| 16727 | *\&* | *\|* | *\\* ) |
| 16728 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 16729 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 16730 | *) ac_sed_conf_input=$configure_input;; |
| 16731 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16732 | |
| 16733 | case $ac_tag in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16734 | *:-:* | *:-) cat >"$tmp/stdin" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16735 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16736 | esac |
| 16737 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16738 | esac |
| 16739 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16740 | ac_dir=`$as_dirname -- "$ac_file" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16741 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16742 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16743 | X"$ac_file" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16744 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16745 | $as_echo X"$ac_file" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16746 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16747 | s//\1/ |
| 16748 | q |
| 16749 | } |
| 16750 | /^X\(\/\/\)[^/].*/{ |
| 16751 | s//\1/ |
| 16752 | q |
| 16753 | } |
| 16754 | /^X\(\/\/\)$/{ |
| 16755 | s//\1/ |
| 16756 | q |
| 16757 | } |
| 16758 | /^X\(\/\).*/{ |
| 16759 | s//\1/ |
| 16760 | q |
| 16761 | } |
| 16762 | s/.*/./; q'` |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16763 | as_dir="$ac_dir"; as_fn_mkdir_p |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16764 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16765 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16766 | case "$ac_dir" in |
| 16767 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16768 | *) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16769 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16770 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16771 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16772 | case $ac_top_builddir_sub in |
| 16773 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16774 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16775 | esac ;; |
| 16776 | esac |
| 16777 | ac_abs_top_builddir=$ac_pwd |
| 16778 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16779 | # for backward compatibility: |
| 16780 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16781 | |
| 16782 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16783 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16784 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16785 | ac_top_srcdir=$ac_top_builddir_sub |
| 16786 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16787 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16788 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16789 | ac_top_srcdir=$srcdir |
| 16790 | ac_abs_top_srcdir=$srcdir ;; |
| 16791 | *) # Relative name. |
| 16792 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16793 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16794 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16795 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16796 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16797 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16798 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16799 | case $ac_mode in |
| 16800 | :F) |
| 16801 | # |
| 16802 | # CONFIG_FILE |
| 16803 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16804 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16805 | case $INSTALL in |
| 16806 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16807 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 16808 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16809 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16810 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16811 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16812 | # If the template does not know about datarootdir, expand it. |
| 16813 | # FIXME: This hack should be removed a few years after 2.60. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16814 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16815 | ac_sed_dataroot=' |
| 16816 | /datarootdir/ { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16817 | p |
| 16818 | q |
| 16819 | } |
| 16820 | /@datadir@/p |
| 16821 | /@docdir@/p |
| 16822 | /@infodir@/p |
| 16823 | /@localedir@/p |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16824 | /@mandir@/p' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16825 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16826 | *datarootdir*) ac_datarootdir_seen=yes;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16827 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16829 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16830 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16831 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16832 | ac_datarootdir_hack=' |
| 16833 | s&@datadir@&$datadir&g |
| 16834 | s&@docdir@&$docdir&g |
| 16835 | s&@infodir@&$infodir&g |
| 16836 | s&@localedir@&$localedir&g |
| 16837 | s&@mandir@&$mandir&g |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16838 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16839 | esac |
| 16840 | _ACEOF |
| 16841 | |
| 16842 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16843 | # Shell code in configure.ac might set extrasub. |
| 16844 | # FIXME: do we really want to maintain this feature? |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16845 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16846 | ac_sed_extra="$ac_vpsub |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16847 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16848 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16849 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16850 | :t |
| 16851 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16852 | s|@configure_input@|$ac_sed_conf_input|;t t |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16853 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16854 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16855 | s&@srcdir@&$ac_srcdir&;t t |
| 16856 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16857 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16858 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16859 | s&@builddir@&$ac_builddir&;t t |
| 16860 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16861 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16862 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16863 | $ac_datarootdir_hack |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16864 | " |
| 16865 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 16866 | if $ac_cs_awk_getline; then |
| 16867 | $AWK -f "$tmp/subs.awk" |
| 16868 | else |
| 16869 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 16870 | fi >$tmp/out \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16871 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16872 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16873 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16874 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 16875 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16877 | which seems to be undefined. Please make sure it is defined" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16878 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16879 | which seems to be undefined. Please make sure it is defined" >&2;} |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16880 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16881 | rm -f "$tmp/stdin" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16882 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16883 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 16884 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 16885 | esac \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16886 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16887 | ;; |
| 16888 | :H) |
| 16889 | # |
| 16890 | # CONFIG_HEADER |
| 16891 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16892 | if test x"$ac_file" != x-; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16893 | { |
| 16894 | $as_echo "/* $configure_input */" \ |
| 16895 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 16896 | } >"$tmp/config.h" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16897 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16898 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16899 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16900 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16901 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16902 | rm -f "$ac_file" |
| 16903 | mv "$tmp/config.h" "$ac_file" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16904 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16905 | fi |
| 16906 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16907 | $as_echo "/* $configure_input */" \ |
| 16908 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16909 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16910 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16911 | ;; |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16912 | :L) |
| 16913 | # |
| 16914 | # CONFIG_LINK |
| 16915 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16916 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16917 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then |
| 16918 | : |
| 16919 | else |
| 16920 | # Prefer the file from the source tree if names are identical. |
| 16921 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then |
| 16922 | ac_source=$srcdir/$ac_source |
| 16923 | fi |
| 16924 | |
| 16925 | { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 |
| 16926 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} |
| 16927 | |
| 16928 | if test ! -r "$ac_source"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16929 | as_fn_error $? "$ac_source: file not found" "$LINENO" 5 |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16930 | fi |
| 16931 | rm -f "$ac_file" |
| 16932 | |
| 16933 | # Try a relative symlink, then a hard link, then a copy. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16934 | case $ac_source in |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16935 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; |
| 16936 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; |
| 16937 | esac |
| 16938 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || |
| 16939 | ln "$ac_source" "$ac_file" 2>/dev/null || |
| 16940 | cp -p "$ac_source" "$ac_file" || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16941 | as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16942 | fi |
| 16943 | ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16944 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16945 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16946 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16947 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16948 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16949 | |
| 16950 | case $ac_file$ac_mode in |
Alexandre Julliard | c4704c2 | 2006-09-22 09:33:00 +0200 | [diff] [blame] | 16951 | "include/stamp-h":C) echo timestamp > include/stamp-h ;; |
Alexandre Julliard | a1c253e | 2010-02-11 20:26:35 +0100 | [diff] [blame] | 16952 | "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5 |
| 16953 | $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;; |
| 16954 | "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5 |
| 16955 | $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;; |
| 16956 | "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5 |
| 16957 | $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;; |
| 16958 | "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5 |
| 16959 | $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;; |
| 16960 | "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5 |
| 16961 | $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;; |
| 16962 | "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5 |
| 16963 | $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;; |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16964 | "Makefile":C) wine_fn_output_makefile Makefile ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16965 | |
| 16966 | esac |
| 16967 | done # for ac_tag |
| 16968 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 16969 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16970 | as_fn_exit 0 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16971 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16972 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16973 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16974 | test $ac_write_fail = 0 || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16975 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16976 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16977 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16978 | # configure is writing to config.log, and then calls config.status. |
| 16979 | # config.status does its own redirection, appending to config.log. |
| 16980 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16981 | # by configure, so config.status won't be able to write to it; its |
| 16982 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16983 | # effectively closing config.log, so it can be properly (re)opened and |
| 16984 | # appended to by config.status. When coming back to configure, we |
| 16985 | # need to make the FD available again. |
| 16986 | if test "$no_create" != yes; then |
| 16987 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16988 | ac_config_status_args= |
| 16989 | test "$silent" = yes && |
| 16990 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16991 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16992 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16993 | exec 5>>config.log |
| 16994 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16995 | # would make configure fail if this is the last instruction. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16996 | $ac_cs_success || as_fn_exit 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16997 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16998 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17000 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 17001 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17002 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17003 | |
Alexandre Julliard | e3bd111 | 2006-09-21 11:14:38 +0200 | [diff] [blame] | 17004 | if test "$no_create" = "yes" |
| 17005 | then |
| 17006 | exit 0 |
| 17007 | fi |
| 17008 | |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17009 | ac_save_IFS="$IFS" |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 17010 | if test "x$wine_notices != "x; then |
| 17011 | echo >&6 |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 17012 | IFS="|" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17013 | for msg in $wine_notices; do |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 17014 | IFS="$ac_save_IFS" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17015 | if test -n "$msg"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17016 | { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17017 | $as_echo "$as_me: $msg" >&6;} |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17018 | fi |
| 17019 | done |
| 17020 | fi |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 17021 | IFS="|" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17022 | for msg in $wine_warnings; do |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 17023 | IFS="$ac_save_IFS" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17024 | if test -n "$msg"; then |
| 17025 | echo >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17027 | $as_echo "$as_me: WARNING: $msg" >&2;} |
Detlef Riekenberg | e84a382 | 2006-08-21 05:28:17 +0200 | [diff] [blame] | 17028 | fi |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17029 | done |
| 17030 | IFS="$ac_save_IFS" |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 17031 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 17032 | echo " |
Alexandre Julliard | 64362ac | 2010-02-23 13:33:52 +0100 | [diff] [blame] | 17033 | $as_me: Finished. Do '${ac_make}' to compile Wine. |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 17034 | " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17035 | |