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 | f0296a8 | 2011-01-21 20:31:58 +0100 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.67 for Wine 1.3.12. |
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 | f0296a8 | 2011-01-21 20:31:58 +0100 | [diff] [blame] | 555 | PACKAGE_VERSION='1.3.12' |
| 556 | PACKAGE_STRING='Wine 1.3.12' |
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 |
| 816 | with_wine_tools |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 817 | with_wine64 |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 818 | enable_largefile |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 819 | with_x |
| 820 | ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 821 | ac_precious_vars='build_alias |
| 822 | host_alias |
| 823 | target_alias |
| 824 | CC |
| 825 | CFLAGS |
| 826 | LDFLAGS |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 827 | LIBS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 828 | CPPFLAGS |
| 829 | CXX |
| 830 | CXXFLAGS |
| 831 | CCC |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 832 | CPP |
| 833 | XMKMF' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 834 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 835 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 836 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 837 | ac_init_help= |
| 838 | ac_init_version=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 839 | ac_unrecognized_opts= |
| 840 | ac_unrecognized_sep= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 841 | # The variables have the same names as the options, with |
| 842 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 843 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 844 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 845 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 846 | no_recursion= |
| 847 | prefix=NONE |
| 848 | program_prefix=NONE |
| 849 | program_suffix=NONE |
| 850 | program_transform_name=s,x,x, |
| 851 | silent= |
| 852 | site= |
| 853 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 854 | verbose= |
| 855 | x_includes=NONE |
| 856 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 857 | |
| 858 | # Installation directory options. |
| 859 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 860 | # and all the variables that are supposed to be based on exec_prefix |
| 861 | # by default will actually change. |
| 862 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 863 | # (The list follows the same order as the GNU Coding Standards.) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 864 | bindir='${exec_prefix}/bin' |
| 865 | sbindir='${exec_prefix}/sbin' |
| 866 | libexecdir='${exec_prefix}/libexec' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 867 | datarootdir='${prefix}/share' |
| 868 | datadir='${datarootdir}' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 869 | sysconfdir='${prefix}/etc' |
| 870 | sharedstatedir='${prefix}/com' |
| 871 | localstatedir='${prefix}/var' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 872 | includedir='${prefix}/include' |
| 873 | oldincludedir='/usr/include' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 874 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 875 | infodir='${datarootdir}/info' |
| 876 | htmldir='${docdir}' |
| 877 | dvidir='${docdir}' |
| 878 | pdfdir='${docdir}' |
| 879 | psdir='${docdir}' |
| 880 | libdir='${exec_prefix}/lib' |
| 881 | localedir='${datarootdir}/locale' |
| 882 | mandir='${datarootdir}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 883 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 884 | ac_prev= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 885 | ac_dashdash= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 886 | for ac_option |
| 887 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 888 | # If the previous option needs an argument, assign it. |
| 889 | if test -n "$ac_prev"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 890 | eval $ac_prev=\$ac_option |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 891 | ac_prev= |
| 892 | continue |
| 893 | fi |
| 894 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 895 | case $ac_option in |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 896 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 897 | *=) ac_optarg= ;; |
| 898 | *) ac_optarg=yes ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 899 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 900 | |
| 901 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 902 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 903 | case $ac_dashdash$ac_option in |
| 904 | --) |
| 905 | ac_dashdash=yes ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 906 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 907 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 908 | ac_prev=bindir ;; |
| 909 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 910 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 911 | |
| 912 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 913 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 914 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 915 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 916 | |
| 917 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 918 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 919 | ac_prev=cache_file ;; |
| 920 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 921 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 922 | cache_file=$ac_optarg ;; |
| 923 | |
| 924 | --config-cache | -C) |
| 925 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 926 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 927 | -datadir | --datadir | --datadi | --datad) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 928 | ac_prev=datadir ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 929 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 930 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 931 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 932 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 933 | | --dataroo | --dataro | --datar) |
| 934 | ac_prev=datarootdir ;; |
| 935 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 936 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 937 | datarootdir=$ac_optarg ;; |
| 938 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 939 | -disable-* | --disable-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 940 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 941 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 942 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 943 | as_fn_error $? "invalid feature name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 944 | ac_useropt_orig=$ac_useropt |
| 945 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 946 | case $ac_user_opts in |
| 947 | *" |
| 948 | "enable_$ac_useropt" |
| 949 | "*) ;; |
| 950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 951 | ac_unrecognized_sep=', ';; |
| 952 | esac |
| 953 | eval enable_$ac_useropt=no ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 954 | |
| 955 | -docdir | --docdir | --docdi | --doc | --do) |
| 956 | ac_prev=docdir ;; |
| 957 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 958 | docdir=$ac_optarg ;; |
| 959 | |
| 960 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 961 | ac_prev=dvidir ;; |
| 962 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 963 | dvidir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 964 | |
| 965 | -enable-* | --enable-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 966 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 967 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 968 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 969 | as_fn_error $? "invalid feature name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 970 | ac_useropt_orig=$ac_useropt |
| 971 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 972 | case $ac_user_opts in |
| 973 | *" |
| 974 | "enable_$ac_useropt" |
| 975 | "*) ;; |
| 976 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 977 | ac_unrecognized_sep=', ';; |
| 978 | esac |
| 979 | eval enable_$ac_useropt=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 980 | |
| 981 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 982 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 983 | | --exec | --exe | --ex) |
| 984 | ac_prev=exec_prefix ;; |
| 985 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 986 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 987 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 988 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 989 | |
| 990 | -gas | --gas | --ga | --g) |
| 991 | # Obsolete; use --with-gas. |
| 992 | with_gas=yes ;; |
| 993 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 994 | -help | --help | --hel | --he | -h) |
| 995 | ac_init_help=long ;; |
| 996 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 997 | ac_init_help=recursive ;; |
| 998 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 999 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1000 | |
| 1001 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1002 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1003 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1004 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1005 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1006 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1007 | ac_prev=htmldir ;; |
| 1008 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1009 | | --ht=*) |
| 1010 | htmldir=$ac_optarg ;; |
| 1011 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1012 | -includedir | --includedir | --includedi | --included | --include \ |
| 1013 | | --includ | --inclu | --incl | --inc) |
| 1014 | ac_prev=includedir ;; |
| 1015 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1016 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1017 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1018 | |
| 1019 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1020 | ac_prev=infodir ;; |
| 1021 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1022 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1023 | |
| 1024 | -libdir | --libdir | --libdi | --libd) |
| 1025 | ac_prev=libdir ;; |
| 1026 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1027 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1028 | |
| 1029 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1030 | | --libexe | --libex | --libe) |
| 1031 | ac_prev=libexecdir ;; |
| 1032 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1033 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1034 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1035 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1036 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1037 | ac_prev=localedir ;; |
| 1038 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1039 | localedir=$ac_optarg ;; |
| 1040 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1041 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1042 | | --localstate | --localstat | --localsta | --localst | --locals) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1043 | ac_prev=localstatedir ;; |
| 1044 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1045 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1046 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1047 | |
| 1048 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1049 | ac_prev=mandir ;; |
| 1050 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1051 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1052 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1053 | -nfp | --nfp | --nf) |
| 1054 | # Obsolete; use --without-fp. |
| 1055 | with_fp=no ;; |
| 1056 | |
| 1057 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1058 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1059 | no_create=yes ;; |
| 1060 | |
| 1061 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1062 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1063 | no_recursion=yes ;; |
| 1064 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1065 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1066 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1067 | | --oldin | --oldi | --old | --ol | --o) |
| 1068 | ac_prev=oldincludedir ;; |
| 1069 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1070 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1071 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1072 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1073 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1074 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1075 | ac_prev=prefix ;; |
| 1076 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1077 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1078 | |
| 1079 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1080 | | --program-pre | --program-pr | --program-p) |
| 1081 | ac_prev=program_prefix ;; |
| 1082 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1083 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1084 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1085 | |
| 1086 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1087 | | --program-suf | --program-su | --program-s) |
| 1088 | ac_prev=program_suffix ;; |
| 1089 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1090 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1091 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1092 | |
| 1093 | -program-transform-name | --program-transform-name \ |
| 1094 | | --program-transform-nam | --program-transform-na \ |
| 1095 | | --program-transform-n | --program-transform- \ |
| 1096 | | --program-transform | --program-transfor \ |
| 1097 | | --program-transfo | --program-transf \ |
| 1098 | | --program-trans | --program-tran \ |
| 1099 | | --progr-tra | --program-tr | --program-t) |
| 1100 | ac_prev=program_transform_name ;; |
| 1101 | -program-transform-name=* | --program-transform-name=* \ |
| 1102 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1103 | | --program-transform-n=* | --program-transform-=* \ |
| 1104 | | --program-transform=* | --program-transfor=* \ |
| 1105 | | --program-transfo=* | --program-transf=* \ |
| 1106 | | --program-trans=* | --program-tran=* \ |
| 1107 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1108 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1109 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1110 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1111 | ac_prev=pdfdir ;; |
| 1112 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1113 | pdfdir=$ac_optarg ;; |
| 1114 | |
| 1115 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1116 | ac_prev=psdir ;; |
| 1117 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1118 | psdir=$ac_optarg ;; |
| 1119 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1120 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1121 | | -silent | --silent | --silen | --sile | --sil) |
| 1122 | silent=yes ;; |
| 1123 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1124 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1125 | ac_prev=sbindir ;; |
| 1126 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1127 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1128 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1129 | |
| 1130 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1131 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1132 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1133 | | --sha | --sh) |
| 1134 | ac_prev=sharedstatedir ;; |
| 1135 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1136 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1137 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1138 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1139 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1140 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1141 | -site | --site | --sit) |
| 1142 | ac_prev=site ;; |
| 1143 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1144 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1145 | |
| 1146 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1147 | ac_prev=srcdir ;; |
| 1148 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1149 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1150 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1151 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1152 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1153 | ac_prev=sysconfdir ;; |
| 1154 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1155 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1156 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1157 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1158 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1159 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1160 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1161 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1162 | |
| 1163 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1164 | verbose=yes ;; |
| 1165 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1166 | -version | --version | --versio | --versi | --vers | -V) |
| 1167 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1168 | |
| 1169 | -with-* | --with-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1170 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1171 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1172 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1173 | as_fn_error $? "invalid package name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1174 | ac_useropt_orig=$ac_useropt |
| 1175 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1176 | case $ac_user_opts in |
| 1177 | *" |
| 1178 | "with_$ac_useropt" |
| 1179 | "*) ;; |
| 1180 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1181 | ac_unrecognized_sep=', ';; |
| 1182 | esac |
| 1183 | eval with_$ac_useropt=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1184 | |
| 1185 | -without-* | --without-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1186 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1187 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1188 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1189 | as_fn_error $? "invalid package name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1190 | ac_useropt_orig=$ac_useropt |
| 1191 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1192 | case $ac_user_opts in |
| 1193 | *" |
| 1194 | "with_$ac_useropt" |
| 1195 | "*) ;; |
| 1196 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1197 | ac_unrecognized_sep=', ';; |
| 1198 | esac |
| 1199 | eval with_$ac_useropt=no ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1200 | |
| 1201 | --x) |
| 1202 | # Obsolete; use --with-x. |
| 1203 | with_x=yes ;; |
| 1204 | |
| 1205 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1206 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1207 | ac_prev=x_includes ;; |
| 1208 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1209 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1210 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1211 | |
| 1212 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1213 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1214 | ac_prev=x_libraries ;; |
| 1215 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1216 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1217 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1218 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1219 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1220 | Try \`$0 --help' for more information" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1221 | ;; |
| 1222 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1223 | *=*) |
| 1224 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1225 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1226 | case $ac_envvar in #( |
| 1227 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1228 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1229 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1230 | eval $ac_envvar=\$ac_optarg |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1231 | export $ac_envvar ;; |
| 1232 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1233 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1234 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1235 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1236 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1237 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1238 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1239 | ;; |
| 1240 | |
| 1241 | esac |
| 1242 | done |
| 1243 | |
| 1244 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1245 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1246 | as_fn_error $? "missing argument to $ac_option" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1247 | fi |
| 1248 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1249 | if test -n "$ac_unrecognized_opts"; then |
| 1250 | case $enable_option_checking in |
| 1251 | no) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1252 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1253 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1254 | esac |
| 1255 | fi |
| 1256 | |
| 1257 | # Check all directory arguments for consistency. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1258 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1259 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1260 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1261 | libdir localedir mandir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1262 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1263 | eval ac_val=\$$ac_var |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1264 | # Remove trailing slashes. |
| 1265 | case $ac_val in |
| 1266 | */ ) |
| 1267 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1268 | eval $ac_var=\$ac_val;; |
| 1269 | esac |
| 1270 | # Be sure to have absolute directory names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1271 | case $ac_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1272 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1273 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1274 | esac |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1275 | 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] | 1276 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1277 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1278 | # There might be people who depend on the old broken behavior: `$host' |
| 1279 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1280 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1281 | build=$build_alias |
| 1282 | host=$host_alias |
| 1283 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1284 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1285 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1286 | if test "x$host_alias" != x; then |
| 1287 | if test "x$build_alias" = x; then |
| 1288 | cross_compiling=maybe |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1289 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1290 | 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] | 1291 | elif test "x$build_alias" != "x$host_alias"; then |
| 1292 | cross_compiling=yes |
| 1293 | fi |
| 1294 | fi |
| 1295 | |
| 1296 | ac_tool_prefix= |
| 1297 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1298 | |
| 1299 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1300 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1301 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1302 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1303 | ac_ls_di=`ls -di .` && |
| 1304 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1305 | as_fn_error $? "working directory cannot be determined" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1306 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1307 | as_fn_error $? "pwd does not report name of working directory" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1308 | |
| 1309 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1310 | # Find the source files, if location was not specified. |
| 1311 | if test -z "$srcdir"; then |
| 1312 | ac_srcdir_defaulted=yes |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1313 | # Try the directory containing this script, then the parent directory. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1314 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1315 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1316 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1317 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1318 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1319 | $as_echo X"$as_myself" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1320 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1321 | s//\1/ |
| 1322 | q |
| 1323 | } |
| 1324 | /^X\(\/\/\)[^/].*/{ |
| 1325 | s//\1/ |
| 1326 | q |
| 1327 | } |
| 1328 | /^X\(\/\/\)$/{ |
| 1329 | s//\1/ |
| 1330 | q |
| 1331 | } |
| 1332 | /^X\(\/\).*/{ |
| 1333 | s//\1/ |
| 1334 | q |
| 1335 | } |
| 1336 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1337 | srcdir=$ac_confdir |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1338 | if test ! -r "$srcdir/$ac_unique_file"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1339 | srcdir=.. |
| 1340 | fi |
| 1341 | else |
| 1342 | ac_srcdir_defaulted=no |
| 1343 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1344 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1345 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1346 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1347 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1348 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1349 | ac_abs_confdir=`( |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1350 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1351 | pwd)` |
| 1352 | # When building in place, set srcdir=. |
| 1353 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1354 | srcdir=. |
| 1355 | fi |
| 1356 | # Remove unnecessary trailing slashes from srcdir. |
| 1357 | # Double slashes in file names in object file debugging info |
| 1358 | # mess up M-x gdb in Emacs. |
| 1359 | case $srcdir in |
| 1360 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1361 | esac |
| 1362 | for ac_var in $ac_precious_vars; do |
| 1363 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1364 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1365 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1366 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1367 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1368 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1369 | # |
| 1370 | # Report the --help message. |
| 1371 | # |
| 1372 | if test "$ac_init_help" = "long"; then |
| 1373 | # Omit some internal or obsolete options to make the list less imposing. |
| 1374 | # 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] | 1375 | cat <<_ACEOF |
Alexandre Julliard | f0296a8 | 2011-01-21 20:31:58 +0100 | [diff] [blame] | 1376 | \`configure' configures Wine 1.3.12 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1377 | |
| 1378 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1379 | |
| 1380 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1381 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1382 | |
| 1383 | Defaults for the options are specified in brackets. |
| 1384 | |
| 1385 | Configuration: |
| 1386 | -h, --help display this help and exit |
| 1387 | --help=short display options specific to this package |
| 1388 | --help=recursive display the short help of all the included packages |
| 1389 | -V, --version display version information and exit |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1390 | -q, --quiet, --silent do not print \`checking ...' messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1391 | --cache-file=FILE cache test results in FILE [disabled] |
| 1392 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1393 | -n, --no-create do not create output files |
| 1394 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1395 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1396 | Installation directories: |
| 1397 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1398 | [$ac_default_prefix] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1399 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1400 | [PREFIX] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1401 | |
| 1402 | By default, \`make install' will install all the files in |
| 1403 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1404 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1405 | for instance \`--prefix=\$HOME'. |
| 1406 | |
| 1407 | For better control, use the options below. |
| 1408 | |
| 1409 | Fine tuning of the installation directories: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1410 | --bindir=DIR user executables [EPREFIX/bin] |
| 1411 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1412 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1413 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1414 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1415 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1416 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1417 | --includedir=DIR C header files [PREFIX/include] |
| 1418 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1419 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1420 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1421 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1422 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1423 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1424 | --docdir=DIR documentation root [DATAROOTDIR/doc/wine] |
| 1425 | --htmldir=DIR html documentation [DOCDIR] |
| 1426 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1427 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1428 | --psdir=DIR ps documentation [DOCDIR] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1429 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1430 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1431 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1432 | |
| 1433 | X features: |
| 1434 | --x-includes=DIR X include files are in DIR |
| 1435 | --x-libraries=DIR X library files are in DIR |
| 1436 | |
| 1437 | System types: |
| 1438 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1439 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1440 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1441 | fi |
| 1442 | |
| 1443 | if test -n "$ac_init_help"; then |
| 1444 | case $ac_init_help in |
Alexandre Julliard | f0296a8 | 2011-01-21 20:31:58 +0100 | [diff] [blame] | 1445 | short | recursive ) echo "Configuration of Wine 1.3.12:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1446 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1447 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1448 | |
| 1449 | Optional Features: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1450 | --disable-option-checking ignore unrecognized --enable/--with options |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1451 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1452 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1453 | --disable-win16 do not include Win16 support |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1454 | --enable-win64 build a Win64 emulator on AMD64 (won't run Win32 |
| 1455 | binaries) |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 1456 | --disable-tests do not build the regression tests |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 1457 | --enable-maintainer-mode |
| 1458 | enable maintainer-specific build rules |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 1459 | --disable-largefile omit support for large files |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1460 | |
| 1461 | Optional Packages: |
| 1462 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1463 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1464 | --without-alsa do not use the Alsa sound support |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1465 | --without-capi do not use CAPI (ISDN support) |
| 1466 | --without-cms do not use CMS (color management support) |
| 1467 | --without-coreaudio do not use the CoreAudio sound support |
| 1468 | --without-cups do not use CUPS |
| 1469 | --without-curses do not use (n)curses |
| 1470 | --without-esd do not use the EsounD sound support |
| 1471 | --without-fontconfig do not use fontconfig |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 1472 | --without-freetype do not use the FreeType library |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 1473 | --without-gettextpo do not use the GetTextPO library |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1474 | --without-gphoto do not use gphoto (Digital Camera support) |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 1475 | --without-glu do not use the GLU library |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 1476 | --without-gnutls do not use GnuTLS (schannel support) |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 1477 | --without-gsm do not use libgsm (GSM 06.10 codec support) |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 1478 | --without-gstreamer do not use GStreamer (codecs support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1479 | --without-hal do not use HAL (dynamic device support) |
| 1480 | --without-jack do not use the Jack sound support |
| 1481 | --without-jpeg do not use JPEG |
| 1482 | --without-ldap do not use LDAP |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 1483 | --without-mpg123 do not use the mpg123 library |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1484 | --without-nas do not use the NAS sound support |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 1485 | --without-openal do not use OpenAL |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 1486 | --without-opencl do not use OpenCL |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1487 | --without-opengl do not use OpenGL |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1488 | --without-openssl do not use OpenSSL |
| 1489 | --without-oss do not use the OSS sound support |
| 1490 | --without-png do not use PNG |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 1491 | --without-pthread do not use the pthread library |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1492 | --without-sane do not use SANE (scanner support) |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 1493 | --without-tiff do not use TIFF |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 1494 | --without-v4l do not use v4l1 (v4l support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1495 | --without-xcomposite do not use the Xcomposite extension |
| 1496 | --without-xcursor do not use the Xcursor extension |
| 1497 | --without-xinerama do not use Xinerama (multi-monitor support) |
| 1498 | --without-xinput do not use the Xinput extension |
| 1499 | --without-xml do not use XML |
| 1500 | --without-xrandr do not use Xrandr (resolution changes) |
| 1501 | --without-xrender do not use the Xrender extension |
| 1502 | --without-xshape do not use the Xshape extension |
| 1503 | --without-xshm do not use XShm (shared memory extension) |
| 1504 | --without-xslt do not use XSLT |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 1505 | --without-xxf86vm do not use XFree video mode extension |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1506 | --with-wine-tools=DIR use Wine tools from directory DIR |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 1507 | --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] | 1508 | --with-x use the X Window System |
| 1509 | |
| 1510 | Some influential environment variables: |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1511 | CC C compiler command |
| 1512 | CFLAGS C compiler flags |
| 1513 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1514 | nonstandard directory <lib dir> |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 1515 | LIBS libraries to pass to the linker, e.g. -l<library> |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1516 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1517 | you have headers in a nonstandard directory <include dir> |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 1518 | CXX C++ compiler command |
| 1519 | CXXFLAGS C++ compiler flags |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1520 | CPP C preprocessor |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 1521 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1522 | |
| 1523 | Use these variables to override the choices made by `configure' or to help |
| 1524 | it to find libraries and programs with nonstandard names/locations. |
| 1525 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1526 | Report bugs to <wine-devel@winehq.org>. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1527 | Wine home page: <http://www.winehq.org>. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1528 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1529 | ac_status=$? |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1530 | fi |
| 1531 | |
| 1532 | if test "$ac_init_help" = "recursive"; then |
| 1533 | # If there are subdirs, report their specific --help. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1534 | 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] | 1535 | test -d "$ac_dir" || |
| 1536 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1537 | continue |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1538 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1539 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1540 | case "$ac_dir" in |
| 1541 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1542 | *) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1543 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1544 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1545 | 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] | 1546 | case $ac_top_builddir_sub in |
| 1547 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1548 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1549 | esac ;; |
| 1550 | esac |
| 1551 | ac_abs_top_builddir=$ac_pwd |
| 1552 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1553 | # for backward compatibility: |
| 1554 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1555 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1556 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1557 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1558 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1559 | ac_top_srcdir=$ac_top_builddir_sub |
| 1560 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1561 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1562 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1563 | ac_top_srcdir=$srcdir |
| 1564 | ac_abs_top_srcdir=$srcdir ;; |
| 1565 | *) # Relative name. |
| 1566 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1567 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1568 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1569 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1570 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1571 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1572 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1573 | # Check for guested configure. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1574 | if test -f "$ac_srcdir/configure.gnu"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1575 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1576 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1577 | elif test -f "$ac_srcdir/configure"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1578 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1579 | $SHELL "$ac_srcdir/configure" --help=recursive |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1580 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1581 | $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] | 1582 | fi || ac_status=$? |
| 1583 | cd "$ac_pwd" || { ac_status=$?; break; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1584 | done |
| 1585 | fi |
| 1586 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1587 | test -n "$ac_init_help" && exit $ac_status |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1588 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1589 | cat <<\_ACEOF |
Alexandre Julliard | f0296a8 | 2011-01-21 20:31:58 +0100 | [diff] [blame] | 1590 | Wine configure 1.3.12 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1591 | generated by GNU Autoconf 2.67 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1592 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1593 | Copyright (C) 2010 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1594 | This configure script is free software; the Free Software Foundation |
| 1595 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1596 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1597 | exit |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1598 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1599 | |
| 1600 | ## ------------------------ ## |
| 1601 | ## Autoconf initialization. ## |
| 1602 | ## ------------------------ ## |
| 1603 | |
| 1604 | # ac_fn_c_try_compile LINENO |
| 1605 | # -------------------------- |
| 1606 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1607 | ac_fn_c_try_compile () |
| 1608 | { |
| 1609 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1610 | rm -f conftest.$ac_objext |
| 1611 | if { { ac_try="$ac_compile" |
| 1612 | case "(($ac_try" in |
| 1613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1614 | *) ac_try_echo=$ac_try;; |
| 1615 | esac |
| 1616 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1617 | $as_echo "$ac_try_echo"; } >&5 |
| 1618 | (eval "$ac_compile") 2>conftest.err |
| 1619 | ac_status=$? |
| 1620 | if test -s conftest.err; then |
| 1621 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1622 | cat conftest.er1 >&5 |
| 1623 | mv -f conftest.er1 conftest.err |
| 1624 | fi |
| 1625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1626 | test $ac_status = 0; } && { |
| 1627 | test -z "$ac_c_werror_flag" || |
| 1628 | test ! -s conftest.err |
| 1629 | } && test -s conftest.$ac_objext; then : |
| 1630 | ac_retval=0 |
| 1631 | else |
| 1632 | $as_echo "$as_me: failed program was:" >&5 |
| 1633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1634 | |
| 1635 | ac_retval=1 |
| 1636 | fi |
| 1637 | 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] | 1638 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1639 | |
| 1640 | } # ac_fn_c_try_compile |
| 1641 | |
| 1642 | # ac_fn_cxx_try_compile LINENO |
| 1643 | # ---------------------------- |
| 1644 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1645 | ac_fn_cxx_try_compile () |
| 1646 | { |
| 1647 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1648 | rm -f conftest.$ac_objext |
| 1649 | if { { ac_try="$ac_compile" |
| 1650 | case "(($ac_try" in |
| 1651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1652 | *) ac_try_echo=$ac_try;; |
| 1653 | esac |
| 1654 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1655 | $as_echo "$ac_try_echo"; } >&5 |
| 1656 | (eval "$ac_compile") 2>conftest.err |
| 1657 | ac_status=$? |
| 1658 | if test -s conftest.err; then |
| 1659 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1660 | cat conftest.er1 >&5 |
| 1661 | mv -f conftest.er1 conftest.err |
| 1662 | fi |
| 1663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1664 | test $ac_status = 0; } && { |
| 1665 | test -z "$ac_cxx_werror_flag" || |
| 1666 | test ! -s conftest.err |
| 1667 | } && test -s conftest.$ac_objext; then : |
| 1668 | ac_retval=0 |
| 1669 | else |
| 1670 | $as_echo "$as_me: failed program was:" >&5 |
| 1671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1672 | |
| 1673 | ac_retval=1 |
| 1674 | fi |
| 1675 | 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] | 1676 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1677 | |
| 1678 | } # ac_fn_cxx_try_compile |
| 1679 | |
| 1680 | # ac_fn_c_try_link LINENO |
| 1681 | # ----------------------- |
| 1682 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1683 | ac_fn_c_try_link () |
| 1684 | { |
| 1685 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1686 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1687 | if { { ac_try="$ac_link" |
| 1688 | case "(($ac_try" in |
| 1689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1690 | *) ac_try_echo=$ac_try;; |
| 1691 | esac |
| 1692 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1693 | $as_echo "$ac_try_echo"; } >&5 |
| 1694 | (eval "$ac_link") 2>conftest.err |
| 1695 | ac_status=$? |
| 1696 | if test -s conftest.err; then |
| 1697 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1698 | cat conftest.er1 >&5 |
| 1699 | mv -f conftest.er1 conftest.err |
| 1700 | fi |
| 1701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1702 | test $ac_status = 0; } && { |
| 1703 | test -z "$ac_c_werror_flag" || |
| 1704 | test ! -s conftest.err |
| 1705 | } && test -s conftest$ac_exeext && { |
| 1706 | test "$cross_compiling" = yes || |
| 1707 | $as_test_x conftest$ac_exeext |
| 1708 | }; then : |
| 1709 | ac_retval=0 |
| 1710 | else |
| 1711 | $as_echo "$as_me: failed program was:" >&5 |
| 1712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1713 | |
| 1714 | ac_retval=1 |
| 1715 | fi |
| 1716 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1717 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1718 | # interfere with the next link command; also delete a directory that is |
| 1719 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1720 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1721 | 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] | 1722 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1723 | |
| 1724 | } # ac_fn_c_try_link |
| 1725 | |
| 1726 | # ac_fn_c_try_cpp LINENO |
| 1727 | # ---------------------- |
| 1728 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1729 | ac_fn_c_try_cpp () |
| 1730 | { |
| 1731 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1732 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1733 | case "(($ac_try" in |
| 1734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1735 | *) ac_try_echo=$ac_try;; |
| 1736 | esac |
| 1737 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1738 | $as_echo "$ac_try_echo"; } >&5 |
| 1739 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1740 | ac_status=$? |
| 1741 | if test -s conftest.err; then |
| 1742 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1743 | cat conftest.er1 >&5 |
| 1744 | mv -f conftest.er1 conftest.err |
| 1745 | fi |
| 1746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1747 | test $ac_status = 0; } > conftest.i && { |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1748 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1749 | test ! -s conftest.err |
| 1750 | }; then : |
| 1751 | ac_retval=0 |
| 1752 | else |
| 1753 | $as_echo "$as_me: failed program was:" >&5 |
| 1754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1755 | |
| 1756 | ac_retval=1 |
| 1757 | fi |
| 1758 | 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] | 1759 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1760 | |
| 1761 | } # ac_fn_c_try_cpp |
| 1762 | |
| 1763 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1764 | # ------------------------------------------------------- |
| 1765 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1766 | # the include files in INCLUDES and setting the cache variable VAR |
| 1767 | # accordingly. |
| 1768 | ac_fn_c_check_header_mongrel () |
| 1769 | { |
| 1770 | 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] | 1771 | if eval "test \"\${$3+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1773 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1774 | if eval "test \"\${$3+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1775 | $as_echo_n "(cached) " >&6 |
| 1776 | fi |
| 1777 | eval ac_res=\$$3 |
| 1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1779 | $as_echo "$ac_res" >&6; } |
| 1780 | else |
| 1781 | # Is the header compilable? |
| 1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1783 | $as_echo_n "checking $2 usability... " >&6; } |
| 1784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1785 | /* end confdefs.h. */ |
| 1786 | $4 |
| 1787 | #include <$2> |
| 1788 | _ACEOF |
| 1789 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1790 | ac_header_compiler=yes |
| 1791 | else |
| 1792 | ac_header_compiler=no |
| 1793 | fi |
| 1794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1796 | $as_echo "$ac_header_compiler" >&6; } |
| 1797 | |
| 1798 | # Is the header present? |
| 1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1800 | $as_echo_n "checking $2 presence... " >&6; } |
| 1801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1802 | /* end confdefs.h. */ |
| 1803 | #include <$2> |
| 1804 | _ACEOF |
| 1805 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1806 | ac_header_preproc=yes |
| 1807 | else |
| 1808 | ac_header_preproc=no |
| 1809 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1810 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1812 | $as_echo "$ac_header_preproc" >&6; } |
| 1813 | |
| 1814 | # So? What about this header? |
| 1815 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1816 | yes:no: ) |
| 1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1818 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1820 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1821 | ;; |
| 1822 | no:yes:* ) |
| 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1824 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1826 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1828 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1830 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1832 | $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] | 1833 | ( $as_echo "## ------------------------------------ ## |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1834 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1835 | ## ------------------------------------ ##" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1836 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1837 | ;; |
| 1838 | esac |
| 1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1840 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1841 | if eval "test \"\${$3+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1842 | $as_echo_n "(cached) " >&6 |
| 1843 | else |
| 1844 | eval "$3=\$ac_header_compiler" |
| 1845 | fi |
| 1846 | eval ac_res=\$$3 |
| 1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1848 | $as_echo "$ac_res" >&6; } |
| 1849 | fi |
| 1850 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1851 | |
| 1852 | } # ac_fn_c_check_header_mongrel |
| 1853 | |
| 1854 | # ac_fn_c_try_run LINENO |
| 1855 | # ---------------------- |
| 1856 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1857 | # that executables *can* be run. |
| 1858 | ac_fn_c_try_run () |
| 1859 | { |
| 1860 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1861 | if { { ac_try="$ac_link" |
| 1862 | case "(($ac_try" in |
| 1863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1864 | *) ac_try_echo=$ac_try;; |
| 1865 | esac |
| 1866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1867 | $as_echo "$ac_try_echo"; } >&5 |
| 1868 | (eval "$ac_link") 2>&5 |
| 1869 | ac_status=$? |
| 1870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1871 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1872 | { { case "(($ac_try" in |
| 1873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1874 | *) ac_try_echo=$ac_try;; |
| 1875 | esac |
| 1876 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1877 | $as_echo "$ac_try_echo"; } >&5 |
| 1878 | (eval "$ac_try") 2>&5 |
| 1879 | ac_status=$? |
| 1880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1881 | test $ac_status = 0; }; }; then : |
| 1882 | ac_retval=0 |
| 1883 | else |
| 1884 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1885 | $as_echo "$as_me: failed program was:" >&5 |
| 1886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1887 | |
| 1888 | ac_retval=$ac_status |
| 1889 | fi |
| 1890 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1891 | 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] | 1892 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1893 | |
| 1894 | } # ac_fn_c_try_run |
| 1895 | |
| 1896 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1897 | # ------------------------------------------------------- |
| 1898 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1899 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1900 | ac_fn_c_check_header_compile () |
| 1901 | { |
| 1902 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1904 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1905 | if eval "test \"\${$3+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1906 | $as_echo_n "(cached) " >&6 |
| 1907 | else |
| 1908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1909 | /* end confdefs.h. */ |
| 1910 | $4 |
| 1911 | #include <$2> |
| 1912 | _ACEOF |
| 1913 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1914 | eval "$3=yes" |
| 1915 | else |
| 1916 | eval "$3=no" |
| 1917 | fi |
| 1918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1919 | fi |
| 1920 | eval ac_res=\$$3 |
| 1921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1922 | $as_echo "$ac_res" >&6; } |
| 1923 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1924 | |
| 1925 | } # ac_fn_c_check_header_compile |
| 1926 | |
| 1927 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1928 | # ---------------------------------- |
| 1929 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1930 | ac_fn_c_check_func () |
| 1931 | { |
| 1932 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1934 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1935 | if eval "test \"\${$3+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1936 | $as_echo_n "(cached) " >&6 |
| 1937 | else |
| 1938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1939 | /* end confdefs.h. */ |
| 1940 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1941 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1942 | #define $2 innocuous_$2 |
| 1943 | |
| 1944 | /* System header to define __stub macros and hopefully few prototypes, |
| 1945 | which can conflict with char $2 (); below. |
| 1946 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1947 | <limits.h> exists even on freestanding compilers. */ |
| 1948 | |
| 1949 | #ifdef __STDC__ |
| 1950 | # include <limits.h> |
| 1951 | #else |
| 1952 | # include <assert.h> |
| 1953 | #endif |
| 1954 | |
| 1955 | #undef $2 |
| 1956 | |
| 1957 | /* Override any GCC internal prototype to avoid an error. |
| 1958 | Use char because int might match the return type of a GCC |
| 1959 | builtin and then its argument prototype would still apply. */ |
| 1960 | #ifdef __cplusplus |
| 1961 | extern "C" |
| 1962 | #endif |
| 1963 | char $2 (); |
| 1964 | /* The GNU C library defines this for functions which it implements |
| 1965 | to always fail with ENOSYS. Some functions are actually named |
| 1966 | something starting with __ and the normal name is an alias. */ |
| 1967 | #if defined __stub_$2 || defined __stub___$2 |
| 1968 | choke me |
| 1969 | #endif |
| 1970 | |
| 1971 | int |
| 1972 | main () |
| 1973 | { |
| 1974 | return $2 (); |
| 1975 | ; |
| 1976 | return 0; |
| 1977 | } |
| 1978 | _ACEOF |
| 1979 | if ac_fn_c_try_link "$LINENO"; then : |
| 1980 | eval "$3=yes" |
| 1981 | else |
| 1982 | eval "$3=no" |
| 1983 | fi |
| 1984 | rm -f core conftest.err conftest.$ac_objext \ |
| 1985 | conftest$ac_exeext conftest.$ac_ext |
| 1986 | fi |
| 1987 | eval ac_res=\$$3 |
| 1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1989 | $as_echo "$ac_res" >&6; } |
| 1990 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1991 | |
| 1992 | } # ac_fn_c_check_func |
| 1993 | |
| 1994 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 1995 | # ---------------------------------------------------- |
| 1996 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 1997 | # INCLUDES, setting cache variable VAR accordingly. |
| 1998 | ac_fn_c_check_member () |
| 1999 | { |
| 2000 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2002 | $as_echo_n "checking for $2.$3... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2003 | if eval "test \"\${$4+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2004 | $as_echo_n "(cached) " >&6 |
| 2005 | else |
| 2006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2007 | /* end confdefs.h. */ |
| 2008 | $5 |
| 2009 | int |
| 2010 | main () |
| 2011 | { |
| 2012 | static $2 ac_aggr; |
| 2013 | if (ac_aggr.$3) |
| 2014 | return 0; |
| 2015 | ; |
| 2016 | return 0; |
| 2017 | } |
| 2018 | _ACEOF |
| 2019 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2020 | eval "$4=yes" |
| 2021 | else |
| 2022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2023 | /* end confdefs.h. */ |
| 2024 | $5 |
| 2025 | int |
| 2026 | main () |
| 2027 | { |
| 2028 | static $2 ac_aggr; |
| 2029 | if (sizeof ac_aggr.$3) |
| 2030 | return 0; |
| 2031 | ; |
| 2032 | return 0; |
| 2033 | } |
| 2034 | _ACEOF |
| 2035 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2036 | eval "$4=yes" |
| 2037 | else |
| 2038 | eval "$4=no" |
| 2039 | fi |
| 2040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2041 | fi |
| 2042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2043 | fi |
| 2044 | eval ac_res=\$$4 |
| 2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2046 | $as_echo "$ac_res" >&6; } |
| 2047 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2048 | |
| 2049 | } # ac_fn_c_check_member |
| 2050 | |
| 2051 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2052 | # ------------------------------------------- |
| 2053 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2054 | # variable VAR accordingly. |
| 2055 | ac_fn_c_check_type () |
| 2056 | { |
| 2057 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2059 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2060 | if eval "test \"\${$3+set}\"" = set; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2061 | $as_echo_n "(cached) " >&6 |
| 2062 | else |
| 2063 | eval "$3=no" |
| 2064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2065 | /* end confdefs.h. */ |
| 2066 | $4 |
| 2067 | int |
| 2068 | main () |
| 2069 | { |
| 2070 | if (sizeof ($2)) |
| 2071 | return 0; |
| 2072 | ; |
| 2073 | return 0; |
| 2074 | } |
| 2075 | _ACEOF |
| 2076 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2078 | /* end confdefs.h. */ |
| 2079 | $4 |
| 2080 | int |
| 2081 | main () |
| 2082 | { |
| 2083 | if (sizeof (($2))) |
| 2084 | return 0; |
| 2085 | ; |
| 2086 | return 0; |
| 2087 | } |
| 2088 | _ACEOF |
| 2089 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2090 | |
| 2091 | else |
| 2092 | eval "$3=yes" |
| 2093 | fi |
| 2094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2095 | fi |
| 2096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2097 | fi |
| 2098 | eval ac_res=\$$3 |
| 2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2100 | $as_echo "$ac_res" >&6; } |
| 2101 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2102 | |
| 2103 | } # ac_fn_c_check_type |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2104 | cat >config.log <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2105 | This file contains any messages produced by compilers while |
| 2106 | running configure, to aid debugging if configure makes a mistake. |
| 2107 | |
Alexandre Julliard | f0296a8 | 2011-01-21 20:31:58 +0100 | [diff] [blame] | 2108 | It was created by Wine $as_me 1.3.12, which was |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2109 | generated by GNU Autoconf 2.67. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2110 | |
| 2111 | $ $0 $@ |
| 2112 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2113 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2114 | exec 5>>config.log |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2115 | { |
| 2116 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2117 | ## --------- ## |
| 2118 | ## Platform. ## |
| 2119 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2120 | |
| 2121 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2122 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2123 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2124 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2125 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2126 | |
| 2127 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2128 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2129 | |
| 2130 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2131 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2132 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2133 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2134 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2135 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2136 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2137 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2138 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2139 | |
| 2140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2141 | for as_dir in $PATH |
| 2142 | do |
| 2143 | IFS=$as_save_IFS |
| 2144 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2145 | $as_echo "PATH: $as_dir" |
| 2146 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2147 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2148 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2149 | } >&5 |
| 2150 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2151 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2152 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2153 | |
| 2154 | ## ----------- ## |
| 2155 | ## Core tests. ## |
| 2156 | ## ----------- ## |
| 2157 | |
| 2158 | _ACEOF |
| 2159 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2160 | |
| 2161 | # Keep a trace of the command line. |
| 2162 | # 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] | 2163 | # 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] | 2164 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2165 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2166 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2167 | ac_configure_args0= |
| 2168 | ac_configure_args1= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2169 | ac_must_keep_next=false |
| 2170 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2171 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2172 | for ac_arg |
| 2173 | do |
| 2174 | case $ac_arg in |
| 2175 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2176 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2177 | | -silent | --silent | --silen | --sile | --sil) |
| 2178 | continue ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2179 | *\'*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2180 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2181 | esac |
| 2182 | case $ac_pass in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2183 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2184 | 2) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2185 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2186 | if test $ac_must_keep_next = true; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2187 | ac_must_keep_next=false # Got value, back to normal. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2188 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2189 | case $ac_arg in |
| 2190 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2191 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2192 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2193 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2194 | case "$ac_configure_args0 " in |
| 2195 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2196 | esac |
| 2197 | ;; |
| 2198 | -* ) ac_must_keep_next=true ;; |
| 2199 | esac |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2200 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2201 | as_fn_append ac_configure_args " '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2202 | ;; |
| 2203 | esac |
| 2204 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2205 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2206 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2207 | { ac_configure_args1=; unset ac_configure_args1;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2208 | |
| 2209 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2210 | # config.log. We remove comments because anyway the quotes in there |
| 2211 | # would cause problems or look ugly. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2212 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2213 | # 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] | 2214 | trap 'exit_status=$? |
| 2215 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2216 | { |
| 2217 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2218 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2219 | $as_echo "## ---------------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2220 | ## Cache variables. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2221 | ## ---------------- ##" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2222 | echo |
| 2223 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2224 | ( |
| 2225 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2226 | eval ac_val=\$$ac_var |
| 2227 | case $ac_val in #( |
| 2228 | *${as_nl}*) |
| 2229 | case $ac_var in #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2230 | *_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] | 2231 | $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] | 2232 | esac |
| 2233 | case $ac_var in #( |
| 2234 | _ | IFS | as_nl) ;; #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2235 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2236 | *) { eval $ac_var=; unset $ac_var;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2237 | esac ;; |
| 2238 | esac |
| 2239 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2240 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2241 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2242 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2243 | sed -n \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2244 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2245 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2246 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2247 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2248 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
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 | esac | |
| 2251 | sort |
| 2252 | ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2253 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2254 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2255 | $as_echo "## ----------------- ## |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2256 | ## Output variables. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2257 | ## ----------------- ##" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2258 | echo |
| 2259 | for ac_var in $ac_subst_vars |
| 2260 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2261 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2262 | case $ac_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2263 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2264 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2265 | $as_echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2266 | done | sort |
| 2267 | echo |
| 2268 | |
| 2269 | if test -n "$ac_subst_files"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2270 | $as_echo "## ------------------- ## |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2271 | ## File substitutions. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2272 | ## ------------------- ##" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2273 | echo |
| 2274 | for ac_var in $ac_subst_files |
| 2275 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2276 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2277 | case $ac_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2278 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2279 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2280 | $as_echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2281 | done | sort |
| 2282 | echo |
| 2283 | fi |
| 2284 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2285 | if test -s confdefs.h; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2286 | $as_echo "## ----------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2287 | ## confdefs.h. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2288 | ## ----------- ##" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2289 | echo |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2290 | cat confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2291 | echo |
| 2292 | fi |
| 2293 | test "$ac_signal" != 0 && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2294 | $as_echo "$as_me: caught signal $ac_signal" |
| 2295 | $as_echo "$as_me: exit $exit_status" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2296 | } >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2297 | rm -f core *.core core.conftest.* && |
| 2298 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2299 | exit $exit_status |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2300 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2301 | for ac_signal in 1 2 13 15; do |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2302 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2303 | done |
| 2304 | ac_signal=0 |
| 2305 | |
| 2306 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2307 | rm -f -r conftest* confdefs.h |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2308 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2309 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2310 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2311 | # Predefined preprocessor variables. |
| 2312 | |
| 2313 | cat >>confdefs.h <<_ACEOF |
| 2314 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2315 | _ACEOF |
| 2316 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2317 | cat >>confdefs.h <<_ACEOF |
| 2318 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2319 | _ACEOF |
| 2320 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2321 | cat >>confdefs.h <<_ACEOF |
| 2322 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2323 | _ACEOF |
| 2324 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2325 | cat >>confdefs.h <<_ACEOF |
| 2326 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2327 | _ACEOF |
| 2328 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2329 | cat >>confdefs.h <<_ACEOF |
| 2330 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2331 | _ACEOF |
| 2332 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2333 | cat >>confdefs.h <<_ACEOF |
| 2334 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2335 | _ACEOF |
| 2336 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2337 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2338 | # 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] | 2339 | # Prefer an explicitly selected file to automatically selected ones. |
| 2340 | ac_site_file1=NONE |
| 2341 | ac_site_file2=NONE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2342 | if test -n "$CONFIG_SITE"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2343 | # We do not want a PATH search for config.site. |
| 2344 | case $CONFIG_SITE in #(( |
| 2345 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2346 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2347 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2348 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2349 | elif test "x$prefix" != xNONE; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2350 | ac_site_file1=$prefix/share/config.site |
| 2351 | ac_site_file2=$prefix/etc/config.site |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2352 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2353 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2354 | ac_site_file2=$ac_default_prefix/etc/config.site |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2355 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2356 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2357 | do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2358 | test "x$ac_site_file" = xNONE && continue |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 2359 | 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] | 2360 | { $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] | 2361 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2362 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2363 | . "$ac_site_file" \ |
| 2364 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2365 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2366 | as_fn_error $? "failed to load site script $ac_site_file |
| 2367 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2368 | fi |
| 2369 | done |
| 2370 | |
| 2371 | if test -r "$cache_file"; then |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 2372 | # Some versions of bash will fail to source /dev/null (special files |
| 2373 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2374 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2376 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2377 | case $cache_file in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2378 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2379 | *) . "./$cache_file";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2380 | esac |
| 2381 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2382 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2384 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2385 | >$cache_file |
| 2386 | fi |
| 2387 | |
| 2388 | # Check that the precious variables saved in the cache have kept the same |
| 2389 | # value. |
| 2390 | ac_cache_corrupted=false |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2391 | for ac_var in $ac_precious_vars; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2392 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2393 | eval ac_new_set=\$ac_env_${ac_var}_set |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2394 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2395 | eval ac_new_val=\$ac_env_${ac_var}_value |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2396 | case $ac_old_set,$ac_new_set in |
| 2397 | set,) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2398 | { $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] | 2399 | $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] | 2400 | ac_cache_corrupted=: ;; |
| 2401 | ,set) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2402 | { $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] | 2403 | $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] | 2404 | ac_cache_corrupted=: ;; |
| 2405 | ,);; |
| 2406 | *) |
| 2407 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2408 | # differences in whitespace do not lead to failure. |
| 2409 | ac_old_val_w=`echo x $ac_old_val` |
| 2410 | ac_new_val_w=`echo x $ac_new_val` |
| 2411 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2412 | { $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] | 2413 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2414 | ac_cache_corrupted=: |
| 2415 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2416 | { $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] | 2417 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2418 | eval $ac_var=\$ac_old_val |
| 2419 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2420 | { $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] | 2421 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2422 | { $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] | 2423 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2424 | fi;; |
| 2425 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2426 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2427 | if test "$ac_new_set" = set; then |
| 2428 | case $ac_new_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2429 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2430 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2431 | esac |
| 2432 | case " $ac_configure_args " in |
| 2433 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2434 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2435 | esac |
| 2436 | fi |
| 2437 | done |
| 2438 | if $ac_cache_corrupted; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2440 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2441 | { $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] | 2442 | $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] | 2443 | 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] | 2444 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2445 | ## -------------------- ## |
| 2446 | ## Main body of script. ## |
| 2447 | ## -------------------- ## |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2448 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2449 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2450 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2451 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2452 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2453 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2454 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2455 | |
| 2456 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2457 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 2458 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2459 | ac_aux_dir= |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2460 | for ac_dir in tools "$srcdir"/tools; do |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2461 | if test -f "$ac_dir/install-sh"; then |
| 2462 | ac_aux_dir=$ac_dir |
| 2463 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2464 | break |
| 2465 | elif test -f "$ac_dir/install.sh"; then |
| 2466 | ac_aux_dir=$ac_dir |
| 2467 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2468 | break |
| 2469 | elif test -f "$ac_dir/shtool"; then |
| 2470 | ac_aux_dir=$ac_dir |
| 2471 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2472 | break |
| 2473 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2474 | done |
| 2475 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2476 | 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] | 2477 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2478 | |
| 2479 | # These three variables are undocumented and unsupported, |
| 2480 | # and are intended to be withdrawn in a future Autoconf release. |
| 2481 | # They can cause serious problems if a builder's source tree is in a directory |
| 2482 | # whose full name contains unusual characters. |
| 2483 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2484 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2485 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2486 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 2487 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2488 | |
| 2489 | |
Alexandre Julliard | d59227e | 2010-02-20 12:36:04 +0100 | [diff] [blame] | 2490 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2491 | # Check whether --enable-win16 was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2492 | if test "${enable_win16+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2493 | enableval=$enable_win16; |
| 2494 | fi |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 2495 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2496 | # Check whether --enable-win64 was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2497 | if test "${enable_win64+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2498 | enableval=$enable_win64; |
| 2499 | fi |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 2500 | |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 2501 | # Check whether --enable-tests was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2502 | if test "${enable_tests+set}" = set; then : |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 2503 | enableval=$enable_tests; |
| 2504 | fi |
| 2505 | |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2506 | # Check whether --enable-maintainer-mode was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2507 | if test "${enable_maintainer_mode+set}" = set; then : |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2508 | enableval=$enable_maintainer_mode; |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2509 | fi |
| 2510 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 2511 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2512 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2513 | # Check whether --with-alsa was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2514 | if test "${with_alsa+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2515 | withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi |
| 2516 | fi |
| 2517 | |
| 2518 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2519 | # Check whether --with-capi was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2520 | if test "${with_capi+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2521 | withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi |
| 2522 | fi |
| 2523 | |
| 2524 | |
| 2525 | # Check whether --with-cms was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2526 | if test "${with_cms+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2527 | withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi |
| 2528 | fi |
| 2529 | |
| 2530 | |
| 2531 | # Check whether --with-coreaudio was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2532 | if test "${with_coreaudio+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2533 | withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi |
| 2534 | fi |
| 2535 | |
| 2536 | |
| 2537 | # Check whether --with-cups was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2538 | if test "${with_cups+set}" = set; then : |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 2539 | withval=$with_cups; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2540 | fi |
| 2541 | |
| 2542 | |
| 2543 | # Check whether --with-curses was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2544 | if test "${with_curses+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2545 | withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi |
| 2546 | fi |
| 2547 | |
| 2548 | |
| 2549 | # Check whether --with-esd was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2550 | if test "${with_esd+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2551 | withval=$with_esd; |
| 2552 | fi |
| 2553 | |
| 2554 | |
| 2555 | # Check whether --with-fontconfig was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2556 | if test "${with_fontconfig+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2557 | withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi |
| 2558 | fi |
| 2559 | |
| 2560 | |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 2561 | # Check whether --with-freetype was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2562 | if test "${with_freetype+set}" = set; then : |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 2563 | withval=$with_freetype; |
| 2564 | fi |
| 2565 | |
| 2566 | |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 2567 | # Check whether --with-gettextpo was given. |
| 2568 | if test "${with_gettextpo+set}" = set; then : |
| 2569 | withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi |
| 2570 | fi |
| 2571 | |
| 2572 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2573 | # Check whether --with-gphoto was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2574 | if test "${with_gphoto+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2575 | withval=$with_gphoto; |
| 2576 | fi |
| 2577 | |
| 2578 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 2579 | # Check whether --with-glu was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2580 | if test "${with_glu+set}" = set; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 2581 | withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi |
| 2582 | fi |
| 2583 | |
| 2584 | |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 2585 | # Check whether --with-gnutls was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2586 | if test "${with_gnutls+set}" = set; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 2587 | withval=$with_gnutls; |
| 2588 | fi |
| 2589 | |
| 2590 | |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 2591 | # Check whether --with-gsm was given. |
| 2592 | if test "${with_gsm+set}" = set; then : |
| 2593 | 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] | 2594 | fi |
| 2595 | |
| 2596 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 2597 | # Check whether --with-gstreamer was given. |
| 2598 | if test "${with_gstreamer+set}" = set; then : |
| 2599 | withval=$with_gstreamer; |
| 2600 | fi |
| 2601 | |
| 2602 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2603 | # Check whether --with-hal was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2604 | if test "${with_hal+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2605 | withval=$with_hal; |
| 2606 | fi |
| 2607 | |
| 2608 | |
| 2609 | # Check whether --with-jack was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2610 | if test "${with_jack+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2611 | withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi |
| 2612 | fi |
| 2613 | |
| 2614 | |
| 2615 | # Check whether --with-jpeg was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2616 | if test "${with_jpeg+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2617 | withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi |
| 2618 | fi |
| 2619 | |
| 2620 | |
| 2621 | # Check whether --with-ldap was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2622 | if test "${with_ldap+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2623 | withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi |
| 2624 | fi |
| 2625 | |
| 2626 | |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 2627 | # Check whether --with-mpg123 was given. |
| 2628 | if test "${with_mpg123+set}" = set; then : |
| 2629 | withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi |
| 2630 | fi |
| 2631 | |
| 2632 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2633 | # Check whether --with-nas was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2634 | if test "${with_nas+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2635 | withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi |
| 2636 | fi |
| 2637 | |
| 2638 | |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 2639 | # Check whether --with-openal was given. |
| 2640 | if test "${with_openal+set}" = set; then : |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 2641 | 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] | 2642 | fi |
| 2643 | |
| 2644 | |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 2645 | # Check whether --with-opencl was given. |
| 2646 | if test "${with_opencl+set}" = set; then : |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 2647 | 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] | 2648 | fi |
| 2649 | |
| 2650 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2651 | # Check whether --with-opengl was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2652 | if test "${with_opengl+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2653 | withval=$with_opengl; |
| 2654 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2655 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 2656 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2657 | # Check whether --with-openssl was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2658 | if test "${with_openssl+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2659 | withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi |
| 2660 | fi |
| 2661 | |
| 2662 | |
| 2663 | # Check whether --with-oss was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2664 | if test "${with_oss+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2665 | 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 |
| 2666 | fi |
| 2667 | |
| 2668 | |
| 2669 | # Check whether --with-png was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2670 | if test "${with_png+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2671 | withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi |
| 2672 | fi |
| 2673 | |
| 2674 | |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 2675 | # Check whether --with-pthread was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2676 | if test "${with_pthread+set}" = set; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 2677 | withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi |
| 2678 | fi |
| 2679 | |
| 2680 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2681 | # Check whether --with-sane was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2682 | if test "${with_sane+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2683 | withval=$with_sane; |
| 2684 | fi |
| 2685 | |
| 2686 | |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 2687 | # Check whether --with-tiff was given. |
| 2688 | if test "${with_tiff+set}" = set; then : |
| 2689 | withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi |
| 2690 | fi |
| 2691 | |
| 2692 | |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 2693 | # Check whether --with-v4l was given. |
| 2694 | if test "${with_v4l+set}" = set; then : |
| 2695 | withval=$with_v4l; |
| 2696 | fi |
| 2697 | |
| 2698 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2699 | # Check whether --with-xcomposite was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2700 | if test "${with_xcomposite+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2701 | withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi |
| 2702 | fi |
| 2703 | |
| 2704 | |
| 2705 | # Check whether --with-xcursor was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2706 | if test "${with_xcursor+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2707 | withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi |
| 2708 | fi |
| 2709 | |
| 2710 | |
| 2711 | # Check whether --with-xinerama was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2712 | if test "${with_xinerama+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2713 | withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi |
| 2714 | fi |
| 2715 | |
| 2716 | |
| 2717 | # Check whether --with-xinput was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2718 | if test "${with_xinput+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2719 | withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi |
| 2720 | fi |
| 2721 | |
| 2722 | |
| 2723 | # Check whether --with-xml was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2724 | if test "${with_xml+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2725 | withval=$with_xml; |
| 2726 | fi |
| 2727 | |
| 2728 | |
| 2729 | # Check whether --with-xrandr was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2730 | if test "${with_xrandr+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2731 | withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi |
| 2732 | fi |
| 2733 | |
| 2734 | |
| 2735 | # Check whether --with-xrender was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2736 | if test "${with_xrender+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2737 | withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi |
| 2738 | fi |
| 2739 | |
| 2740 | |
| 2741 | # Check whether --with-xshape was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2742 | if test "${with_xshape+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2743 | withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi |
| 2744 | fi |
| 2745 | |
| 2746 | |
| 2747 | # Check whether --with-xshm was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2748 | if test "${with_xshm+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2749 | withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi |
| 2750 | fi |
| 2751 | |
| 2752 | |
| 2753 | # Check whether --with-xslt was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2754 | if test "${with_xslt+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2755 | withval=$with_xslt; |
| 2756 | fi |
| 2757 | |
| 2758 | |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 2759 | # Check whether --with-xxf86vm was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2760 | if test "${with_xxf86vm+set}" = set; then : |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 2761 | 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] | 2762 | fi |
| 2763 | |
| 2764 | |
| 2765 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2766 | # Check whether --with-wine-tools was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2767 | if test "${with_wine_tools+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2768 | withval=$with_wine_tools; |
| 2769 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2770 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2771 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 2772 | # Check whether --with-wine64 was given. |
| 2773 | if test "${with_wine64+set}" = set; then : |
| 2774 | withval=$with_wine64; |
| 2775 | fi |
| 2776 | |
| 2777 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2778 | # Make sure we can run config.sub. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2779 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2780 | 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] | 2781 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2783 | $as_echo_n "checking build system type... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2784 | if test "${ac_cv_build+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2785 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2786 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2787 | ac_build_alias=$build_alias |
| 2788 | test "x$ac_build_alias" = x && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2789 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2790 | test "x$ac_build_alias" = x && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2791 | 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] | 2792 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2793 | 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] | 2794 | |
| 2795 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2797 | $as_echo "$ac_cv_build" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2798 | case $ac_cv_build in |
| 2799 | *-*-*) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2800 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2801 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2802 | build=$ac_cv_build |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2803 | ac_save_IFS=$IFS; IFS='-' |
| 2804 | set x $ac_cv_build |
| 2805 | shift |
| 2806 | build_cpu=$1 |
| 2807 | build_vendor=$2 |
| 2808 | shift; shift |
| 2809 | # Remember, the first character of IFS is used to create $*, |
| 2810 | # except with old shells: |
| 2811 | build_os=$* |
| 2812 | IFS=$ac_save_IFS |
| 2813 | 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] | 2814 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2815 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2817 | $as_echo_n "checking host system type... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2818 | if test "${ac_cv_host+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2819 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2820 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2821 | if test "x$host_alias" = x; then |
| 2822 | ac_cv_host=$ac_cv_build |
| 2823 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2824 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2825 | 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] | 2826 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2827 | |
| 2828 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2830 | $as_echo "$ac_cv_host" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2831 | case $ac_cv_host in |
| 2832 | *-*-*) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2833 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2834 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2835 | host=$ac_cv_host |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2836 | ac_save_IFS=$IFS; IFS='-' |
| 2837 | set x $ac_cv_host |
| 2838 | shift |
| 2839 | host_cpu=$1 |
| 2840 | host_vendor=$2 |
| 2841 | shift; shift |
| 2842 | # Remember, the first character of IFS is used to create $*, |
| 2843 | # except with old shells: |
| 2844 | host_os=$* |
| 2845 | IFS=$ac_save_IFS |
| 2846 | 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] | 2847 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2848 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 2849 | |
Alexandre Julliard | 73b724e | 2006-12-28 11:40:19 +0100 | [diff] [blame] | 2850 | case "$srcdir" in |
| 2851 | .) ;; |
| 2852 | *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2853 | 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] | 2854 | 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] | 2855 | fi ;; |
| 2856 | esac |
| 2857 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 2858 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2859 | { $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] | 2860 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2861 | set x ${MAKE-make} |
| 2862 | 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] | 2863 | 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] | 2864 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2865 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2866 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2867 | SHELL = /bin/sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2868 | all: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2869 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2870 | _ACEOF |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2871 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2872 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2873 | *@@@%%%=?*=@@@%%%*) |
| 2874 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2875 | *) |
| 2876 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2877 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2878 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2879 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2880 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2882 | $as_echo "yes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2883 | SET_MAKE= |
| 2884 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2886 | $as_echo "no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2887 | SET_MAKE="MAKE=${MAKE-make}" |
| 2888 | fi |
| 2889 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2890 | ac_ext=c |
| 2891 | ac_cpp='$CPP $CPPFLAGS' |
| 2892 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2893 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2894 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2895 | if test -n "$ac_tool_prefix"; then |
| 2896 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2897 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2899 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2900 | if test "${ac_cv_prog_CC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2901 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2902 | else |
| 2903 | if test -n "$CC"; then |
| 2904 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2905 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2907 | for as_dir in $PATH |
| 2908 | do |
| 2909 | IFS=$as_save_IFS |
| 2910 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2911 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 2912 | 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] | 2913 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2914 | $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] | 2915 | break 2 |
| 2916 | fi |
| 2917 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2918 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2919 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2920 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2921 | fi |
| 2922 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2923 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2924 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2926 | $as_echo "$CC" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2927 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2929 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2930 | fi |
| 2931 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2932 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2933 | fi |
| 2934 | if test -z "$ac_cv_prog_CC"; then |
| 2935 | ac_ct_CC=$CC |
| 2936 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2937 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2939 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2940 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2941 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2942 | else |
| 2943 | if test -n "$ac_ct_CC"; then |
| 2944 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2945 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2947 | for as_dir in $PATH |
| 2948 | do |
| 2949 | IFS=$as_save_IFS |
| 2950 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2951 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 2952 | 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] | 2953 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2954 | $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] | 2955 | break 2 |
| 2956 | fi |
| 2957 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2958 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2959 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2960 | |
| 2961 | fi |
| 2962 | fi |
| 2963 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2964 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2966 | $as_echo "$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2967 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2969 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2970 | fi |
| 2971 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2972 | if test "x$ac_ct_CC" = x; then |
| 2973 | CC="" |
| 2974 | else |
| 2975 | case $cross_compiling:$ac_tool_warned in |
| 2976 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2977 | { $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] | 2978 | $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] | 2979 | ac_tool_warned=yes ;; |
| 2980 | esac |
| 2981 | CC=$ac_ct_CC |
| 2982 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2983 | else |
| 2984 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2985 | fi |
| 2986 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2987 | if test -z "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2988 | if test -n "$ac_tool_prefix"; then |
| 2989 | # 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] | 2990 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2992 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2993 | if test "${ac_cv_prog_CC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2994 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2995 | else |
| 2996 | if test -n "$CC"; then |
| 2997 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2998 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3000 | for as_dir in $PATH |
| 3001 | do |
| 3002 | IFS=$as_save_IFS |
| 3003 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3004 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3005 | 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] | 3006 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3007 | $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] | 3008 | break 2 |
| 3009 | fi |
| 3010 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3011 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3012 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3013 | |
| 3014 | fi |
| 3015 | fi |
| 3016 | CC=$ac_cv_prog_CC |
| 3017 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3019 | $as_echo "$CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3020 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3022 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3023 | fi |
| 3024 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3025 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3026 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3027 | fi |
| 3028 | if test -z "$CC"; then |
| 3029 | # Extract the first word of "cc", so it can be a program name with args. |
| 3030 | set dummy cc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3032 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3033 | if test "${ac_cv_prog_CC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3034 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3035 | else |
| 3036 | if test -n "$CC"; then |
| 3037 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3038 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3039 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3041 | for as_dir in $PATH |
| 3042 | do |
| 3043 | IFS=$as_save_IFS |
| 3044 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3045 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3046 | 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] | 3047 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3048 | ac_prog_rejected=yes |
| 3049 | continue |
| 3050 | fi |
| 3051 | ac_cv_prog_CC="cc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3052 | $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] | 3053 | break 2 |
| 3054 | fi |
| 3055 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3056 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3057 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3058 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3059 | if test $ac_prog_rejected = yes; then |
| 3060 | # We found a bogon in the path, so make sure we never use it. |
| 3061 | set dummy $ac_cv_prog_CC |
| 3062 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3063 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3064 | # We chose a different compiler from the bogus one. |
| 3065 | # However, it has the same basename, so the bogon will be chosen |
| 3066 | # first if we set CC to just the basename; use the full file name. |
| 3067 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3068 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3069 | fi |
| 3070 | fi |
| 3071 | fi |
| 3072 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3073 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3074 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3076 | $as_echo "$CC" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3077 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3079 | $as_echo "no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3080 | fi |
| 3081 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3082 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3083 | fi |
| 3084 | if test -z "$CC"; then |
| 3085 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3086 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3087 | do |
| 3088 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3089 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3091 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3092 | if test "${ac_cv_prog_CC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3093 | $as_echo_n "(cached) " >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3094 | else |
| 3095 | if test -n "$CC"; then |
| 3096 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3097 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3099 | for as_dir in $PATH |
| 3100 | do |
| 3101 | IFS=$as_save_IFS |
| 3102 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3103 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3104 | 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] | 3105 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3106 | $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] | 3107 | break 2 |
| 3108 | fi |
| 3109 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3110 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3111 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3112 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3113 | fi |
| 3114 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3115 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3116 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3118 | $as_echo "$CC" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3119 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3121 | $as_echo "no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3122 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3123 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3124 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3125 | test -n "$CC" && break |
| 3126 | done |
| 3127 | fi |
| 3128 | if test -z "$CC"; then |
| 3129 | ac_ct_CC=$CC |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3130 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3131 | do |
| 3132 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3133 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3135 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3136 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3137 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3138 | else |
| 3139 | if test -n "$ac_ct_CC"; then |
| 3140 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3141 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3143 | for as_dir in $PATH |
| 3144 | do |
| 3145 | IFS=$as_save_IFS |
| 3146 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3147 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3148 | 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] | 3149 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3150 | $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] | 3151 | break 2 |
| 3152 | fi |
| 3153 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3154 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3155 | IFS=$as_save_IFS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3156 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3157 | fi |
| 3158 | fi |
| 3159 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3160 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3162 | $as_echo "$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3163 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3165 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3166 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3167 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3168 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3169 | test -n "$ac_ct_CC" && break |
| 3170 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3171 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3172 | if test "x$ac_ct_CC" = x; then |
| 3173 | CC="" |
| 3174 | else |
| 3175 | case $cross_compiling:$ac_tool_warned in |
| 3176 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3177 | { $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] | 3178 | $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] | 3179 | ac_tool_warned=yes ;; |
| 3180 | esac |
| 3181 | CC=$ac_ct_CC |
| 3182 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3183 | fi |
| 3184 | |
| 3185 | fi |
| 3186 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3187 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3188 | 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] | 3189 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3190 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3191 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3192 | |
| 3193 | # Provide some information about the compiler. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3194 | $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] | 3195 | set X $ac_compile |
| 3196 | ac_compiler=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3197 | for ac_option in --version -v -V -qversion; do |
| 3198 | { { ac_try="$ac_compiler $ac_option >&5" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3199 | case "(($ac_try" in |
| 3200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3201 | *) ac_try_echo=$ac_try;; |
| 3202 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3203 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3204 | $as_echo "$ac_try_echo"; } >&5 |
| 3205 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3206 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3207 | if test -s conftest.err; then |
| 3208 | sed '10a\ |
| 3209 | ... rest of stderr output deleted ... |
| 3210 | 10q' conftest.err >conftest.er1 |
| 3211 | cat conftest.er1 >&5 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3212 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3213 | rm -f conftest.er1 conftest.err |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3215 | test $ac_status = 0; } |
| 3216 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3217 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3219 | /* end confdefs.h. */ |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3220 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3221 | int |
| 3222 | main () |
| 3223 | { |
| 3224 | |
| 3225 | ; |
| 3226 | return 0; |
| 3227 | } |
| 3228 | _ACEOF |
| 3229 | ac_clean_files_save=$ac_clean_files |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3230 | 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] | 3231 | # Try to create an executable without -o first, disregard a.out. |
| 3232 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3233 | # of exeext. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3235 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3236 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3237 | |
| 3238 | # The possible output files: |
| 3239 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3240 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3241 | ac_rmfiles= |
| 3242 | for ac_file in $ac_files |
| 3243 | do |
| 3244 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3245 | *.$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] | 3246 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3247 | esac |
| 3248 | done |
| 3249 | rm -f $ac_rmfiles |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3250 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3251 | if { { ac_try="$ac_link_default" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3252 | case "(($ac_try" in |
| 3253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3254 | *) ac_try_echo=$ac_try;; |
| 3255 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3256 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3257 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3258 | (eval "$ac_link_default") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3259 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3260 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3261 | test $ac_status = 0; }; then : |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3262 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3263 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3264 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3265 | # so that the user can short-circuit this test for compilers unknown to |
| 3266 | # Autoconf. |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 3267 | for ac_file in $ac_files '' |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3268 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3269 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3270 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3271 | *.$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] | 3272 | ;; |
| 3273 | [ab].out ) |
| 3274 | # We found the default executable, but exeext='' is most |
| 3275 | # certainly right. |
| 3276 | break;; |
| 3277 | *.* ) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3278 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3279 | then :; else |
| 3280 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3281 | fi |
| 3282 | # We set ac_cv_exeext here because the later test for it is not |
| 3283 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3284 | # argument, so we may need to know it at that point already. |
| 3285 | # Even if this section looks crufty: it has the advantage of |
| 3286 | # actually working. |
| 3287 | break;; |
| 3288 | * ) |
| 3289 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3290 | esac |
| 3291 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3292 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3293 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3294 | else |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 3295 | ac_file='' |
| 3296 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3297 | if test -z "$ac_file"; then : |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3299 | $as_echo "no" >&6; } |
| 3300 | $as_echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3302 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3303 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3304 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3305 | as_fn_error 77 "C compiler cannot create executables |
| 3306 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3307 | else |
| 3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3309 | $as_echo "yes" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3310 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3312 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3314 | $as_echo "$ac_file" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3315 | ac_exeext=$ac_cv_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3316 | |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3317 | 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] | 3318 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3319 | { $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] | 3320 | $as_echo_n "checking for suffix of executables... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3321 | if { { ac_try="$ac_link" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3322 | case "(($ac_try" in |
| 3323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3324 | *) ac_try_echo=$ac_try;; |
| 3325 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3326 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3327 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3328 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3329 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3330 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3331 | test $ac_status = 0; }; then : |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3332 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3333 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3334 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3335 | # `rm'. |
| 3336 | for ac_file in conftest.exe conftest conftest.*; do |
| 3337 | test -f "$ac_file" || continue |
| 3338 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3339 | *.$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] | 3340 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3341 | break;; |
| 3342 | * ) break;; |
| 3343 | esac |
| 3344 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3345 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3346 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3347 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3348 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3349 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3350 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3351 | rm -f conftest conftest$ac_cv_exeext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3353 | $as_echo "$ac_cv_exeext" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3354 | |
| 3355 | rm -f conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3356 | EXEEXT=$ac_cv_exeext |
| 3357 | ac_exeext=$EXEEXT |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3359 | /* end confdefs.h. */ |
| 3360 | #include <stdio.h> |
| 3361 | int |
| 3362 | main () |
| 3363 | { |
| 3364 | FILE *f = fopen ("conftest.out", "w"); |
| 3365 | return ferror (f) || fclose (f) != 0; |
| 3366 | |
| 3367 | ; |
| 3368 | return 0; |
| 3369 | } |
| 3370 | _ACEOF |
| 3371 | ac_clean_files="$ac_clean_files conftest.out" |
| 3372 | # Check that the compiler produces executables we can run. If not, either |
| 3373 | # the compiler is broken, or we cross compile. |
| 3374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3375 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3376 | if test "$cross_compiling" != yes; then |
| 3377 | { { ac_try="$ac_link" |
| 3378 | case "(($ac_try" in |
| 3379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3380 | *) ac_try_echo=$ac_try;; |
| 3381 | esac |
| 3382 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3383 | $as_echo "$ac_try_echo"; } >&5 |
| 3384 | (eval "$ac_link") 2>&5 |
| 3385 | ac_status=$? |
| 3386 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3387 | test $ac_status = 0; } |
| 3388 | if { ac_try='./conftest$ac_cv_exeext' |
| 3389 | { { case "(($ac_try" in |
| 3390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3391 | *) ac_try_echo=$ac_try;; |
| 3392 | esac |
| 3393 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3394 | $as_echo "$ac_try_echo"; } >&5 |
| 3395 | (eval "$ac_try") 2>&5 |
| 3396 | ac_status=$? |
| 3397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3398 | test $ac_status = 0; }; }; then |
| 3399 | cross_compiling=no |
| 3400 | else |
| 3401 | if test "$cross_compiling" = maybe; then |
| 3402 | cross_compiling=yes |
| 3403 | else |
| 3404 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3405 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3406 | as_fn_error $? "cannot run C compiled programs. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3407 | If you meant to cross compile, use \`--host'. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3408 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3409 | fi |
| 3410 | fi |
| 3411 | fi |
| 3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3413 | $as_echo "$cross_compiling" >&6; } |
| 3414 | |
| 3415 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3416 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3417 | { $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] | 3418 | $as_echo_n "checking for suffix of object files... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3419 | if test "${ac_cv_objext+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3420 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3421 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3423 | /* end confdefs.h. */ |
| 3424 | |
| 3425 | int |
| 3426 | main () |
| 3427 | { |
| 3428 | |
| 3429 | ; |
| 3430 | return 0; |
| 3431 | } |
| 3432 | _ACEOF |
| 3433 | rm -f conftest.o conftest.obj |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3434 | if { { ac_try="$ac_compile" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3435 | case "(($ac_try" in |
| 3436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3437 | *) ac_try_echo=$ac_try;; |
| 3438 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3439 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3440 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3441 | (eval "$ac_compile") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3442 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3443 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3444 | test $ac_status = 0; }; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3445 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3446 | test -f "$ac_file" || continue; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3447 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3448 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3449 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3450 | break;; |
| 3451 | esac |
| 3452 | done |
| 3453 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3454 | $as_echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3456 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3457 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3458 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3459 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3460 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3461 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3462 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3463 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3465 | $as_echo "$ac_cv_objext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3466 | OBJEXT=$ac_cv_objext |
| 3467 | ac_objext=$OBJEXT |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3468 | { $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] | 3469 | $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] | 3470 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3471 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3472 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3474 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3475 | |
| 3476 | int |
| 3477 | main () |
| 3478 | { |
| 3479 | #ifndef __GNUC__ |
| 3480 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3481 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3482 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3483 | ; |
| 3484 | return 0; |
| 3485 | } |
| 3486 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3487 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3488 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3489 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3490 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3491 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3493 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3494 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3495 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3496 | { $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] | 3497 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3498 | if test $ac_compiler_gnu = yes; then |
| 3499 | GCC=yes |
| 3500 | else |
| 3501 | GCC= |
| 3502 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3503 | ac_test_CFLAGS=${CFLAGS+set} |
| 3504 | ac_save_CFLAGS=$CFLAGS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3505 | { $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] | 3506 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3507 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3508 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3509 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3510 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3511 | ac_c_werror_flag=yes |
| 3512 | ac_cv_prog_cc_g=no |
| 3513 | CFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3515 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3516 | |
| 3517 | int |
| 3518 | main () |
| 3519 | { |
| 3520 | |
| 3521 | ; |
| 3522 | return 0; |
| 3523 | } |
| 3524 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3525 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3526 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3527 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3528 | CFLAGS="" |
| 3529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3530 | /* end confdefs.h. */ |
| 3531 | |
| 3532 | int |
| 3533 | main () |
| 3534 | { |
| 3535 | |
| 3536 | ; |
| 3537 | return 0; |
| 3538 | } |
| 3539 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3540 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3541 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3542 | else |
| 3543 | ac_c_werror_flag=$ac_save_c_werror_flag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3544 | CFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3546 | /* end confdefs.h. */ |
| 3547 | |
| 3548 | int |
| 3549 | main () |
| 3550 | { |
| 3551 | |
| 3552 | ; |
| 3553 | return 0; |
| 3554 | } |
| 3555 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3556 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3557 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3558 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3560 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3562 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3564 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3565 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3566 | { $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] | 3567 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3568 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3569 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3570 | elif test $ac_cv_prog_cc_g = yes; then |
| 3571 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3572 | CFLAGS="-g -O2" |
| 3573 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3574 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3575 | fi |
| 3576 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3577 | if test "$GCC" = yes; then |
| 3578 | CFLAGS="-O2" |
| 3579 | else |
| 3580 | CFLAGS= |
| 3581 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3582 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3583 | { $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] | 3584 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3585 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3586 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3587 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3588 | ac_cv_prog_cc_c89=no |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3589 | ac_save_CC=$CC |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3591 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3592 | #include <stdarg.h> |
| 3593 | #include <stdio.h> |
| 3594 | #include <sys/types.h> |
| 3595 | #include <sys/stat.h> |
| 3596 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3597 | struct buf { int x; }; |
| 3598 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3599 | static char *e (p, i) |
| 3600 | char **p; |
| 3601 | int i; |
| 3602 | { |
| 3603 | return p[i]; |
| 3604 | } |
| 3605 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3606 | { |
| 3607 | char *s; |
| 3608 | va_list v; |
| 3609 | va_start (v,p); |
| 3610 | s = g (p, va_arg (v,int)); |
| 3611 | va_end (v); |
| 3612 | return s; |
| 3613 | } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3614 | |
| 3615 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3616 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3617 | These don't provoke an error unfortunately, instead are silently treated |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3618 | 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] | 3619 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3620 | 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] | 3621 | that's true only with -std. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3622 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3623 | |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 3624 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3625 | inside strings and character constants. */ |
| 3626 | #define FOO(x) 'x' |
| 3627 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3628 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3629 | int test (int i, double x); |
| 3630 | struct s1 {int (*f) (int a);}; |
| 3631 | struct s2 {int (*f) (double a);}; |
| 3632 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3633 | int argc; |
| 3634 | char **argv; |
| 3635 | int |
| 3636 | main () |
| 3637 | { |
| 3638 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3639 | ; |
| 3640 | return 0; |
| 3641 | } |
| 3642 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3643 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3644 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3645 | do |
| 3646 | CC="$ac_save_CC $ac_arg" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3647 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3648 | ac_cv_prog_cc_c89=$ac_arg |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3649 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3650 | rm -f core conftest.err conftest.$ac_objext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3651 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3652 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3653 | rm -f conftest.$ac_ext |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3654 | CC=$ac_save_CC |
| 3655 | |
| 3656 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3657 | # AC_CACHE_VAL |
| 3658 | case "x$ac_cv_prog_cc_c89" in |
| 3659 | x) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3661 | $as_echo "none needed" >&6; } ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3662 | xno) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3664 | $as_echo "unsupported" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3665 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3666 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3667 | { $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] | 3668 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3669 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3670 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3671 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3672 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3673 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3674 | ac_ext=c |
| 3675 | ac_cpp='$CPP $CPPFLAGS' |
| 3676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3679 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3680 | ac_ext=cpp |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3681 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3682 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3683 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3684 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3685 | if test -z "$CXX"; then |
| 3686 | if test -n "$CCC"; then |
| 3687 | CXX=$CCC |
| 3688 | else |
| 3689 | if test -n "$ac_tool_prefix"; then |
| 3690 | 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] | 3691 | do |
| 3692 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3693 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3695 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3696 | if test "${ac_cv_prog_CXX+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3697 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3698 | else |
| 3699 | if test -n "$CXX"; then |
| 3700 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3701 | else |
| 3702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3703 | for as_dir in $PATH |
| 3704 | do |
| 3705 | IFS=$as_save_IFS |
| 3706 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3707 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3708 | 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] | 3709 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3710 | $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] | 3711 | break 2 |
| 3712 | fi |
| 3713 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3714 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3715 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3716 | |
| 3717 | fi |
| 3718 | fi |
| 3719 | CXX=$ac_cv_prog_CXX |
| 3720 | if test -n "$CXX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3722 | $as_echo "$CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3723 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3725 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3726 | fi |
| 3727 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3728 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3729 | test -n "$CXX" && break |
| 3730 | done |
| 3731 | fi |
| 3732 | if test -z "$CXX"; then |
| 3733 | ac_ct_CXX=$CXX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3734 | 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] | 3735 | do |
| 3736 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3737 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3739 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3740 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3741 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3742 | else |
| 3743 | if test -n "$ac_ct_CXX"; then |
| 3744 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3745 | else |
| 3746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3747 | for as_dir in $PATH |
| 3748 | do |
| 3749 | IFS=$as_save_IFS |
| 3750 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3751 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3752 | 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] | 3753 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3754 | $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] | 3755 | break 2 |
| 3756 | fi |
| 3757 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3758 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3759 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3760 | |
| 3761 | fi |
| 3762 | fi |
| 3763 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3764 | if test -n "$ac_ct_CXX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3766 | $as_echo "$ac_ct_CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3767 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3769 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3770 | fi |
| 3771 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3772 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3773 | test -n "$ac_ct_CXX" && break |
| 3774 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3775 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3776 | if test "x$ac_ct_CXX" = x; then |
| 3777 | CXX="g++" |
| 3778 | else |
| 3779 | case $cross_compiling:$ac_tool_warned in |
| 3780 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3781 | { $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] | 3782 | $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] | 3783 | ac_tool_warned=yes ;; |
| 3784 | esac |
| 3785 | CXX=$ac_ct_CXX |
| 3786 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3787 | fi |
| 3788 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3789 | fi |
| 3790 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3791 | # Provide some information about the compiler. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3792 | $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] | 3793 | set X $ac_compile |
| 3794 | ac_compiler=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3795 | for ac_option in --version -v -V -qversion; do |
| 3796 | { { ac_try="$ac_compiler $ac_option >&5" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3797 | case "(($ac_try" in |
| 3798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3799 | *) ac_try_echo=$ac_try;; |
| 3800 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3801 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3802 | $as_echo "$ac_try_echo"; } >&5 |
| 3803 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3804 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3805 | if test -s conftest.err; then |
| 3806 | sed '10a\ |
| 3807 | ... rest of stderr output deleted ... |
| 3808 | 10q' conftest.err >conftest.er1 |
| 3809 | cat conftest.er1 >&5 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3810 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3811 | rm -f conftest.er1 conftest.err |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3813 | test $ac_status = 0; } |
| 3814 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3815 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3816 | { $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] | 3817 | $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] | 3818 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3819 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3820 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3822 | /* end confdefs.h. */ |
| 3823 | |
| 3824 | int |
| 3825 | main () |
| 3826 | { |
| 3827 | #ifndef __GNUC__ |
| 3828 | choke me |
| 3829 | #endif |
| 3830 | |
| 3831 | ; |
| 3832 | return 0; |
| 3833 | } |
| 3834 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3835 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3836 | ac_compiler_gnu=yes |
| 3837 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3838 | ac_compiler_gnu=no |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3839 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3841 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3842 | |
| 3843 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3844 | { $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] | 3845 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3846 | if test $ac_compiler_gnu = yes; then |
| 3847 | GXX=yes |
| 3848 | else |
| 3849 | GXX= |
| 3850 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3851 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3852 | ac_save_CXXFLAGS=$CXXFLAGS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3853 | { $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] | 3854 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3855 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3856 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3857 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3858 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3859 | ac_cxx_werror_flag=yes |
| 3860 | ac_cv_prog_cxx_g=no |
| 3861 | CXXFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3863 | /* end confdefs.h. */ |
| 3864 | |
| 3865 | int |
| 3866 | main () |
| 3867 | { |
| 3868 | |
| 3869 | ; |
| 3870 | return 0; |
| 3871 | } |
| 3872 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3873 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3874 | ac_cv_prog_cxx_g=yes |
| 3875 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3876 | CXXFLAGS="" |
| 3877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3878 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3879 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3880 | int |
| 3881 | main () |
| 3882 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3883 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3884 | ; |
| 3885 | return 0; |
| 3886 | } |
| 3887 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3888 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3889 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3890 | else |
| 3891 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3892 | CXXFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3894 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3895 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3896 | int |
| 3897 | main () |
| 3898 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3899 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3900 | ; |
| 3901 | return 0; |
| 3902 | } |
| 3903 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3904 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3905 | ac_cv_prog_cxx_g=yes |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3906 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3908 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3910 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3912 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3913 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3914 | { $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] | 3915 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3916 | if test "$ac_test_CXXFLAGS" = set; then |
| 3917 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3918 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3919 | if test "$GXX" = yes; then |
| 3920 | CXXFLAGS="-g -O2" |
| 3921 | else |
| 3922 | CXXFLAGS="-g" |
| 3923 | fi |
| 3924 | else |
| 3925 | if test "$GXX" = yes; then |
| 3926 | CXXFLAGS="-O2" |
| 3927 | else |
| 3928 | CXXFLAGS= |
| 3929 | fi |
| 3930 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3931 | ac_ext=c |
| 3932 | ac_cpp='$CPP $CPPFLAGS' |
| 3933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3936 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3937 | if test -n "$ac_tool_prefix"; then |
| 3938 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. |
| 3939 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3941 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3942 | if test "${ac_cv_prog_CPPBIN+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3943 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3944 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3945 | if test -n "$CPPBIN"; then |
| 3946 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3947 | else |
| 3948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3949 | for as_dir in $PATH |
| 3950 | do |
| 3951 | IFS=$as_save_IFS |
| 3952 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3953 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3954 | 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] | 3955 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3956 | $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] | 3957 | break 2 |
| 3958 | fi |
| 3959 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3960 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3961 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3962 | |
| 3963 | fi |
| 3964 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3965 | CPPBIN=$ac_cv_prog_CPPBIN |
| 3966 | if test -n "$CPPBIN"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3968 | $as_echo "$CPPBIN" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3969 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3971 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3972 | fi |
| 3973 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3974 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3975 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3976 | if test -z "$ac_cv_prog_CPPBIN"; then |
| 3977 | ac_ct_CPPBIN=$CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3978 | # Extract the first word of "cpp", so it can be a program name with args. |
| 3979 | set dummy cpp; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3981 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3982 | if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3983 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3984 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3985 | if test -n "$ac_ct_CPPBIN"; then |
| 3986 | 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] | 3987 | else |
| 3988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3989 | for as_dir in $PATH |
| 3990 | do |
| 3991 | IFS=$as_save_IFS |
| 3992 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3993 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3994 | 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] | 3995 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3996 | $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] | 3997 | break 2 |
| 3998 | fi |
| 3999 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4000 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4001 | IFS=$as_save_IFS |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4002 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4003 | fi |
| 4004 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4005 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
| 4006 | if test -n "$ac_ct_CPPBIN"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4008 | $as_echo "$ac_ct_CPPBIN" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4009 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4011 | $as_echo "no" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4012 | fi |
| 4013 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4014 | if test "x$ac_ct_CPPBIN" = x; then |
| 4015 | CPPBIN="cpp" |
| 4016 | else |
| 4017 | case $cross_compiling:$ac_tool_warned in |
| 4018 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4019 | { $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] | 4020 | $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] | 4021 | ac_tool_warned=yes ;; |
| 4022 | esac |
| 4023 | CPPBIN=$ac_ct_CPPBIN |
| 4024 | fi |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4025 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4026 | CPPBIN="$ac_cv_prog_CPPBIN" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4027 | fi |
| 4028 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4029 | |
Alexandre Julliard | 1aea4ef | 2009-08-27 13:35:46 +0200 | [diff] [blame] | 4030 | cat >>confdefs.h <<_ACEOF |
| 4031 | #define EXEEXT "$ac_exeext" |
| 4032 | _ACEOF |
| 4033 | |
| 4034 | |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4035 | case $host in |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4036 | *-darwin*) |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4037 | if test "x$enable_win64" = "xyes" |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4038 | then |
| 4039 | CC="$CC -m64" |
| 4040 | CXX="$CXX -m64" |
| 4041 | LD="${LD:-ld} -arch x86_64" |
| 4042 | AS="${AS:-as} -arch x86_64" |
| 4043 | host_cpu="x86_64" |
| 4044 | notice_platform="64-bit " |
| 4045 | TARGETFLAGS="-m64" |
| 4046 | |
| 4047 | else |
| 4048 | CC="$CC -m32" |
| 4049 | CXX="$CXX -m32" |
| 4050 | LD="${LD:-ld} -arch i386" |
| 4051 | AS="${AS:-as} -arch i386" |
| 4052 | host_cpu="i386" |
| 4053 | notice_platform="32-bit " |
| 4054 | TARGETFLAGS="-m32" |
| 4055 | |
| 4056 | enable_win16=${enable_win16:-yes} |
| 4057 | fi |
| 4058 | ;; |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4059 | x86_64*) |
Alexandre Julliard | 6b4ed0f | 2009-01-12 19:29:43 +0100 | [diff] [blame] | 4060 | if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes" |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4061 | then |
| 4062 | CC="$CC -m32" |
| 4063 | CXX="$CXX -m32" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4065 | $as_echo_n "checking whether $CC works... " >&6; } |
| 4066 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4068 | /* end confdefs.h. */ |
| 4069 | |
| 4070 | int |
| 4071 | main () |
| 4072 | { |
| 4073 | |
| 4074 | ; |
| 4075 | return 0; |
| 4076 | } |
| 4077 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4078 | if ac_fn_c_try_link "$LINENO"; then : |
| 4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4080 | $as_echo "yes" >&6; } |
| 4081 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4083 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4084 | 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] | 4085 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4086 | rm -f core conftest.err conftest.$ac_objext \ |
| 4087 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4088 | LD="${LD:-ld} -m elf_i386" |
| 4089 | AS="${AS:-as} --32" |
| 4090 | host_cpu="i386" |
| 4091 | notice_platform="32-bit " |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4092 | TARGETFLAGS="-m32" |
| 4093 | |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4094 | enable_win16=${enable_win16:-yes} |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4095 | else |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4096 | if test "x${GCC}" = "xyes" |
| 4097 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4098 | { $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] | 4099 | $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4101 | /* end confdefs.h. */ |
| 4102 | #include <stdarg.h> |
| 4103 | int |
| 4104 | main () |
| 4105 | { |
| 4106 | void func(__builtin_ms_va_list *args); |
| 4107 | ; |
| 4108 | return 0; |
| 4109 | } |
| 4110 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4111 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4113 | $as_echo "yes" >&6; } |
| 4114 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4116 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4117 | 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] | 4118 | fi |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4120 | fi |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4121 | TARGETFLAGS="-m64" |
| 4122 | |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4123 | fi |
| 4124 | ;; |
Alexandre Julliard | 391fce6 | 2009-04-02 12:59:52 +0200 | [diff] [blame] | 4125 | *-mingw32*|*-cygwin*) |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4126 | enable_win16=${enable_win16:-no} |
Alexandre Goujon | ac0a38c | 2010-03-01 21:39:40 +0100 | [diff] [blame] | 4127 | CFLAGS="$CFLAGS -D_WIN32" |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4128 | ;; |
| 4129 | i[3456789]86*) |
| 4130 | enable_win16=${enable_win16:-yes} |
| 4131 | ;; |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4132 | esac |
| 4133 | |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4134 | enable_win16=${enable_win16:-no} |
Alexandre Julliard | 776820e | 2009-02-23 17:46:33 +0100 | [diff] [blame] | 4135 | |
Alexandre Julliard | 9508155 | 2010-02-09 19:08:17 +0100 | [diff] [blame] | 4136 | enable_winetest=${enable_winetest:-$enable_tests} |
| 4137 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4138 | if test -n "$with_wine64" |
| 4139 | then |
| 4140 | if test "x$enable_win64" = "xyes" |
| 4141 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4142 | as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive. |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4143 | --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5 |
| 4144 | fi |
Alexandre Julliard | 9064777 | 2009-08-13 19:48:42 +0200 | [diff] [blame] | 4145 | WOW64_DISABLE=\# |
| 4146 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4147 | enable_fonts=${enable_fonts:-no} |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4148 | enable_server=${enable_server:-no} |
| 4149 | enable_tools=${enable_tools:-no} |
Alexandre Julliard | b326532 | 2010-04-21 12:28:22 +0200 | [diff] [blame] | 4150 | elif test "x$enable_win64" = "xyes" |
| 4151 | then |
| 4152 | test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64" |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4153 | fi |
| 4154 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4155 | { $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] | 4156 | $as_echo_n "checking for the directory containing the Wine tools... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4157 | if test "${wine_cv_toolsdir+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4158 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4159 | else |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4160 | wine_cv_toolsdir="$with_wine_tools" |
| 4161 | if test -z "$with_wine_tools"; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4162 | if test "$cross_compiling" = "yes"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4163 | 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] | 4164 | elif test -n "$with_wine64"; then |
| 4165 | wine_cv_toolsdir="$with_wine64" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4166 | fi |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4167 | fi |
| 4168 | if test -z "$wine_cv_toolsdir"; then |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4169 | wine_cv_toolsdir="\$(top_builddir)" |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4170 | elif test -d "$wine_cv_toolsdir/tools/winebuild"; then |
| 4171 | case "$wine_cv_toolsdir" in |
| 4172 | /*) ;; |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4173 | *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;; |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4174 | esac |
| 4175 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4176 | 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] | 4177 | fi |
| 4178 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4180 | $as_echo "$wine_cv_toolsdir" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4181 | TOOLSDIR=$wine_cv_toolsdir |
| 4182 | |
Alexandre Julliard | 4d135d9 | 2009-02-16 13:08:44 +0100 | [diff] [blame] | 4183 | if test -n "$host_alias" -a "$host_alias" != "$build_alias" |
Alexandre Julliard | 424cb27 | 2008-12-26 17:54:50 +0100 | [diff] [blame] | 4184 | then |
Alexandre Julliard | 0fea4a5 | 2009-02-12 10:28:23 +0100 | [diff] [blame] | 4185 | TARGETFLAGS="-b $host_alias $TARGETFLAGS" |
Alexandre Julliard | 424cb27 | 2008-12-26 17:54:50 +0100 | [diff] [blame] | 4186 | |
| 4187 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4188 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4189 | for ac_prog in flex |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4190 | do |
| 4191 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4192 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4194 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4195 | if test "${ac_cv_prog_FLEX+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4196 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4197 | else |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4198 | if test -n "$FLEX"; then |
| 4199 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4200 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4202 | for as_dir in $PATH |
| 4203 | do |
| 4204 | IFS=$as_save_IFS |
| 4205 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4206 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4207 | 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] | 4208 | ac_cv_prog_FLEX="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4209 | $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] | 4210 | break 2 |
| 4211 | fi |
| 4212 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4213 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4214 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4215 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4216 | fi |
| 4217 | fi |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4218 | FLEX=$ac_cv_prog_FLEX |
| 4219 | if test -n "$FLEX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4221 | $as_echo "$FLEX" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4222 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4224 | $as_echo "no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4225 | fi |
| 4226 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4227 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4228 | test -n "$FLEX" && break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4229 | done |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4230 | test -n "$FLEX" || FLEX="none" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4231 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4232 | if test "$FLEX" = "none" |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4233 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4234 | 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] | 4235 | fi |
Michael Stefaniuc | ce30733 | 2009-12-29 18:07:02 +0100 | [diff] [blame] | 4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5 |
| 4237 | $as_echo_n "checking whether flex is recent enough... " >&6; } |
| 4238 | cat >conftest.l <<EOF |
| 4239 | %top{ |
| 4240 | #include "prediluvian.h" |
| 4241 | } |
| 4242 | %% |
| 4243 | EOF |
Alexandre Julliard | 27816c7 | 2010-07-28 11:04:46 +0200 | [diff] [blame] | 4244 | if $FLEX -t conftest.l >/dev/null 2>&5 |
Michael Stefaniuc | ce30733 | 2009-12-29 18:07:02 +0100 | [diff] [blame] | 4245 | then |
| 4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4247 | $as_echo "yes" >&6; } |
| 4248 | else |
| 4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4250 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4251 | 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] | 4252 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4253 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4254 | for ac_prog in bison |
| 4255 | do |
| 4256 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4257 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4259 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4260 | if test "${ac_cv_prog_BISON+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4261 | $as_echo_n "(cached) " >&6 |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4262 | else |
| 4263 | if test -n "$BISON"; then |
| 4264 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
| 4265 | else |
| 4266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4267 | for as_dir in $PATH |
| 4268 | do |
| 4269 | IFS=$as_save_IFS |
| 4270 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4271 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4272 | 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] | 4273 | ac_cv_prog_BISON="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4274 | $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] | 4275 | break 2 |
| 4276 | fi |
| 4277 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4278 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4279 | IFS=$as_save_IFS |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4280 | |
| 4281 | fi |
| 4282 | fi |
| 4283 | BISON=$ac_cv_prog_BISON |
| 4284 | if test -n "$BISON"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4286 | $as_echo "$BISON" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4287 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4289 | $as_echo "no" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4290 | fi |
| 4291 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4292 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4293 | test -n "$BISON" && break |
| 4294 | done |
| 4295 | test -n "$BISON" || BISON="none" |
| 4296 | |
| 4297 | if test "$BISON" = "none" |
| 4298 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4299 | 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] | 4300 | fi |
| 4301 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4302 | if test -n "$ac_tool_prefix"; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4303 | for ac_prog in ar gar |
| 4304 | do |
| 4305 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4306 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4308 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4309 | if test "${ac_cv_prog_AR+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4310 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4311 | else |
| 4312 | if test -n "$AR"; then |
| 4313 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4314 | else |
| 4315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4316 | for as_dir in $PATH |
| 4317 | do |
| 4318 | IFS=$as_save_IFS |
| 4319 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4320 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4321 | 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] | 4322 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4323 | $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] | 4324 | break 2 |
| 4325 | fi |
| 4326 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4327 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4328 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4329 | |
| 4330 | fi |
| 4331 | fi |
| 4332 | AR=$ac_cv_prog_AR |
| 4333 | if test -n "$AR"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4335 | $as_echo "$AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4336 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4338 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4339 | fi |
| 4340 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4341 | |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4342 | test -n "$AR" && break |
| 4343 | done |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4344 | fi |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4345 | if test -z "$AR"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4346 | ac_ct_AR=$AR |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4347 | for ac_prog in ar gar |
| 4348 | do |
| 4349 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4350 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4352 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4353 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4354 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4355 | else |
| 4356 | if test -n "$ac_ct_AR"; then |
| 4357 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4358 | else |
| 4359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4360 | for as_dir in $PATH |
| 4361 | do |
| 4362 | IFS=$as_save_IFS |
| 4363 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4364 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4365 | 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] | 4366 | ac_cv_prog_ac_ct_AR="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4367 | $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] | 4368 | break 2 |
| 4369 | fi |
| 4370 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4371 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4372 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4373 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4374 | fi |
| 4375 | fi |
| 4376 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4377 | if test -n "$ac_ct_AR"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4379 | $as_echo "$ac_ct_AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4380 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4382 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4383 | fi |
| 4384 | |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4385 | |
| 4386 | test -n "$ac_ct_AR" && break |
| 4387 | done |
| 4388 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4389 | if test "x$ac_ct_AR" = x; then |
| 4390 | AR="ar" |
| 4391 | else |
| 4392 | case $cross_compiling:$ac_tool_warned in |
| 4393 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4394 | { $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] | 4395 | $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] | 4396 | ac_tool_warned=yes ;; |
| 4397 | esac |
| 4398 | AR=$ac_ct_AR |
| 4399 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4400 | fi |
| 4401 | |
Rob Shearman | 0c694d7 | 2008-03-04 15:53:41 +0000 | [diff] [blame] | 4402 | ARFLAGS=rc |
| 4403 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4404 | if test -n "$ac_tool_prefix"; then |
| 4405 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4406 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4408 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4409 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4410 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4411 | else |
| 4412 | if test -n "$RANLIB"; then |
| 4413 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4414 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4416 | for as_dir in $PATH |
| 4417 | do |
| 4418 | IFS=$as_save_IFS |
| 4419 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4420 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4421 | 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] | 4422 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4423 | $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] | 4424 | break 2 |
| 4425 | fi |
| 4426 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4427 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4428 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4429 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4430 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4431 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4432 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4433 | if test -n "$RANLIB"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4435 | $as_echo "$RANLIB" >&6; } |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4436 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4438 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4439 | fi |
| 4440 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4441 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4442 | fi |
| 4443 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4444 | ac_ct_RANLIB=$RANLIB |
| 4445 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4446 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4448 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4449 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4450 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4451 | else |
| 4452 | if test -n "$ac_ct_RANLIB"; then |
| 4453 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4454 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4456 | for as_dir in $PATH |
| 4457 | do |
| 4458 | IFS=$as_save_IFS |
| 4459 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4460 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4461 | 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] | 4462 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4463 | $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] | 4464 | break 2 |
| 4465 | fi |
| 4466 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4467 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4468 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4469 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4470 | fi |
| 4471 | fi |
| 4472 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4473 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4475 | $as_echo "$ac_ct_RANLIB" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4476 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4478 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4479 | fi |
| 4480 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4481 | if test "x$ac_ct_RANLIB" = x; then |
| 4482 | RANLIB=":" |
| 4483 | else |
| 4484 | case $cross_compiling:$ac_tool_warned in |
| 4485 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4486 | { $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] | 4487 | $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] | 4488 | ac_tool_warned=yes ;; |
| 4489 | esac |
| 4490 | RANLIB=$ac_ct_RANLIB |
| 4491 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4492 | else |
| 4493 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4494 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4495 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4496 | if test -n "$ac_tool_prefix"; then |
| 4497 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4498 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4500 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4501 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4502 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4503 | else |
| 4504 | if test -n "$STRIP"; then |
| 4505 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4506 | else |
| 4507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4508 | for as_dir in $PATH |
| 4509 | do |
| 4510 | IFS=$as_save_IFS |
| 4511 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4512 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4513 | 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] | 4514 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4515 | $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] | 4516 | break 2 |
| 4517 | fi |
| 4518 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4519 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4520 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4521 | |
| 4522 | fi |
| 4523 | fi |
| 4524 | STRIP=$ac_cv_prog_STRIP |
| 4525 | if test -n "$STRIP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4527 | $as_echo "$STRIP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4528 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4530 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4531 | fi |
| 4532 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4533 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4534 | fi |
| 4535 | if test -z "$ac_cv_prog_STRIP"; then |
| 4536 | ac_ct_STRIP=$STRIP |
| 4537 | # Extract the first word of "strip", so it can be a program name with args. |
| 4538 | set dummy strip; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4540 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4541 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4542 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4543 | else |
| 4544 | if test -n "$ac_ct_STRIP"; then |
| 4545 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4546 | else |
| 4547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4548 | for as_dir in $PATH |
| 4549 | do |
| 4550 | IFS=$as_save_IFS |
| 4551 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4552 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4553 | 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] | 4554 | ac_cv_prog_ac_ct_STRIP="strip" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4555 | $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] | 4556 | break 2 |
| 4557 | fi |
| 4558 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4559 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4560 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4561 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4562 | fi |
| 4563 | fi |
| 4564 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4565 | if test -n "$ac_ct_STRIP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4567 | $as_echo "$ac_ct_STRIP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4568 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4570 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4571 | fi |
| 4572 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4573 | if test "x$ac_ct_STRIP" = x; then |
| 4574 | STRIP="strip" |
| 4575 | else |
| 4576 | case $cross_compiling:$ac_tool_warned in |
| 4577 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4578 | { $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] | 4579 | $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] | 4580 | ac_tool_warned=yes ;; |
| 4581 | esac |
| 4582 | STRIP=$ac_ct_STRIP |
| 4583 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4584 | else |
| 4585 | STRIP="$ac_cv_prog_STRIP" |
| 4586 | fi |
| 4587 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4588 | { $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] | 4589 | $as_echo_n "checking whether ln -s works... " >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4590 | LN_S=$as_ln_s |
| 4591 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4593 | $as_echo "yes" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4594 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4595 | { $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] | 4596 | $as_echo "no, using $LN_S" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4597 | fi |
| 4598 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4599 | { $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] | 4600 | $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] | 4601 | if test "${ac_cv_path_GREP+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4602 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4603 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4604 | if test -z "$GREP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4605 | ac_path_GREP_found=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4606 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4608 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4609 | do |
| 4610 | IFS=$as_save_IFS |
| 4611 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4612 | for ac_prog in grep ggrep; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4614 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4615 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4616 | # 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] | 4617 | # Check for GNU $ac_path_GREP |
| 4618 | case `"$ac_path_GREP" --version 2>&1` in |
| 4619 | *GNU*) |
| 4620 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4621 | *) |
| 4622 | ac_count=0 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4623 | $as_echo_n 0123456789 >"conftest.in" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4624 | while : |
| 4625 | do |
| 4626 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4627 | mv "conftest.tmp" "conftest.in" |
| 4628 | cp "conftest.in" "conftest.nl" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4629 | $as_echo 'GREP' >> "conftest.nl" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4630 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4631 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4632 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4633 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4634 | # Best one so far, save it but keep looking for a better one |
| 4635 | ac_cv_path_GREP="$ac_path_GREP" |
| 4636 | ac_path_GREP_max=$ac_count |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4637 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4638 | # 10*(2^10) chars as input seems more than enough |
| 4639 | test $ac_count -gt 10 && break |
| 4640 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4641 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4642 | esac |
| 4643 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4644 | $ac_path_GREP_found && break 3 |
| 4645 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4646 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4647 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4648 | IFS=$as_save_IFS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4649 | if test -z "$ac_cv_path_GREP"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4650 | 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] | 4651 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4652 | else |
| 4653 | ac_cv_path_GREP=$GREP |
| 4654 | fi |
| 4655 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4656 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4657 | { $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] | 4658 | $as_echo "$ac_cv_path_GREP" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4659 | GREP="$ac_cv_path_GREP" |
| 4660 | |
| 4661 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4663 | $as_echo_n "checking for egrep... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4664 | if test "${ac_cv_path_EGREP+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4665 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4666 | else |
| 4667 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4668 | then ac_cv_path_EGREP="$GREP -E" |
| 4669 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4670 | if test -z "$EGREP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4671 | ac_path_EGREP_found=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4672 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4674 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4675 | do |
| 4676 | IFS=$as_save_IFS |
| 4677 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4678 | for ac_prog in egrep; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4679 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4680 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4681 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4682 | # 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] | 4683 | # Check for GNU $ac_path_EGREP |
| 4684 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4685 | *GNU*) |
| 4686 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4687 | *) |
| 4688 | ac_count=0 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4689 | $as_echo_n 0123456789 >"conftest.in" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4690 | while : |
| 4691 | do |
| 4692 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4693 | mv "conftest.tmp" "conftest.in" |
| 4694 | cp "conftest.in" "conftest.nl" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4695 | $as_echo 'EGREP' >> "conftest.nl" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4696 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4697 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4698 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4699 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4700 | # Best one so far, save it but keep looking for a better one |
| 4701 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4702 | ac_path_EGREP_max=$ac_count |
| 4703 | fi |
| 4704 | # 10*(2^10) chars as input seems more than enough |
| 4705 | test $ac_count -gt 10 && break |
| 4706 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4707 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4708 | esac |
| 4709 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4710 | $ac_path_EGREP_found && break 3 |
| 4711 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4712 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4713 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4714 | IFS=$as_save_IFS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4715 | if test -z "$ac_cv_path_EGREP"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4716 | 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] | 4717 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4718 | else |
| 4719 | ac_cv_path_EGREP=$EGREP |
| 4720 | fi |
| 4721 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4722 | fi |
| 4723 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4724 | { $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] | 4725 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4726 | EGREP="$ac_cv_path_EGREP" |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4727 | |
| 4728 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4729 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4730 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4732 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4733 | if test "${ac_cv_path_LDCONFIG+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4734 | $as_echo_n "(cached) " >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4735 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4736 | case $LDCONFIG in |
| 4737 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4738 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4739 | ;; |
| 4740 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 4742 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4743 | do |
| 4744 | IFS=$as_save_IFS |
| 4745 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4746 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4747 | 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] | 4748 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4749 | $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] | 4750 | break 2 |
| 4751 | fi |
| 4752 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4753 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4754 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4755 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 4756 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4757 | ;; |
| 4758 | esac |
| 4759 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4760 | LDCONFIG=$ac_cv_path_LDCONFIG |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4761 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4763 | $as_echo "$LDCONFIG" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4764 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4766 | $as_echo "no" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4767 | fi |
| 4768 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4769 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4770 | # Find a good install program. We prefer a C program (faster), |
| 4771 | # so one script is as good as another. But avoid the broken or |
| 4772 | # incompatible versions: |
| 4773 | # SysV /etc/install, /usr/sbin/install |
| 4774 | # SunOS /usr/etc/install |
| 4775 | # IRIX /sbin/install |
| 4776 | # AIX /bin/install |
| 4777 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4778 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4779 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4780 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4781 | # OS/2's system install, which has a completely different semantic |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4782 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4783 | # Reject install programs that cannot install multiple files. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4784 | { $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] | 4785 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4786 | if test -z "$INSTALL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4787 | if test "${ac_cv_path_install+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4788 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4789 | else |
| 4790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4791 | for as_dir in $PATH |
| 4792 | do |
| 4793 | IFS=$as_save_IFS |
| 4794 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4795 | # Account for people who put trailing slashes in PATH elements. |
| 4796 | case $as_dir/ in #(( |
| 4797 | ./ | .// | /[cC]/* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4798 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4799 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4800 | /usr/ucb/* ) ;; |
| 4801 | *) |
| 4802 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4803 | # Don't use installbsd from OSF since it installs stuff as root |
| 4804 | # by default. |
| 4805 | for ac_prog in ginstall scoinst install; do |
| 4806 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4807 | 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] | 4808 | if test $ac_prog = install && |
| 4809 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4810 | # AIX install. It has an incompatible calling convention. |
| 4811 | : |
| 4812 | elif test $ac_prog = install && |
| 4813 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4814 | # program-specific install script used by HP pwplus--don't use. |
| 4815 | : |
| 4816 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4817 | rm -rf conftest.one conftest.two conftest.dir |
| 4818 | echo one > conftest.one |
| 4819 | echo two > conftest.two |
| 4820 | mkdir conftest.dir |
| 4821 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4822 | test -s conftest.one && test -s conftest.two && |
| 4823 | test -s conftest.dir/conftest.one && |
| 4824 | test -s conftest.dir/conftest.two |
| 4825 | then |
| 4826 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4827 | break 3 |
| 4828 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4829 | fi |
| 4830 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4831 | done |
| 4832 | done |
| 4833 | ;; |
| 4834 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4835 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4836 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4837 | IFS=$as_save_IFS |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4838 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4839 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4840 | |
| 4841 | fi |
| 4842 | if test "${ac_cv_path_install+set}" = set; then |
| 4843 | INSTALL=$ac_cv_path_install |
| 4844 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4845 | # As a last resort, use the slow shell script. Don't cache a |
| 4846 | # value for INSTALL within a source directory, because that will |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4847 | # break other packages using the cache if that directory is |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4848 | # removed, or if the value is a relative name. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4849 | INSTALL=$ac_install_sh |
| 4850 | fi |
| 4851 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4853 | $as_echo "$INSTALL" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4854 | |
| 4855 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4856 | # It thinks the first close brace ends the variable substitution. |
| 4857 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4858 | |
| 4859 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4860 | |
| 4861 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4862 | |
| 4863 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 4864 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4865 | *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4866 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4867 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4868 | for ac_prog in lclint lint |
| 4869 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4870 | # 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] | 4871 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4873 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4874 | if test "${ac_cv_prog_LINT+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4875 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4876 | else |
| 4877 | if test -n "$LINT"; then |
| 4878 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 4879 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4881 | for as_dir in $PATH |
| 4882 | do |
| 4883 | IFS=$as_save_IFS |
| 4884 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4885 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4886 | 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] | 4887 | ac_cv_prog_LINT="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4888 | $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] | 4889 | break 2 |
| 4890 | fi |
| 4891 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4892 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4893 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4894 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4895 | fi |
| 4896 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4897 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4898 | if test -n "$LINT"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4900 | $as_echo "$LINT" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4901 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4903 | $as_echo "no" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4904 | fi |
| 4905 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4906 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4907 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4908 | done |
| 4909 | |
| 4910 | if test "$LINT" = "lint" |
| 4911 | then |
| 4912 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 4913 | fi |
| 4914 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4915 | |
| 4916 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4917 | for ac_prog in fontforge |
| 4918 | do |
| 4919 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4920 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4922 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4923 | if test "${ac_cv_prog_FONTFORGE+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4924 | $as_echo_n "(cached) " >&6 |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4925 | else |
| 4926 | if test -n "$FONTFORGE"; then |
| 4927 | ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test. |
| 4928 | else |
| 4929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4930 | for as_dir in $PATH |
| 4931 | do |
| 4932 | IFS=$as_save_IFS |
| 4933 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4934 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4935 | 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] | 4936 | ac_cv_prog_FONTFORGE="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4937 | $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] | 4938 | break 2 |
| 4939 | fi |
| 4940 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4941 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4942 | IFS=$as_save_IFS |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4943 | |
| 4944 | fi |
| 4945 | fi |
| 4946 | FONTFORGE=$ac_cv_prog_FONTFORGE |
| 4947 | if test -n "$FONTFORGE"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4949 | $as_echo "$FONTFORGE" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4950 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4952 | $as_echo "no" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4953 | fi |
| 4954 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4955 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4956 | test -n "$FONTFORGE" && break |
| 4957 | done |
| 4958 | test -n "$FONTFORGE" || FONTFORGE="false" |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 4959 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4960 | for ac_prog in pkg-config |
| 4961 | do |
| 4962 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4963 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4965 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4966 | if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4967 | $as_echo_n "(cached) " >&6 |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4968 | else |
| 4969 | if test -n "$PKG_CONFIG"; then |
| 4970 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 4971 | else |
| 4972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4973 | for as_dir in $PATH |
| 4974 | do |
| 4975 | IFS=$as_save_IFS |
| 4976 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4977 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4978 | 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] | 4979 | ac_cv_prog_PKG_CONFIG="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4980 | $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] | 4981 | break 2 |
| 4982 | fi |
| 4983 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4984 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4985 | IFS=$as_save_IFS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4986 | |
| 4987 | fi |
| 4988 | fi |
| 4989 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 4990 | if test -n "$PKG_CONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4992 | $as_echo "$PKG_CONFIG" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4993 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4995 | $as_echo "no" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4996 | fi |
| 4997 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4998 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4999 | test -n "$PKG_CONFIG" && break |
| 5000 | done |
| 5001 | test -n "$PKG_CONFIG" || PKG_CONFIG="false" |
| 5002 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5003 | for ac_prog in rsvg |
| 5004 | do |
| 5005 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5006 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5008 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5009 | if test "${ac_cv_prog_RSVG+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5010 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5011 | else |
| 5012 | if test -n "$RSVG"; then |
| 5013 | ac_cv_prog_RSVG="$RSVG" # Let the user override the test. |
| 5014 | else |
| 5015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5016 | for as_dir in $PATH |
| 5017 | do |
| 5018 | IFS=$as_save_IFS |
| 5019 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5020 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5022 | ac_cv_prog_RSVG="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5023 | $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] | 5024 | break 2 |
| 5025 | fi |
| 5026 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5027 | done |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5028 | IFS=$as_save_IFS |
| 5029 | |
| 5030 | fi |
| 5031 | fi |
| 5032 | RSVG=$ac_cv_prog_RSVG |
| 5033 | if test -n "$RSVG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5035 | $as_echo "$RSVG" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5036 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5038 | $as_echo "no" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5039 | fi |
| 5040 | |
| 5041 | |
| 5042 | test -n "$RSVG" && break |
| 5043 | done |
| 5044 | test -n "$RSVG" || RSVG="false" |
| 5045 | |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 5046 | for ac_prog in convert |
| 5047 | do |
| 5048 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5049 | set dummy $ac_prog; ac_word=$2 |
| 5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5051 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5052 | if test "${ac_cv_prog_CONVERT+set}" = set; then : |
| 5053 | $as_echo_n "(cached) " >&6 |
| 5054 | else |
| 5055 | if test -n "$CONVERT"; then |
| 5056 | ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test. |
| 5057 | else |
| 5058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5059 | for as_dir in $PATH |
| 5060 | do |
| 5061 | IFS=$as_save_IFS |
| 5062 | test -z "$as_dir" && as_dir=. |
| 5063 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5064 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5065 | ac_cv_prog_CONVERT="$ac_prog" |
| 5066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5067 | break 2 |
| 5068 | fi |
| 5069 | done |
| 5070 | done |
| 5071 | IFS=$as_save_IFS |
| 5072 | |
| 5073 | fi |
| 5074 | fi |
| 5075 | CONVERT=$ac_cv_prog_CONVERT |
| 5076 | if test -n "$CONVERT"; then |
| 5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5 |
| 5078 | $as_echo "$CONVERT" >&6; } |
| 5079 | else |
| 5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5081 | $as_echo "no" >&6; } |
| 5082 | fi |
| 5083 | |
| 5084 | |
| 5085 | test -n "$CONVERT" && break |
| 5086 | done |
| 5087 | test -n "$CONVERT" || CONVERT="false" |
| 5088 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5089 | for ac_prog in icotool |
| 5090 | do |
| 5091 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5092 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5094 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5095 | if test "${ac_cv_prog_ICOTOOL+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5096 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5097 | else |
| 5098 | if test -n "$ICOTOOL"; then |
| 5099 | ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test. |
| 5100 | else |
| 5101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5102 | for as_dir in $PATH |
| 5103 | do |
| 5104 | IFS=$as_save_IFS |
| 5105 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5106 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5108 | ac_cv_prog_ICOTOOL="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5109 | $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] | 5110 | break 2 |
| 5111 | fi |
| 5112 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5113 | done |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5114 | IFS=$as_save_IFS |
| 5115 | |
| 5116 | fi |
| 5117 | fi |
| 5118 | ICOTOOL=$ac_cv_prog_ICOTOOL |
| 5119 | if test -n "$ICOTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5121 | $as_echo "$ICOTOOL" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5122 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5124 | $as_echo "no" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5125 | fi |
| 5126 | |
| 5127 | |
| 5128 | test -n "$ICOTOOL" && break |
| 5129 | done |
| 5130 | test -n "$ICOTOOL" || ICOTOOL="false" |
| 5131 | |
| 5132 | |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 5133 | if test "x$enable_maintainer_mode" != "xyes" |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5134 | then |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 5135 | MAINTAINER_MODE=\# |
| 5136 | |
| 5137 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5138 | if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi |
| 5139 | 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] | 5140 | |
| 5141 | if test "$CONVERT" = false |
| 5142 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5143 | 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] | 5144 | else |
| 5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5 |
| 5146 | $as_echo_n "checking for recent enough imagemagick... " >&6; } |
| 5147 | convert_version=`convert --version | head -n1` |
| 5148 | if test "x$convert_version" != "x" |
| 5149 | then |
| 5150 | convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'` |
| 5151 | convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'` |
| 5152 | if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6 |
| 5153 | then |
| 5154 | CONVERT=false |
Joel Holdsworth | b9eae1e | 2010-05-16 23:07:40 +0100 | [diff] [blame] | 5155 | fi |
| 5156 | fi |
| 5157 | if test "$CONVERT" = false |
| 5158 | then |
| 5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5 |
| 5160 | $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5161 | 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] | 5162 | else |
| 5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5 |
| 5164 | $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; } |
| 5165 | fi |
| 5166 | fi |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5167 | |
| 5168 | if test "$ICOTOOL" = false |
| 5169 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5170 | 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] | 5171 | else |
| 5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5 |
| 5173 | $as_echo_n "checking for recent enough icotool... " >&6; } |
| 5174 | icotool_version=`icotool --version | head -n1` |
| 5175 | if test "x$icotool_version" != "x" |
| 5176 | then |
Joel Holdsworth | 9571f78 | 2010-05-16 23:07:33 +0100 | [diff] [blame] | 5177 | icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'` |
| 5178 | icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'` |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5179 | if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29 |
| 5180 | then |
| 5181 | ICOTOOL=false |
| 5182 | as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons." |
| 5183 | fi |
| 5184 | fi |
| 5185 | if test "$ICOTOOL" = false |
| 5186 | then |
| 5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5 |
| 5188 | $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5189 | 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] | 5190 | else |
| 5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5 |
| 5192 | $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; } |
| 5193 | fi |
| 5194 | fi |
| 5195 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5196 | fi |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 5197 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5198 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5199 | { $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] | 5200 | $as_echo_n "checking for i386_set_ldt in -li386... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5201 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5202 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5203 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5204 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5205 | LIBS="-li386 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5207 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5208 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5209 | /* Override any GCC internal prototype to avoid an error. |
| 5210 | Use char because int might match the return type of a GCC |
| 5211 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5212 | #ifdef __cplusplus |
| 5213 | extern "C" |
| 5214 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5215 | char i386_set_ldt (); |
| 5216 | int |
| 5217 | main () |
| 5218 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5219 | return i386_set_ldt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5220 | ; |
| 5221 | return 0; |
| 5222 | } |
| 5223 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5224 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5225 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5226 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5227 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5228 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5229 | rm -f core conftest.err conftest.$ac_objext \ |
| 5230 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5231 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5232 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5233 | { $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] | 5234 | $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5235 | 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] | 5236 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5237 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5238 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5239 | |
| 5240 | LIBS="-li386 $LIBS" |
| 5241 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5242 | fi |
| 5243 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5244 | { $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] | 5245 | $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5246 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5247 | $as_echo_n "(cached) " >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5248 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5249 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5250 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5252 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5253 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5254 | /* Override any GCC internal prototype to avoid an error. |
| 5255 | Use char because int might match the return type of a GCC |
| 5256 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5257 | #ifdef __cplusplus |
| 5258 | extern "C" |
| 5259 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5260 | char _oss_ioctl (); |
| 5261 | int |
| 5262 | main () |
| 5263 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5264 | return _oss_ioctl (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5265 | ; |
| 5266 | return 0; |
| 5267 | } |
| 5268 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5269 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5270 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5271 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5272 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5273 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5274 | rm -f core conftest.err conftest.$ac_objext \ |
| 5275 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5276 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5277 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5278 | { $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] | 5279 | $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5280 | if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5281 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5282 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5283 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5284 | |
| 5285 | LIBS="-lossaudio $LIBS" |
| 5286 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5287 | fi |
| 5288 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5289 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 5290 | XLIB="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5291 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5292 | OPENGL_LIBS="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5293 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5294 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 5295 | |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5296 | # Check whether --enable-largefile was given. |
| 5297 | if test "${enable_largefile+set}" = set; then : |
| 5298 | enableval=$enable_largefile; |
| 5299 | fi |
| 5300 | |
| 5301 | if test "$enable_largefile" != no; then |
| 5302 | |
| 5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 5304 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 5305 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
| 5306 | $as_echo_n "(cached) " >&6 |
| 5307 | else |
| 5308 | ac_cv_sys_largefile_CC=no |
| 5309 | if test "$GCC" != yes; then |
| 5310 | ac_save_CC=$CC |
| 5311 | while :; do |
| 5312 | # IRIX 6.2 and later do not support large files by default, |
| 5313 | # so use the C compiler's -n32 option if that helps. |
| 5314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5315 | /* end confdefs.h. */ |
| 5316 | #include <sys/types.h> |
| 5317 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5318 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5319 | since some C++ compilers masquerading as C compilers |
| 5320 | incorrectly reject 9223372036854775807. */ |
| 5321 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5322 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5323 | && LARGE_OFF_T % 2147483647 == 1) |
| 5324 | ? 1 : -1]; |
| 5325 | int |
| 5326 | main () |
| 5327 | { |
| 5328 | |
| 5329 | ; |
| 5330 | return 0; |
| 5331 | } |
| 5332 | _ACEOF |
| 5333 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5334 | break |
| 5335 | fi |
| 5336 | rm -f core conftest.err conftest.$ac_objext |
| 5337 | CC="$CC -n32" |
| 5338 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5339 | ac_cv_sys_largefile_CC=' -n32'; break |
| 5340 | fi |
| 5341 | rm -f core conftest.err conftest.$ac_objext |
| 5342 | break |
| 5343 | done |
| 5344 | CC=$ac_save_CC |
| 5345 | rm -f conftest.$ac_ext |
| 5346 | fi |
| 5347 | fi |
| 5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 5349 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 5350 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 5351 | CC=$CC$ac_cv_sys_largefile_CC |
| 5352 | fi |
| 5353 | |
| 5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 5355 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 5356 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
| 5357 | $as_echo_n "(cached) " >&6 |
| 5358 | else |
| 5359 | while :; do |
| 5360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5361 | /* end confdefs.h. */ |
| 5362 | #include <sys/types.h> |
| 5363 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5364 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5365 | since some C++ compilers masquerading as C compilers |
| 5366 | incorrectly reject 9223372036854775807. */ |
| 5367 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5368 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5369 | && LARGE_OFF_T % 2147483647 == 1) |
| 5370 | ? 1 : -1]; |
| 5371 | int |
| 5372 | main () |
| 5373 | { |
| 5374 | |
| 5375 | ; |
| 5376 | return 0; |
| 5377 | } |
| 5378 | _ACEOF |
| 5379 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5380 | ac_cv_sys_file_offset_bits=no; break |
| 5381 | fi |
| 5382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5384 | /* end confdefs.h. */ |
| 5385 | #define _FILE_OFFSET_BITS 64 |
| 5386 | #include <sys/types.h> |
| 5387 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5388 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5389 | since some C++ compilers masquerading as C compilers |
| 5390 | incorrectly reject 9223372036854775807. */ |
| 5391 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5392 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5393 | && LARGE_OFF_T % 2147483647 == 1) |
| 5394 | ? 1 : -1]; |
| 5395 | int |
| 5396 | main () |
| 5397 | { |
| 5398 | |
| 5399 | ; |
| 5400 | return 0; |
| 5401 | } |
| 5402 | _ACEOF |
| 5403 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5404 | ac_cv_sys_file_offset_bits=64; break |
| 5405 | fi |
| 5406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5407 | ac_cv_sys_file_offset_bits=unknown |
| 5408 | break |
| 5409 | done |
| 5410 | fi |
| 5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 5412 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 5413 | case $ac_cv_sys_file_offset_bits in #( |
| 5414 | no | unknown) ;; |
| 5415 | *) |
| 5416 | cat >>confdefs.h <<_ACEOF |
| 5417 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 5418 | _ACEOF |
| 5419 | ;; |
| 5420 | esac |
| 5421 | rm -rf conftest* |
| 5422 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 5423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 5424 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 5425 | if test "${ac_cv_sys_large_files+set}" = set; then : |
| 5426 | $as_echo_n "(cached) " >&6 |
| 5427 | else |
| 5428 | while :; do |
| 5429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5430 | /* end confdefs.h. */ |
| 5431 | #include <sys/types.h> |
| 5432 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5433 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5434 | since some C++ compilers masquerading as C compilers |
| 5435 | incorrectly reject 9223372036854775807. */ |
| 5436 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5437 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5438 | && LARGE_OFF_T % 2147483647 == 1) |
| 5439 | ? 1 : -1]; |
| 5440 | int |
| 5441 | main () |
| 5442 | { |
| 5443 | |
| 5444 | ; |
| 5445 | return 0; |
| 5446 | } |
| 5447 | _ACEOF |
| 5448 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5449 | ac_cv_sys_large_files=no; break |
| 5450 | fi |
| 5451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5453 | /* end confdefs.h. */ |
| 5454 | #define _LARGE_FILES 1 |
| 5455 | #include <sys/types.h> |
| 5456 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5457 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5458 | since some C++ compilers masquerading as C compilers |
| 5459 | incorrectly reject 9223372036854775807. */ |
| 5460 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5461 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5462 | && LARGE_OFF_T % 2147483647 == 1) |
| 5463 | ? 1 : -1]; |
| 5464 | int |
| 5465 | main () |
| 5466 | { |
| 5467 | |
| 5468 | ; |
| 5469 | return 0; |
| 5470 | } |
| 5471 | _ACEOF |
| 5472 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5473 | ac_cv_sys_large_files=1; break |
| 5474 | fi |
| 5475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5476 | ac_cv_sys_large_files=unknown |
| 5477 | break |
| 5478 | done |
| 5479 | fi |
| 5480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 5481 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 5482 | case $ac_cv_sys_large_files in #( |
| 5483 | no | unknown) ;; |
| 5484 | *) |
| 5485 | cat >>confdefs.h <<_ACEOF |
| 5486 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 5487 | _ACEOF |
| 5488 | ;; |
| 5489 | esac |
| 5490 | rm -rf conftest* |
| 5491 | fi |
| 5492 | fi |
| 5493 | |
| 5494 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5495 | ac_ext=c |
| 5496 | ac_cpp='$CPP $CPPFLAGS' |
| 5497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5500 | { $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] | 5501 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5502 | # On Suns, sometimes $CPP names a directory. |
| 5503 | if test -n "$CPP" && test -d "$CPP"; then |
| 5504 | CPP= |
| 5505 | fi |
| 5506 | if test -z "$CPP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5507 | if test "${ac_cv_prog_CPP+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5508 | $as_echo_n "(cached) " >&6 |
| 5509 | else |
| 5510 | # Double quotes because CPP needs to be expanded |
| 5511 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5512 | do |
| 5513 | ac_preproc_ok=false |
| 5514 | for ac_c_preproc_warn_flag in '' yes |
| 5515 | do |
| 5516 | # Use a header file that comes with gcc, so configuring glibc |
| 5517 | # with a fresh cross-compiler works. |
| 5518 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5519 | # <limits.h> exists even on freestanding compilers. |
| 5520 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5521 | # not just through cpp. "Syntax error" is here to catch this case. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5523 | /* end confdefs.h. */ |
| 5524 | #ifdef __STDC__ |
| 5525 | # include <limits.h> |
| 5526 | #else |
| 5527 | # include <assert.h> |
| 5528 | #endif |
| 5529 | Syntax error |
| 5530 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5531 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5532 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5533 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5534 | # Broken: fails on valid input. |
| 5535 | continue |
| 5536 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5537 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5538 | |
| 5539 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5540 | # can be detected and how. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5542 | /* end confdefs.h. */ |
| 5543 | #include <ac_nonexistent.h> |
| 5544 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5545 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5546 | # Broken: success on invalid input. |
| 5547 | continue |
| 5548 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5549 | # Passes both tests. |
| 5550 | ac_preproc_ok=: |
| 5551 | break |
| 5552 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5553 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5554 | |
| 5555 | done |
| 5556 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5557 | rm -f conftest.i conftest.err conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5558 | if $ac_preproc_ok; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5559 | break |
| 5560 | fi |
| 5561 | |
| 5562 | done |
| 5563 | ac_cv_prog_CPP=$CPP |
| 5564 | |
| 5565 | fi |
| 5566 | CPP=$ac_cv_prog_CPP |
| 5567 | else |
| 5568 | ac_cv_prog_CPP=$CPP |
| 5569 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5571 | $as_echo "$CPP" >&6; } |
| 5572 | ac_preproc_ok=false |
| 5573 | for ac_c_preproc_warn_flag in '' yes |
| 5574 | do |
| 5575 | # Use a header file that comes with gcc, so configuring glibc |
| 5576 | # with a fresh cross-compiler works. |
| 5577 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5578 | # <limits.h> exists even on freestanding compilers. |
| 5579 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5580 | # not just through cpp. "Syntax error" is here to catch this case. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5582 | /* end confdefs.h. */ |
| 5583 | #ifdef __STDC__ |
| 5584 | # include <limits.h> |
| 5585 | #else |
| 5586 | # include <assert.h> |
| 5587 | #endif |
| 5588 | Syntax error |
| 5589 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5590 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5591 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5592 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5593 | # Broken: fails on valid input. |
| 5594 | continue |
| 5595 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5596 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5597 | |
| 5598 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5599 | # can be detected and how. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5601 | /* end confdefs.h. */ |
| 5602 | #include <ac_nonexistent.h> |
| 5603 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5604 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5605 | # Broken: success on invalid input. |
| 5606 | continue |
| 5607 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5608 | # Passes both tests. |
| 5609 | ac_preproc_ok=: |
| 5610 | break |
| 5611 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5612 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5613 | |
| 5614 | done |
| 5615 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5616 | rm -f conftest.i conftest.err conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5617 | if $ac_preproc_ok; then : |
| 5618 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5619 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5620 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5621 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5622 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5623 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5624 | fi |
| 5625 | |
| 5626 | ac_ext=c |
| 5627 | ac_cpp='$CPP $CPPFLAGS' |
| 5628 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5629 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5630 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5631 | |
| 5632 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5633 | { $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] | 5634 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5635 | if test "${ac_cv_header_stdc+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5636 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5637 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5639 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5640 | #include <stdlib.h> |
| 5641 | #include <stdarg.h> |
| 5642 | #include <string.h> |
| 5643 | #include <float.h> |
| 5644 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5645 | int |
| 5646 | main () |
| 5647 | { |
| 5648 | |
| 5649 | ; |
| 5650 | return 0; |
| 5651 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5652 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5653 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5654 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5655 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5656 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5657 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5659 | |
| 5660 | if test $ac_cv_header_stdc = yes; then |
| 5661 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5663 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5664 | #include <string.h> |
| 5665 | |
| 5666 | _ACEOF |
| 5667 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5668 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5669 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5670 | else |
| 5671 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5672 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5673 | rm -f conftest* |
| 5674 | |
| 5675 | fi |
| 5676 | |
| 5677 | if test $ac_cv_header_stdc = yes; then |
| 5678 | # 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] | 5679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5680 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5681 | #include <stdlib.h> |
| 5682 | |
| 5683 | _ACEOF |
| 5684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5685 | $EGREP "free" >/dev/null 2>&1; then : |
| 5686 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5687 | else |
| 5688 | ac_cv_header_stdc=no |
| 5689 | fi |
| 5690 | rm -f conftest* |
| 5691 | |
| 5692 | fi |
| 5693 | |
| 5694 | if test $ac_cv_header_stdc = yes; then |
| 5695 | # /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] | 5696 | if test "$cross_compiling" = yes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5697 | : |
| 5698 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5700 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5701 | #include <ctype.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5702 | #include <stdlib.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5703 | #if ((' ' & 0x0FF) == 0x020) |
| 5704 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5705 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5706 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5707 | # define ISLOWER(c) \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5708 | (('a' <= (c) && (c) <= 'i') \ |
| 5709 | || ('j' <= (c) && (c) <= 'r') \ |
| 5710 | || ('s' <= (c) && (c) <= 'z')) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5711 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5712 | #endif |
| 5713 | |
| 5714 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5715 | int |
| 5716 | main () |
| 5717 | { |
| 5718 | int i; |
| 5719 | for (i = 0; i < 256; i++) |
| 5720 | if (XOR (islower (i), ISLOWER (i)) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5721 | || toupper (i) != TOUPPER (i)) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5722 | return 2; |
| 5723 | return 0; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5724 | } |
| 5725 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5726 | if ac_fn_c_try_run "$LINENO"; then : |
| 5727 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5728 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5729 | ac_cv_header_stdc=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5730 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5731 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5732 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5733 | fi |
| 5734 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5735 | fi |
| 5736 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5737 | { $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] | 5738 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5739 | if test $ac_cv_header_stdc = yes; then |
| 5740 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5741 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5742 | |
| 5743 | fi |
| 5744 | |
| 5745 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5746 | 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] | 5747 | inttypes.h stdint.h unistd.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5748 | do : |
| 5749 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5750 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5751 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5752 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5753 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5754 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5755 | _ACEOF |
| 5756 | |
| 5757 | fi |
| 5758 | |
| 5759 | done |
| 5760 | |
| 5761 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5762 | for ac_header in \ |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 5763 | AL/al.h \ |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 5764 | ApplicationServices/ApplicationServices.h \ |
Aric Stewart | 4430ab4 | 2010-03-17 10:58:32 -0500 | [diff] [blame] | 5765 | AudioToolbox/AudioConverter.h \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 5766 | AudioUnit/AudioUnit.h \ |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 5767 | AudioUnit/AudioComponent.h \ |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 5768 | CL/cl.h \ |
Pierre d'Herbemont | 0888451 | 2006-10-24 15:26:33 +0200 | [diff] [blame] | 5769 | Carbon/Carbon.h \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 5770 | CoreAudio/CoreAudio.h \ |
Alexandre Julliard | 66f45a5 | 2006-11-06 13:33:16 +0100 | [diff] [blame] | 5771 | DiskArbitration/DiskArbitration.h \ |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 5772 | IOKit/IOKitLib.h \ |
Aric Stewart | 225a494 | 2009-03-10 14:59:20 -0500 | [diff] [blame] | 5773 | IOKit/hid/IOHIDLib.h \ |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 5774 | OpenAL/al.h \ |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 5775 | OpenCL/opencl.h \ |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 5776 | QuickTime/ImageCompression.h \ |
Eric Durbin | 020b0ef | 2008-06-24 22:45:51 -0500 | [diff] [blame] | 5777 | alias.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5778 | alsa/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5779 | arpa/inet.h \ |
| 5780 | arpa/nameser.h \ |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 5781 | asm/types.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5782 | capi20.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5783 | curses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5784 | direct.h \ |
Rob Shearman | 87175c6 | 2008-10-03 12:55:21 +0100 | [diff] [blame] | 5785 | dirent.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5786 | dlfcn.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5787 | elf.h \ |
| 5788 | float.h \ |
Alexandre Julliard | 7d5e565 | 2009-06-01 12:51:54 +0200 | [diff] [blame] | 5789 | fnmatch.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5790 | fontconfig/fontconfig.h \ |
| 5791 | getopt.h \ |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 5792 | gettext-po.h \ |
Alexandre Julliard | 46678dc | 2008-12-09 17:09:42 +0100 | [diff] [blame] | 5793 | grp.h \ |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 5794 | gsm.h \ |
Maarten Lankhorst | c186d8a | 2009-08-05 11:35:50 +0200 | [diff] [blame] | 5795 | gsm/gsm.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5796 | ieeefp.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5797 | inet/mib2.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5798 | io.h \ |
| 5799 | jack/jack.h \ |
| 5800 | jpeglib.h \ |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 5801 | kstat.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 5802 | lber.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5803 | lcms.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5804 | lcms/lcms.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 5805 | ldap.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5806 | link.h \ |
| 5807 | linux/cdrom.h \ |
| 5808 | linux/compiler.h \ |
| 5809 | linux/hdreg.h \ |
| 5810 | linux/input.h \ |
| 5811 | linux/ioctl.h \ |
| 5812 | linux/joystick.h \ |
| 5813 | linux/major.h \ |
| 5814 | linux/param.h \ |
| 5815 | linux/serial.h \ |
Francois Gouget | da1a352 | 2008-12-28 10:35:02 +0100 | [diff] [blame] | 5816 | linux/types.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5817 | linux/ucdrom.h \ |
Ken Thomases | d35c0e8 | 2009-03-11 09:05:53 -0500 | [diff] [blame] | 5818 | mach-o/nlist.h \ |
Austin English | 95740b3 | 2010-10-08 00:33:52 -0700 | [diff] [blame] | 5819 | mach-o/loader.h \ |
Alexandre Julliard | 150b5dc | 2006-12-29 20:02:02 +0100 | [diff] [blame] | 5820 | mach/mach.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 5821 | mach/machine.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5822 | machine/cpu.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 5823 | machine/limits.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5824 | machine/soundcard.h \ |
Austin English | 40b3d2e | 2010-05-23 21:18:17 -0500 | [diff] [blame] | 5825 | machine/sysarch.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5826 | mntent.h \ |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 5827 | mpg123.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5828 | ncurses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5829 | netdb.h \ |
| 5830 | netinet/in.h \ |
| 5831 | netinet/in_systm.h \ |
| 5832 | netinet/tcp.h \ |
| 5833 | netinet/tcp_fsm.h \ |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 5834 | openssl/err.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5835 | openssl/ssl.h \ |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 5836 | png.h \ |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 5837 | poll.h \ |
Albert Lee | 01b972d | 2009-11-20 18:35:26 -0500 | [diff] [blame] | 5838 | port.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5839 | process.h \ |
| 5840 | pthread.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5841 | pwd.h \ |
| 5842 | regex.h \ |
| 5843 | sched.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5844 | scsi/scsi.h \ |
| 5845 | scsi/scsi_ioctl.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5846 | scsi/sg.h \ |
| 5847 | soundcard.h \ |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 5848 | stdbool.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5849 | stdint.h \ |
| 5850 | strings.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5851 | stropts.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5852 | sys/asoundlib.h \ |
Charles Davis | 4e44e15 | 2011-01-18 13:09:44 -0700 | [diff] [blame] | 5853 | sys/attr.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5854 | sys/cdio.h \ |
| 5855 | sys/elf32.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5856 | sys/epoll.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5857 | sys/errno.h \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 5858 | sys/event.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5859 | sys/exec_elf.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5860 | sys/filio.h \ |
Alexandre Julliard | 61a7036 | 2009-06-26 15:45:03 +0200 | [diff] [blame] | 5861 | sys/inotify.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5862 | sys/ioctl.h \ |
| 5863 | sys/ipc.h \ |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 5864 | sys/limits.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5865 | sys/link.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5866 | sys/mman.h \ |
| 5867 | sys/modem.h \ |
| 5868 | sys/msg.h \ |
Hans Leidekker | 0844b70 | 2006-01-26 13:23:08 +0100 | [diff] [blame] | 5869 | sys/mtio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5870 | sys/param.h \ |
| 5871 | sys/poll.h \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 5872 | sys/prctl.h \ |
Austin English | 94021a1 | 2009-01-20 17:42:53 -0600 | [diff] [blame] | 5873 | sys/protosw.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5874 | sys/ptrace.h \ |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 5875 | sys/resource.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5876 | sys/scsiio.h \ |
| 5877 | sys/shm.h \ |
| 5878 | sys/signal.h \ |
| 5879 | sys/socket.h \ |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5880 | sys/socketvar.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5881 | sys/sockio.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5882 | sys/soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5883 | sys/statvfs.h \ |
| 5884 | sys/strtio.h \ |
| 5885 | sys/syscall.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5886 | sys/tihdr.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5887 | sys/time.h \ |
Austin English | 8b19591 | 2009-01-21 21:59:11 -0600 | [diff] [blame] | 5888 | sys/timeout.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5889 | sys/times.h \ |
| 5890 | sys/uio.h \ |
| 5891 | sys/un.h \ |
Alexandre Julliard | 66eb4bd | 2008-12-09 19:33:06 +0100 | [diff] [blame] | 5892 | sys/utsname.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5893 | sys/vm86.h \ |
| 5894 | sys/wait.h \ |
| 5895 | syscall.h \ |
| 5896 | termios.h \ |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 5897 | tiffio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5898 | unistd.h \ |
| 5899 | utime.h \ |
John Reiser | 0a2c94e | 2008-07-24 13:31:53 -0700 | [diff] [blame] | 5900 | valgrind/memcheck.h \ |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 5901 | valgrind/valgrind.h \ |
| 5902 | zlib.h |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5903 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5904 | do : |
| 5905 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5906 | 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] | 5907 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5908 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5909 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5910 | _ACEOF |
| 5911 | |
| 5912 | fi |
| 5913 | |
| 5914 | done |
| 5915 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5916 | { $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] | 5917 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5918 | if test "${ac_cv_header_stat_broken+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5919 | $as_echo_n "(cached) " >&6 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5920 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5922 | /* end confdefs.h. */ |
| 5923 | #include <sys/types.h> |
| 5924 | #include <sys/stat.h> |
| 5925 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5926 | #if defined S_ISBLK && defined S_IFDIR |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5927 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5928 | #endif |
| 5929 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5930 | #if defined S_ISBLK && defined S_IFCHR |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5931 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5932 | #endif |
| 5933 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5934 | #if defined S_ISLNK && defined S_IFREG |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5935 | extern char c3[S_ISLNK (S_IFREG) ? -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_ISSOCK && defined S_IFREG |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5939 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5940 | #endif |
| 5941 | |
| 5942 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5943 | if ac_fn_c_try_compile "$LINENO"; then : |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5944 | ac_cv_header_stat_broken=no |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5945 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5946 | ac_cv_header_stat_broken=yes |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5947 | fi |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5949 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5950 | { $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] | 5951 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5952 | if test $ac_cv_header_stat_broken = yes; then |
| 5953 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5954 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5955 | |
| 5956 | fi |
| 5957 | |
| 5958 | |
| 5959 | |
Austin English | 51094be | 2008-12-27 14:53:53 -0600 | [diff] [blame] | 5960 | 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] | 5961 | do : |
| 5962 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5963 | 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] | 5964 | #ifdef HAVE_SYS_PARAM_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5965 | # include <sys/param.h> |
| 5966 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5967 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5968 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5969 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5970 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5971 | _ACEOF |
| 5972 | |
| 5973 | fi |
| 5974 | |
| 5975 | done |
| 5976 | |
| 5977 | |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 5978 | for ac_header in \ |
| 5979 | netinet/ip.h \ |
| 5980 | net/if.h \ |
| 5981 | net/if_arp.h \ |
| 5982 | net/if_dl.h \ |
| 5983 | net/if_types.h \ |
| 5984 | net/route.h \ |
| 5985 | netinet/if_ether.h \ |
Austin English | 337067a | 2009-01-22 10:44:06 -0600 | [diff] [blame] | 5986 | netinet/if_inarp.h \ |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 5987 | netinet/in_pcb.h \ |
| 5988 | netinet/ip_icmp.h \ |
| 5989 | netinet/ip_var.h \ |
| 5990 | netinet/udp.h \ |
| 5991 | netipx/ipx.h \ |
| 5992 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5993 | do : |
| 5994 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5995 | 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] | 5996 | #ifdef HAVE_SYS_SOCKET_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5997 | # include <sys/socket.h> |
| 5998 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5999 | #ifdef HAVE_SYS_SOCKETVAR_H |
Ken Thomases | a609fee | 2007-10-19 16:18:17 -0500 | [diff] [blame] | 6000 | # include <sys/socketvar.h> |
| 6001 | #endif |
Austin English | bb3f258 | 2009-01-26 23:34:42 -0600 | [diff] [blame] | 6002 | #ifdef HAVE_NET_ROUTE_H |
| 6003 | # include <net/route.h> |
| 6004 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6005 | #ifdef HAVE_NETINET_IN_H |
Ken Thomases | ffd78b1 | 2007-10-19 16:18:27 -0500 | [diff] [blame] | 6006 | # include <netinet/in.h> |
| 6007 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 6008 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 6009 | # include <netinet/in_systm.h> |
| 6010 | #endif |
Alexandre Julliard | d7e846c | 2009-01-30 14:01:12 +0100 | [diff] [blame] | 6011 | #ifdef HAVE_NET_IF_H |
| 6012 | # include <net/if.h> |
| 6013 | #endif |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 6014 | #ifdef HAVE_NETINET_IP_H |
| 6015 | # include <netinet/ip.h> |
| 6016 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6017 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6018 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6019 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6020 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6021 | _ACEOF |
| 6022 | |
| 6023 | fi |
| 6024 | |
| 6025 | done |
| 6026 | |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6027 | |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 6028 | 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] | 6029 | do : |
| 6030 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6031 | 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] | 6032 | #ifdef HAVE_ALIAS_H |
| 6033 | # include <alias.h> |
| 6034 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6035 | #ifdef HAVE_SYS_SOCKET_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6036 | # include <sys/socket.h> |
| 6037 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6038 | #ifdef HAVE_SYS_SOCKETVAR_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6039 | # include <sys/socketvar.h> |
| 6040 | #endif |
Austin English | 53d3c46 | 2009-01-26 23:47:49 -0600 | [diff] [blame] | 6041 | #ifdef HAVE_SYS_TIMEOUT_H |
| 6042 | # include <sys/timeout.h> |
| 6043 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6044 | #ifdef HAVE_NETINET_IN_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6045 | # include <netinet/in.h> |
| 6046 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 6047 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 6048 | # include <netinet/in_systm.h> |
| 6049 | #endif |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 6050 | #ifdef HAVE_NETINET_IP_H |
| 6051 | # include <netinet/ip.h> |
| 6052 | #endif |
Eric Durbin | 6d4eab9 | 2008-06-24 22:44:13 -0500 | [diff] [blame] | 6053 | #ifdef HAVE_NETINET_IP_VAR_H |
| 6054 | # include <netinet/ip_var.h> |
| 6055 | #endif |
Eric Durbin | 020b0ef | 2008-06-24 22:45:51 -0500 | [diff] [blame] | 6056 | #ifdef HAVE_NETINET_IP_ICMP_H |
| 6057 | # include <netinet/ip_icmp.h> |
| 6058 | #endif |
Eric Durbin | 6d4eab9 | 2008-06-24 22:44:13 -0500 | [diff] [blame] | 6059 | #ifdef HAVE_NETINET_UDP_H |
| 6060 | # include <netinet/udp.h> |
| 6061 | #endif |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6062 | #ifdef HAVE_NETINET_TCP_H |
| 6063 | # include <netinet/tcp.h> |
| 6064 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 6065 | #ifdef HAVE_NETINET_TCP_TIMER_H |
| 6066 | #include <netinet/tcp_timer.h> |
| 6067 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6068 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6069 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6070 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6071 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6072 | _ACEOF |
| 6073 | |
| 6074 | fi |
| 6075 | |
| 6076 | done |
| 6077 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6078 | |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 6079 | for ac_header in linux/ipx.h linux/irda.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6080 | do : |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 6081 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6082 | 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] | 6083 | #ifdef HAVE_ASM_TYPES_H |
| 6084 | # include <asm/types.h> |
| 6085 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6086 | #ifdef HAVE_SYS_SOCKET_H |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6087 | # include <sys/socket.h> |
| 6088 | #endif |
Francois Gouget | da1a352 | 2008-12-28 10:35:02 +0100 | [diff] [blame] | 6089 | #ifdef HAVE_LINUX_TYPES_H |
| 6090 | # include <linux/types.h> |
| 6091 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6092 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6093 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6094 | cat >>confdefs.h <<_ACEOF |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 6095 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6096 | _ACEOF |
| 6097 | |
| 6098 | fi |
| 6099 | |
| 6100 | done |
| 6101 | |
| 6102 | |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6103 | for ac_header in mach-o/dyld_images.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6104 | do : |
| 6105 | 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] | 6106 | # include <stdbool.h> |
| 6107 | #endif |
| 6108 | #ifdef HAVE_STDINT_H |
| 6109 | # include <stdint.h> |
| 6110 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6111 | " |
| 6112 | 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] | 6113 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6114 | #define HAVE_MACH_O_DYLD_IMAGES_H 1 |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6115 | _ACEOF |
| 6116 | |
| 6117 | fi |
| 6118 | |
| 6119 | done |
| 6120 | |
| 6121 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6122 | for ac_header in resolv.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6123 | do : |
| 6124 | 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] | 6125 | #ifdef HAVE_SYS_SOCKET_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6126 | # include <sys/socket.h> |
| 6127 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6128 | #ifdef HAVE_NETINET_IN_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6129 | # include <netinet/in.h> |
| 6130 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6131 | #ifdef HAVE_ARPA_NAMESER_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6132 | # include <arpa/nameser.h> |
| 6133 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6134 | " |
| 6135 | if test "x$ac_cv_header_resolv_h" = x""yes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6136 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6137 | #define HAVE_RESOLV_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6138 | _ACEOF |
| 6139 | |
| 6140 | fi |
| 6141 | |
| 6142 | done |
| 6143 | |
| 6144 | |
Juan Lang | e3c0e30 | 2010-03-11 18:36:46 -0800 | [diff] [blame] | 6145 | for ac_header in ifaddrs.h |
| 6146 | do : |
| 6147 | ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h> |
| 6148 | " |
| 6149 | if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : |
| 6150 | cat >>confdefs.h <<_ACEOF |
| 6151 | #define HAVE_IFADDRS_H 1 |
| 6152 | _ACEOF |
| 6153 | |
| 6154 | fi |
| 6155 | |
| 6156 | done |
| 6157 | |
| 6158 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6159 | for ac_header in ucontext.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6160 | do : |
| 6161 | ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h> |
| 6162 | " |
| 6163 | if test "x$ac_cv_header_ucontext_h" = x""yes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6164 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6165 | #define HAVE_UCONTEXT_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6166 | _ACEOF |
| 6167 | |
| 6168 | fi |
| 6169 | |
| 6170 | done |
| 6171 | |
| 6172 | |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6173 | for ac_header in sys/thr.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6174 | do : |
| 6175 | 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] | 6176 | #ifdef HAVE_UCONTEXT_H |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6177 | #include <ucontext.h> |
| 6178 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6179 | " |
| 6180 | if test "x$ac_cv_header_sys_thr_h" = x""yes; then : |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6181 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6182 | #define HAVE_SYS_THR_H 1 |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6183 | _ACEOF |
| 6184 | |
| 6185 | fi |
| 6186 | |
| 6187 | done |
| 6188 | |
| 6189 | |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6190 | for ac_header in pthread_np.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6191 | do : |
| 6192 | 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] | 6193 | #include <pthread.h> |
| 6194 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6195 | " |
| 6196 | if test "x$ac_cv_header_pthread_np_h" = x""yes; then : |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6197 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6198 | #define HAVE_PTHREAD_NP_H 1 |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6199 | _ACEOF |
| 6200 | |
| 6201 | fi |
| 6202 | |
| 6203 | done |
| 6204 | |
| 6205 | |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6206 | for ac_header in linux/videodev.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6207 | do : |
| 6208 | 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] | 6209 | #include <sys/time.h> |
| 6210 | #endif |
| 6211 | #include <sys/types.h> |
| 6212 | #ifdef HAVE_ASM_TYPES_H |
| 6213 | #include <asm/types.h> |
| 6214 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6215 | " |
| 6216 | if test "x$ac_cv_header_linux_videodev_h" = x""yes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6217 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6218 | #define HAVE_LINUX_VIDEODEV_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6219 | _ACEOF |
| 6220 | |
| 6221 | fi |
| 6222 | |
| 6223 | done |
| 6224 | |
| 6225 | |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6226 | for ac_header in linux/capi.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6227 | do : |
| 6228 | ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user |
| 6229 | " |
| 6230 | if test "x$ac_cv_header_linux_capi_h" = x""yes; then : |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6231 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6232 | #define HAVE_LINUX_CAPI_H 1 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6233 | _ACEOF |
| 6234 | |
| 6235 | fi |
| 6236 | |
| 6237 | done |
| 6238 | |
| 6239 | |
| 6240 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6241 | DLLEXT="" |
| 6242 | |
| 6243 | DLLFLAGS="-D_REENTRANT" |
| 6244 | |
| 6245 | LDSHARED="" |
| 6246 | |
| 6247 | LDDLLFLAGS="" |
| 6248 | |
| 6249 | LIBEXT="so" |
| 6250 | |
| 6251 | IMPLIBEXT="def" |
| 6252 | |
| 6253 | LDRPATH_INSTALL="" |
| 6254 | |
| 6255 | LDRPATH_LOCAL="" |
| 6256 | |
Alexandre Julliard | 950a0f8 | 2010-01-26 21:10:14 +0100 | [diff] [blame] | 6257 | STATIC_IMPLIBEXT="def.a" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6258 | # Extract the first word of "ldd", so it can be a program name with args. |
| 6259 | set dummy ldd; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6261 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6262 | if test "${ac_cv_path_LDD+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6263 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6264 | else |
| 6265 | case $LDD in |
| 6266 | [\\/]* | ?:[\\/]*) |
| 6267 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 6268 | ;; |
| 6269 | *) |
| 6270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6271 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 6272 | for as_dir in $as_dummy |
| 6273 | do |
| 6274 | IFS=$as_save_IFS |
| 6275 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6276 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6278 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6279 | $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] | 6280 | break 2 |
| 6281 | fi |
| 6282 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6283 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6284 | IFS=$as_save_IFS |
| 6285 | |
| 6286 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 6287 | ;; |
| 6288 | esac |
| 6289 | fi |
| 6290 | LDD=$ac_cv_path_LDD |
| 6291 | if test -n "$LDD"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6293 | $as_echo "$LDD" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6294 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6296 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6297 | fi |
| 6298 | |
| 6299 | |
| 6300 | |
| 6301 | case $host_os in |
| 6302 | cygwin*|mingw32*) |
| 6303 | if test -n "$ac_tool_prefix"; then |
| 6304 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 6305 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6307 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6308 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6309 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6310 | else |
| 6311 | if test -n "$DLLTOOL"; then |
| 6312 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 6313 | else |
| 6314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6315 | for as_dir in $PATH |
| 6316 | do |
| 6317 | IFS=$as_save_IFS |
| 6318 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6319 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6321 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6322 | $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] | 6323 | break 2 |
| 6324 | fi |
| 6325 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6326 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6327 | IFS=$as_save_IFS |
| 6328 | |
| 6329 | fi |
| 6330 | fi |
| 6331 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 6332 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6334 | $as_echo "$DLLTOOL" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6335 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6337 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6338 | fi |
| 6339 | |
| 6340 | |
| 6341 | fi |
| 6342 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 6343 | ac_ct_DLLTOOL=$DLLTOOL |
| 6344 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 6345 | set dummy dlltool; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6347 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6348 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6349 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6350 | else |
| 6351 | if test -n "$ac_ct_DLLTOOL"; then |
| 6352 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 6353 | else |
| 6354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6355 | for as_dir in $PATH |
| 6356 | do |
| 6357 | IFS=$as_save_IFS |
| 6358 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6359 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6361 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6362 | $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] | 6363 | break 2 |
| 6364 | fi |
| 6365 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6366 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6367 | IFS=$as_save_IFS |
| 6368 | |
| 6369 | fi |
| 6370 | fi |
| 6371 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 6372 | if test -n "$ac_ct_DLLTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6374 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6375 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6377 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6378 | fi |
| 6379 | |
| 6380 | if test "x$ac_ct_DLLTOOL" = x; then |
| 6381 | DLLTOOL="false" |
| 6382 | else |
| 6383 | case $cross_compiling:$ac_tool_warned in |
| 6384 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6385 | { $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] | 6386 | $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] | 6387 | ac_tool_warned=yes ;; |
| 6388 | esac |
| 6389 | DLLTOOL=$ac_ct_DLLTOOL |
| 6390 | fi |
| 6391 | else |
| 6392 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 6393 | fi |
| 6394 | |
| 6395 | if test -n "$ac_tool_prefix"; then |
| 6396 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 6397 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6399 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6400 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6401 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6402 | else |
| 6403 | if test -n "$DLLWRAP"; then |
| 6404 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 6405 | else |
| 6406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6407 | for as_dir in $PATH |
| 6408 | do |
| 6409 | IFS=$as_save_IFS |
| 6410 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6411 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6412 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6413 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6414 | $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] | 6415 | break 2 |
| 6416 | fi |
| 6417 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6418 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6419 | IFS=$as_save_IFS |
| 6420 | |
| 6421 | fi |
| 6422 | fi |
| 6423 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 6424 | if test -n "$DLLWRAP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6426 | $as_echo "$DLLWRAP" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6427 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6429 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6430 | fi |
| 6431 | |
| 6432 | |
| 6433 | fi |
| 6434 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 6435 | ac_ct_DLLWRAP=$DLLWRAP |
| 6436 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 6437 | set dummy dllwrap; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6439 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6440 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6441 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6442 | else |
| 6443 | if test -n "$ac_ct_DLLWRAP"; then |
| 6444 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 6445 | else |
| 6446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6447 | for as_dir in $PATH |
| 6448 | do |
| 6449 | IFS=$as_save_IFS |
| 6450 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6451 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6452 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6453 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6454 | $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] | 6455 | break 2 |
| 6456 | fi |
| 6457 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6458 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6459 | IFS=$as_save_IFS |
| 6460 | |
| 6461 | fi |
| 6462 | fi |
| 6463 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 6464 | if test -n "$ac_ct_DLLWRAP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6466 | $as_echo "$ac_ct_DLLWRAP" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6467 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6469 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6470 | fi |
| 6471 | |
| 6472 | if test "x$ac_ct_DLLWRAP" = x; then |
| 6473 | DLLWRAP="false" |
| 6474 | else |
| 6475 | case $cross_compiling:$ac_tool_warned in |
| 6476 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6477 | { $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] | 6478 | $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] | 6479 | ac_tool_warned=yes ;; |
| 6480 | esac |
| 6481 | DLLWRAP=$ac_ct_DLLWRAP |
| 6482 | fi |
| 6483 | else |
| 6484 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 6485 | fi |
| 6486 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6487 | if test "$DLLWRAP" = "false"; then |
| 6488 | LIBEXT="a" |
| 6489 | else |
| 6490 | LIBEXT="dll" |
| 6491 | fi |
| 6492 | IMPLIBEXT="a" |
Alexandre Julliard | 950a0f8 | 2010-01-26 21:10:14 +0100 | [diff] [blame] | 6493 | STATIC_IMPLIBEXT="a" |
Alexandre Julliard | ec1ebfb | 2008-09-04 12:29:07 +0200 | [diff] [blame] | 6494 | enable_iphlpapi=${enable_iphlpapi:-no} |
| 6495 | enable_kernel32=${enable_kernel32:-no} |
| 6496 | enable_msvcrt=${enable_msvcrt:-no} |
| 6497 | enable_ntdll=${enable_ntdll:-no} |
| 6498 | enable_ws2_32=${enable_ws2_32:-no} |
| 6499 | enable_loader=${enable_loader:-no} |
| 6500 | enable_server=${enable_server:-no} |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 6501 | with_x=${with_x:-no} |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 6502 | with_pthread=${with_pthread:-no} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6503 | ;; |
| 6504 | darwin*|macosx*) |
| 6505 | DLLEXT=".so" |
| 6506 | LIBEXT="dylib" |
| 6507 | DLLFLAGS="$DLLFLAGS -fPIC" |
| 6508 | LDDLLFLAGS="-bundle -multiply_defined suppress" |
| 6509 | LIBWINE_LDFLAGS="-multiply_defined suppress" |
| 6510 | LDSHARED="\$(CC) -dynamiclib" |
| 6511 | STRIP="$STRIP -x" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6512 | 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] | 6513 | SECURITYLIB="-framework Security -framework CoreFoundation" |
| 6514 | |
| 6515 | COREFOUNDATIONLIB="-framework CoreFoundation" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6516 | |
| 6517 | IOKITLIB="-framework IOKit -framework CoreFoundation" |
| 6518 | |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 6519 | APPLICATIONSERVICESLIB="-framework ApplicationServices" |
| 6520 | |
Alexandre Julliard | 691bdbd | 2009-06-23 20:51:37 +0200 | [diff] [blame] | 6521 | 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] | 6522 | |
| 6523 | if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes" |
| 6524 | then |
| 6525 | DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation" |
| 6526 | |
| 6527 | fi |
| 6528 | if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes" |
| 6529 | then |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 6530 | if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes" |
| 6531 | then |
| 6532 | COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6533 | |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 6534 | else |
| 6535 | COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI" |
| 6536 | |
| 6537 | fi |
Charles Davis | b149d7b | 2011-01-29 16:45:54 -0700 | [diff] [blame] | 6538 | ac_save_LIBS="$LIBS" |
| 6539 | LIBS="$LIBS $COREAUDIO" |
| 6540 | for ac_func in AUGraphAddNode |
| 6541 | do : |
| 6542 | ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode" |
| 6543 | if test "x$ac_cv_func_AUGraphAddNode" = x""yes; then : |
| 6544 | cat >>confdefs.h <<_ACEOF |
| 6545 | #define HAVE_AUGRAPHADDNODE 1 |
| 6546 | _ACEOF |
| 6547 | |
| 6548 | fi |
| 6549 | done |
| 6550 | |
| 6551 | LIBS="$ac_save_LIBS" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6552 | fi |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6553 | if test "$ac_cv_header_OpenAL_al_h" = "yes" |
| 6554 | then |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 6555 | FRAMEWORK_OPENAL="-framework OpenAL" |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6556 | |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 6557 | |
| 6558 | cat >>confdefs.h <<_ACEOF |
| 6559 | #define HAVE_OPENAL 1 |
| 6560 | _ACEOF |
| 6561 | |
| 6562 | ac_cv_lib_openal=yes |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6563 | fi |
Alexandre Julliard | fac6741 | 2010-12-03 14:16:55 +0100 | [diff] [blame] | 6564 | if test "$ac_cv_header_OpenCL_opencl_h" = "yes" |
| 6565 | then |
| 6566 | LIBOPENCL="-framework OpenCL" |
| 6567 | |
| 6568 | ac_cv_lib_OpenCL_clGetPlatformInfo=yes |
| 6569 | fi |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6570 | if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes" |
| 6571 | then |
| 6572 | ac_save_LIBS="$LIBS" |
| 6573 | LIBS="$LIBS $IOKITLIB" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6574 | for ac_func in IOHIDManagerCreate |
| 6575 | do : |
| 6576 | ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate" |
| 6577 | if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then : |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6578 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6579 | #define HAVE_IOHIDMANAGERCREATE 1 |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6580 | _ACEOF |
| 6581 | |
| 6582 | fi |
| 6583 | done |
| 6584 | |
| 6585 | LIBS="$ac_save_LIBS" |
| 6586 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6587 | case $host_cpu in |
| 6588 | *powerpc*) |
| 6589 | LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;; |
| 6590 | esac |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 6591 | if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes" |
| 6592 | then |
| 6593 | QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo" |
| 6594 | |
| 6595 | enable_wineqtdecoder=${enable_wineqtdecoder:-yes} |
| 6596 | else |
| 6597 | as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported." |
| 6598 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6599 | if test "$ac_cv_header_Carbon_Carbon_h" = "yes" |
| 6600 | then |
| 6601 | CARBONLIB="-framework Carbon" |
| 6602 | |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 6603 | enable_winequartz_drv=${enable_winequartz_drv:-yes} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6604 | fi |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6605 | if test "x$enable_win16" = "xyes" |
| 6606 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6607 | { $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] | 6608 | $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] | 6609 | if test "$cross_compiling" = yes; then : |
| 6610 | { $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] | 6611 | $as_echo "cross-compiling, assuming yes" >&6; } |
| 6612 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6614 | /* end confdefs.h. */ |
| 6615 | asm(".text\n" |
| 6616 | "bad:\tnop;nop\n" |
| 6617 | "good:\tnop;nop\n\t" |
| 6618 | ".globl _testfunc\n" |
| 6619 | "_testfunc:\tcallw good"); |
| 6620 | extern void testfunc(); |
| 6621 | int |
| 6622 | main () |
| 6623 | { |
| 6624 | unsigned short *p = (unsigned short *)testfunc; |
| 6625 | return p[0] != 0xe866 || p[1] != 0xfffa |
| 6626 | ; |
| 6627 | return 0; |
| 6628 | } |
| 6629 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6630 | if ac_fn_c_try_run "$LINENO"; then : |
| 6631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6632 | $as_echo "yes" >&6; } |
| 6633 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6635 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6636 | 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] | 6637 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6638 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6639 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6640 | fi |
| 6641 | |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6642 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6643 | ;; |
| 6644 | *) |
| 6645 | DLLFLAGS="$DLLFLAGS -fPIC" |
| 6646 | DLLEXT=".so" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6647 | { $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] | 6648 | $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] | 6649 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6650 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6651 | else |
| 6652 | ac_wine_try_cflags_saved=$CFLAGS |
| 6653 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6655 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6656 | void myfunc() {} |
| 6657 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6658 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6659 | ac_cv_c_dll_gnuelf="yes" |
| 6660 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6661 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6662 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6663 | rm -f core conftest.err conftest.$ac_objext \ |
| 6664 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6665 | CFLAGS=$ac_wine_try_cflags_saved |
| 6666 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6667 | { $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] | 6668 | $as_echo "$ac_cv_c_dll_gnuelf" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6669 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 6670 | then |
| 6671 | LDSHARED="\$(CC) -shared" |
| 6672 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6673 | { $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] | 6674 | $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] | 6675 | 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] | 6676 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6677 | else |
| 6678 | ac_wine_try_cflags_saved=$CFLAGS |
| 6679 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6681 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6682 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6683 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6684 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6685 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes |
| 6686 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6687 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6688 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6689 | rm -f core conftest.err conftest.$ac_objext \ |
| 6690 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6691 | CFLAGS=$ac_wine_try_cflags_saved |
| 6692 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6693 | { $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] | 6694 | $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] | 6695 | 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] | 6696 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 6697 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6698 | { $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] | 6699 | $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] | 6700 | 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] | 6701 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6702 | else |
| 6703 | ac_wine_try_cflags_saved=$CFLAGS |
| 6704 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6706 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6707 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6708 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6709 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6710 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes |
| 6711 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6712 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6713 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6714 | rm -f core conftest.err conftest.$ac_objext \ |
| 6715 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6716 | CFLAGS=$ac_wine_try_cflags_saved |
| 6717 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6718 | { $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] | 6719 | $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] | 6720 | 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] | 6721 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)" |
| 6722 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6723 | fi |
| 6724 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6725 | { $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] | 6726 | $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] | 6727 | 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] | 6728 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6729 | else |
| 6730 | ac_wine_try_cflags_saved=$CFLAGS |
| 6731 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6733 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6734 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6735 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6736 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6737 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes |
| 6738 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6739 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6740 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6741 | rm -f core conftest.err conftest.$ac_objext \ |
| 6742 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6743 | CFLAGS=$ac_wine_try_cflags_saved |
| 6744 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6745 | { $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] | 6746 | $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6747 | 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] | 6748 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
| 6749 | fi |
| 6750 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6751 | { $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] | 6752 | $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] | 6753 | 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] | 6754 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6755 | else |
| 6756 | ac_wine_try_cflags_saved=$CFLAGS |
| 6757 | 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] | 6758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6759 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6760 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6761 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6762 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6763 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes |
| 6764 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6765 | 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] | 6766 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6767 | rm -f core conftest.err conftest.$ac_objext \ |
| 6768 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6769 | CFLAGS=$ac_wine_try_cflags_saved |
| 6770 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6771 | { $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] | 6772 | $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] | 6773 | 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] | 6774 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 6775 | fi |
| 6776 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6777 | echo '{ global: *; };' >conftest.map |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6778 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh` |
| 6779 | { $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] | 6780 | $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] | 6781 | if eval "test \"\${$as_ac_var+set}\"" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6782 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6783 | else |
| 6784 | ac_wine_try_cflags_saved=$CFLAGS |
| 6785 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6787 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6788 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6789 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6790 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6791 | eval "$as_ac_var=yes" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6792 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6793 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6794 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6795 | rm -f core conftest.err conftest.$ac_objext \ |
| 6796 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6797 | CFLAGS=$ac_wine_try_cflags_saved |
| 6798 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6799 | eval ac_res=\$$as_ac_var |
| 6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6801 | $as_echo "$ac_res" >&6; } |
| 6802 | 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] | 6803 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" |
| 6804 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6805 | rm -f conftest.map |
| 6806 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6807 | { $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] | 6808 | $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] | 6809 | if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6810 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6811 | else |
| 6812 | ac_wine_try_cflags_saved=$CFLAGS |
| 6813 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6815 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6816 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6817 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6818 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6819 | ac_cv_cflags__fPIC__Wl___export_dynamic=yes |
| 6820 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6821 | ac_cv_cflags__fPIC__Wl___export_dynamic=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6822 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6823 | rm -f core conftest.err conftest.$ac_objext \ |
| 6824 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6825 | CFLAGS=$ac_wine_try_cflags_saved |
| 6826 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6827 | { $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] | 6828 | $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6829 | if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6830 | LDEXECFLAGS="-Wl,--export-dynamic" |
| 6831 | |
| 6832 | fi |
| 6833 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6834 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh` |
| 6835 | { $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] | 6836 | $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] | 6837 | if eval "test \"\${$as_ac_var+set}\"" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6838 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6839 | else |
| 6840 | ac_wine_try_cflags_saved=$CFLAGS |
| 6841 | CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6843 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6844 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6845 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6846 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6847 | eval "$as_ac_var=yes" |
| 6848 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6849 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6850 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6851 | rm -f core conftest.err conftest.$ac_objext \ |
| 6852 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6853 | CFLAGS=$ac_wine_try_cflags_saved |
| 6854 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6855 | eval ac_res=\$$as_ac_var |
| 6856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6857 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6858 | 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] | 6859 | LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6860 | LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6861 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6862 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh` |
| 6863 | { $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] | 6864 | $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] | 6865 | if eval "test \"\${$as_ac_var+set}\"" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6866 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6867 | else |
| 6868 | ac_wine_try_cflags_saved=$CFLAGS |
| 6869 | CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6871 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6872 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6873 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6874 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6875 | eval "$as_ac_var=yes" |
| 6876 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6877 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6878 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6879 | rm -f core conftest.err conftest.$ac_objext \ |
| 6880 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6881 | CFLAGS=$ac_wine_try_cflags_saved |
| 6882 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6883 | eval ac_res=\$$as_ac_var |
| 6884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6885 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6886 | 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] | 6887 | LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6888 | LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6889 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6890 | fi |
| 6891 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6892 | { $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] | 6893 | $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] | 6894 | if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6895 | $as_echo_n "(cached) " >&6 |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6896 | else |
| 6897 | ac_wine_try_cflags_saved=$CFLAGS |
| 6898 | CFLAGS="$CFLAGS -Wl,--enable-new-dtags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6900 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6901 | int main(int argc, char **argv) { return 0; } |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6902 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6903 | if ac_fn_c_try_link "$LINENO"; then : |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6904 | ac_cv_cflags__Wl___enable_new_dtags=yes |
| 6905 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6906 | ac_cv_cflags__Wl___enable_new_dtags=no |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6907 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6908 | rm -f core conftest.err conftest.$ac_objext \ |
| 6909 | conftest$ac_exeext conftest.$ac_ext |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6910 | CFLAGS=$ac_wine_try_cflags_saved |
| 6911 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6912 | { $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] | 6913 | $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6914 | if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then : |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6915 | LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags" |
| 6916 | fi |
| 6917 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6918 | case $host_cpu in |
| 6919 | *i[3456789]86* | x86_64) |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6920 | as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh` |
| 6921 | { $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] | 6922 | $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] | 6923 | if eval "test \"\${$as_ac_var+set}\"" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6924 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6925 | else |
| 6926 | ac_wine_try_cflags_saved=$CFLAGS |
| 6927 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6929 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6930 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6931 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6932 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6933 | eval "$as_ac_var=yes" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6934 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6935 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6936 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6937 | rm -f core conftest.err conftest.$ac_objext \ |
| 6938 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6939 | CFLAGS=$ac_wine_try_cflags_saved |
| 6940 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6941 | eval ac_res=\$$as_ac_var |
| 6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6943 | $as_echo "$ac_res" >&6; } |
| 6944 | 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] | 6945 | case $host_os in |
| 6946 | freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;; |
| 6947 | *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;; |
| 6948 | esac |
| 6949 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6950 | fi |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 6951 | # Extract the first word of "prelink", so it can be a program name with args. |
| 6952 | set dummy prelink; ac_word=$2 |
| 6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6954 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6955 | if test "${ac_cv_path_PRELINK+set}" = set; then : |
| 6956 | $as_echo_n "(cached) " >&6 |
| 6957 | else |
| 6958 | case $PRELINK in |
| 6959 | [\\/]* | ?:[\\/]*) |
| 6960 | ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path. |
| 6961 | ;; |
| 6962 | *) |
| 6963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6964 | for as_dir in /sbin /usr/sbin $PATH |
| 6965 | do |
| 6966 | IFS=$as_save_IFS |
| 6967 | test -z "$as_dir" && as_dir=. |
| 6968 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6969 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6970 | ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext" |
| 6971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6972 | break 2 |
| 6973 | fi |
| 6974 | done |
| 6975 | done |
| 6976 | IFS=$as_save_IFS |
| 6977 | |
| 6978 | test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false" |
| 6979 | ;; |
| 6980 | esac |
| 6981 | fi |
| 6982 | PRELINK=$ac_cv_path_PRELINK |
| 6983 | if test -n "$PRELINK"; then |
| 6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5 |
| 6985 | $as_echo "$PRELINK" >&6; } |
| 6986 | else |
| 6987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6988 | $as_echo "no" >&6; } |
| 6989 | fi |
| 6990 | |
| 6991 | |
| 6992 | if test "x$PRELINK" = xfalse |
| 6993 | then |
| 6994 | as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly." |
| 6995 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6996 | ;; |
| 6997 | esac |
| 6998 | |
| 6999 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7000 | { $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] | 7001 | $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] | 7002 | if test "${ac_cv_c_dll_unixware+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7003 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7004 | else |
| 7005 | ac_wine_try_cflags_saved=$CFLAGS |
| 7006 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7008 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7009 | void myfunc() {} |
| 7010 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7011 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7012 | ac_cv_c_dll_unixware="yes" |
| 7013 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7014 | ac_cv_c_dll_unixware="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7015 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7016 | rm -f core conftest.err conftest.$ac_objext \ |
| 7017 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7018 | CFLAGS=$ac_wine_try_cflags_saved |
| 7019 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7020 | { $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] | 7021 | $as_echo "$ac_cv_c_dll_unixware" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7022 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 7023 | then |
| 7024 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
| 7025 | LDDLLFLAGS="-Wl,-G,-B,symbolic" |
| 7026 | |
| 7027 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7028 | { $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] | 7029 | $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] | 7030 | if test "${ac_cv_c_dll_hpux+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7031 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7032 | else |
| 7033 | ac_wine_try_cflags_saved=$CFLAGS |
| 7034 | CFLAGS="$CFLAGS -shared" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7036 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7037 | void myfunc() {} |
| 7038 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7039 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7040 | ac_cv_c_dll_hpux="yes" |
| 7041 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7042 | ac_cv_c_dll_hpux="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7043 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7044 | rm -f core conftest.err conftest.$ac_objext \ |
| 7045 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7046 | CFLAGS=$ac_wine_try_cflags_saved |
| 7047 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7048 | { $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] | 7049 | $as_echo "$ac_cv_c_dll_hpux" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7050 | if test "$ac_cv_c_dll_hpux" = "yes" |
| 7051 | then |
| 7052 | LIBEXT="sl" |
| 7053 | DLLEXT=".sl" |
| 7054 | LDDLLFLAGS="-shared -fPIC" |
| 7055 | LDSHARED="\$(CC) -shared" |
| 7056 | fi |
| 7057 | fi |
| 7058 | fi |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7059 | ;; |
| 7060 | esac |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7061 | |
Aric Stewart | eefe6f6 | 2010-12-03 07:33:08 -0600 | [diff] [blame] | 7062 | enable_wineqtdecoder=${enable_wineqtdecoder:-no} |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7063 | enable_winequartz_drv=${enable_winequartz_drv:-no} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7064 | |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7065 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7066 | as_fn_error $? "could not find a way to build shared libraries. |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7067 | It is currently not possible to build Wine without shared library |
| 7068 | (.so) support to allow transparent switch between .so and .dll files. |
| 7069 | If you are using Linux, you will need a newer binutils. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7070 | " "$LINENO" 5 |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7071 | fi |
| 7072 | |
Alexandre Julliard | 7d2e772 | 2010-07-26 12:13:47 +0200 | [diff] [blame] | 7073 | CROSSTEST_DISABLE=\# |
| 7074 | |
| 7075 | 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] | 7076 | then |
Alexandre Julliard | a91fb21 | 2009-12-07 15:36:09 +0100 | [diff] [blame] | 7077 | case "$host_cpu" in |
| 7078 | i[3456789]86*) |
Jacek Caban | 0b6bfad | 2010-12-21 18:08:38 +0100 | [diff] [blame] | 7079 | 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] | 7080 | x86_64) |
Vincent Povirk | d210375 | 2010-10-11 15:55:40 -0500 | [diff] [blame] | 7081 | 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] | 7082 | *) |
| 7083 | ac_prefix_list="" ;; |
| 7084 | esac |
| 7085 | for ac_prog in $ac_prefix_list |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7086 | do |
| 7087 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7088 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7090 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7091 | if test "${ac_cv_prog_CROSSCC+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7092 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7093 | else |
| 7094 | if test -n "$CROSSCC"; then |
| 7095 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 7096 | else |
| 7097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7098 | for as_dir in $PATH |
| 7099 | do |
| 7100 | IFS=$as_save_IFS |
| 7101 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7102 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7104 | ac_cv_prog_CROSSCC="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7105 | $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] | 7106 | break 2 |
| 7107 | fi |
| 7108 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7109 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7110 | IFS=$as_save_IFS |
| 7111 | |
| 7112 | fi |
| 7113 | fi |
| 7114 | CROSSCC=$ac_cv_prog_CROSSCC |
| 7115 | if test -n "$CROSSCC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7117 | $as_echo "$CROSSCC" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7118 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7120 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7121 | fi |
| 7122 | |
| 7123 | |
| 7124 | test -n "$CROSSCC" && break |
| 7125 | done |
| 7126 | test -n "$CROSSCC" || CROSSCC="false" |
| 7127 | |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7128 | if test "$CROSSCC" != "false" |
| 7129 | then |
Alexandre Julliard | c2a29db | 2010-08-04 13:16:19 +0200 | [diff] [blame] | 7130 | ac_save_CC="$CC" |
| 7131 | CC="$CROSSCC" |
| 7132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5 |
| 7133 | $as_echo_n "checking whether $CROSSCC works... " >&6; } |
| 7134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7135 | /* end confdefs.h. */ |
Alexandre Julliard | a2d88ab | 2009-05-30 17:08:06 +0200 | [diff] [blame] | 7136 | |
Alexandre Julliard | c2a29db | 2010-08-04 13:16:19 +0200 | [diff] [blame] | 7137 | int |
| 7138 | main () |
| 7139 | { |
| 7140 | |
| 7141 | ; |
| 7142 | return 0; |
| 7143 | } |
| 7144 | _ACEOF |
| 7145 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7147 | $as_echo "yes" >&6; } |
| 7148 | set x $CROSSCC |
| 7149 | shift |
| 7150 | target="" |
| 7151 | while test $# -ge 1 |
| 7152 | do |
| 7153 | case "$1" in |
| 7154 | *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;; |
| 7155 | esac |
| 7156 | shift |
| 7157 | done |
| 7158 | if test -n "$target" |
| 7159 | then |
| 7160 | CROSSTEST_DISABLE="" |
| 7161 | CROSSTARGET="$target" |
| 7162 | |
| 7163 | fi |
| 7164 | else |
| 7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7166 | $as_echo "no" >&6; } |
| 7167 | fi |
| 7168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7169 | CC="$ac_save_CC" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7170 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7171 | fi |
| 7172 | |
| 7173 | |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7174 | if test "$ac_cv_header_pthread_h" = "yes" |
| 7175 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7176 | { $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] | 7177 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7178 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7179 | $as_echo_n "(cached) " >&6 |
| 7180 | else |
| 7181 | ac_check_lib_save_LIBS=$LIBS |
| 7182 | LIBS="-lpthread $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7184 | /* end confdefs.h. */ |
| 7185 | |
| 7186 | /* Override any GCC internal prototype to avoid an error. |
| 7187 | Use char because int might match the return type of a GCC |
| 7188 | builtin and then its argument prototype would still apply. */ |
| 7189 | #ifdef __cplusplus |
| 7190 | extern "C" |
| 7191 | #endif |
| 7192 | char pthread_create (); |
| 7193 | int |
| 7194 | main () |
| 7195 | { |
| 7196 | return pthread_create (); |
| 7197 | ; |
| 7198 | return 0; |
| 7199 | } |
| 7200 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7201 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7202 | ac_cv_lib_pthread_pthread_create=yes |
| 7203 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7204 | ac_cv_lib_pthread_pthread_create=no |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7205 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7206 | rm -f core conftest.err conftest.$ac_objext \ |
| 7207 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7208 | LIBS=$ac_check_lib_save_LIBS |
| 7209 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7210 | { $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] | 7211 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7212 | if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7213 | LIBPTHREAD="-lpthread" |
| 7214 | |
| 7215 | fi |
| 7216 | |
| 7217 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7218 | if test "x$LIBPTHREAD" = "x"; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7219 | case "x$with_pthread" in |
| 7220 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7221 | *) as_fn_error $? "pthread ${notice_platform}development files not found. |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7222 | Wine cannot support threads without libpthread. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7223 | Use the --without-pthread option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7224 | esac |
| 7225 | fi |
| 7226 | |
| 7227 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7229 | $as_echo_n "checking for X... " >&6; } |
| 7230 | |
| 7231 | |
| 7232 | # Check whether --with-x was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7233 | if test "${with_x+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7234 | withval=$with_x; |
| 7235 | fi |
| 7236 | |
| 7237 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 7238 | if test "x$with_x" = xno; then |
| 7239 | # The user explicitly disabled X. |
| 7240 | have_x=disabled |
| 7241 | else |
| 7242 | case $x_includes,$x_libraries in #( |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7243 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7244 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7245 | $as_echo_n "(cached) " >&6 |
| 7246 | else |
| 7247 | # One or both of the vars are not set, and there is no cached value. |
| 7248 | ac_x_includes=no ac_x_libraries=no |
| 7249 | rm -f -r conftest.dir |
| 7250 | if mkdir conftest.dir; then |
| 7251 | cd conftest.dir |
| 7252 | cat >Imakefile <<'_ACEOF' |
| 7253 | incroot: |
| 7254 | @echo incroot='${INCROOT}' |
| 7255 | usrlibdir: |
| 7256 | @echo usrlibdir='${USRLIBDIR}' |
| 7257 | libdir: |
| 7258 | @echo libdir='${LIBDIR}' |
| 7259 | _ACEOF |
| 7260 | 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] | 7261 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7262 | for ac_var in incroot usrlibdir libdir; do |
| 7263 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 7264 | done |
| 7265 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 7266 | for ac_extension in a so sl dylib la dll; do |
| 7267 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 7268 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 7269 | ac_im_usrlibdir=$ac_im_libdir; break |
| 7270 | fi |
| 7271 | done |
| 7272 | # Screen out bogus values from the imake configuration. They are |
| 7273 | # bogus both because they are the default anyway, and because |
| 7274 | # using them would break gcc on systems where it needs fixed includes. |
| 7275 | case $ac_im_incroot in |
| 7276 | /usr/include) ac_x_includes= ;; |
| 7277 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 7278 | esac |
| 7279 | case $ac_im_usrlibdir in |
| 7280 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 7281 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 7282 | esac |
| 7283 | fi |
| 7284 | cd .. |
| 7285 | rm -f -r conftest.dir |
| 7286 | fi |
| 7287 | |
| 7288 | # Standard set of common directories for X headers. |
| 7289 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 7290 | ac_x_header_dirs=' |
| 7291 | /usr/X11/include |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7292 | /usr/X11R7/include |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7293 | /usr/X11R6/include |
| 7294 | /usr/X11R5/include |
| 7295 | /usr/X11R4/include |
| 7296 | |
| 7297 | /usr/include/X11 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7298 | /usr/include/X11R7 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7299 | /usr/include/X11R6 |
| 7300 | /usr/include/X11R5 |
| 7301 | /usr/include/X11R4 |
| 7302 | |
| 7303 | /usr/local/X11/include |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7304 | /usr/local/X11R7/include |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7305 | /usr/local/X11R6/include |
| 7306 | /usr/local/X11R5/include |
| 7307 | /usr/local/X11R4/include |
| 7308 | |
| 7309 | /usr/local/include/X11 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7310 | /usr/local/include/X11R7 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7311 | /usr/local/include/X11R6 |
| 7312 | /usr/local/include/X11R5 |
| 7313 | /usr/local/include/X11R4 |
| 7314 | |
| 7315 | /usr/X386/include |
| 7316 | /usr/x386/include |
| 7317 | /usr/XFree86/include/X11 |
| 7318 | |
| 7319 | /usr/include |
| 7320 | /usr/local/include |
| 7321 | /usr/unsupported/include |
| 7322 | /usr/athena/include |
| 7323 | /usr/local/x11r5/include |
| 7324 | /usr/lpp/Xamples/include |
| 7325 | |
| 7326 | /usr/openwin/include |
| 7327 | /usr/openwin/share/include' |
| 7328 | |
| 7329 | if test "$ac_x_includes" = no; then |
| 7330 | # Guess where to find include files, by looking for Xlib.h. |
| 7331 | # First, try using that file with no special directory specified. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7333 | /* end confdefs.h. */ |
| 7334 | #include <X11/Xlib.h> |
| 7335 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7336 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7337 | # We can compile using X headers with no special include directory. |
| 7338 | ac_x_includes= |
| 7339 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7340 | for ac_dir in $ac_x_header_dirs; do |
| 7341 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 7342 | ac_x_includes=$ac_dir |
| 7343 | break |
| 7344 | fi |
| 7345 | done |
| 7346 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7347 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7348 | fi # $ac_x_includes = no |
| 7349 | |
| 7350 | if test "$ac_x_libraries" = no; then |
| 7351 | # Check for the libraries. |
| 7352 | # See if we find them without any special options. |
| 7353 | # Don't add to $LIBS permanently. |
| 7354 | ac_save_LIBS=$LIBS |
| 7355 | LIBS="-lX11 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7357 | /* end confdefs.h. */ |
| 7358 | #include <X11/Xlib.h> |
| 7359 | int |
| 7360 | main () |
| 7361 | { |
| 7362 | XrmInitialize () |
| 7363 | ; |
| 7364 | return 0; |
| 7365 | } |
| 7366 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7367 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7368 | LIBS=$ac_save_LIBS |
| 7369 | # We can link X programs with no special library path. |
| 7370 | ac_x_libraries= |
| 7371 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7372 | LIBS=$ac_save_LIBS |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7373 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 7374 | do |
| 7375 | # Don't even attempt the hair of trying to link an X program! |
| 7376 | for ac_extension in a so sl dylib la dll; do |
| 7377 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 7378 | ac_x_libraries=$ac_dir |
| 7379 | break 2 |
| 7380 | fi |
| 7381 | done |
| 7382 | done |
| 7383 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7384 | rm -f core conftest.err conftest.$ac_objext \ |
| 7385 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7386 | fi # $ac_x_libraries = no |
| 7387 | |
| 7388 | case $ac_x_includes,$ac_x_libraries in #( |
| 7389 | no,* | *,no | *\'*) |
| 7390 | # Didn't find X, or a directory has "'" in its name. |
| 7391 | ac_cv_have_x="have_x=no";; #( |
| 7392 | *) |
| 7393 | # Record where we found X for the cache. |
| 7394 | ac_cv_have_x="have_x=yes\ |
| 7395 | ac_x_includes='$ac_x_includes'\ |
| 7396 | ac_x_libraries='$ac_x_libraries'" |
| 7397 | esac |
| 7398 | fi |
| 7399 | ;; #( |
| 7400 | *) have_x=yes;; |
| 7401 | esac |
| 7402 | eval "$ac_cv_have_x" |
| 7403 | fi # $with_x != no |
| 7404 | |
| 7405 | if test "$have_x" != yes; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7407 | $as_echo "$have_x" >&6; } |
| 7408 | no_x=yes |
| 7409 | else |
| 7410 | # If each of the values was on the command line, it overrides each guess. |
| 7411 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 7412 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 7413 | # Update the cache value to reflect the command line values. |
| 7414 | ac_cv_have_x="have_x=yes\ |
| 7415 | ac_x_includes='$x_includes'\ |
| 7416 | ac_x_libraries='$x_libraries'" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7417 | { $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] | 7418 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 7419 | fi |
| 7420 | |
| 7421 | if test "$no_x" = yes; then |
| 7422 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 7423 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7424 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7425 | |
| 7426 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 7427 | else |
| 7428 | if test -n "$x_includes"; then |
| 7429 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 7430 | fi |
| 7431 | |
| 7432 | # It would also be nice to do this for all -L options, not just this one. |
| 7433 | if test -n "$x_libraries"; then |
| 7434 | X_LIBS="$X_LIBS -L$x_libraries" |
| 7435 | # For Solaris; some versions of Sun CC require a space after -R and |
| 7436 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7437 | { $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] | 7438 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 7439 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 7440 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 7441 | ac_c_werror_flag=yes |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7443 | /* end confdefs.h. */ |
| 7444 | |
| 7445 | int |
| 7446 | main () |
| 7447 | { |
| 7448 | |
| 7449 | ; |
| 7450 | return 0; |
| 7451 | } |
| 7452 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7453 | if ac_fn_c_try_link "$LINENO"; then : |
| 7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7455 | $as_echo "no" >&6; } |
| 7456 | X_LIBS="$X_LIBS -R$x_libraries" |
| 7457 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7458 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 7459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7460 | /* end confdefs.h. */ |
| 7461 | |
| 7462 | int |
| 7463 | main () |
| 7464 | { |
| 7465 | |
| 7466 | ; |
| 7467 | return 0; |
| 7468 | } |
| 7469 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7470 | if ac_fn_c_try_link "$LINENO"; then : |
| 7471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7472 | $as_echo "yes" >&6; } |
| 7473 | X_LIBS="$X_LIBS -R $x_libraries" |
| 7474 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7476 | $as_echo "neither works" >&6; } |
| 7477 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7478 | rm -f core conftest.err conftest.$ac_objext \ |
| 7479 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7480 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7481 | rm -f core conftest.err conftest.$ac_objext \ |
| 7482 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7483 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 7484 | LIBS=$ac_xsave_LIBS |
| 7485 | fi |
| 7486 | |
| 7487 | # Check for system-dependent libraries X programs must link with. |
| 7488 | # Do this before checking for the system-independent R6 libraries |
| 7489 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 7490 | |
| 7491 | if test "$ISC" = yes; then |
| 7492 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 7493 | else |
| 7494 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 7495 | # libraries were built with DECnet support. And Karl Berry says |
| 7496 | # the Alpha needs dnet_stub (dnet does not exist). |
| 7497 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7499 | /* end confdefs.h. */ |
| 7500 | |
| 7501 | /* Override any GCC internal prototype to avoid an error. |
| 7502 | Use char because int might match the return type of a GCC |
| 7503 | builtin and then its argument prototype would still apply. */ |
| 7504 | #ifdef __cplusplus |
| 7505 | extern "C" |
| 7506 | #endif |
| 7507 | char XOpenDisplay (); |
| 7508 | int |
| 7509 | main () |
| 7510 | { |
| 7511 | return XOpenDisplay (); |
| 7512 | ; |
| 7513 | return 0; |
| 7514 | } |
| 7515 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7516 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7517 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7518 | else |
| 7519 | { $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] | 7520 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7521 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7522 | $as_echo_n "(cached) " >&6 |
| 7523 | else |
| 7524 | ac_check_lib_save_LIBS=$LIBS |
| 7525 | LIBS="-ldnet $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7527 | /* end confdefs.h. */ |
| 7528 | |
| 7529 | /* Override any GCC internal prototype to avoid an error. |
| 7530 | Use char because int might match the return type of a GCC |
| 7531 | builtin and then its argument prototype would still apply. */ |
| 7532 | #ifdef __cplusplus |
| 7533 | extern "C" |
| 7534 | #endif |
| 7535 | char dnet_ntoa (); |
| 7536 | int |
| 7537 | main () |
| 7538 | { |
| 7539 | return dnet_ntoa (); |
| 7540 | ; |
| 7541 | return 0; |
| 7542 | } |
| 7543 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7544 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7545 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 7546 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7547 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7548 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7549 | rm -f core conftest.err conftest.$ac_objext \ |
| 7550 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7551 | LIBS=$ac_check_lib_save_LIBS |
| 7552 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7553 | { $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] | 7554 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7555 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7556 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 7557 | fi |
| 7558 | |
| 7559 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7560 | { $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] | 7561 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7562 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7563 | $as_echo_n "(cached) " >&6 |
| 7564 | else |
| 7565 | ac_check_lib_save_LIBS=$LIBS |
| 7566 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7568 | /* end confdefs.h. */ |
| 7569 | |
| 7570 | /* Override any GCC internal prototype to avoid an error. |
| 7571 | Use char because int might match the return type of a GCC |
| 7572 | builtin and then its argument prototype would still apply. */ |
| 7573 | #ifdef __cplusplus |
| 7574 | extern "C" |
| 7575 | #endif |
| 7576 | char dnet_ntoa (); |
| 7577 | int |
| 7578 | main () |
| 7579 | { |
| 7580 | return dnet_ntoa (); |
| 7581 | ; |
| 7582 | return 0; |
| 7583 | } |
| 7584 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7585 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7586 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 7587 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7588 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7589 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7590 | rm -f core conftest.err conftest.$ac_objext \ |
| 7591 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7592 | LIBS=$ac_check_lib_save_LIBS |
| 7593 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7594 | { $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] | 7595 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7596 | 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] | 7597 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 7598 | fi |
| 7599 | |
| 7600 | fi |
| 7601 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7602 | rm -f core conftest.err conftest.$ac_objext \ |
| 7603 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7604 | LIBS="$ac_xsave_LIBS" |
| 7605 | |
| 7606 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 7607 | # to get the SysV transport functions. |
| 7608 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 7609 | # needs -lnsl. |
| 7610 | # The nsl library prevents programs from opening the X display |
| 7611 | # on Irix 5.2, according to T.E. Dickey. |
| 7612 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 7613 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7614 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 7615 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7616 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7617 | fi |
| 7618 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7619 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7620 | { $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] | 7621 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7622 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7623 | $as_echo_n "(cached) " >&6 |
| 7624 | else |
| 7625 | ac_check_lib_save_LIBS=$LIBS |
| 7626 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7628 | /* end confdefs.h. */ |
| 7629 | |
| 7630 | /* Override any GCC internal prototype to avoid an error. |
| 7631 | Use char because int might match the return type of a GCC |
| 7632 | builtin and then its argument prototype would still apply. */ |
| 7633 | #ifdef __cplusplus |
| 7634 | extern "C" |
| 7635 | #endif |
| 7636 | char gethostbyname (); |
| 7637 | int |
| 7638 | main () |
| 7639 | { |
| 7640 | return gethostbyname (); |
| 7641 | ; |
| 7642 | return 0; |
| 7643 | } |
| 7644 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7645 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7646 | ac_cv_lib_nsl_gethostbyname=yes |
| 7647 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7648 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7649 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7650 | rm -f core conftest.err conftest.$ac_objext \ |
| 7651 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7652 | LIBS=$ac_check_lib_save_LIBS |
| 7653 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7654 | { $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] | 7655 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7656 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7657 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 7658 | fi |
| 7659 | |
| 7660 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7661 | { $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] | 7662 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7663 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7664 | $as_echo_n "(cached) " >&6 |
| 7665 | else |
| 7666 | ac_check_lib_save_LIBS=$LIBS |
| 7667 | LIBS="-lbsd $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7669 | /* end confdefs.h. */ |
| 7670 | |
| 7671 | /* Override any GCC internal prototype to avoid an error. |
| 7672 | Use char because int might match the return type of a GCC |
| 7673 | builtin and then its argument prototype would still apply. */ |
| 7674 | #ifdef __cplusplus |
| 7675 | extern "C" |
| 7676 | #endif |
| 7677 | char gethostbyname (); |
| 7678 | int |
| 7679 | main () |
| 7680 | { |
| 7681 | return gethostbyname (); |
| 7682 | ; |
| 7683 | return 0; |
| 7684 | } |
| 7685 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7686 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7687 | ac_cv_lib_bsd_gethostbyname=yes |
| 7688 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7689 | ac_cv_lib_bsd_gethostbyname=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7690 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7691 | rm -f core conftest.err conftest.$ac_objext \ |
| 7692 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7693 | LIBS=$ac_check_lib_save_LIBS |
| 7694 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7695 | { $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] | 7696 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7697 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7698 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 7699 | fi |
| 7700 | |
| 7701 | fi |
| 7702 | fi |
| 7703 | |
| 7704 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 7705 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 7706 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 7707 | # on later versions), says Simon Leinen: it contains gethostby* |
| 7708 | # variants that don't use the name server (or something). -lsocket |
| 7709 | # must be given before -lnsl if both are needed. We assume that |
| 7710 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7711 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| 7712 | if test "x$ac_cv_func_connect" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7713 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7714 | fi |
| 7715 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7716 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7717 | { $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] | 7718 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7719 | if test "${ac_cv_lib_socket_connect+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7720 | $as_echo_n "(cached) " >&6 |
| 7721 | else |
| 7722 | ac_check_lib_save_LIBS=$LIBS |
| 7723 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7725 | /* end confdefs.h. */ |
| 7726 | |
| 7727 | /* Override any GCC internal prototype to avoid an error. |
| 7728 | Use char because int might match the return type of a GCC |
| 7729 | builtin and then its argument prototype would still apply. */ |
| 7730 | #ifdef __cplusplus |
| 7731 | extern "C" |
| 7732 | #endif |
| 7733 | char connect (); |
| 7734 | int |
| 7735 | main () |
| 7736 | { |
| 7737 | return connect (); |
| 7738 | ; |
| 7739 | return 0; |
| 7740 | } |
| 7741 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7742 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7743 | ac_cv_lib_socket_connect=yes |
| 7744 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7745 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7746 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7747 | rm -f core conftest.err conftest.$ac_objext \ |
| 7748 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7749 | LIBS=$ac_check_lib_save_LIBS |
| 7750 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7751 | { $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] | 7752 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7753 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7754 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 7755 | fi |
| 7756 | |
| 7757 | fi |
| 7758 | |
| 7759 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7760 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| 7761 | if test "x$ac_cv_func_remove" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7762 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7763 | fi |
| 7764 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7765 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7766 | { $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] | 7767 | $as_echo_n "checking for remove in -lposix... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7768 | if test "${ac_cv_lib_posix_remove+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7769 | $as_echo_n "(cached) " >&6 |
| 7770 | else |
| 7771 | ac_check_lib_save_LIBS=$LIBS |
| 7772 | LIBS="-lposix $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7774 | /* end confdefs.h. */ |
| 7775 | |
| 7776 | /* Override any GCC internal prototype to avoid an error. |
| 7777 | Use char because int might match the return type of a GCC |
| 7778 | builtin and then its argument prototype would still apply. */ |
| 7779 | #ifdef __cplusplus |
| 7780 | extern "C" |
| 7781 | #endif |
| 7782 | char remove (); |
| 7783 | int |
| 7784 | main () |
| 7785 | { |
| 7786 | return remove (); |
| 7787 | ; |
| 7788 | return 0; |
| 7789 | } |
| 7790 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7791 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7792 | ac_cv_lib_posix_remove=yes |
| 7793 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7794 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7795 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7796 | rm -f core conftest.err conftest.$ac_objext \ |
| 7797 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7798 | LIBS=$ac_check_lib_save_LIBS |
| 7799 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7800 | { $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] | 7801 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7802 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7803 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 7804 | fi |
| 7805 | |
| 7806 | fi |
| 7807 | |
| 7808 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7809 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| 7810 | if test "x$ac_cv_func_shmat" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7811 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7812 | fi |
| 7813 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7814 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7815 | { $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] | 7816 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7817 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7818 | $as_echo_n "(cached) " >&6 |
| 7819 | else |
| 7820 | ac_check_lib_save_LIBS=$LIBS |
| 7821 | LIBS="-lipc $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7823 | /* end confdefs.h. */ |
| 7824 | |
| 7825 | /* Override any GCC internal prototype to avoid an error. |
| 7826 | Use char because int might match the return type of a GCC |
| 7827 | builtin and then its argument prototype would still apply. */ |
| 7828 | #ifdef __cplusplus |
| 7829 | extern "C" |
| 7830 | #endif |
| 7831 | char shmat (); |
| 7832 | int |
| 7833 | main () |
| 7834 | { |
| 7835 | return shmat (); |
| 7836 | ; |
| 7837 | return 0; |
| 7838 | } |
| 7839 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7840 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7841 | ac_cv_lib_ipc_shmat=yes |
| 7842 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7843 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7844 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7845 | rm -f core conftest.err conftest.$ac_objext \ |
| 7846 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7847 | LIBS=$ac_check_lib_save_LIBS |
| 7848 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7849 | { $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] | 7850 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7851 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7852 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 7853 | fi |
| 7854 | |
| 7855 | fi |
| 7856 | fi |
| 7857 | |
| 7858 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 7859 | ac_save_LDFLAGS=$LDFLAGS |
| 7860 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 7861 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 7862 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 7863 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 7864 | # These have to be linked with before -lX11, unlike the other |
| 7865 | # libraries we check for below, so use a different variable. |
| 7866 | # John Interrante, Karl Berry |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7867 | { $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] | 7868 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7869 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7870 | $as_echo_n "(cached) " >&6 |
| 7871 | else |
| 7872 | ac_check_lib_save_LIBS=$LIBS |
| 7873 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7875 | /* end confdefs.h. */ |
| 7876 | |
| 7877 | /* Override any GCC internal prototype to avoid an error. |
| 7878 | Use char because int might match the return type of a GCC |
| 7879 | builtin and then its argument prototype would still apply. */ |
| 7880 | #ifdef __cplusplus |
| 7881 | extern "C" |
| 7882 | #endif |
| 7883 | char IceConnectionNumber (); |
| 7884 | int |
| 7885 | main () |
| 7886 | { |
| 7887 | return IceConnectionNumber (); |
| 7888 | ; |
| 7889 | return 0; |
| 7890 | } |
| 7891 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7892 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7893 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 7894 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7895 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7896 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7897 | rm -f core conftest.err conftest.$ac_objext \ |
| 7898 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7899 | LIBS=$ac_check_lib_save_LIBS |
| 7900 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7901 | { $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] | 7902 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7903 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7904 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 7905 | fi |
| 7906 | |
| 7907 | LDFLAGS=$ac_save_LDFLAGS |
| 7908 | |
| 7909 | fi |
| 7910 | |
| 7911 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7912 | if test "$have_x" = "yes" |
| 7913 | then |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 7914 | XLIB="-lX11" |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7915 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 7916 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 7917 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7919 | $as_echo_n "checking for -lX11... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7920 | if test "${ac_cv_lib_soname_X11+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7921 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7922 | else |
| 7923 | ac_check_soname_save_LIBS=$LIBS |
| 7924 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7926 | /* end confdefs.h. */ |
| 7927 | |
| 7928 | /* Override any GCC internal prototype to avoid an error. |
| 7929 | Use char because int might match the return type of a GCC |
| 7930 | builtin and then its argument prototype would still apply. */ |
| 7931 | #ifdef __cplusplus |
| 7932 | extern "C" |
| 7933 | #endif |
| 7934 | char XCreateWindow (); |
| 7935 | int |
| 7936 | main () |
| 7937 | { |
| 7938 | return XCreateWindow (); |
| 7939 | ; |
| 7940 | return 0; |
| 7941 | } |
| 7942 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7943 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7944 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 7945 | 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] | 7946 | 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'` ;; |
| 7947 | *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 7948 | esac |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7949 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7950 | rm -f core conftest.err conftest.$ac_objext \ |
| 7951 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7952 | LIBS=$ac_check_soname_save_LIBS |
| 7953 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7954 | if test "x$ac_cv_lib_soname_X11" = "x"; then : |
| 7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7956 | $as_echo "not found" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7957 | |
| 7958 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7959 | { $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] | 7960 | $as_echo "$ac_cv_lib_soname_X11" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7961 | |
| 7962 | cat >>confdefs.h <<_ACEOF |
| 7963 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 7964 | _ACEOF |
| 7965 | |
| 7966 | |
| 7967 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7969 | $as_echo_n "checking for -lXext... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7970 | if test "${ac_cv_lib_soname_Xext+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7971 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7972 | else |
| 7973 | ac_check_soname_save_LIBS=$LIBS |
| 7974 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7976 | /* end confdefs.h. */ |
| 7977 | |
| 7978 | /* Override any GCC internal prototype to avoid an error. |
| 7979 | Use char because int might match the return type of a GCC |
| 7980 | builtin and then its argument prototype would still apply. */ |
| 7981 | #ifdef __cplusplus |
| 7982 | extern "C" |
| 7983 | #endif |
| 7984 | char XextCreateExtension (); |
| 7985 | int |
| 7986 | main () |
| 7987 | { |
| 7988 | return XextCreateExtension (); |
| 7989 | ; |
| 7990 | return 0; |
| 7991 | } |
| 7992 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7993 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7994 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 7995 | 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] | 7996 | 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'` ;; |
| 7997 | *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 7998 | esac |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7999 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8000 | rm -f core conftest.err conftest.$ac_objext \ |
| 8001 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8002 | LIBS=$ac_check_soname_save_LIBS |
| 8003 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8004 | if test "x$ac_cv_lib_soname_Xext" = "x"; then : |
| 8005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8006 | $as_echo "not found" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8007 | |
| 8008 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8009 | { $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] | 8010 | $as_echo "$ac_cv_lib_soname_Xext" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8011 | |
| 8012 | cat >>confdefs.h <<_ACEOF |
| 8013 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 8014 | _ACEOF |
| 8015 | |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8016 | XLIB="-lXext $XLIB" |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8017 | fi |
| 8018 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8019 | for ac_header in X11/Xlib.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8020 | X11/XKBlib.h \ |
| 8021 | X11/Xutil.h \ |
Andrew Riedi | 23e2cb1 | 2007-03-22 12:06:19 -0700 | [diff] [blame] | 8022 | X11/Xcursor/Xcursor.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8023 | X11/extensions/shape.h \ |
| 8024 | X11/extensions/XInput.h \ |
| 8025 | X11/extensions/XShm.h \ |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8026 | X11/extensions/Xcomposite.h \ |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8027 | X11/extensions/Xinerama.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8028 | X11/extensions/Xrandr.h \ |
| 8029 | X11/extensions/Xrender.h \ |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 8030 | X11/extensions/xf86vmode.h \ |
| 8031 | X11/extensions/xf86vmproto.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8032 | do : |
| 8033 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8034 | 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] | 8035 | # include <X11/Xlib.h> |
| 8036 | #endif |
| 8037 | #ifdef HAVE_X11_XUTIL_H |
| 8038 | # include <X11/Xutil.h> |
| 8039 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8040 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8041 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8042 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8043 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8044 | _ACEOF |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8045 | |
| 8046 | fi |
| 8047 | |
| 8048 | done |
| 8049 | |
| 8050 | |
| 8051 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" |
| 8052 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8053 | { $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] | 8054 | $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8055 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8056 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8057 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8058 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8059 | LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8061 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8062 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8063 | /* Override any GCC internal prototype to avoid an error. |
| 8064 | Use char because int might match the return type of a GCC |
| 8065 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8066 | #ifdef __cplusplus |
| 8067 | extern "C" |
| 8068 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8069 | char XkbQueryExtension (); |
| 8070 | int |
| 8071 | main () |
| 8072 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8073 | return XkbQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8074 | ; |
| 8075 | return 0; |
| 8076 | } |
| 8077 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8078 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8079 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8080 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8081 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8082 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8083 | rm -f core conftest.err conftest.$ac_objext \ |
| 8084 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8085 | LIBS=$ac_check_lib_save_LIBS |
| 8086 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8087 | { $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] | 8088 | $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8089 | if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then : |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8090 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8091 | $as_echo "#define HAVE_XKB 1" >>confdefs.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8092 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8093 | fi |
| 8094 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8095 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8096 | |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8097 | if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes" |
| 8098 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8100 | $as_echo_n "checking for -lXcursor... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8101 | if test "${ac_cv_lib_soname_Xcursor+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8102 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8103 | else |
| 8104 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8105 | LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8107 | /* end confdefs.h. */ |
| 8108 | |
| 8109 | /* Override any GCC internal prototype to avoid an error. |
| 8110 | Use char because int might match the return type of a GCC |
| 8111 | builtin and then its argument prototype would still apply. */ |
| 8112 | #ifdef __cplusplus |
| 8113 | extern "C" |
| 8114 | #endif |
| 8115 | char XcursorImageLoadCursor (); |
| 8116 | int |
| 8117 | main () |
| 8118 | { |
| 8119 | return XcursorImageLoadCursor (); |
| 8120 | ; |
| 8121 | return 0; |
| 8122 | } |
| 8123 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8124 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8125 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8126 | 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] | 8127 | 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'` ;; |
| 8128 | *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8129 | esac |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8130 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8131 | rm -f core conftest.err conftest.$ac_objext \ |
| 8132 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8133 | LIBS=$ac_check_soname_save_LIBS |
| 8134 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8135 | if test "x$ac_cv_lib_soname_Xcursor" = "x"; then : |
| 8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8137 | $as_echo "not found" >&6; } |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8138 | |
| 8139 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8140 | { $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] | 8141 | $as_echo "$ac_cv_lib_soname_Xcursor" >&6; } |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8142 | |
| 8143 | cat >>confdefs.h <<_ACEOF |
| 8144 | #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor" |
| 8145 | _ACEOF |
| 8146 | |
| 8147 | |
| 8148 | fi |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8149 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8150 | if test "x$ac_cv_lib_soname_Xcursor" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8151 | case "x$with_xcursor" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8152 | 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] | 8153 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8154 | *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported. |
| 8155 | This is an error since --with-xcursor was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8156 | esac |
| 8157 | fi |
| 8158 | |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8159 | if test "$ac_cv_header_X11_extensions_XInput_h" = "yes" |
| 8160 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8162 | $as_echo_n "checking for -lXi... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8163 | if test "${ac_cv_lib_soname_Xi+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8164 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8165 | else |
| 8166 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8167 | LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8169 | /* end confdefs.h. */ |
| 8170 | |
| 8171 | /* Override any GCC internal prototype to avoid an error. |
| 8172 | Use char because int might match the return type of a GCC |
| 8173 | builtin and then its argument prototype would still apply. */ |
| 8174 | #ifdef __cplusplus |
| 8175 | extern "C" |
| 8176 | #endif |
| 8177 | char XOpenDevice (); |
| 8178 | int |
| 8179 | main () |
| 8180 | { |
| 8181 | return XOpenDevice (); |
| 8182 | ; |
| 8183 | return 0; |
| 8184 | } |
| 8185 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8186 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8187 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8188 | 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] | 8189 | 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'` ;; |
| 8190 | *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8191 | esac |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8192 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8193 | rm -f core conftest.err conftest.$ac_objext \ |
| 8194 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8195 | LIBS=$ac_check_soname_save_LIBS |
| 8196 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8197 | if test "x$ac_cv_lib_soname_Xi" = "x"; then : |
| 8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8199 | $as_echo "not found" >&6; } |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8200 | |
| 8201 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8202 | { $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] | 8203 | $as_echo "$ac_cv_lib_soname_Xi" >&6; } |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8204 | |
| 8205 | cat >>confdefs.h <<_ACEOF |
| 8206 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" |
| 8207 | _ACEOF |
| 8208 | |
| 8209 | |
| 8210 | fi |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8211 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8212 | if test "x$ac_cv_lib_soname_Xi" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8213 | case "x$with_xinput" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8214 | 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] | 8215 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8216 | *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported. |
| 8217 | This is an error since --with-xinput was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8218 | esac |
| 8219 | fi |
| 8220 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8221 | if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 8222 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8223 | { $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] | 8224 | $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8225 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8226 | $as_echo_n "(cached) " >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8227 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8228 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8229 | LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8231 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8232 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8233 | /* Override any GCC internal prototype to avoid an error. |
| 8234 | Use char because int might match the return type of a GCC |
| 8235 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8236 | #ifdef __cplusplus |
| 8237 | extern "C" |
| 8238 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8239 | char XShmQueryExtension (); |
| 8240 | int |
| 8241 | main () |
| 8242 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8243 | return XShmQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8244 | ; |
| 8245 | return 0; |
| 8246 | } |
| 8247 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8248 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8249 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8250 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8251 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8252 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8253 | rm -f core conftest.err conftest.$ac_objext \ |
| 8254 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8255 | LIBS=$ac_check_lib_save_LIBS |
| 8256 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8257 | { $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] | 8258 | $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8259 | if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then : |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8260 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8261 | $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8262 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8263 | fi |
| 8264 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8265 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8266 | if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8267 | case "x$with_xshm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8268 | 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] | 8269 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8270 | *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported. |
| 8271 | This is an error since --with-xshm was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8272 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8273 | fi |
| 8274 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8275 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
| 8276 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8277 | { $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] | 8278 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8279 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8280 | $as_echo_n "(cached) " >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8281 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8282 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8283 | LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8285 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8286 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8287 | /* Override any GCC internal prototype to avoid an error. |
| 8288 | Use char because int might match the return type of a GCC |
| 8289 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8290 | #ifdef __cplusplus |
| 8291 | extern "C" |
| 8292 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8293 | char XShapeQueryExtension (); |
| 8294 | int |
| 8295 | main () |
| 8296 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8297 | return XShapeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8298 | ; |
| 8299 | return 0; |
| 8300 | } |
| 8301 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8302 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8303 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8304 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8305 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8306 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8307 | rm -f core conftest.err conftest.$ac_objext \ |
| 8308 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8309 | LIBS=$ac_check_lib_save_LIBS |
| 8310 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8311 | { $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] | 8312 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8313 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8314 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8315 | $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8316 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8317 | fi |
| 8318 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8319 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8320 | if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8321 | case "x$with_xshape" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8322 | 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] | 8323 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8324 | *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported. |
| 8325 | This is an error since --with-xshape was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8326 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8327 | fi |
| 8328 | |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 8329 | 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] | 8330 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8332 | $as_echo_n "checking for -lXxf86vm... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8333 | if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8334 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8335 | else |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8336 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8337 | LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8339 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8340 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8341 | /* Override any GCC internal prototype to avoid an error. |
| 8342 | Use char because int might match the return type of a GCC |
| 8343 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8344 | #ifdef __cplusplus |
| 8345 | extern "C" |
| 8346 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8347 | char XF86VidModeQueryExtension (); |
| 8348 | int |
| 8349 | main () |
| 8350 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8351 | return XF86VidModeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8352 | ; |
| 8353 | return 0; |
| 8354 | } |
| 8355 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8356 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8357 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8358 | 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] | 8359 | 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'` ;; |
| 8360 | *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8361 | esac |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8362 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8363 | rm -f core conftest.err conftest.$ac_objext \ |
| 8364 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8365 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8366 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8367 | if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then : |
| 8368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8369 | $as_echo "not found" >&6; } |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8370 | |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8371 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8372 | { $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] | 8373 | $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; } |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8374 | |
| 8375 | cat >>confdefs.h <<_ACEOF |
| 8376 | #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8377 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8378 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8379 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8380 | fi |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8381 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8382 | if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then : |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8383 | case "x$with_xxf86vm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8384 | 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] | 8385 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8386 | *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported. |
| 8387 | This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8388 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8389 | fi |
| 8390 | |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8391 | 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] | 8392 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8394 | $as_echo_n "checking for -lXrender... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8395 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8396 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8397 | else |
| 8398 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8399 | LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8401 | /* end confdefs.h. */ |
| 8402 | |
| 8403 | /* Override any GCC internal prototype to avoid an error. |
| 8404 | Use char because int might match the return type of a GCC |
| 8405 | builtin and then its argument prototype would still apply. */ |
| 8406 | #ifdef __cplusplus |
| 8407 | extern "C" |
| 8408 | #endif |
| 8409 | char XRenderQueryExtension (); |
| 8410 | int |
| 8411 | main () |
| 8412 | { |
| 8413 | return XRenderQueryExtension (); |
| 8414 | ; |
| 8415 | return 0; |
| 8416 | } |
| 8417 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8418 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8419 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8420 | 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] | 8421 | 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'` ;; |
| 8422 | *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8423 | esac |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8424 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8425 | rm -f core conftest.err conftest.$ac_objext \ |
| 8426 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8427 | LIBS=$ac_check_soname_save_LIBS |
| 8428 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8429 | if test "x$ac_cv_lib_soname_Xrender" = "x"; then : |
| 8430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8431 | $as_echo "not found" >&6; } |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8432 | |
| 8433 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8434 | { $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] | 8435 | $as_echo "$ac_cv_lib_soname_Xrender" >&6; } |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8436 | |
| 8437 | cat >>confdefs.h <<_ACEOF |
| 8438 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 8439 | _ACEOF |
| 8440 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8441 | { $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] | 8442 | $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8443 | if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8444 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8445 | else |
| 8446 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8447 | LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8449 | /* end confdefs.h. */ |
| 8450 | |
| 8451 | /* Override any GCC internal prototype to avoid an error. |
| 8452 | Use char because int might match the return type of a GCC |
| 8453 | builtin and then its argument prototype would still apply. */ |
| 8454 | #ifdef __cplusplus |
| 8455 | extern "C" |
| 8456 | #endif |
| 8457 | char XRenderSetPictureTransform (); |
| 8458 | int |
| 8459 | main () |
| 8460 | { |
| 8461 | return XRenderSetPictureTransform (); |
| 8462 | ; |
| 8463 | return 0; |
| 8464 | } |
| 8465 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8466 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8467 | ac_cv_lib_Xrender_XRenderSetPictureTransform=yes |
| 8468 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8469 | ac_cv_lib_Xrender_XRenderSetPictureTransform=no |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8470 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8471 | rm -f core conftest.err conftest.$ac_objext \ |
| 8472 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8473 | LIBS=$ac_check_lib_save_LIBS |
| 8474 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8475 | { $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] | 8476 | $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8477 | if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8478 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8479 | $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8480 | |
| 8481 | fi |
| 8482 | |
| 8483 | fi |
| 8484 | |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8485 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8486 | if test "x$ac_cv_lib_soname_Xrender" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8487 | case "x$with_xrender" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8488 | 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] | 8489 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8490 | *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported. |
| 8491 | This is an error since --with-xrender was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8492 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8493 | fi |
| 8494 | |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8495 | 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] | 8496 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8498 | /* end confdefs.h. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8499 | #include <X11/Xlib.h> |
| 8500 | #include <X11/extensions/Xrandr.h> |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8501 | int |
| 8502 | main () |
| 8503 | { |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8504 | static typeof(XRRSetScreenConfigAndRate) * func; |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8505 | ; |
| 8506 | return 0; |
| 8507 | } |
| 8508 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8509 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8511 | $as_echo_n "checking for -lXrandr... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8512 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8513 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8514 | else |
| 8515 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8516 | LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8518 | /* end confdefs.h. */ |
| 8519 | |
| 8520 | /* Override any GCC internal prototype to avoid an error. |
| 8521 | Use char because int might match the return type of a GCC |
| 8522 | builtin and then its argument prototype would still apply. */ |
| 8523 | #ifdef __cplusplus |
| 8524 | extern "C" |
| 8525 | #endif |
| 8526 | char XRRQueryExtension (); |
| 8527 | int |
| 8528 | main () |
| 8529 | { |
| 8530 | return XRRQueryExtension (); |
| 8531 | ; |
| 8532 | return 0; |
| 8533 | } |
| 8534 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8535 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8536 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8537 | 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] | 8538 | 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'` ;; |
| 8539 | *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8540 | esac |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8541 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8542 | rm -f core conftest.err conftest.$ac_objext \ |
| 8543 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8544 | LIBS=$ac_check_soname_save_LIBS |
| 8545 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8546 | if test "x$ac_cv_lib_soname_Xrandr" = "x"; then : |
| 8547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8548 | $as_echo "not found" >&6; } |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8549 | |
| 8550 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8551 | { $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] | 8552 | $as_echo "$ac_cv_lib_soname_Xrandr" >&6; } |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8553 | |
| 8554 | cat >>confdefs.h <<_ACEOF |
| 8555 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" |
| 8556 | _ACEOF |
| 8557 | |
| 8558 | |
| 8559 | fi |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8560 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8562 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8563 | if test "x$ac_cv_lib_soname_Xrandr" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8564 | case "x$with_xrandr" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8565 | 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] | 8566 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8567 | *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported. |
| 8568 | This is an error since --with-xrandr was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8569 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8570 | fi |
| 8571 | |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8572 | if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes" |
| 8573 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8575 | /* end confdefs.h. */ |
| 8576 | #include <X11/Xlib.h> |
| 8577 | #include <X11/extensions/Xinerama.h> |
| 8578 | int |
| 8579 | main () |
| 8580 | { |
| 8581 | static typeof(XineramaQueryScreens) * func; |
| 8582 | ; |
| 8583 | return 0; |
| 8584 | } |
| 8585 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8586 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8588 | $as_echo_n "checking for -lXinerama... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8589 | if test "${ac_cv_lib_soname_Xinerama+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8590 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8591 | else |
| 8592 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8593 | LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8595 | /* end confdefs.h. */ |
| 8596 | |
| 8597 | /* Override any GCC internal prototype to avoid an error. |
| 8598 | Use char because int might match the return type of a GCC |
| 8599 | builtin and then its argument prototype would still apply. */ |
| 8600 | #ifdef __cplusplus |
| 8601 | extern "C" |
| 8602 | #endif |
| 8603 | char XineramaQueryScreens (); |
| 8604 | int |
| 8605 | main () |
| 8606 | { |
| 8607 | return XineramaQueryScreens (); |
| 8608 | ; |
| 8609 | return 0; |
| 8610 | } |
| 8611 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8612 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8613 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8614 | 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] | 8615 | 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'` ;; |
| 8616 | *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8617 | esac |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8618 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8619 | rm -f core conftest.err conftest.$ac_objext \ |
| 8620 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8621 | LIBS=$ac_check_soname_save_LIBS |
| 8622 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8623 | if test "x$ac_cv_lib_soname_Xinerama" = "x"; then : |
| 8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8625 | $as_echo "not found" >&6; } |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8626 | |
| 8627 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8628 | { $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] | 8629 | $as_echo "$ac_cv_lib_soname_Xinerama" >&6; } |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8630 | |
| 8631 | cat >>confdefs.h <<_ACEOF |
| 8632 | #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama" |
| 8633 | _ACEOF |
| 8634 | |
| 8635 | |
| 8636 | fi |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8637 | fi |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8639 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8640 | if test "x$ac_cv_lib_soname_Xinerama" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8641 | case "x$with_xinerama" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8642 | 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] | 8643 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8644 | *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported. |
| 8645 | This is an error since --with-xinerama was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8646 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8647 | fi |
| 8648 | |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8649 | if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes" |
| 8650 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8652 | $as_echo_n "checking for -lXcomposite... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8653 | if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8654 | $as_echo_n "(cached) " >&6 |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8655 | else |
| 8656 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8657 | LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8659 | /* end confdefs.h. */ |
| 8660 | |
| 8661 | /* Override any GCC internal prototype to avoid an error. |
| 8662 | Use char because int might match the return type of a GCC |
| 8663 | builtin and then its argument prototype would still apply. */ |
| 8664 | #ifdef __cplusplus |
| 8665 | extern "C" |
| 8666 | #endif |
| 8667 | char XCompositeRedirectWindow (); |
| 8668 | int |
| 8669 | main () |
| 8670 | { |
| 8671 | return XCompositeRedirectWindow (); |
| 8672 | ; |
| 8673 | return 0; |
| 8674 | } |
| 8675 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8676 | if ac_fn_c_try_link "$LINENO"; then : |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8677 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8678 | 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] | 8679 | 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'` ;; |
| 8680 | *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8681 | esac |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8682 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8683 | rm -f core conftest.err conftest.$ac_objext \ |
| 8684 | conftest$ac_exeext conftest.$ac_ext |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8685 | LIBS=$ac_check_soname_save_LIBS |
| 8686 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8687 | if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then : |
| 8688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8689 | $as_echo "not found" >&6; } |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8690 | |
| 8691 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8692 | { $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] | 8693 | $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; } |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8694 | |
| 8695 | cat >>confdefs.h <<_ACEOF |
| 8696 | #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite" |
| 8697 | _ACEOF |
| 8698 | |
| 8699 | |
| 8700 | fi |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8701 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8702 | if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8703 | case "x$with_xcomposite" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8704 | 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] | 8705 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8706 | *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported. |
| 8707 | This is an error since --with-xcomposite was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8708 | esac |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8709 | fi |
| 8710 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8711 | 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] | 8712 | #include <X11/Xlib.h> |
| 8713 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8714 | " |
| 8715 | if test "x$ac_cv_member_XICCallback_callback" = x""yes; then : |
Kusanagi Kouichi | 75e4022 | 2008-04-16 00:34:54 +0900 | [diff] [blame] | 8716 | |
| 8717 | cat >>confdefs.h <<_ACEOF |
| 8718 | #define HAVE_XICCALLBACK_CALLBACK 1 |
| 8719 | _ACEOF |
| 8720 | |
| 8721 | |
| 8722 | fi |
| 8723 | |
| 8724 | |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8725 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8726 | opengl_msg="" |
| 8727 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8728 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8729 | for ac_header in GL/gl.h GL/glx.h GL/glu.h |
| 8730 | do : |
| 8731 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8732 | 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] | 8733 | # include <GL/glx.h> |
| 8734 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8735 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8736 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8737 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8738 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8739 | _ACEOF |
| 8740 | |
| 8741 | fi |
| 8742 | |
| 8743 | done |
| 8744 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8745 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
| 8746 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8747 | { $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] | 8748 | $as_echo_n "checking for up-to-date OpenGL version... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8749 | if test "${wine_cv_opengl_header_version_OK+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8750 | $as_echo_n "(cached) " >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8751 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8753 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8754 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8755 | int |
| 8756 | main () |
| 8757 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8758 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8759 | ; |
| 8760 | return 0; |
| 8761 | } |
| 8762 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8763 | if ac_fn_c_try_compile "$LINENO"; then : |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 8764 | wine_cv_opengl_header_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8765 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8766 | wine_cv_opengl_header_version_OK="no" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8767 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8769 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8770 | { $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] | 8771 | $as_echo "$wine_cv_opengl_header_version_OK" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8772 | |
Alexandre Julliard | cc6a08c | 2006-08-24 14:34:22 +0200 | [diff] [blame] | 8773 | if test "$wine_cv_opengl_header_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8774 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8776 | $as_echo_n "checking for -lGL... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8777 | if test "${ac_cv_lib_soname_GL+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8778 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8779 | else |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8780 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8781 | LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8783 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8784 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8785 | /* Override any GCC internal prototype to avoid an error. |
| 8786 | Use char because int might match the return type of a GCC |
| 8787 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8788 | #ifdef __cplusplus |
| 8789 | extern "C" |
| 8790 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8791 | char glXCreateContext (); |
| 8792 | int |
| 8793 | main () |
| 8794 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8795 | return glXCreateContext (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8796 | ; |
| 8797 | return 0; |
| 8798 | } |
| 8799 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8800 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8801 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8802 | 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] | 8803 | 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'` ;; |
| 8804 | *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8805 | esac |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8806 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8807 | rm -f core conftest.err conftest.$ac_objext \ |
| 8808 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8809 | LIBS=$ac_check_soname_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8810 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8811 | if test "x$ac_cv_lib_soname_GL" = "x"; then : |
| 8812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8813 | $as_echo "not found" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8815 | $as_echo_n "checking for -lGL... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8816 | if test "${ac_cv_lib_soname_GL+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8817 | $as_echo_n "(cached) " >&6 |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8818 | else |
| 8819 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8820 | 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] | 8821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8822 | /* end confdefs.h. */ |
| 8823 | |
| 8824 | /* Override any GCC internal prototype to avoid an error. |
| 8825 | Use char because int might match the return type of a GCC |
| 8826 | builtin and then its argument prototype would still apply. */ |
| 8827 | #ifdef __cplusplus |
| 8828 | extern "C" |
| 8829 | #endif |
| 8830 | char glXCreateContext (); |
| 8831 | int |
| 8832 | main () |
| 8833 | { |
| 8834 | return glXCreateContext (); |
| 8835 | ; |
| 8836 | return 0; |
| 8837 | } |
| 8838 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8839 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8840 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8841 | 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] | 8842 | 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'` ;; |
| 8843 | *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8844 | esac |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8845 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8846 | rm -f core conftest.err conftest.$ac_objext \ |
| 8847 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8848 | LIBS=$ac_check_soname_save_LIBS |
| 8849 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8850 | if test "x$ac_cv_lib_soname_GL" = "x"; then : |
| 8851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8852 | $as_echo "not found" >&6; } |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8853 | if test -f /usr/X11R6/lib/libGL.a |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8854 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8855 | opengl_msg="/usr/X11R6/lib/libGL.a is present on your system. |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8856 | 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] | 8857 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8858 | opengl_msg="No OpenGL library found on this system." |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8859 | fi |
| 8860 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8861 | { $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] | 8862 | $as_echo "$ac_cv_lib_soname_GL" >&6; } |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8863 | |
| 8864 | cat >>confdefs.h <<_ACEOF |
| 8865 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 8866 | _ACEOF |
| 8867 | |
| 8868 | 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] | 8869 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8870 | $as_echo "#define HAVE_OPENGL 1" >>confdefs.h |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8871 | |
| 8872 | fi |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8873 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8874 | { $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] | 8875 | $as_echo "$ac_cv_lib_soname_GL" >&6; } |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8876 | |
| 8877 | cat >>confdefs.h <<_ACEOF |
| 8878 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 8879 | _ACEOF |
| 8880 | |
| 8881 | OPENGL_LIBS="-lGL" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8882 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8883 | $as_echo "#define HAVE_OPENGL 1" >>confdefs.h |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8884 | |
Alexandre Julliard | c84c478 | 2006-09-22 09:36:12 +0200 | [diff] [blame] | 8885 | fi |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8886 | if test "$ac_cv_header_GL_glu_h" = "yes" |
| 8887 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8889 | $as_echo_n "checking for -lGLU... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8890 | if test "${ac_cv_lib_soname_GLU+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8891 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8892 | else |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8893 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8894 | 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] | 8895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8896 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8897 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8898 | /* Override any GCC internal prototype to avoid an error. |
| 8899 | Use char because int might match the return type of a GCC |
| 8900 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8901 | #ifdef __cplusplus |
| 8902 | extern "C" |
| 8903 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8904 | char gluLookAt (); |
| 8905 | int |
| 8906 | main () |
| 8907 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8908 | return gluLookAt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8909 | ; |
| 8910 | return 0; |
| 8911 | } |
| 8912 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8913 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8914 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8915 | 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] | 8916 | 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'` ;; |
| 8917 | *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8918 | esac |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8919 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8920 | rm -f core conftest.err conftest.$ac_objext \ |
| 8921 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8922 | LIBS=$ac_check_soname_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8923 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8924 | if test "x$ac_cv_lib_soname_GLU" = "x"; then : |
| 8925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8926 | $as_echo "not found" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8927 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8928 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8929 | { $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] | 8930 | $as_echo "$ac_cv_lib_soname_GLU" >&6; } |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8931 | |
| 8932 | cat >>confdefs.h <<_ACEOF |
| 8933 | #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU" |
| 8934 | _ACEOF |
| 8935 | |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 8936 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8937 | fi |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8938 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8939 | if test "x$ac_cv_lib_soname_GLU" = "x"; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8940 | case "x$with_glu" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8941 | 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] | 8942 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8943 | *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported. |
| 8944 | This is an error since --with-glu was requested." "$LINENO" 5 ;; |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8945 | esac |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8946 | fi |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8947 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8948 | opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries." |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8949 | fi |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 8950 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8951 | opengl_msg="OpenGL development headers not found." |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8952 | fi |
Alexandre Julliard | 8e9504d | 2008-09-24 13:11:11 +0200 | [diff] [blame] | 8953 | test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no} |
| 8954 | test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no} |
| 8955 | else |
| 8956 | enable_opengl32=${enable_opengl32:-no} |
| 8957 | enable_glu32=${enable_glu32:-no} |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8958 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8959 | if test -n "$opengl_msg"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8960 | case "x$with_opengl" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8961 | x) as_fn_append wine_warnings "|$opengl_msg |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8962 | OpenGL and Direct3D won't be supported." ;; |
| 8963 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8964 | *) as_fn_error $? "$opengl_msg |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8965 | OpenGL and Direct3D won't be supported. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8966 | This is an error since --with-opengl was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8967 | esac |
| 8968 | fi |
| 8969 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8970 | NASLIBS="" |
| 8971 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8972 | for ac_header in audio/audiolib.h |
| 8973 | do : |
| 8974 | ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default" |
| 8975 | if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then : |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8976 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8977 | #define HAVE_AUDIO_AUDIOLIB_H 1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8978 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8979 | for ac_header in audio/soundlib.h |
| 8980 | do : |
| 8981 | ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h> |
| 8982 | " |
| 8983 | if test "x$ac_cv_header_audio_soundlib_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_SOUNDLIB_H 1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8986 | _ACEOF |
| 8987 | |
| 8988 | fi |
| 8989 | |
| 8990 | done |
| 8991 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8992 | { $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] | 8993 | $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8994 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8995 | $as_echo_n "(cached) " >&6 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8996 | else |
| 8997 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8998 | LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9000 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9001 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9002 | /* Override any GCC internal prototype to avoid an error. |
| 9003 | Use char because int might match the return type of a GCC |
| 9004 | builtin and then its argument prototype would still apply. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9005 | #ifdef __cplusplus |
| 9006 | extern "C" |
| 9007 | #endif |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9008 | char AuCreateFlow (); |
| 9009 | int |
| 9010 | main () |
| 9011 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9012 | return AuCreateFlow (); |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9013 | ; |
| 9014 | return 0; |
| 9015 | } |
| 9016 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9017 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9018 | ac_cv_lib_audio_AuCreateFlow=yes |
| 9019 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9020 | ac_cv_lib_audio_AuCreateFlow=no |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9021 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9022 | rm -f core conftest.err conftest.$ac_objext \ |
| 9023 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9024 | LIBS=$ac_check_lib_save_LIBS |
| 9025 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9026 | { $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] | 9027 | $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9028 | if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then : |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9029 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9030 | $as_echo "#define HAVE_NAS 1" >>confdefs.h |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9031 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9032 | { $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] | 9033 | $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9034 | if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9035 | $as_echo_n "(cached) " >&6 |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9036 | else |
| 9037 | ac_check_lib_save_LIBS=$LIBS |
| 9038 | LIBS="-lXau $X_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9040 | /* end confdefs.h. */ |
| 9041 | |
| 9042 | /* Override any GCC internal prototype to avoid an error. |
| 9043 | Use char because int might match the return type of a GCC |
| 9044 | builtin and then its argument prototype would still apply. */ |
| 9045 | #ifdef __cplusplus |
| 9046 | extern "C" |
| 9047 | #endif |
| 9048 | char XauGetBestAuthByAddr (); |
| 9049 | int |
| 9050 | main () |
| 9051 | { |
| 9052 | return XauGetBestAuthByAddr (); |
| 9053 | ; |
| 9054 | return 0; |
| 9055 | } |
| 9056 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9057 | if ac_fn_c_try_link "$LINENO"; then : |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9058 | ac_cv_lib_Xau_XauGetBestAuthByAddr=yes |
| 9059 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9060 | ac_cv_lib_Xau_XauGetBestAuthByAddr=no |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9061 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9062 | rm -f core conftest.err conftest.$ac_objext \ |
| 9063 | conftest$ac_exeext conftest.$ac_ext |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9064 | LIBS=$ac_check_lib_save_LIBS |
| 9065 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9066 | { $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] | 9067 | $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9068 | if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then : |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 9069 | NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS" |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9070 | else |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 9071 | NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS" |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9072 | fi |
| 9073 | |
| 9074 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9075 | fi |
| 9076 | |
| 9077 | fi |
| 9078 | |
| 9079 | done |
| 9080 | |
| 9081 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 9082 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 9083 | else |
| 9084 | XLIB="" |
| 9085 | X_CFLAGS="" |
| 9086 | X_LIBS="" |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 9087 | enable_winex11_drv=${enable_winex11_drv:-no} |
| 9088 | enable_opengl32=${enable_opengl32:-no} |
| 9089 | enable_glu32=${enable_glu32:-no} |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 9090 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9091 | if test "x$XLIB" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9092 | case "x$with_x" in |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9093 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9094 | *) 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] | 9095 | without X support, which probably isn't what you want. You will need |
| 9096 | 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] | 9097 | Use the --without-x option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9098 | esac |
| 9099 | fi |
| 9100 | |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 9101 | if test "$ac_cv_header_CL_cl_h" = "yes" |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 9102 | then |
| 9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5 |
| 9104 | $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; } |
| 9105 | if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then : |
| 9106 | $as_echo_n "(cached) " >&6 |
| 9107 | else |
| 9108 | ac_check_lib_save_LIBS=$LIBS |
| 9109 | LIBS="-lOpenCL $LIBS" |
| 9110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9111 | /* end confdefs.h. */ |
| 9112 | |
| 9113 | /* Override any GCC internal prototype to avoid an error. |
| 9114 | Use char because int might match the return type of a GCC |
| 9115 | builtin and then its argument prototype would still apply. */ |
| 9116 | #ifdef __cplusplus |
| 9117 | extern "C" |
| 9118 | #endif |
| 9119 | char clGetPlatformInfo (); |
| 9120 | int |
| 9121 | main () |
| 9122 | { |
| 9123 | return clGetPlatformInfo (); |
| 9124 | ; |
| 9125 | return 0; |
| 9126 | } |
| 9127 | _ACEOF |
| 9128 | if ac_fn_c_try_link "$LINENO"; then : |
| 9129 | ac_cv_lib_OpenCL_clGetPlatformInfo=yes |
| 9130 | else |
| 9131 | ac_cv_lib_OpenCL_clGetPlatformInfo=no |
| 9132 | fi |
| 9133 | rm -f core conftest.err conftest.$ac_objext \ |
| 9134 | conftest$ac_exeext conftest.$ac_ext |
| 9135 | LIBS=$ac_check_lib_save_LIBS |
| 9136 | fi |
| 9137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5 |
| 9138 | $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; } |
| 9139 | if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then : |
| 9140 | LIBOPENCL="-lOpenCL" |
| 9141 | |
| 9142 | fi |
| 9143 | |
| 9144 | fi |
| 9145 | if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then : |
| 9146 | case "x$with_opencl" in |
| 9147 | x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;; |
| 9148 | xno) ;; |
| 9149 | *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported. |
| 9150 | This is an error since --with-opencl was requested." "$LINENO" 5 ;; |
| 9151 | esac |
| 9152 | fi |
| 9153 | test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no} |
| 9154 | |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 9155 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9156 | XML2LIBS="" |
| 9157 | |
| 9158 | XML2INCL="" |
| 9159 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9160 | XSLTINCL="" |
| 9161 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9162 | if test "x$with_xml" != "xno" |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9163 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9164 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9165 | if test "$PKG_CONFIG" != "false" |
| 9166 | then |
| 9167 | ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`" |
| 9168 | ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`" |
| 9169 | else |
| 9170 | ac_xml_libs="`xml2-config --libs 2>/dev/null`" |
| 9171 | ac_xml_cflags="`xml2-config --cflags 2>/dev/null`" |
| 9172 | fi |
| 9173 | CPPFLAGS="$CPPFLAGS $ac_xml_cflags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9174 | for ac_header in libxml/parser.h |
| 9175 | do : |
| 9176 | ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" |
| 9177 | if test "x$ac_cv_header_libxml_parser_h" = x""yes; then : |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9178 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9179 | #define HAVE_LIBXML_PARSER_H 1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9180 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9181 | { $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] | 9182 | $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9183 | if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9184 | $as_echo_n "(cached) " >&6 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9185 | else |
| 9186 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9187 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9189 | /* end confdefs.h. */ |
| 9190 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9191 | /* Override any GCC internal prototype to avoid an error. |
| 9192 | Use char because int might match the return type of a GCC |
| 9193 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9194 | #ifdef __cplusplus |
| 9195 | extern "C" |
| 9196 | #endif |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9197 | char xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9198 | int |
| 9199 | main () |
| 9200 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9201 | return xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9202 | ; |
| 9203 | return 0; |
| 9204 | } |
| 9205 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9206 | if ac_fn_c_try_link "$LINENO"; then : |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9207 | ac_cv_lib_xml2_xmlParseMemory=yes |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9208 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9209 | ac_cv_lib_xml2_xmlParseMemory=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9210 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9211 | rm -f core conftest.err conftest.$ac_objext \ |
| 9212 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9213 | LIBS=$ac_check_lib_save_LIBS |
| 9214 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9215 | { $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] | 9216 | $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9217 | if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then : |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9218 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9219 | $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9220 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9221 | XML2LIBS="$ac_xml_libs" |
| 9222 | XML2INCL="$ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9223 | fi |
| 9224 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9225 | { $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] | 9226 | $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9227 | if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9228 | $as_echo_n "(cached) " >&6 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9229 | else |
| 9230 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9231 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9233 | /* end confdefs.h. */ |
| 9234 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9235 | /* Override any GCC internal prototype to avoid an error. |
| 9236 | Use char because int might match the return type of a GCC |
| 9237 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9238 | #ifdef __cplusplus |
| 9239 | extern "C" |
| 9240 | #endif |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9241 | char xmlReadMemory (); |
| 9242 | int |
| 9243 | main () |
| 9244 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9245 | return xmlReadMemory (); |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9246 | ; |
| 9247 | return 0; |
| 9248 | } |
| 9249 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9250 | if ac_fn_c_try_link "$LINENO"; then : |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9251 | ac_cv_lib_xml2_xmlReadMemory=yes |
| 9252 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9253 | ac_cv_lib_xml2_xmlReadMemory=no |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9254 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9255 | rm -f core conftest.err conftest.$ac_objext \ |
| 9256 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9257 | LIBS=$ac_check_lib_save_LIBS |
| 9258 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9259 | { $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] | 9260 | $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9261 | if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then : |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9262 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9263 | $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9264 | |
| 9265 | fi |
| 9266 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9267 | { $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] | 9268 | $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9269 | if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9270 | $as_echo_n "(cached) " >&6 |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9271 | else |
| 9272 | ac_check_lib_save_LIBS=$LIBS |
| 9273 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9275 | /* end confdefs.h. */ |
| 9276 | |
| 9277 | /* Override any GCC internal prototype to avoid an error. |
| 9278 | Use char because int might match the return type of a GCC |
| 9279 | builtin and then its argument prototype would still apply. */ |
| 9280 | #ifdef __cplusplus |
| 9281 | extern "C" |
| 9282 | #endif |
| 9283 | char xmlNewDocPI (); |
| 9284 | int |
| 9285 | main () |
| 9286 | { |
| 9287 | return xmlNewDocPI (); |
| 9288 | ; |
| 9289 | return 0; |
| 9290 | } |
| 9291 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9292 | if ac_fn_c_try_link "$LINENO"; then : |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9293 | ac_cv_lib_xml2_xmlNewDocPI=yes |
| 9294 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9295 | ac_cv_lib_xml2_xmlNewDocPI=no |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9296 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9297 | rm -f core conftest.err conftest.$ac_objext \ |
| 9298 | conftest$ac_exeext conftest.$ac_ext |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9299 | LIBS=$ac_check_lib_save_LIBS |
| 9300 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9301 | { $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] | 9302 | $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9303 | if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then : |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9304 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9305 | $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9306 | |
| 9307 | fi |
| 9308 | |
Adam Martinson | 6ee2231 | 2010-11-22 20:54:54 -0600 | [diff] [blame] | 9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5 |
| 9310 | $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; } |
| 9311 | if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then : |
| 9312 | $as_echo_n "(cached) " >&6 |
| 9313 | else |
| 9314 | ac_check_lib_save_LIBS=$LIBS |
| 9315 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9317 | /* end confdefs.h. */ |
| 9318 | |
| 9319 | /* Override any GCC internal prototype to avoid an error. |
| 9320 | Use char because int might match the return type of a GCC |
| 9321 | builtin and then its argument prototype would still apply. */ |
| 9322 | #ifdef __cplusplus |
| 9323 | extern "C" |
| 9324 | #endif |
| 9325 | char xmlSchemaSetParserStructuredErrors (); |
| 9326 | int |
| 9327 | main () |
| 9328 | { |
| 9329 | return xmlSchemaSetParserStructuredErrors (); |
| 9330 | ; |
| 9331 | return 0; |
| 9332 | } |
| 9333 | _ACEOF |
| 9334 | if ac_fn_c_try_link "$LINENO"; then : |
| 9335 | ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes |
| 9336 | else |
| 9337 | ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no |
| 9338 | fi |
| 9339 | rm -f core conftest.err conftest.$ac_objext \ |
| 9340 | conftest$ac_exeext conftest.$ac_ext |
| 9341 | LIBS=$ac_check_lib_save_LIBS |
| 9342 | fi |
| 9343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5 |
| 9344 | $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; } |
| 9345 | if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then : |
| 9346 | |
| 9347 | $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h |
| 9348 | |
| 9349 | fi |
| 9350 | |
Adam Martinson | be4d0e9 | 2010-11-01 14:11:16 -0500 | [diff] [blame] | 9351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5 |
| 9352 | $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; } |
| 9353 | if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then : |
| 9354 | $as_echo_n "(cached) " >&6 |
| 9355 | else |
| 9356 | ac_check_lib_save_LIBS=$LIBS |
| 9357 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9359 | /* end confdefs.h. */ |
| 9360 | |
| 9361 | /* Override any GCC internal prototype to avoid an error. |
| 9362 | Use char because int might match the return type of a GCC |
| 9363 | builtin and then its argument prototype would still apply. */ |
| 9364 | #ifdef __cplusplus |
| 9365 | extern "C" |
| 9366 | #endif |
| 9367 | char xmlSchemaSetValidStructuredErrors (); |
| 9368 | int |
| 9369 | main () |
| 9370 | { |
| 9371 | return xmlSchemaSetValidStructuredErrors (); |
| 9372 | ; |
| 9373 | return 0; |
| 9374 | } |
| 9375 | _ACEOF |
| 9376 | if ac_fn_c_try_link "$LINENO"; then : |
| 9377 | ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes |
| 9378 | else |
| 9379 | ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no |
| 9380 | fi |
| 9381 | rm -f core conftest.err conftest.$ac_objext \ |
| 9382 | conftest$ac_exeext conftest.$ac_ext |
| 9383 | LIBS=$ac_check_lib_save_LIBS |
| 9384 | fi |
| 9385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5 |
| 9386 | $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; } |
| 9387 | if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then : |
| 9388 | |
| 9389 | $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h |
| 9390 | |
| 9391 | fi |
| 9392 | |
Adam Martinson | 82f73c8 | 2010-11-11 15:16:24 -0600 | [diff] [blame] | 9393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5 |
| 9394 | $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; } |
| 9395 | if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then : |
| 9396 | $as_echo_n "(cached) " >&6 |
| 9397 | else |
| 9398 | ac_check_lib_save_LIBS=$LIBS |
| 9399 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9401 | /* end confdefs.h. */ |
| 9402 | |
| 9403 | /* Override any GCC internal prototype to avoid an error. |
| 9404 | Use char because int might match the return type of a GCC |
| 9405 | builtin and then its argument prototype would still apply. */ |
| 9406 | #ifdef __cplusplus |
| 9407 | extern "C" |
| 9408 | #endif |
| 9409 | char xmlFirstElementChild (); |
| 9410 | int |
| 9411 | main () |
| 9412 | { |
| 9413 | return xmlFirstElementChild (); |
| 9414 | ; |
| 9415 | return 0; |
| 9416 | } |
| 9417 | _ACEOF |
| 9418 | if ac_fn_c_try_link "$LINENO"; then : |
| 9419 | ac_cv_lib_xml2_xmlFirstElementChild=yes |
| 9420 | else |
| 9421 | ac_cv_lib_xml2_xmlFirstElementChild=no |
| 9422 | fi |
| 9423 | rm -f core conftest.err conftest.$ac_objext \ |
| 9424 | conftest$ac_exeext conftest.$ac_ext |
| 9425 | LIBS=$ac_check_lib_save_LIBS |
| 9426 | fi |
| 9427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5 |
| 9428 | $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; } |
| 9429 | if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then : |
| 9430 | |
| 9431 | $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h |
| 9432 | |
| 9433 | fi |
| 9434 | |
Adam Martinson | 9408b49 | 2010-11-02 17:20:08 -0500 | [diff] [blame] | 9435 | ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h> |
| 9436 | " |
| 9437 | if test "x$ac_cv_type_xmlDocProperties" = x""yes; then : |
| 9438 | |
| 9439 | $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h |
| 9440 | |
| 9441 | fi |
| 9442 | |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9443 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9444 | fi |
| 9445 | |
| 9446 | done |
| 9447 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9448 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9449 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9450 | if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9451 | case "x$with_xml" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9452 | x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9453 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9454 | *) as_fn_error $? "libxml2 ${notice_platform}development files not found, XML won't be supported. |
| 9455 | This is an error since --with-xml was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9456 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9457 | fi |
| 9458 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9459 | if test "x$with_xslt" != "xno" |
Emmanuel Maillard | 2a98b40 | 2007-06-22 02:58:39 +0200 | [diff] [blame] | 9460 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9461 | if test "$PKG_CONFIG" != "false" |
| 9462 | then |
| 9463 | ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`" |
| 9464 | ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`" |
| 9465 | else |
| 9466 | ac_xslt_libs="`xslt-config --libs 2>/dev/null`" |
| 9467 | ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`" |
| 9468 | fi |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9469 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9470 | CPPFLAGS="$CPPFLAGS $ac_xslt_cflags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9471 | for ac_header in libxslt/pattern.h libxslt/transform.h |
| 9472 | do : |
| 9473 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9474 | 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] | 9475 | # include <libxslt/pattern.h> |
| 9476 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9477 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9478 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9479 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9480 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9481 | _ACEOF |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9482 | |
| 9483 | fi |
| 9484 | |
| 9485 | done |
| 9486 | |
| 9487 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9488 | if test "$ac_cv_header_libxslt_transform_h" = "yes" |
| 9489 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5 |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9491 | $as_echo_n "checking for -lxslt... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9492 | if test "${ac_cv_lib_soname_xslt+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9493 | $as_echo_n "(cached) " >&6 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9494 | else |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9495 | ac_check_soname_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9496 | LIBS="-lxslt $ac_xslt_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9498 | /* end confdefs.h. */ |
| 9499 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9500 | /* Override any GCC internal prototype to avoid an error. |
| 9501 | Use char because int might match the return type of a GCC |
| 9502 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9503 | #ifdef __cplusplus |
| 9504 | extern "C" |
| 9505 | #endif |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9506 | char xsltCompilePattern (); |
| 9507 | int |
| 9508 | main () |
| 9509 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9510 | return xsltCompilePattern (); |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9511 | ; |
| 9512 | return 0; |
| 9513 | } |
| 9514 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9515 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9516 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9517 | 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] | 9518 | 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'` ;; |
| 9519 | *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9520 | esac |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9521 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9522 | rm -f core conftest.err conftest.$ac_objext \ |
| 9523 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9524 | LIBS=$ac_check_soname_save_LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9525 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9526 | if test "x$ac_cv_lib_soname_xslt" = "x"; then : |
| 9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9528 | $as_echo "not found" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9529 | |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9530 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9531 | { $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] | 9532 | $as_echo "$ac_cv_lib_soname_xslt" >&6; } |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9533 | |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9534 | cat >>confdefs.h <<_ACEOF |
| 9535 | #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt" |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9536 | _ACEOF |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9537 | |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9538 | XSLTINCL="$ac_xslt_cflags" |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9539 | fi |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9540 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9541 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9542 | if test "x$ac_cv_lib_soname_xslt" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9543 | case "x$with_xslt" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9544 | 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] | 9545 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9546 | *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported. |
| 9547 | This is an error since --with-xslt was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9548 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9549 | fi |
| 9550 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9551 | HALINCL="" |
| 9552 | |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9553 | if test "x$with_hal" != "xno" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9554 | then |
| 9555 | ac_save_CPPFLAGS="$CPPFLAGS" |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9556 | if test "$PKG_CONFIG" != "false" |
| 9557 | then |
| 9558 | ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`" |
| 9559 | ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`" |
| 9560 | CPPFLAGS="$CPPFLAGS $ac_hal_cflags" |
| 9561 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9562 | for ac_header in dbus/dbus.h hal/libhal.h |
| 9563 | do : |
| 9564 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9565 | 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] | 9566 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9567 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9568 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9569 | _ACEOF |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9570 | |
| 9571 | fi |
| 9572 | |
| 9573 | done |
| 9574 | |
| 9575 | if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes" |
| 9576 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9577 | { $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] | 9578 | $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9579 | 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] | 9580 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9581 | else |
| 9582 | ac_check_lib_save_LIBS=$LIBS |
| 9583 | LIBS="-ldbus-1 $ac_hal_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9585 | /* end confdefs.h. */ |
| 9586 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9587 | /* Override any GCC internal prototype to avoid an error. |
| 9588 | Use char because int might match the return type of a GCC |
| 9589 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9590 | #ifdef __cplusplus |
| 9591 | extern "C" |
| 9592 | #endif |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9593 | char dbus_connection_close (); |
| 9594 | int |
| 9595 | main () |
| 9596 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9597 | return dbus_connection_close (); |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9598 | ; |
| 9599 | return 0; |
| 9600 | } |
| 9601 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9602 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9603 | ac_cv_lib_dbus_1_dbus_connection_close=yes |
| 9604 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9605 | ac_cv_lib_dbus_1_dbus_connection_close=no |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9606 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9607 | rm -f core conftest.err conftest.$ac_objext \ |
| 9608 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9609 | LIBS=$ac_check_lib_save_LIBS |
| 9610 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9611 | { $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] | 9612 | $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9613 | if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then : |
| 9614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9615 | $as_echo_n "checking for -lhal... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9616 | if test "${ac_cv_lib_soname_hal+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9617 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9618 | else |
| 9619 | ac_check_soname_save_LIBS=$LIBS |
| 9620 | LIBS="-lhal $ac_hal_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9622 | /* end confdefs.h. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9623 | |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9624 | /* Override any GCC internal prototype to avoid an error. |
| 9625 | Use char because int might match the return type of a GCC |
| 9626 | builtin and then its argument prototype would still apply. */ |
| 9627 | #ifdef __cplusplus |
| 9628 | extern "C" |
| 9629 | #endif |
| 9630 | char libhal_ctx_new (); |
| 9631 | int |
| 9632 | main () |
| 9633 | { |
| 9634 | return libhal_ctx_new (); |
| 9635 | ; |
| 9636 | return 0; |
| 9637 | } |
| 9638 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9639 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9640 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9641 | 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] | 9642 | 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'` ;; |
| 9643 | *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9644 | esac |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9645 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9646 | rm -f core conftest.err conftest.$ac_objext \ |
| 9647 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9648 | LIBS=$ac_check_soname_save_LIBS |
| 9649 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9650 | if test "x$ac_cv_lib_soname_hal" = "x"; then : |
| 9651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9652 | $as_echo "not found" >&6; } |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9653 | |
| 9654 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9655 | { $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] | 9656 | $as_echo "$ac_cv_lib_soname_hal" >&6; } |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9657 | |
| 9658 | cat >>confdefs.h <<_ACEOF |
| 9659 | #define SONAME_LIBHAL "$ac_cv_lib_soname_hal" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9660 | _ACEOF |
| 9661 | |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9662 | HALINCL="$ac_hal_cflags" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9663 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9664 | fi |
| 9665 | |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9666 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9667 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9668 | fi |
Alexandre Julliard | d806273 | 2010-04-26 06:57:49 -0500 | [diff] [blame] | 9669 | 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] | 9670 | case "x$with_hal" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9671 | 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] | 9672 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9673 | *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support. |
| 9674 | This is an error since --with-hal was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9675 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9676 | fi |
| 9677 | |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9678 | if test "x$with_gnutls" != "xno" |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9679 | then |
| 9680 | ac_save_CPPFLAGS="$CPPFLAGS" |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9681 | if test "$PKG_CONFIG" != "false" |
| 9682 | then |
| 9683 | ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`" |
| 9684 | ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`" |
| 9685 | CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags" |
| 9686 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9687 | ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" |
| 9688 | if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then : |
| 9689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9690 | /* end confdefs.h. */ |
| 9691 | #include <gnutls/gnutls.h> |
| 9692 | int |
| 9693 | main () |
| 9694 | { |
Henri Verbeet | 8c4a297 | 2008-12-30 09:45:20 +0100 | [diff] [blame] | 9695 | typeof(gnutls_mac_get_key_size) *pfunc; |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9696 | ; |
| 9697 | return 0; |
| 9698 | } |
| 9699 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9700 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9702 | $as_echo_n "checking for -lgnutls... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9703 | if test "${ac_cv_lib_soname_gnutls+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9704 | $as_echo_n "(cached) " >&6 |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9705 | else |
| 9706 | ac_check_soname_save_LIBS=$LIBS |
| 9707 | LIBS="-lgnutls $ac_gnutls_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9709 | /* end confdefs.h. */ |
| 9710 | |
| 9711 | /* Override any GCC internal prototype to avoid an error. |
| 9712 | Use char because int might match the return type of a GCC |
| 9713 | builtin and then its argument prototype would still apply. */ |
| 9714 | #ifdef __cplusplus |
| 9715 | extern "C" |
| 9716 | #endif |
| 9717 | char gnutls_global_init (); |
| 9718 | int |
| 9719 | main () |
| 9720 | { |
| 9721 | return gnutls_global_init (); |
| 9722 | ; |
| 9723 | return 0; |
| 9724 | } |
| 9725 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9726 | if ac_fn_c_try_link "$LINENO"; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9727 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9728 | 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] | 9729 | 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'` ;; |
| 9730 | *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9731 | esac |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9732 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9733 | rm -f core conftest.err conftest.$ac_objext \ |
| 9734 | conftest$ac_exeext conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9735 | LIBS=$ac_check_soname_save_LIBS |
| 9736 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9737 | if test "x$ac_cv_lib_soname_gnutls" = "x"; then : |
| 9738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9739 | $as_echo "not found" >&6; } |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9740 | |
| 9741 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9742 | { $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] | 9743 | $as_echo "$ac_cv_lib_soname_gnutls" >&6; } |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9744 | |
| 9745 | cat >>confdefs.h <<_ACEOF |
| 9746 | #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls" |
| 9747 | _ACEOF |
| 9748 | |
| 9749 | GNUTLSINCL="$ac_gnutls_cflags" |
| 9750 | |
| 9751 | fi |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9752 | fi |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9754 | fi |
| 9755 | |
| 9756 | |
| 9757 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9758 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9759 | if test "x$ac_cv_lib_soname_gnutls" = "x"; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9760 | case "x$with_gnutls" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9761 | 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] | 9762 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9763 | *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support. |
| 9764 | This is an error since --with-gnutls was requested." "$LINENO" 5 ;; |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9765 | esac |
| 9766 | fi |
| 9767 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9768 | CURSESLIBS="" |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9769 | if test "$ac_cv_header_ncurses_h" = "yes" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 9770 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9772 | $as_echo_n "checking for -lncurses... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9773 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9774 | $as_echo_n "(cached) " >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9775 | else |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9776 | ac_check_soname_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9777 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9779 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9780 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9781 | /* Override any GCC internal prototype to avoid an error. |
| 9782 | Use char because int might match the return type of a GCC |
| 9783 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9784 | #ifdef __cplusplus |
| 9785 | extern "C" |
| 9786 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9787 | char waddch (); |
| 9788 | int |
| 9789 | main () |
| 9790 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9791 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9792 | ; |
| 9793 | return 0; |
| 9794 | } |
| 9795 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9796 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9797 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9798 | 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] | 9799 | 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'` ;; |
| 9800 | *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9801 | esac |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9802 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9803 | rm -f core conftest.err conftest.$ac_objext \ |
| 9804 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9805 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9806 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9807 | if test "x$ac_cv_lib_soname_ncurses" = "x"; then : |
| 9808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9809 | $as_echo "not found" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9810 | |
| 9811 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9812 | { $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] | 9813 | $as_echo "$ac_cv_lib_soname_ncurses" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9814 | |
| 9815 | cat >>confdefs.h <<_ACEOF |
| 9816 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
| 9817 | _ACEOF |
| 9818 | |
| 9819 | CURSESLIBS="-lncurses" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9820 | fi |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9821 | elif test "$ac_cv_header_curses_h" = "yes" |
| 9822 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9824 | $as_echo_n "checking for -lcurses... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9825 | if test "${ac_cv_lib_soname_curses+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9826 | $as_echo_n "(cached) " >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9827 | else |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9828 | ac_check_soname_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9829 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9831 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9832 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9833 | /* Override any GCC internal prototype to avoid an error. |
| 9834 | Use char because int might match the return type of a GCC |
| 9835 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9836 | #ifdef __cplusplus |
| 9837 | extern "C" |
| 9838 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9839 | char waddch (); |
| 9840 | int |
| 9841 | main () |
| 9842 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9843 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9844 | ; |
| 9845 | return 0; |
| 9846 | } |
| 9847 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9848 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9849 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9850 | 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] | 9851 | 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'` ;; |
| 9852 | *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9853 | esac |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9854 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9855 | rm -f core conftest.err conftest.$ac_objext \ |
| 9856 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9857 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9858 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9859 | if test "x$ac_cv_lib_soname_curses" = "x"; then : |
| 9860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9861 | $as_echo "not found" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9862 | |
| 9863 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9864 | { $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] | 9865 | $as_echo "$ac_cv_lib_soname_curses" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9866 | |
| 9867 | cat >>confdefs.h <<_ACEOF |
| 9868 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
| 9869 | _ACEOF |
| 9870 | |
| 9871 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9872 | fi |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9873 | fi |
| 9874 | ac_save_LIBS="$LIBS" |
| 9875 | LIBS="$LIBS $CURSESLIBS" |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9876 | for ac_func in mousemask |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9877 | do : |
| 9878 | ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask" |
| 9879 | if test "x$ac_cv_func_mousemask" = x""yes; then : |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9880 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9881 | #define HAVE_MOUSEMASK 1 |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9882 | _ACEOF |
| 9883 | |
| 9884 | fi |
| 9885 | done |
| 9886 | |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9887 | LIBS="$ac_save_LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9888 | 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] | 9889 | case "x$with_curses" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9890 | 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] | 9891 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9892 | *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported. |
| 9893 | This is an error since --with-curses was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9894 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9895 | fi |
| 9896 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9897 | if test "x$with_sane" != "xno" |
| 9898 | then |
| 9899 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9900 | # 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] | 9901 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9903 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9904 | if test "${ac_cv_prog_sane_devel+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9905 | $as_echo_n "(cached) " >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9906 | else |
| 9907 | if test -n "$sane_devel"; then |
| 9908 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 9909 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9911 | for as_dir in $PATH |
| 9912 | do |
| 9913 | IFS=$as_save_IFS |
| 9914 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9915 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 9916 | 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] | 9917 | ac_cv_prog_sane_devel="sane-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9918 | $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] | 9919 | break 2 |
| 9920 | fi |
| 9921 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9922 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9923 | IFS=$as_save_IFS |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9924 | |
| 9925 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 9926 | fi |
| 9927 | fi |
| 9928 | sane_devel=$ac_cv_prog_sane_devel |
| 9929 | if test -n "$sane_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9931 | $as_echo "$sane_devel" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9932 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9934 | $as_echo "no" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9935 | fi |
| 9936 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9937 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9938 | if test "$sane_devel" != "no" |
| 9939 | then |
| 9940 | ac_sane_incl="`$sane_devel --cflags`" |
| 9941 | ac_sane_libs="`$sane_devel --ldflags`" |
| 9942 | CPPFLAGS="$CPPFLAGS $ac_sane_incl" |
| 9943 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9944 | ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default" |
| 9945 | if test "x$ac_cv_header_sane_sane_h" = x""yes; then : |
| 9946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9947 | $as_echo_n "checking for -lsane... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9948 | if test "${ac_cv_lib_soname_sane+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9949 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9950 | else |
| 9951 | ac_check_soname_save_LIBS=$LIBS |
Francois Gouget | a9d7bab | 2008-07-20 22:41:41 +0200 | [diff] [blame] | 9952 | LIBS="-lsane $ac_sane_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9954 | /* end confdefs.h. */ |
| 9955 | |
| 9956 | /* Override any GCC internal prototype to avoid an error. |
| 9957 | Use char because int might match the return type of a GCC |
| 9958 | builtin and then its argument prototype would still apply. */ |
| 9959 | #ifdef __cplusplus |
| 9960 | extern "C" |
| 9961 | #endif |
| 9962 | char sane_init (); |
| 9963 | int |
| 9964 | main () |
| 9965 | { |
| 9966 | return sane_init (); |
| 9967 | ; |
| 9968 | return 0; |
| 9969 | } |
| 9970 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9971 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9972 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9973 | 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] | 9974 | 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'` ;; |
| 9975 | *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9976 | esac |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9977 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9978 | rm -f core conftest.err conftest.$ac_objext \ |
| 9979 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9980 | LIBS=$ac_check_soname_save_LIBS |
| 9981 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9982 | if test "x$ac_cv_lib_soname_sane" = "x"; then : |
| 9983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9984 | $as_echo "not found" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9985 | |
| 9986 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9987 | { $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] | 9988 | $as_echo "$ac_cv_lib_soname_sane" >&6; } |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9989 | |
| 9990 | cat >>confdefs.h <<_ACEOF |
| 9991 | #define SONAME_LIBSANE "$ac_cv_lib_soname_sane" |
| 9992 | _ACEOF |
| 9993 | |
| 9994 | SANEINCL="$ac_sane_incl" |
| 9995 | |
| 9996 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9997 | fi |
| 9998 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9999 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10000 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10001 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10002 | if test "x$ac_cv_lib_soname_sane" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10003 | case "x$with_sane" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10004 | 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] | 10005 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10006 | *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported. |
| 10007 | This is an error since --with-sane was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10008 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10009 | fi |
| 10010 | |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 10011 | if test "x$with_v4l" != "xno" |
| 10012 | then |
| 10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5 |
| 10014 | $as_echo_n "checking for -lv4l1... " >&6; } |
| 10015 | if test "${ac_cv_lib_soname_v4l1+set}" = set; then : |
| 10016 | $as_echo_n "(cached) " >&6 |
| 10017 | else |
| 10018 | ac_check_soname_save_LIBS=$LIBS |
| 10019 | LIBS="-lv4l1 $LIBS" |
| 10020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10021 | /* end confdefs.h. */ |
| 10022 | |
| 10023 | /* Override any GCC internal prototype to avoid an error. |
| 10024 | Use char because int might match the return type of a GCC |
| 10025 | builtin and then its argument prototype would still apply. */ |
| 10026 | #ifdef __cplusplus |
| 10027 | extern "C" |
| 10028 | #endif |
| 10029 | char v4l1_open (); |
| 10030 | int |
| 10031 | main () |
| 10032 | { |
| 10033 | return v4l1_open (); |
| 10034 | ; |
| 10035 | return 0; |
| 10036 | } |
| 10037 | _ACEOF |
| 10038 | if ac_fn_c_try_link "$LINENO"; then : |
| 10039 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10040 | 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] | 10041 | 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'` ;; |
| 10042 | *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10043 | esac |
| 10044 | fi |
| 10045 | rm -f core conftest.err conftest.$ac_objext \ |
| 10046 | conftest$ac_exeext conftest.$ac_ext |
| 10047 | LIBS=$ac_check_soname_save_LIBS |
| 10048 | fi |
| 10049 | if test "x$ac_cv_lib_soname_v4l1" = "x"; then : |
| 10050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 10051 | $as_echo "not found" >&6; } |
| 10052 | |
| 10053 | else |
| 10054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5 |
| 10055 | $as_echo "$ac_cv_lib_soname_v4l1" >&6; } |
| 10056 | |
| 10057 | cat >>confdefs.h <<_ACEOF |
| 10058 | #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1" |
| 10059 | _ACEOF |
| 10060 | |
| 10061 | |
| 10062 | fi |
| 10063 | fi |
| 10064 | if test "x$ac_cv_lib_soname_v4l1" = "x"; then : |
| 10065 | case "x$with_v4l" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10066 | 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] | 10067 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10068 | *) as_fn_error $? "libv4l ${notice_platform}development files not found. |
| 10069 | This is an error since --with-v4l was requested." "$LINENO" 5 ;; |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 10070 | esac |
| 10071 | fi |
| 10072 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10073 | if test "x$with_gphoto" != "xno" |
| 10074 | then |
| 10075 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10076 | # 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] | 10077 | set dummy gphoto2-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10079 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10080 | if test "${ac_cv_prog_gphoto2_devel+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10081 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10082 | else |
| 10083 | if test -n "$gphoto2_devel"; then |
| 10084 | ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test. |
| 10085 | else |
| 10086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10087 | for as_dir in $PATH |
| 10088 | do |
| 10089 | IFS=$as_save_IFS |
| 10090 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10091 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10092 | 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] | 10093 | ac_cv_prog_gphoto2_devel="gphoto2-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10094 | $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] | 10095 | break 2 |
| 10096 | fi |
| 10097 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10098 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10099 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10100 | |
| 10101 | test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no" |
| 10102 | fi |
| 10103 | fi |
| 10104 | gphoto2_devel=$ac_cv_prog_gphoto2_devel |
| 10105 | if test -n "$gphoto2_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10107 | $as_echo "$gphoto2_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10108 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10110 | $as_echo "no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10111 | fi |
| 10112 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10113 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10114 | # 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] | 10115 | set dummy gphoto2-port-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10117 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10118 | if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10119 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10120 | else |
| 10121 | if test -n "$gphoto2port_devel"; then |
| 10122 | ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test. |
| 10123 | else |
| 10124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10125 | for as_dir in $PATH |
| 10126 | do |
| 10127 | IFS=$as_save_IFS |
| 10128 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10129 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10130 | 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] | 10131 | ac_cv_prog_gphoto2port_devel="gphoto2-port-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10132 | $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] | 10133 | break 2 |
| 10134 | fi |
| 10135 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10136 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10137 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10138 | |
| 10139 | test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no" |
| 10140 | fi |
| 10141 | fi |
| 10142 | gphoto2port_devel=$ac_cv_prog_gphoto2port_devel |
| 10143 | if test -n "$gphoto2port_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10145 | $as_echo "$gphoto2port_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10146 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10148 | $as_echo "no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10149 | fi |
| 10150 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10151 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10152 | if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no" |
| 10153 | then |
| 10154 | ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`" |
| 10155 | ac_gphoto2_libs="" |
| 10156 | for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs` |
| 10157 | do |
| 10158 | case "$i" in |
| 10159 | -L/usr/lib|-L/usr/lib64) ;; |
| 10160 | -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";; |
| 10161 | esac |
| 10162 | done |
| 10163 | CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl" |
| 10164 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 10165 | ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10166 | ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default" |
| 10167 | if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then : |
| 10168 | { $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] | 10169 | $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10170 | if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10171 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10172 | else |
| 10173 | ac_check_lib_save_LIBS=$LIBS |
Francois Gouget | 4bc03fe | 2008-07-21 17:10:45 +0200 | [diff] [blame] | 10174 | LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10176 | /* end confdefs.h. */ |
| 10177 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10178 | /* Override any GCC internal prototype to avoid an error. |
| 10179 | Use char because int might match the return type of a GCC |
| 10180 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10181 | #ifdef __cplusplus |
| 10182 | extern "C" |
| 10183 | #endif |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10184 | char gp_camera_new (); |
| 10185 | int |
| 10186 | main () |
| 10187 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10188 | return gp_camera_new (); |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10189 | ; |
| 10190 | return 0; |
| 10191 | } |
| 10192 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10193 | if ac_fn_c_try_link "$LINENO"; then : |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10194 | ac_cv_lib_gphoto2_gp_camera_new=yes |
| 10195 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10196 | ac_cv_lib_gphoto2_gp_camera_new=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10197 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10198 | rm -f core conftest.err conftest.$ac_objext \ |
| 10199 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10200 | LIBS=$ac_check_lib_save_LIBS |
| 10201 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10202 | { $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] | 10203 | $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10204 | 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] | 10205 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10206 | $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10207 | |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10208 | GPHOTO2LIBS="$ac_gphoto2_libs" |
| 10209 | |
| 10210 | GPHOTO2INCL="$ac_gphoto2_incl" |
| 10211 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10212 | fi |
| 10213 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10214 | fi |
| 10215 | |
| 10216 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10217 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10218 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10219 | if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10220 | case "x$with_gphoto" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10221 | 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] | 10222 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10223 | *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported. |
| 10224 | This is an error since --with-gphoto was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10225 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10226 | fi |
| 10227 | |
| 10228 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10229 | if test "$ac_cv_header_resolv_h" = "yes" |
| 10230 | then |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10231 | ac_save_LIBS="$LIBS" |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10232 | for lib in '' -lresolv |
| 10233 | do |
| 10234 | LIBS="$lib $ac_save_LIBS" |
| 10235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10236 | /* end confdefs.h. */ |
Rob Shearman | ba34921 | 2009-01-02 12:12:06 +0000 | [diff] [blame] | 10237 | #ifdef HAVE_NETINET_IN_H |
| 10238 | #include <netinet/in.h> |
| 10239 | #endif |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10240 | #include <resolv.h> |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10241 | int |
| 10242 | main () |
| 10243 | { |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10244 | res_query("foo",ns_c_in,0,0,0); |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10245 | ; |
| 10246 | return 0; |
| 10247 | } |
| 10248 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10249 | if ac_fn_c_try_link "$LINENO"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10250 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10251 | $as_echo "#define HAVE_RESOLV 1" >>confdefs.h |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10252 | |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10253 | RESOLVLIBS="$lib" |
| 10254 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10255 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10256 | rm -f core conftest.err conftest.$ac_objext \ |
| 10257 | conftest$ac_exeext conftest.$ac_ext |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10258 | if test "${RESOLVLIBS+set}" = set; then |
| 10259 | break |
| 10260 | fi |
| 10261 | done |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10262 | LIBS="$ac_save_LIBS" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10263 | fi |
| 10264 | |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10265 | LCMSLIBS="" |
| 10266 | |
| 10267 | if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes" |
| 10268 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10269 | { $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] | 10270 | $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10271 | if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10272 | $as_echo_n "(cached) " >&6 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10273 | else |
| 10274 | ac_check_lib_save_LIBS=$LIBS |
| 10275 | LIBS="-llcms $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10277 | /* end confdefs.h. */ |
| 10278 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10279 | /* Override any GCC internal prototype to avoid an error. |
| 10280 | Use char because int might match the return type of a GCC |
| 10281 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10282 | #ifdef __cplusplus |
| 10283 | extern "C" |
| 10284 | #endif |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10285 | char cmsOpenProfileFromFile (); |
| 10286 | int |
| 10287 | main () |
| 10288 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10289 | return cmsOpenProfileFromFile (); |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10290 | ; |
| 10291 | return 0; |
| 10292 | } |
| 10293 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10294 | if ac_fn_c_try_link "$LINENO"; then : |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10295 | ac_cv_lib_lcms_cmsOpenProfileFromFile=yes |
| 10296 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10297 | ac_cv_lib_lcms_cmsOpenProfileFromFile=no |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10298 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10299 | rm -f core conftest.err conftest.$ac_objext \ |
| 10300 | conftest$ac_exeext conftest.$ac_ext |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10301 | LIBS=$ac_check_lib_save_LIBS |
| 10302 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10303 | { $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] | 10304 | $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10305 | if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then : |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10306 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10307 | $as_echo "#define HAVE_LCMS 1" >>confdefs.h |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10308 | |
| 10309 | LCMSLIBS="-llcms" |
| 10310 | fi |
| 10311 | |
| 10312 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10313 | if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10314 | case "x$with_cms" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10315 | 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] | 10316 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10317 | *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported. |
| 10318 | This is an error since --with-cms was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10319 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10320 | fi |
| 10321 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10322 | if test "x$with_freetype" != "xno" |
| 10323 | then |
| 10324 | for ac_prog in freetype-config freetype2-config |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10325 | do |
| 10326 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10327 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10329 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10330 | if test "${ac_cv_prog_ft_devel+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10331 | $as_echo_n "(cached) " >&6 |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10332 | else |
| 10333 | if test -n "$ft_devel"; then |
| 10334 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 10335 | else |
| 10336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10337 | for as_dir in $PATH |
| 10338 | do |
| 10339 | IFS=$as_save_IFS |
| 10340 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10341 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10342 | 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] | 10343 | ac_cv_prog_ft_devel="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10344 | $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] | 10345 | break 2 |
| 10346 | fi |
| 10347 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10348 | done |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10349 | IFS=$as_save_IFS |
| 10350 | |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10351 | fi |
| 10352 | fi |
| 10353 | ft_devel=$ac_cv_prog_ft_devel |
| 10354 | if test -n "$ft_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10356 | $as_echo "$ft_devel" >&6; } |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10357 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10359 | $as_echo "no" >&6; } |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10360 | fi |
| 10361 | |
| 10362 | |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10363 | test -n "$ft_devel" && break |
| 10364 | done |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10365 | test -n "$ft_devel" || ft_devel="no" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10366 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10367 | if test "$ft_devel" != "no" |
| 10368 | then |
| 10369 | ac_freetype_incl=`$ft_devel --cflags` |
| 10370 | ac_freetype_libs=`$ft_devel --libs` |
| 10371 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 10372 | ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10374 | $as_echo_n "checking for -lfreetype... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10375 | if test "${ac_cv_lib_soname_freetype+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10376 | $as_echo_n "(cached) " >&6 |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10377 | else |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10378 | ac_check_soname_save_LIBS=$LIBS |
| 10379 | LIBS="-lfreetype $ac_freetype_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10381 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10382 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10383 | /* Override any GCC internal prototype to avoid an error. |
| 10384 | Use char because int might match the return type of a GCC |
| 10385 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10386 | #ifdef __cplusplus |
| 10387 | extern "C" |
| 10388 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10389 | char FT_Init_FreeType (); |
| 10390 | int |
| 10391 | main () |
| 10392 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10393 | return FT_Init_FreeType (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10394 | ; |
| 10395 | return 0; |
| 10396 | } |
| 10397 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10398 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10399 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10400 | 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] | 10401 | 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'` ;; |
| 10402 | *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10403 | esac |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10404 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10405 | rm -f core conftest.err conftest.$ac_objext \ |
| 10406 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10407 | LIBS=$ac_check_soname_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10408 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10409 | if test "x$ac_cv_lib_soname_freetype" = "x"; then : |
| 10410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10411 | $as_echo "not found" >&6; } |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10412 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10413 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10414 | { $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] | 10415 | $as_echo "$ac_cv_lib_soname_freetype" >&6; } |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10416 | |
| 10417 | cat >>confdefs.h <<_ACEOF |
| 10418 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 10419 | _ACEOF |
| 10420 | |
| 10421 | ft_lib=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10422 | fi |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10423 | if test "$ft_lib" = "yes" |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10424 | then |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10425 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10426 | CPPFLAGS="$ac_freetype_incl $CPPFLAGS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10427 | for ac_header in ft2build.h \ |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 10428 | freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10429 | freetype/ftglyph.h \ |
Dmitry Timoshkov | b0d1590 | 2007-09-20 19:10:31 +0900 | [diff] [blame] | 10430 | freetype/fttypes.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10431 | freetype/tttables.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10432 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 10433 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10434 | freetype/ftoutln.h \ |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 10435 | freetype/ftwinfnt.h \ |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 10436 | freetype/ftmodapi.h \ |
ByeongSik Jeon | 028617b | 2008-12-10 23:50:44 +0900 | [diff] [blame] | 10437 | freetype/ftlcdfil.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10438 | freetype/internal/sfnt.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10439 | do : |
| 10440 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10441 | 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] | 10442 | # include <ft2build.h> |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10443 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10444 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10445 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10446 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10447 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10448 | _ACEOF |
| 10449 | |
| 10450 | fi |
| 10451 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10452 | done |
| 10453 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10455 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10456 | #include <ft2build.h> |
| 10457 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10458 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10459 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10460 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10461 | $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10462 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10463 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10464 | else |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10465 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10466 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10467 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10468 | ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h> |
| 10469 | " |
| 10470 | if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then : |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 10471 | |
| 10472 | cat >>confdefs.h <<_ACEOF |
| 10473 | #define HAVE_FT_TRUETYPEENGINETYPE 1 |
| 10474 | _ACEOF |
| 10475 | |
| 10476 | |
| 10477 | fi |
| 10478 | |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 10479 | ac_save_CFLAGS="$CFLAGS" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10480 | CFLAGS="$CFLAGS $ac_freetype_libs" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10481 | for ac_func in FT_Load_Sfnt_Table |
| 10482 | do : |
| 10483 | ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table" |
| 10484 | 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] | 10485 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10486 | #define HAVE_FT_LOAD_SFNT_TABLE 1 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 10487 | _ACEOF |
| 10488 | |
| 10489 | fi |
| 10490 | done |
| 10491 | |
| 10492 | CFLAGS="$ac_save_CFLAGS" |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10493 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10494 | 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] | 10495 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10496 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10497 | $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10498 | |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10499 | FREETYPELIBS="$ac_freetype_libs" |
| 10500 | |
| 10501 | FREETYPEINCL="$ac_freetype_incl" |
| 10502 | |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10503 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10504 | fi |
| 10505 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10506 | if test "x$FREETYPELIBS" = "x"; then : |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10507 | case "x$with_freetype" in |
| 10508 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10509 | *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built. |
| 10510 | Use the --without-freetype option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10511 | esac |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10512 | fi |
Alexandre Julliard | 6de0af1 | 2008-08-25 14:41:03 +0200 | [diff] [blame] | 10513 | test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no} |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10514 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10515 | { $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] | 10516 | $as_echo_n "checking for parport header/ppdev.h... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10517 | if test "${ac_cv_c_ppdev+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10518 | $as_echo_n "(cached) " >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 10519 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10521 | /* end confdefs.h. */ |
Yann Droneaud | dd33ee9 | 2010-03-08 14:46:46 +0100 | [diff] [blame] | 10522 | #ifdef HAVE_SYS_IOCTL_H |
| 10523 | # include <sys/ioctl.h> |
| 10524 | #endif |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10525 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10526 | int |
| 10527 | main () |
| 10528 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10529 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10530 | ; |
| 10531 | return 0; |
| 10532 | } |
| 10533 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10534 | if ac_fn_c_try_compile "$LINENO"; then : |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10535 | ac_cv_c_ppdev="yes" |
| 10536 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10537 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10538 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10540 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10541 | { $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] | 10542 | $as_echo "$ac_cv_c_ppdev" >&6; } |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10543 | if test "$ac_cv_c_ppdev" = "yes" |
| 10544 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10545 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10546 | $as_echo "#define HAVE_PPDEV 1" >>confdefs.h |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10547 | |
| 10548 | fi |
| 10549 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10550 | ac_wine_check_funcs_save_LIBS="$LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10551 | LIBS="$LIBS $LIBPTHREAD" |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 10552 | for ac_func in \ |
Tijl Coosemans | fc8172f | 2006-08-05 23:31:07 +0200 | [diff] [blame] | 10553 | pthread_attr_get_np \ |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 10554 | pthread_getattr_np \ |
| 10555 | pthread_get_stackaddr_np \ |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10556 | pthread_get_stacksize_np |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10557 | do : |
| 10558 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10559 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10560 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10561 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10562 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10563 | _ACEOF |
| 10564 | |
| 10565 | fi |
| 10566 | done |
| 10567 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10568 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10569 | |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10570 | if test "$ac_cv_header_zlib_h" = "yes" |
| 10571 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10572 | { $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] | 10573 | $as_echo_n "checking for inflate in -lz... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10574 | if test "${ac_cv_lib_z_inflate+set}" = set; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10575 | $as_echo_n "(cached) " >&6 |
| 10576 | else |
| 10577 | ac_check_lib_save_LIBS=$LIBS |
| 10578 | LIBS="-lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10580 | /* end confdefs.h. */ |
| 10581 | |
| 10582 | /* Override any GCC internal prototype to avoid an error. |
| 10583 | Use char because int might match the return type of a GCC |
| 10584 | builtin and then its argument prototype would still apply. */ |
| 10585 | #ifdef __cplusplus |
| 10586 | extern "C" |
| 10587 | #endif |
| 10588 | char inflate (); |
| 10589 | int |
| 10590 | main () |
| 10591 | { |
| 10592 | return inflate (); |
| 10593 | ; |
| 10594 | return 0; |
| 10595 | } |
| 10596 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10597 | if ac_fn_c_try_link "$LINENO"; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10598 | ac_cv_lib_z_inflate=yes |
| 10599 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10600 | ac_cv_lib_z_inflate=no |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10601 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10602 | rm -f core conftest.err conftest.$ac_objext \ |
| 10603 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10604 | LIBS=$ac_check_lib_save_LIBS |
| 10605 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10606 | { $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] | 10607 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10608 | if test "x$ac_cv_lib_z_inflate" = x""yes; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10609 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10610 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10611 | |
| 10612 | ZLIB="-lz" |
| 10613 | |
| 10614 | fi |
| 10615 | |
| 10616 | fi |
| 10617 | |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10618 | if test "x$enable_tools" != xno |
| 10619 | then |
| 10620 | if test "$ac_cv_header_gettext_po_h" = "yes" |
| 10621 | then |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5 |
| 10623 | $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; } |
| 10624 | if test "${ac_cv_lib_gettextpo_po_message_msgctxt+set}" = set; then : |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10625 | $as_echo_n "(cached) " >&6 |
| 10626 | else |
| 10627 | ac_check_lib_save_LIBS=$LIBS |
| 10628 | LIBS="-lgettextpo $LIBS" |
| 10629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10630 | /* end confdefs.h. */ |
| 10631 | |
| 10632 | /* Override any GCC internal prototype to avoid an error. |
| 10633 | Use char because int might match the return type of a GCC |
| 10634 | builtin and then its argument prototype would still apply. */ |
| 10635 | #ifdef __cplusplus |
| 10636 | extern "C" |
| 10637 | #endif |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10638 | char po_message_msgctxt (); |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10639 | int |
| 10640 | main () |
| 10641 | { |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10642 | return po_message_msgctxt (); |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10643 | ; |
| 10644 | return 0; |
| 10645 | } |
| 10646 | _ACEOF |
| 10647 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10648 | ac_cv_lib_gettextpo_po_message_msgctxt=yes |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10649 | else |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10650 | ac_cv_lib_gettextpo_po_message_msgctxt=no |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10651 | fi |
| 10652 | rm -f core conftest.err conftest.$ac_objext \ |
| 10653 | conftest$ac_exeext conftest.$ac_ext |
| 10654 | LIBS=$ac_check_lib_save_LIBS |
| 10655 | fi |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5 |
| 10657 | $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; } |
| 10658 | 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] | 10659 | |
| 10660 | $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h |
| 10661 | |
| 10662 | LIBGETTEXTPO="-lgettextpo" |
| 10663 | |
| 10664 | fi |
| 10665 | |
| 10666 | fi |
| 10667 | if test "x$LIBGETTEXTPO" = "x"; then : |
| 10668 | case "x$with_gettextpo" in |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10669 | 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] | 10670 | xno) ;; |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10671 | *) 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] | 10672 | This is an error since --with-gettextpo was requested." "$LINENO" 5 ;; |
| 10673 | esac |
| 10674 | fi |
| 10675 | fi |
| 10676 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10677 | if test "x$with_esd" != xno |
| 10678 | then |
| 10679 | save_CFLAGS="$CFLAGS" |
| 10680 | # 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] | 10681 | set dummy esd-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10683 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10684 | if test "${ac_cv_path_ESDCONFIG+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10685 | $as_echo_n "(cached) " >&6 |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10686 | else |
| 10687 | case $ESDCONFIG in |
| 10688 | [\\/]* | ?:[\\/]*) |
| 10689 | ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path. |
| 10690 | ;; |
| 10691 | *) |
| 10692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10693 | for as_dir in $PATH |
| 10694 | do |
| 10695 | IFS=$as_save_IFS |
| 10696 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10697 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10698 | 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] | 10699 | ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10700 | $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] | 10701 | break 2 |
| 10702 | fi |
| 10703 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10704 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10705 | IFS=$as_save_IFS |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10706 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10707 | test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no" |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10708 | ;; |
| 10709 | esac |
| 10710 | fi |
| 10711 | ESDCONFIG=$ac_cv_path_ESDCONFIG |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10712 | if test -n "$ESDCONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10714 | $as_echo "$ESDCONFIG" >&6; } |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10715 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10717 | $as_echo "no" >&6; } |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10718 | fi |
| 10719 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10720 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10721 | if test "x$ESDCONFIG" != "xno" |
| 10722 | then |
| 10723 | ac_esd_incl="" |
| 10724 | for i in `$ESDCONFIG --cflags` |
| 10725 | do |
| 10726 | case "$i" in |
| 10727 | -I*) ac_esd_incl="$ac_esd_incl $i";; |
| 10728 | esac |
| 10729 | done |
| 10730 | ac_esd_libs=`$ESDCONFIG --libs` |
| 10731 | CFLAGS="$CFLAGS $ac_esd_incl" |
| 10732 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 10733 | ac_esd_libs=${ac_esd_libs:-"-lesd"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10734 | ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default" |
| 10735 | if test "x$ac_cv_header_esd_h" = x""yes; then : |
| 10736 | { $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] | 10737 | $as_echo_n "checking for esd_open_sound in -lesd... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10738 | if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10739 | $as_echo_n "(cached) " >&6 |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10740 | else |
| 10741 | ac_check_lib_save_LIBS=$LIBS |
Francois Gouget | e9b1a40 | 2008-07-21 23:41:21 +0200 | [diff] [blame] | 10742 | LIBS="-lesd $ac_esd_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10744 | /* end confdefs.h. */ |
| 10745 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10746 | /* Override any GCC internal prototype to avoid an error. |
| 10747 | Use char because int might match the return type of a GCC |
| 10748 | builtin and then its argument prototype would still apply. */ |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10749 | #ifdef __cplusplus |
| 10750 | extern "C" |
| 10751 | #endif |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10752 | char esd_open_sound (); |
| 10753 | int |
| 10754 | main () |
| 10755 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10756 | return esd_open_sound (); |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10757 | ; |
| 10758 | return 0; |
| 10759 | } |
| 10760 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10761 | if ac_fn_c_try_link "$LINENO"; then : |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10762 | ac_cv_lib_esd_esd_open_sound=yes |
| 10763 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10764 | ac_cv_lib_esd_esd_open_sound=no |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10765 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10766 | rm -f core conftest.err conftest.$ac_objext \ |
| 10767 | conftest$ac_exeext conftest.$ac_ext |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10768 | LIBS=$ac_check_lib_save_LIBS |
| 10769 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10770 | { $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] | 10771 | $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10772 | 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] | 10773 | ESDINCL="$ac_esd_incl" |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10774 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10775 | ESDLIBS="$ac_esd_libs" |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10776 | |
| 10777 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10778 | $as_echo "#define HAVE_ESD 1" >>confdefs.h |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10779 | |
| 10780 | fi |
| 10781 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10782 | fi |
| 10783 | |
| 10784 | |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10785 | CFLAGS="$save_CFLAGS" |
| 10786 | fi |
| 10787 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10788 | if test "x$with_gstreamer" != "xno" |
| 10789 | then |
| 10790 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10791 | if test "$PKG_CONFIG" != "false"; then |
| 10792 | ac_gst_incl="" |
| 10793 | for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null` |
| 10794 | do |
| 10795 | case "$i" in |
| 10796 | -I*) ac_gst_incl="$ac_gst_incl $i";; |
| 10797 | esac |
| 10798 | done |
| 10799 | ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`" |
| 10800 | CPPFLAGS="$CPPFLAGS $ac_gst_incl" |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10801 | ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default" |
| 10802 | if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then : |
| 10803 | 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] | 10804 | 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] | 10805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5 |
| 10806 | $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; } |
| 10807 | if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then : |
| 10808 | $as_echo_n "(cached) " >&6 |
| 10809 | else |
| 10810 | ac_check_lib_save_LIBS=$LIBS |
| 10811 | LIBS="-lgstreamer-0.10 $LIBS" |
| 10812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10813 | /* end confdefs.h. */ |
| 10814 | |
| 10815 | /* Override any GCC internal prototype to avoid an error. |
| 10816 | Use char because int might match the return type of a GCC |
| 10817 | builtin and then its argument prototype would still apply. */ |
| 10818 | #ifdef __cplusplus |
| 10819 | extern "C" |
| 10820 | #endif |
| 10821 | char gst_pad_get_caps_reffed (); |
| 10822 | int |
| 10823 | main () |
| 10824 | { |
| 10825 | return gst_pad_get_caps_reffed (); |
| 10826 | ; |
| 10827 | return 0; |
| 10828 | } |
| 10829 | _ACEOF |
| 10830 | if ac_fn_c_try_link "$LINENO"; then : |
| 10831 | ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes |
| 10832 | else |
| 10833 | ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no |
| 10834 | fi |
| 10835 | rm -f core conftest.err conftest.$ac_objext \ |
| 10836 | conftest$ac_exeext conftest.$ac_ext |
| 10837 | LIBS=$ac_check_lib_save_LIBS |
| 10838 | fi |
| 10839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5 |
| 10840 | $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; } |
| 10841 | 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] | 10842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5 |
| 10843 | $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; } |
| 10844 | if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then : |
| 10845 | $as_echo_n "(cached) " >&6 |
| 10846 | else |
| 10847 | ac_check_lib_save_LIBS=$LIBS |
| 10848 | LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS" |
| 10849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10850 | /* end confdefs.h. */ |
| 10851 | |
| 10852 | /* Override any GCC internal prototype to avoid an error. |
| 10853 | Use char because int might match the return type of a GCC |
| 10854 | builtin and then its argument prototype would still apply. */ |
| 10855 | #ifdef __cplusplus |
| 10856 | extern "C" |
| 10857 | #endif |
| 10858 | char gst_app_buffer_new (); |
| 10859 | int |
| 10860 | main () |
| 10861 | { |
| 10862 | return gst_app_buffer_new (); |
| 10863 | ; |
| 10864 | return 0; |
| 10865 | } |
| 10866 | _ACEOF |
| 10867 | if ac_fn_c_try_link "$LINENO"; then : |
| 10868 | ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes |
| 10869 | else |
| 10870 | ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no |
| 10871 | fi |
| 10872 | rm -f core conftest.err conftest.$ac_objext \ |
| 10873 | conftest$ac_exeext conftest.$ac_ext |
| 10874 | LIBS=$ac_check_lib_save_LIBS |
| 10875 | fi |
| 10876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5 |
| 10877 | $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; } |
| 10878 | if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then : |
| 10879 | GSTREAMER_LIBS="$ac_gst_libs" |
| 10880 | |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10881 | GSTREAMER_INCL="$ac_gst_incl" |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10882 | |
| 10883 | fi |
| 10884 | |
| 10885 | fi |
| 10886 | |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10887 | fi |
| 10888 | |
| 10889 | |
| 10890 | fi |
| 10891 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10892 | |
| 10893 | fi |
| 10894 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10895 | fi |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 10896 | 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] | 10897 | case "x$with_gstreamer" in |
Detlef Riekenberg | 654bb4a | 2010-12-12 22:48:56 +0100 | [diff] [blame] | 10898 | 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] | 10899 | xno) ;; |
Detlef Riekenberg | 654bb4a | 2010-12-12 22:48:56 +0100 | [diff] [blame] | 10900 | *) 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] | 10901 | This is an error since --with-gstreamer was requested." "$LINENO" 5 ;; |
| 10902 | esac |
| 10903 | fi |
| 10904 | test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no} |
| 10905 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10906 | ALSALIBS="" |
| 10907 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10908 | 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] | 10909 | then |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5 |
| 10911 | $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; } |
| 10912 | 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] | 10913 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10914 | else |
| 10915 | ac_check_lib_save_LIBS=$LIBS |
| 10916 | LIBS="-lasound $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10918 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10919 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10920 | /* Override any GCC internal prototype to avoid an error. |
| 10921 | Use char because int might match the return type of a GCC |
| 10922 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10923 | #ifdef __cplusplus |
| 10924 | extern "C" |
| 10925 | #endif |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10926 | char snd_pcm_hw_params_get_access_mask (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10927 | int |
| 10928 | main () |
| 10929 | { |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10930 | return snd_pcm_hw_params_get_access_mask (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10931 | ; |
| 10932 | return 0; |
| 10933 | } |
| 10934 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10935 | if ac_fn_c_try_link "$LINENO"; then : |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10936 | ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10937 | else |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10938 | ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10939 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10940 | rm -f core conftest.err conftest.$ac_objext \ |
| 10941 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10942 | LIBS=$ac_check_lib_save_LIBS |
| 10943 | fi |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5 |
| 10945 | $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; } |
| 10946 | 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] | 10947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10948 | /* end confdefs.h. */ |
| 10949 | #ifdef HAVE_ALSA_ASOUNDLIB_H |
| 10950 | #include <alsa/asoundlib.h> |
| 10951 | #elif defined(HAVE_SYS_ASOUNDLIB_H) |
| 10952 | #include <sys/asoundlib.h> |
| 10953 | #endif |
| 10954 | int |
| 10955 | main () |
| 10956 | { |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10957 | int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL) |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10958 | ; |
| 10959 | return 0; |
| 10960 | } |
| 10961 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10962 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10963 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10964 | $as_echo "#define HAVE_ALSA 1" >>confdefs.h |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10965 | |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10966 | ALSALIBS="-lasound" |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10967 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10969 | fi |
| 10970 | |
| 10971 | fi |
| 10972 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10973 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 10974 | if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes" |
| 10975 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10977 | $as_echo_n "checking for -lcapi20... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10978 | if test "${ac_cv_lib_soname_capi20+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10979 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10980 | else |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10981 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10982 | LIBS="-lcapi20 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10984 | /* end confdefs.h. */ |
| 10985 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10986 | /* Override any GCC internal prototype to avoid an error. |
| 10987 | Use char because int might match the return type of a GCC |
| 10988 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10989 | #ifdef __cplusplus |
| 10990 | extern "C" |
| 10991 | #endif |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10992 | char capi20_register (); |
| 10993 | int |
| 10994 | main () |
| 10995 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10996 | return capi20_register (); |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10997 | ; |
| 10998 | return 0; |
| 10999 | } |
| 11000 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11001 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11002 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11003 | 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] | 11004 | 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'` ;; |
| 11005 | *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11006 | esac |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11007 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11008 | rm -f core conftest.err conftest.$ac_objext \ |
| 11009 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11010 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11011 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11012 | if test "x$ac_cv_lib_soname_capi20" = "x"; then : |
| 11013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11014 | $as_echo "not found" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11015 | |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11016 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11017 | { $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] | 11018 | $as_echo "$ac_cv_lib_soname_capi20" >&6; } |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11019 | |
| 11020 | cat >>confdefs.h <<_ACEOF |
| 11021 | #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20" |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11022 | _ACEOF |
| 11023 | |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11024 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11025 | fi |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11026 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11027 | if test "x$ac_cv_lib_soname_capi20" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11028 | case "x$with_capi" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11029 | 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] | 11030 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11031 | *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported. |
| 11032 | This is an error since --with-capi was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11033 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 11034 | fi |
| 11035 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11036 | CUPSINCL="" |
| 11037 | |
| 11038 | if test "x$with_cups" != "xno" |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11039 | then |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11040 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11041 | ac_cups_cflags=`cups-config --cflags 2>/dev/null` |
Alexandre Julliard | a991a56 | 2008-07-28 12:04:46 +0200 | [diff] [blame] | 11042 | ac_cups_libs=`cups-config --ldflags 2>/dev/null` |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11043 | CPPFLAGS="$CPPFLAGS $ac_cups_cflags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11044 | for ac_header in cups/cups.h |
| 11045 | do : |
| 11046 | ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default" |
| 11047 | if test "x$ac_cv_header_cups_cups_h" = x""yes; then : |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11048 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11049 | #define HAVE_CUPS_CUPS_H 1 |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11050 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11052 | $as_echo_n "checking for -lcups... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11053 | if test "${ac_cv_lib_soname_cups+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11054 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11055 | else |
| 11056 | ac_check_soname_save_LIBS=$LIBS |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11057 | LIBS="-lcups $ac_cups_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11059 | /* end confdefs.h. */ |
| 11060 | |
| 11061 | /* Override any GCC internal prototype to avoid an error. |
| 11062 | Use char because int might match the return type of a GCC |
| 11063 | builtin and then its argument prototype would still apply. */ |
| 11064 | #ifdef __cplusplus |
| 11065 | extern "C" |
| 11066 | #endif |
| 11067 | char cupsGetDefault (); |
| 11068 | int |
| 11069 | main () |
| 11070 | { |
| 11071 | return cupsGetDefault (); |
| 11072 | ; |
| 11073 | return 0; |
| 11074 | } |
| 11075 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11076 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11077 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11078 | 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] | 11079 | 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'` ;; |
| 11080 | *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11081 | esac |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11082 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11083 | rm -f core conftest.err conftest.$ac_objext \ |
| 11084 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11085 | LIBS=$ac_check_soname_save_LIBS |
| 11086 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11087 | if test "x$ac_cv_lib_soname_cups" = "x"; then : |
| 11088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11089 | $as_echo "not found" >&6; } |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11090 | |
| 11091 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11092 | { $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] | 11093 | $as_echo "$ac_cv_lib_soname_cups" >&6; } |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11094 | |
| 11095 | cat >>confdefs.h <<_ACEOF |
| 11096 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 11097 | _ACEOF |
| 11098 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11099 | CUPSINCL="$ac_cups_cflags" |
| 11100 | fi |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11101 | fi |
| 11102 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11103 | done |
| 11104 | |
| 11105 | CPPFLAGS="$ac_save_CPPFLAGS" |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 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 : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11108 | case "x$with_cups" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11109 | 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] | 11110 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11111 | *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported. |
| 11112 | This is an error since --with-cups was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11113 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 11114 | fi |
| 11115 | |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11116 | if test "$ac_cv_header_jack_jack_h" = "yes" |
| 11117 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11119 | $as_echo_n "checking for -ljack... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11120 | if test "${ac_cv_lib_soname_jack+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11121 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11122 | else |
| 11123 | ac_check_soname_save_LIBS=$LIBS |
| 11124 | LIBS="-ljack $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11126 | /* end confdefs.h. */ |
| 11127 | |
| 11128 | /* Override any GCC internal prototype to avoid an error. |
| 11129 | Use char because int might match the return type of a GCC |
| 11130 | builtin and then its argument prototype would still apply. */ |
| 11131 | #ifdef __cplusplus |
| 11132 | extern "C" |
| 11133 | #endif |
| 11134 | char jack_client_new (); |
| 11135 | int |
| 11136 | main () |
| 11137 | { |
| 11138 | return jack_client_new (); |
| 11139 | ; |
| 11140 | return 0; |
| 11141 | } |
| 11142 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11143 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11144 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11145 | 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] | 11146 | 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'` ;; |
| 11147 | *) 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] | 11148 | esac |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11149 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11150 | rm -f core conftest.err conftest.$ac_objext \ |
| 11151 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11152 | LIBS=$ac_check_soname_save_LIBS |
| 11153 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11154 | if test "x$ac_cv_lib_soname_jack" = "x"; then : |
| 11155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11156 | $as_echo "not found" >&6; } |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11157 | |
| 11158 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11159 | { $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] | 11160 | $as_echo "$ac_cv_lib_soname_jack" >&6; } |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11161 | |
| 11162 | cat >>confdefs.h <<_ACEOF |
| 11163 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 11164 | _ACEOF |
| 11165 | |
| 11166 | |
| 11167 | fi |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11168 | fi |
| 11169 | |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11170 | if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes" |
| 11171 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11173 | $as_echo_n "checking for -lfontconfig... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11174 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11175 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11176 | else |
| 11177 | ac_check_soname_save_LIBS=$LIBS |
| 11178 | LIBS="-lfontconfig $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11180 | /* end confdefs.h. */ |
| 11181 | |
| 11182 | /* Override any GCC internal prototype to avoid an error. |
| 11183 | Use char because int might match the return type of a GCC |
| 11184 | builtin and then its argument prototype would still apply. */ |
| 11185 | #ifdef __cplusplus |
| 11186 | extern "C" |
| 11187 | #endif |
| 11188 | char FcInit (); |
| 11189 | int |
| 11190 | main () |
| 11191 | { |
| 11192 | return FcInit (); |
| 11193 | ; |
| 11194 | return 0; |
| 11195 | } |
| 11196 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11197 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11198 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11199 | 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] | 11200 | 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'` ;; |
| 11201 | *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11202 | esac |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11203 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11204 | rm -f core conftest.err conftest.$ac_objext \ |
| 11205 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11206 | LIBS=$ac_check_soname_save_LIBS |
| 11207 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11208 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
| 11209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11210 | $as_echo "not found" >&6; } |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11211 | |
| 11212 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11213 | { $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] | 11214 | $as_echo "$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11215 | |
| 11216 | cat >>confdefs.h <<_ACEOF |
| 11217 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 11218 | _ACEOF |
| 11219 | |
| 11220 | |
| 11221 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11222 | elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno" |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11223 | then |
| 11224 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11225 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11226 | $as_unset ac_cv_header_fontconfig_fontconfig_h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11227 | for ac_header in fontconfig/fontconfig.h |
| 11228 | do : |
| 11229 | ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
| 11230 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then : |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11231 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11232 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11233 | _ACEOF |
| 11234 | |
| 11235 | fi |
| 11236 | |
| 11237 | done |
| 11238 | |
| 11239 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11240 | if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes" |
| 11241 | then |
| 11242 | FONTCONFIGINCL="$X_CFLAGS" |
| 11243 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11245 | $as_echo_n "checking for -lfontconfig... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11246 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11247 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11248 | else |
| 11249 | ac_check_soname_save_LIBS=$LIBS |
| 11250 | LIBS="-lfontconfig $X_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11252 | /* end confdefs.h. */ |
| 11253 | |
| 11254 | /* Override any GCC internal prototype to avoid an error. |
| 11255 | Use char because int might match the return type of a GCC |
| 11256 | builtin and then its argument prototype would still apply. */ |
| 11257 | #ifdef __cplusplus |
| 11258 | extern "C" |
| 11259 | #endif |
| 11260 | char FcInit (); |
| 11261 | int |
| 11262 | main () |
| 11263 | { |
| 11264 | return FcInit (); |
| 11265 | ; |
| 11266 | return 0; |
| 11267 | } |
| 11268 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11269 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11270 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11271 | 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] | 11272 | 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'` ;; |
| 11273 | *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11274 | esac |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11275 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11276 | rm -f core conftest.err conftest.$ac_objext \ |
| 11277 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11278 | LIBS=$ac_check_soname_save_LIBS |
| 11279 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11280 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
| 11281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11282 | $as_echo "not found" >&6; } |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11283 | |
| 11284 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11285 | { $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] | 11286 | $as_echo "$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11287 | |
| 11288 | cat >>confdefs.h <<_ACEOF |
| 11289 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 11290 | _ACEOF |
| 11291 | |
| 11292 | |
| 11293 | fi |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11294 | fi |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11295 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11296 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11297 | case "x$with_fontconfig" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11298 | 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] | 11299 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11300 | *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported. |
| 11301 | This is an error since --with-fontconfig was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11302 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11303 | fi |
| 11304 | |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11305 | if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes" |
| 11306 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11308 | $as_echo_n "checking for -lssl... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11309 | if test "${ac_cv_lib_soname_ssl+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11310 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11311 | else |
| 11312 | ac_check_soname_save_LIBS=$LIBS |
| 11313 | LIBS="-lssl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11315 | /* end confdefs.h. */ |
| 11316 | |
| 11317 | /* Override any GCC internal prototype to avoid an error. |
| 11318 | Use char because int might match the return type of a GCC |
| 11319 | builtin and then its argument prototype would still apply. */ |
| 11320 | #ifdef __cplusplus |
| 11321 | extern "C" |
| 11322 | #endif |
| 11323 | char SSL_library_init (); |
| 11324 | int |
| 11325 | main () |
| 11326 | { |
| 11327 | return SSL_library_init (); |
| 11328 | ; |
| 11329 | return 0; |
| 11330 | } |
| 11331 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11332 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11333 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11334 | 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] | 11335 | 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'` ;; |
| 11336 | *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11337 | esac |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11338 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11339 | rm -f core conftest.err conftest.$ac_objext \ |
| 11340 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11341 | LIBS=$ac_check_soname_save_LIBS |
| 11342 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11343 | if test "x$ac_cv_lib_soname_ssl" = "x"; then : |
| 11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11345 | $as_echo "not found" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11346 | |
| 11347 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11348 | { $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] | 11349 | $as_echo "$ac_cv_lib_soname_ssl" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11350 | |
| 11351 | cat >>confdefs.h <<_ACEOF |
| 11352 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 11353 | _ACEOF |
| 11354 | |
| 11355 | |
| 11356 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11358 | $as_echo_n "checking for -lcrypto... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11359 | if test "${ac_cv_lib_soname_crypto+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11360 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11361 | else |
| 11362 | ac_check_soname_save_LIBS=$LIBS |
| 11363 | LIBS="-lcrypto $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11365 | /* end confdefs.h. */ |
| 11366 | |
| 11367 | /* Override any GCC internal prototype to avoid an error. |
| 11368 | Use char because int might match the return type of a GCC |
| 11369 | builtin and then its argument prototype would still apply. */ |
| 11370 | #ifdef __cplusplus |
| 11371 | extern "C" |
| 11372 | #endif |
| 11373 | char BIO_new_socket (); |
| 11374 | int |
| 11375 | main () |
| 11376 | { |
| 11377 | return BIO_new_socket (); |
| 11378 | ; |
| 11379 | return 0; |
| 11380 | } |
| 11381 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11382 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11383 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11384 | 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] | 11385 | 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'` ;; |
| 11386 | *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11387 | esac |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11388 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11389 | rm -f core conftest.err conftest.$ac_objext \ |
| 11390 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11391 | LIBS=$ac_check_soname_save_LIBS |
| 11392 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11393 | if test "x$ac_cv_lib_soname_crypto" = "x"; then : |
| 11394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11395 | $as_echo "not found" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11396 | |
| 11397 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11398 | { $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] | 11399 | $as_echo "$ac_cv_lib_soname_crypto" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11400 | |
| 11401 | cat >>confdefs.h <<_ACEOF |
| 11402 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 11403 | _ACEOF |
| 11404 | |
| 11405 | |
| 11406 | fi |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11407 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11408 | 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] | 11409 | case "x$with_openssl" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11410 | 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] | 11411 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11412 | *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported. |
| 11413 | This is an error since --with-openssl was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11414 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11415 | fi |
| 11416 | |
Maarten Lankhorst | c186d8a | 2009-08-05 11:35:50 +0200 | [diff] [blame] | 11417 | 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] | 11418 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5 |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11420 | $as_echo_n "checking for -lgsm... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11421 | if test "${ac_cv_lib_soname_gsm+set}" = set; then : |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11422 | $as_echo_n "(cached) " >&6 |
| 11423 | else |
| 11424 | ac_check_soname_save_LIBS=$LIBS |
| 11425 | LIBS="-lgsm $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11427 | /* end confdefs.h. */ |
| 11428 | |
| 11429 | /* Override any GCC internal prototype to avoid an error. |
| 11430 | Use char because int might match the return type of a GCC |
| 11431 | builtin and then its argument prototype would still apply. */ |
| 11432 | #ifdef __cplusplus |
| 11433 | extern "C" |
| 11434 | #endif |
| 11435 | char gsm_create (); |
| 11436 | int |
| 11437 | main () |
| 11438 | { |
| 11439 | return gsm_create (); |
| 11440 | ; |
| 11441 | return 0; |
| 11442 | } |
| 11443 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11444 | if ac_fn_c_try_link "$LINENO"; then : |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11445 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11446 | 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] | 11447 | 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'` ;; |
| 11448 | *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11449 | esac |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11450 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11451 | rm -f core conftest.err conftest.$ac_objext \ |
| 11452 | conftest$ac_exeext conftest.$ac_ext |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11453 | LIBS=$ac_check_soname_save_LIBS |
| 11454 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11455 | if test "x$ac_cv_lib_soname_gsm" = "x"; then : |
| 11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11457 | $as_echo "not found" >&6; } |
| 11458 | |
| 11459 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11460 | { $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] | 11461 | $as_echo "$ac_cv_lib_soname_gsm" >&6; } |
| 11462 | |
| 11463 | cat >>confdefs.h <<_ACEOF |
| 11464 | #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm" |
| 11465 | _ACEOF |
| 11466 | |
| 11467 | |
| 11468 | fi |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11469 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11470 | if test "x$ac_cv_lib_soname_gsm" = "x"; then : |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 11471 | case "x$with_gsm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11472 | 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] | 11473 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11474 | *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported. |
| 11475 | This is an error since --with-gsm was requested." "$LINENO" 5 ;; |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11476 | esac |
| 11477 | fi |
| 11478 | |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11479 | if test "$ac_cv_header_jpeglib_h" = "yes" |
| 11480 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11482 | $as_echo_n "checking for -ljpeg... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11483 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11484 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11485 | else |
| 11486 | ac_check_soname_save_LIBS=$LIBS |
| 11487 | LIBS="-ljpeg $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11489 | /* end confdefs.h. */ |
| 11490 | |
| 11491 | /* Override any GCC internal prototype to avoid an error. |
| 11492 | Use char because int might match the return type of a GCC |
| 11493 | builtin and then its argument prototype would still apply. */ |
| 11494 | #ifdef __cplusplus |
| 11495 | extern "C" |
| 11496 | #endif |
| 11497 | char jpeg_start_decompress (); |
| 11498 | int |
| 11499 | main () |
| 11500 | { |
| 11501 | return jpeg_start_decompress (); |
| 11502 | ; |
| 11503 | return 0; |
| 11504 | } |
| 11505 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11506 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11507 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11508 | 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] | 11509 | 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'` ;; |
| 11510 | *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11511 | esac |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11512 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11513 | rm -f core conftest.err conftest.$ac_objext \ |
| 11514 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11515 | LIBS=$ac_check_soname_save_LIBS |
| 11516 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11517 | if test "x$ac_cv_lib_soname_jpeg" = "x"; then : |
| 11518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11519 | $as_echo "not found" >&6; } |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11520 | |
| 11521 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11522 | { $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] | 11523 | $as_echo "$ac_cv_lib_soname_jpeg" >&6; } |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11524 | |
| 11525 | cat >>confdefs.h <<_ACEOF |
| 11526 | #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg" |
| 11527 | _ACEOF |
| 11528 | |
| 11529 | |
| 11530 | fi |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11531 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11532 | if test "x$ac_cv_lib_soname_jpeg" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11533 | case "x$with_jpeg" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11534 | 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] | 11535 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11536 | *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported. |
| 11537 | This is an error since --with-jpeg was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11538 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11539 | fi |
| 11540 | |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11541 | if test "$ac_cv_header_png_h" = "yes" |
| 11542 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11544 | $as_echo_n "checking for -lpng... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11545 | if test "${ac_cv_lib_soname_png+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11546 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11547 | else |
| 11548 | ac_check_soname_save_LIBS=$LIBS |
Austin English | fe8879e | 2008-12-28 19:10:19 -0600 | [diff] [blame] | 11549 | LIBS="-lpng -lm -lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11551 | /* end confdefs.h. */ |
| 11552 | |
| 11553 | /* Override any GCC internal prototype to avoid an error. |
| 11554 | Use char because int might match the return type of a GCC |
| 11555 | builtin and then its argument prototype would still apply. */ |
| 11556 | #ifdef __cplusplus |
| 11557 | extern "C" |
| 11558 | #endif |
| 11559 | char png_create_read_struct (); |
| 11560 | int |
| 11561 | main () |
| 11562 | { |
| 11563 | return png_create_read_struct (); |
| 11564 | ; |
| 11565 | return 0; |
| 11566 | } |
| 11567 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11568 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11569 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11570 | 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] | 11571 | 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'` ;; |
| 11572 | *) 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'` ;; |
| 11573 | esac |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11574 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11575 | rm -f core conftest.err conftest.$ac_objext \ |
| 11576 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11577 | LIBS=$ac_check_soname_save_LIBS |
| 11578 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11579 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
| 11580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11581 | $as_echo "not found" >&6; } |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11582 | |
| 11583 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11584 | { $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] | 11585 | $as_echo "$ac_cv_lib_soname_png" >&6; } |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11586 | |
| 11587 | cat >>confdefs.h <<_ACEOF |
| 11588 | #define SONAME_LIBPNG "$ac_cv_lib_soname_png" |
| 11589 | _ACEOF |
| 11590 | |
| 11591 | |
| 11592 | fi |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5 |
| 11594 | $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; } |
| 11595 | if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then : |
| 11596 | $as_echo_n "(cached) " >&6 |
| 11597 | else |
| 11598 | ac_check_lib_save_LIBS=$LIBS |
| 11599 | LIBS="-lpng -lm -lz $LIBS" |
| 11600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11601 | /* end confdefs.h. */ |
| 11602 | |
| 11603 | /* Override any GCC internal prototype to avoid an error. |
| 11604 | Use char because int might match the return type of a GCC |
| 11605 | builtin and then its argument prototype would still apply. */ |
| 11606 | #ifdef __cplusplus |
| 11607 | extern "C" |
| 11608 | #endif |
| 11609 | char png_set_expand_gray_1_2_4_to_8 (); |
| 11610 | int |
| 11611 | main () |
| 11612 | { |
| 11613 | return png_set_expand_gray_1_2_4_to_8 (); |
| 11614 | ; |
| 11615 | return 0; |
| 11616 | } |
| 11617 | _ACEOF |
| 11618 | if ac_fn_c_try_link "$LINENO"; then : |
| 11619 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes |
| 11620 | else |
| 11621 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no |
| 11622 | fi |
| 11623 | rm -f core conftest.err conftest.$ac_objext \ |
| 11624 | conftest$ac_exeext conftest.$ac_ext |
| 11625 | LIBS=$ac_check_lib_save_LIBS |
| 11626 | fi |
| 11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5 |
| 11628 | $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; } |
| 11629 | if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then : |
| 11630 | |
| 11631 | $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h |
| 11632 | |
| 11633 | |
| 11634 | fi |
| 11635 | |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11636 | elif test -n "$X_CFLAGS" -a "x$with_png" != "xno" |
| 11637 | then |
| 11638 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11639 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11640 | $as_unset ac_cv_header_png_h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11641 | for ac_header in png.h |
| 11642 | do : |
| 11643 | ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" |
| 11644 | 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] | 11645 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11646 | #define HAVE_PNG_H 1 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11647 | _ACEOF |
| 11648 | |
| 11649 | fi |
| 11650 | |
| 11651 | done |
| 11652 | |
| 11653 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11654 | if test "$ac_cv_header_png_h" = "yes" |
| 11655 | then |
| 11656 | PNGINCL="$X_CFLAGS" |
| 11657 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11658 | { $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] | 11659 | $as_echo_n "checking for -lpng... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11660 | 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] | 11661 | $as_echo_n "(cached) " >&6 |
| 11662 | else |
| 11663 | ac_check_soname_save_LIBS=$LIBS |
| 11664 | LIBS="-lpng $X_LIBS -lm -lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11666 | /* end confdefs.h. */ |
| 11667 | |
| 11668 | /* Override any GCC internal prototype to avoid an error. |
| 11669 | Use char because int might match the return type of a GCC |
| 11670 | builtin and then its argument prototype would still apply. */ |
| 11671 | #ifdef __cplusplus |
| 11672 | extern "C" |
| 11673 | #endif |
| 11674 | char png_create_read_struct (); |
| 11675 | int |
| 11676 | main () |
| 11677 | { |
| 11678 | return png_create_read_struct (); |
| 11679 | ; |
| 11680 | return 0; |
| 11681 | } |
| 11682 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11683 | if ac_fn_c_try_link "$LINENO"; then : |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11684 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11685 | 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] | 11686 | 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'` ;; |
| 11687 | *) 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'` ;; |
| 11688 | esac |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11689 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11690 | rm -f core conftest.err conftest.$ac_objext \ |
| 11691 | conftest$ac_exeext conftest.$ac_ext |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11692 | LIBS=$ac_check_soname_save_LIBS |
| 11693 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11694 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
| 11695 | { $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] | 11696 | $as_echo "not found" >&6; } |
| 11697 | |
| 11698 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11699 | { $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] | 11700 | $as_echo "$ac_cv_lib_soname_png" >&6; } |
| 11701 | |
| 11702 | cat >>confdefs.h <<_ACEOF |
| 11703 | #define SONAME_LIBPNG "$ac_cv_lib_soname_png" |
| 11704 | _ACEOF |
| 11705 | |
| 11706 | |
| 11707 | fi |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5 |
| 11709 | $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; } |
| 11710 | if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then : |
| 11711 | $as_echo_n "(cached) " >&6 |
| 11712 | else |
| 11713 | ac_check_lib_save_LIBS=$LIBS |
| 11714 | LIBS="-lpng $X_LIBS -lm -lz $LIBS" |
| 11715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11716 | /* end confdefs.h. */ |
| 11717 | |
| 11718 | /* Override any GCC internal prototype to avoid an error. |
| 11719 | Use char because int might match the return type of a GCC |
| 11720 | builtin and then its argument prototype would still apply. */ |
| 11721 | #ifdef __cplusplus |
| 11722 | extern "C" |
| 11723 | #endif |
| 11724 | char png_set_expand_gray_1_2_4_to_8 (); |
| 11725 | int |
| 11726 | main () |
| 11727 | { |
| 11728 | return png_set_expand_gray_1_2_4_to_8 (); |
| 11729 | ; |
| 11730 | return 0; |
| 11731 | } |
| 11732 | _ACEOF |
| 11733 | if ac_fn_c_try_link "$LINENO"; then : |
| 11734 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes |
| 11735 | else |
| 11736 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no |
| 11737 | fi |
| 11738 | rm -f core conftest.err conftest.$ac_objext \ |
| 11739 | conftest$ac_exeext conftest.$ac_ext |
| 11740 | LIBS=$ac_check_lib_save_LIBS |
| 11741 | fi |
| 11742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5 |
| 11743 | $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; } |
| 11744 | if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then : |
| 11745 | $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h |
| 11746 | |
| 11747 | fi |
| 11748 | |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11749 | fi |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11750 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11751 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11752 | case "x$with_png" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11753 | 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] | 11754 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11755 | *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported. |
| 11756 | This is an error since --with-png was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11757 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11758 | fi |
| 11759 | |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11760 | if test "$ac_cv_header_tiffio_h" = "yes" |
| 11761 | then |
| 11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5 |
| 11763 | $as_echo_n "checking for -ltiff... " >&6; } |
| 11764 | if test "${ac_cv_lib_soname_tiff+set}" = set; then : |
| 11765 | $as_echo_n "(cached) " >&6 |
| 11766 | else |
| 11767 | ac_check_soname_save_LIBS=$LIBS |
| 11768 | LIBS="-ltiff $LIBS" |
| 11769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11770 | /* end confdefs.h. */ |
| 11771 | |
| 11772 | /* Override any GCC internal prototype to avoid an error. |
| 11773 | Use char because int might match the return type of a GCC |
| 11774 | builtin and then its argument prototype would still apply. */ |
| 11775 | #ifdef __cplusplus |
| 11776 | extern "C" |
| 11777 | #endif |
| 11778 | char TIFFClientOpen (); |
| 11779 | int |
| 11780 | main () |
| 11781 | { |
| 11782 | return TIFFClientOpen (); |
| 11783 | ; |
| 11784 | return 0; |
| 11785 | } |
| 11786 | _ACEOF |
| 11787 | if ac_fn_c_try_link "$LINENO"; then : |
| 11788 | case "$LIBEXT" in |
| 11789 | dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
| 11790 | 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'` ;; |
| 11791 | *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11792 | esac |
| 11793 | fi |
| 11794 | rm -f core conftest.err conftest.$ac_objext \ |
| 11795 | conftest$ac_exeext conftest.$ac_ext |
| 11796 | LIBS=$ac_check_soname_save_LIBS |
| 11797 | fi |
| 11798 | if test "x$ac_cv_lib_soname_tiff" = "x"; then : |
| 11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11800 | $as_echo "not found" >&6; } |
| 11801 | |
| 11802 | else |
| 11803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5 |
| 11804 | $as_echo "$ac_cv_lib_soname_tiff" >&6; } |
| 11805 | |
| 11806 | cat >>confdefs.h <<_ACEOF |
| 11807 | #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff" |
| 11808 | _ACEOF |
| 11809 | |
| 11810 | |
| 11811 | fi |
| 11812 | fi |
| 11813 | if test "x$ac_cv_lib_soname_tiff" = "x"; then : |
| 11814 | case "x$with_tiff" in |
| 11815 | x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;; |
| 11816 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11817 | *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported. |
| 11818 | This is an error since --with-tiff was requested." "$LINENO" 5 ;; |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11819 | esac |
| 11820 | fi |
| 11821 | |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11822 | if test "$ac_cv_header_mpg123_h" = "yes" |
| 11823 | then |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5 |
| 11825 | $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; } |
| 11826 | if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then : |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11827 | $as_echo_n "(cached) " >&6 |
| 11828 | else |
| 11829 | ac_check_lib_save_LIBS=$LIBS |
| 11830 | LIBS="-lmpg123 $LIBS" |
| 11831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11832 | /* end confdefs.h. */ |
| 11833 | |
| 11834 | /* Override any GCC internal prototype to avoid an error. |
| 11835 | Use char because int might match the return type of a GCC |
| 11836 | builtin and then its argument prototype would still apply. */ |
| 11837 | #ifdef __cplusplus |
| 11838 | extern "C" |
| 11839 | #endif |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11840 | char mpg123_feed (); |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11841 | int |
| 11842 | main () |
| 11843 | { |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11844 | return mpg123_feed (); |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11845 | ; |
| 11846 | return 0; |
| 11847 | } |
| 11848 | _ACEOF |
| 11849 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11850 | ac_cv_lib_mpg123_mpg123_feed=yes |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11851 | else |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11852 | ac_cv_lib_mpg123_mpg123_feed=no |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11853 | fi |
| 11854 | rm -f core conftest.err conftest.$ac_objext \ |
| 11855 | conftest$ac_exeext conftest.$ac_ext |
| 11856 | LIBS=$ac_check_lib_save_LIBS |
| 11857 | fi |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5 |
| 11859 | $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; } |
| 11860 | if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then : |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11861 | LIBMPG123="-lmpg123" |
| 11862 | |
| 11863 | fi |
| 11864 | |
| 11865 | fi |
Aric Stewart | 4430ab4 | 2010-03-17 10:58:32 -0500 | [diff] [blame] | 11866 | 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] | 11867 | case "x$with_mpg123" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11868 | 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] | 11869 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11870 | *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported. |
| 11871 | This is an error since --with-mpg123 was requested." "$LINENO" 5 ;; |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11872 | esac |
| 11873 | fi |
Kristofer Henriksson | c58eff6 | 2010-05-24 15:04:42 -0400 | [diff] [blame] | 11874 | 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] | 11875 | |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11876 | if test "$ac_cv_header_AL_al_h" = "yes" |
| 11877 | then |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5 |
| 11879 | $as_echo_n "checking for -lopenal... " >&6; } |
| 11880 | if test "${ac_cv_lib_soname_openal+set}" = set; then : |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11881 | $as_echo_n "(cached) " >&6 |
| 11882 | else |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11883 | ac_check_soname_save_LIBS=$LIBS |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11884 | LIBS="-lopenal $LIBS" |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11886 | /* end confdefs.h. */ |
| 11887 | |
| 11888 | /* Override any GCC internal prototype to avoid an error. |
| 11889 | Use char because int might match the return type of a GCC |
| 11890 | builtin and then its argument prototype would still apply. */ |
| 11891 | #ifdef __cplusplus |
| 11892 | extern "C" |
| 11893 | #endif |
| 11894 | char alGetSource3i (); |
| 11895 | int |
| 11896 | main () |
| 11897 | { |
| 11898 | return alGetSource3i (); |
| 11899 | ; |
| 11900 | return 0; |
| 11901 | } |
| 11902 | _ACEOF |
| 11903 | if ac_fn_c_try_link "$LINENO"; then : |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11904 | case "$LIBEXT" in |
| 11905 | dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
| 11906 | 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'` ;; |
| 11907 | *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11908 | esac |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11909 | fi |
| 11910 | rm -f core conftest.err conftest.$ac_objext \ |
| 11911 | conftest$ac_exeext conftest.$ac_ext |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11912 | LIBS=$ac_check_soname_save_LIBS |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11913 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11914 | if test "x$ac_cv_lib_soname_openal" = "x"; then : |
| 11915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11916 | $as_echo "not found" >&6; } |
| 11917 | |
| 11918 | else |
| 11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5 |
| 11920 | $as_echo "$ac_cv_lib_soname_openal" >&6; } |
| 11921 | |
| 11922 | cat >>confdefs.h <<_ACEOF |
| 11923 | #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal" |
| 11924 | _ACEOF |
| 11925 | |
| 11926 | LIBOPENAL="-lopenal" |
| 11927 | |
| 11928 | ac_cv_lib_openal=yes |
| 11929 | |
| 11930 | cat >>confdefs.h <<_ACEOF |
| 11931 | #define HAVE_OPENAL 1 |
| 11932 | _ACEOF |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11933 | |
| 11934 | fi |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11935 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11936 | if test "x$ac_cv_lib_openal" != xyes; then : |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11937 | case "x$with_openal" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11938 | 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] | 11939 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11940 | *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported. |
| 11941 | This is an error since --with-openal was requested." "$LINENO" 5 ;; |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11942 | esac |
| 11943 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11944 | test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no} |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11945 | |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11946 | if test "$ac_cv_header_kstat_h" = "yes" |
| 11947 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11948 | { $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] | 11949 | $as_echo_n "checking for kstat_open in -lkstat... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11950 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11951 | $as_echo_n "(cached) " >&6 |
| 11952 | else |
| 11953 | ac_check_lib_save_LIBS=$LIBS |
| 11954 | LIBS="-lkstat $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11956 | /* end confdefs.h. */ |
| 11957 | |
| 11958 | /* Override any GCC internal prototype to avoid an error. |
| 11959 | Use char because int might match the return type of a GCC |
| 11960 | builtin and then its argument prototype would still apply. */ |
| 11961 | #ifdef __cplusplus |
| 11962 | extern "C" |
| 11963 | #endif |
| 11964 | char kstat_open (); |
| 11965 | int |
| 11966 | main () |
| 11967 | { |
| 11968 | return kstat_open (); |
| 11969 | ; |
| 11970 | return 0; |
| 11971 | } |
| 11972 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11973 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11974 | ac_cv_lib_kstat_kstat_open=yes |
| 11975 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11976 | ac_cv_lib_kstat_kstat_open=no |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11977 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11978 | rm -f core conftest.err conftest.$ac_objext \ |
| 11979 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11980 | LIBS=$ac_check_lib_save_LIBS |
| 11981 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11982 | { $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] | 11983 | $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11984 | if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11985 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11986 | $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11987 | |
| 11988 | LIBKSTAT="-lkstat" |
| 11989 | |
| 11990 | fi |
| 11991 | |
| 11992 | fi |
| 11993 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11995 | $as_echo_n "checking for -lodbc... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11996 | if test "${ac_cv_lib_soname_odbc+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11997 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11998 | else |
| 11999 | ac_check_soname_save_LIBS=$LIBS |
| 12000 | LIBS="-lodbc $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12002 | /* end confdefs.h. */ |
| 12003 | |
| 12004 | /* Override any GCC internal prototype to avoid an error. |
| 12005 | Use char because int might match the return type of a GCC |
| 12006 | builtin and then its argument prototype would still apply. */ |
| 12007 | #ifdef __cplusplus |
| 12008 | extern "C" |
| 12009 | #endif |
| 12010 | char SQLConnect (); |
| 12011 | int |
| 12012 | main () |
| 12013 | { |
| 12014 | return SQLConnect (); |
| 12015 | ; |
| 12016 | return 0; |
| 12017 | } |
| 12018 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12019 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12020 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 12021 | 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] | 12022 | 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'` ;; |
| 12023 | *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 12024 | esac |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12025 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12026 | rm -f core conftest.err conftest.$ac_objext \ |
| 12027 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12028 | LIBS=$ac_check_soname_save_LIBS |
| 12029 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12030 | if test "x$ac_cv_lib_soname_odbc" = "x"; then : |
| 12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12032 | $as_echo "not found" >&6; } |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12033 | cat >>confdefs.h <<_ACEOF |
| 12034 | #define SONAME_LIBODBC "libodbc.$LIBEXT" |
| 12035 | _ACEOF |
| 12036 | |
| 12037 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12038 | { $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] | 12039 | $as_echo "$ac_cv_lib_soname_odbc" >&6; } |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12040 | |
| 12041 | cat >>confdefs.h <<_ACEOF |
| 12042 | #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc" |
| 12043 | _ACEOF |
| 12044 | |
| 12045 | |
| 12046 | fi |
| 12047 | |
Michael Stefaniuc | a2f0750 | 2010-12-17 11:11:42 +0100 | [diff] [blame] | 12048 | 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] | 12049 | "$ac_cv_header_sys_soundcard_h" != "yes" -a \ |
| 12050 | "$ac_cv_header_machine_soundcard_h" != "yes" -a \ |
| 12051 | "$ac_cv_header_soundcard_h" != "yes" -a \ |
Michael Stefaniuc | a2f0750 | 2010-12-17 11:11:42 +0100 | [diff] [blame] | 12052 | "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] | 12053 | then |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 12054 | 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] | 12055 | fi |
| 12056 | |
| 12057 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12058 | EXTRACFLAGS="" |
| 12059 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12060 | if test "x${GCC}" = "xyes" |
| 12061 | then |
Hans Leidekker | d17b232 | 2004-01-06 21:37:44 +0000 | [diff] [blame] | 12062 | EXTRACFLAGS="-Wall -pipe" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12063 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12064 | { $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] | 12065 | $as_echo_n "checking for gcc strength-reduce bug... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12066 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12067 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12068 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12069 | if test "$cross_compiling" = yes; then : |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12070 | ac_cv_c_gcc_strength_bug="yes" |
| 12071 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12073 | /* end confdefs.h. */ |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12074 | int L[4] = {0,1,2,3}; |
| 12075 | int |
| 12076 | main () |
| 12077 | { |
| 12078 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12079 | unsigned int B = 3; |
| 12080 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 12081 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 12082 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 12083 | L[i] = 4; |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12084 | return (Array[1] != -2 || L[2] != 3) |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12085 | ; |
| 12086 | return 0; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12087 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12088 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12089 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12090 | ac_cv_c_gcc_strength_bug="no" |
| 12091 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12092 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12093 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12094 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12095 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12096 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12097 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12098 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12099 | { $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] | 12100 | $as_echo "$ac_cv_c_gcc_strength_bug" >&6; } |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12101 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 12102 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12103 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12104 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12105 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12106 | { $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] | 12107 | $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12108 | if test "${ac_cv_cflags__fno_builtin+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12109 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12110 | else |
| 12111 | ac_wine_try_cflags_saved=$CFLAGS |
| 12112 | CFLAGS="$CFLAGS -fno-builtin" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12114 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12115 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12116 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12117 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12118 | ac_cv_cflags__fno_builtin=yes |
| 12119 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12120 | ac_cv_cflags__fno_builtin=no |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12121 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12122 | rm -f core conftest.err conftest.$ac_objext \ |
| 12123 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12124 | CFLAGS=$ac_wine_try_cflags_saved |
| 12125 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12126 | { $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] | 12127 | $as_echo "$ac_cv_cflags__fno_builtin" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12128 | if test $ac_cv_cflags__fno_builtin = yes; then : |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12129 | BUILTINFLAG="-fno-builtin" |
| 12130 | |
| 12131 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12132 | { $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] | 12133 | $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12134 | if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12135 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12136 | else |
| 12137 | ac_wine_try_cflags_saved=$CFLAGS |
| 12138 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12140 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12141 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12142 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12143 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12144 | ac_cv_cflags__fno_strict_aliasing=yes |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12145 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12146 | ac_cv_cflags__fno_strict_aliasing=no |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12147 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12148 | rm -f core conftest.err conftest.$ac_objext \ |
| 12149 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12150 | CFLAGS=$ac_wine_try_cflags_saved |
| 12151 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12152 | { $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] | 12153 | $as_echo "$ac_cv_cflags__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 = yes; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12155 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 12156 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12157 | { $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] | 12158 | $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12159 | if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12160 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12161 | else |
| 12162 | ac_wine_try_cflags_saved=$CFLAGS |
| 12163 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12165 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12166 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12167 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12168 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12169 | ac_cv_cflags__Wdeclaration_after_statement=yes |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12170 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12171 | ac_cv_cflags__Wdeclaration_after_statement=no |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12172 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12173 | rm -f core conftest.err conftest.$ac_objext \ |
| 12174 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12175 | CFLAGS=$ac_wine_try_cflags_saved |
| 12176 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12177 | { $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] | 12178 | $as_echo "$ac_cv_cflags__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 = yes; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12180 | EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement" |
| 12181 | fi |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5 |
| 12183 | $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; } |
| 12184 | if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then : |
| 12185 | $as_echo_n "(cached) " >&6 |
| 12186 | else |
| 12187 | ac_wine_try_cflags_saved=$CFLAGS |
| 12188 | CFLAGS="$CFLAGS -Wstrict-prototypes" |
| 12189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12190 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12191 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 12192 | _ACEOF |
| 12193 | if ac_fn_c_try_link "$LINENO"; then : |
| 12194 | ac_cv_cflags__Wstrict_prototypes=yes |
| 12195 | else |
| 12196 | ac_cv_cflags__Wstrict_prototypes=no |
| 12197 | fi |
| 12198 | rm -f core conftest.err conftest.$ac_objext \ |
| 12199 | conftest$ac_exeext conftest.$ac_ext |
| 12200 | CFLAGS=$ac_wine_try_cflags_saved |
| 12201 | fi |
| 12202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5 |
| 12203 | $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; } |
| 12204 | if test $ac_cv_cflags__Wstrict_prototypes = yes; then : |
| 12205 | EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes" |
| 12206 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12207 | { $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] | 12208 | $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12209 | if test "${ac_cv_cflags__Wtype_limits+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12210 | $as_echo_n "(cached) " >&6 |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12211 | else |
| 12212 | ac_wine_try_cflags_saved=$CFLAGS |
| 12213 | CFLAGS="$CFLAGS -Wtype-limits" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12215 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12216 | int main(int argc, char **argv) { return 0; } |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12217 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12218 | if ac_fn_c_try_link "$LINENO"; then : |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12219 | ac_cv_cflags__Wtype_limits=yes |
| 12220 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12221 | ac_cv_cflags__Wtype_limits=no |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12222 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12223 | rm -f core conftest.err conftest.$ac_objext \ |
| 12224 | conftest$ac_exeext conftest.$ac_ext |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12225 | CFLAGS=$ac_wine_try_cflags_saved |
| 12226 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12227 | { $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] | 12228 | $as_echo "$ac_cv_cflags__Wtype_limits" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12229 | if test $ac_cv_cflags__Wtype_limits = yes; then : |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12230 | EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits" |
| 12231 | fi |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5 |
| 12233 | $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; } |
| 12234 | if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then : |
| 12235 | $as_echo_n "(cached) " >&6 |
| 12236 | else |
| 12237 | ac_wine_try_cflags_saved=$CFLAGS |
| 12238 | CFLAGS="$CFLAGS -Wwrite-strings" |
| 12239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12240 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12241 | int main(int argc, char **argv) { return 0; } |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12242 | _ACEOF |
| 12243 | if ac_fn_c_try_link "$LINENO"; then : |
| 12244 | ac_cv_cflags__Wwrite_strings=yes |
| 12245 | else |
| 12246 | ac_cv_cflags__Wwrite_strings=no |
| 12247 | fi |
| 12248 | rm -f core conftest.err conftest.$ac_objext \ |
| 12249 | conftest$ac_exeext conftest.$ac_ext |
| 12250 | CFLAGS=$ac_wine_try_cflags_saved |
| 12251 | fi |
| 12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5 |
| 12253 | $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; } |
| 12254 | if test $ac_cv_cflags__Wwrite_strings = yes; then : |
| 12255 | EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings" |
| 12256 | fi |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12257 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12258 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12259 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5 |
| 12261 | $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] | 12262 | if test "${ac_cv_c_string_h_warnings+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12263 | $as_echo_n "(cached) " >&6 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12264 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12266 | /* end confdefs.h. */ |
| 12267 | #include <string.h> |
| 12268 | int |
| 12269 | main () |
| 12270 | { |
| 12271 | |
| 12272 | ; |
| 12273 | return 0; |
| 12274 | } |
| 12275 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12276 | if ac_fn_c_try_compile "$LINENO"; then : |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12277 | ac_cv_c_string_h_warnings=no |
| 12278 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12279 | ac_cv_c_string_h_warnings=yes |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12280 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12282 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12283 | { $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] | 12284 | $as_echo "$ac_cv_c_string_h_warnings" >&6; } |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12285 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12286 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 12287 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12288 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12289 | fi |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12290 | |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12291 | saved_CFLAGS="$CFLAGS" |
| 12292 | CFLAGS="$CFLAGS -Wlogical-op -Werror" |
| 12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5 |
| 12294 | $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; } |
| 12295 | if test "${ac_cv_c_logicalop_noisy+set}" = set; then : |
| 12296 | $as_echo_n "(cached) " >&6 |
| 12297 | else |
| 12298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12299 | /* end confdefs.h. */ |
| 12300 | #include <string.h> |
| 12301 | int |
| 12302 | main () |
| 12303 | { |
| 12304 | char*f(const char *h,char n) {return strchr(h,n);} |
| 12305 | ; |
| 12306 | return 0; |
| 12307 | } |
| 12308 | _ACEOF |
| 12309 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12310 | ac_cv_c_logicalop_noisy=no |
| 12311 | else |
| 12312 | ac_cv_c_logicalop_noisy=yes |
| 12313 | fi |
| 12314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12315 | fi |
| 12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5 |
| 12317 | $as_echo "$ac_cv_c_logicalop_noisy" >&6; } |
| 12318 | CFLAGS="$saved_CFLAGS" |
| 12319 | if test "$ac_cv_c_logicalop_noisy" = "no" |
| 12320 | then |
| 12321 | EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op" |
| 12322 | fi |
| 12323 | |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 12324 | if test "x$enable_maintainer_mode" = "xyes" |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12325 | then |
| 12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5 |
| 12327 | $as_echo_n "checking whether the compiler supports -Werror... " >&6; } |
| 12328 | if test "${ac_cv_cflags__Werror+set}" = set; then : |
| 12329 | $as_echo_n "(cached) " >&6 |
| 12330 | else |
| 12331 | ac_wine_try_cflags_saved=$CFLAGS |
| 12332 | CFLAGS="$CFLAGS -Werror" |
| 12333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12334 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12335 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12336 | _ACEOF |
| 12337 | if ac_fn_c_try_link "$LINENO"; then : |
| 12338 | ac_cv_cflags__Werror=yes |
| 12339 | else |
| 12340 | ac_cv_cflags__Werror=no |
| 12341 | fi |
| 12342 | rm -f core conftest.err conftest.$ac_objext \ |
| 12343 | conftest$ac_exeext conftest.$ac_ext |
| 12344 | CFLAGS=$ac_wine_try_cflags_saved |
| 12345 | fi |
| 12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5 |
| 12347 | $as_echo "$ac_cv_cflags__Werror" >&6; } |
| 12348 | if test $ac_cv_cflags__Werror = yes; then : |
| 12349 | EXTRACFLAGS="$EXTRACFLAGS -Werror" |
| 12350 | fi |
| 12351 | fi |
Stefan Dösinger | fdac5e5 | 2009-09-12 14:08:53 +0200 | [diff] [blame] | 12352 | |
| 12353 | saved_CFLAGS="$CFLAGS" |
| 12354 | CFLAGS="$CFLAGS -Werror" |
| 12355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5 |
| 12356 | $as_echo_n "checking for ms_hook_prologue attribute... " >&6; } |
| 12357 | if test "${ac_cv_have_ms_hook_prologue+set}" = set; then : |
| 12358 | $as_echo_n "(cached) " >&6 |
| 12359 | else |
| 12360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12361 | /* end confdefs.h. */ |
| 12362 | int __attribute__((__ms_hook_prologue__)) test(void) { return 0; } |
| 12363 | int |
| 12364 | main () |
| 12365 | { |
| 12366 | |
| 12367 | ; |
| 12368 | return 0; |
| 12369 | } |
| 12370 | _ACEOF |
| 12371 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12372 | ac_cv_have_ms_hook_prologue="yes" |
| 12373 | else |
| 12374 | ac_cv_have_ms_hook_prologue="no" |
| 12375 | fi |
| 12376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12377 | fi |
| 12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5 |
| 12379 | $as_echo "$ac_cv_have_ms_hook_prologue" >&6; } |
| 12380 | CFLAGS="$saved_CFLAGS" |
| 12381 | if test "$ac_cv_have_ms_hook_prologue" = "yes" |
| 12382 | then |
| 12383 | |
| 12384 | $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h |
| 12385 | |
| 12386 | else |
| 12387 | $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h |
| 12388 | |
| 12389 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12390 | fi |
| 12391 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12392 | |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5 |
| 12394 | $as_echo_n "checking for the need to disable Fortify... " >&6; } |
| 12395 | if test "${ac_cv_c_fortify_enabled+set}" = set; then : |
| 12396 | $as_echo_n "(cached) " >&6 |
| 12397 | else |
| 12398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12399 | /* end confdefs.h. */ |
| 12400 | #include <string.h> |
| 12401 | int |
| 12402 | main () |
| 12403 | { |
| 12404 | #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0 |
| 12405 | #error Fortify enabled |
| 12406 | #endif |
| 12407 | ; |
| 12408 | return 0; |
| 12409 | } |
| 12410 | _ACEOF |
| 12411 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12412 | ac_cv_c_fortify_enabled=no |
| 12413 | else |
| 12414 | ac_cv_c_fortify_enabled=yes |
| 12415 | fi |
| 12416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12417 | fi |
| 12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5 |
| 12419 | $as_echo "$ac_cv_c_fortify_enabled" >&6; } |
| 12420 | if test "$ac_cv_c_fortify_enabled" = yes |
| 12421 | then |
Alexandre Julliard | b10fb86 | 2010-10-29 14:25:01 +0200 | [diff] [blame] | 12422 | CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0" |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12423 | fi |
| 12424 | |
| 12425 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12426 | { $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] | 12427 | $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12428 | if test "${ac_cv_c_extern_prefix+set}" = set; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12429 | $as_echo_n "(cached) " >&6 |
| 12430 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12432 | /* end confdefs.h. */ |
| 12433 | extern int ac_test; |
| 12434 | int |
| 12435 | main () |
| 12436 | { |
| 12437 | asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1 |
| 12438 | ; |
| 12439 | return 0; |
| 12440 | } |
| 12441 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12442 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12443 | ac_cv_c_extern_prefix="yes" |
| 12444 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12445 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12446 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12447 | rm -f core conftest.err conftest.$ac_objext \ |
| 12448 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12449 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12450 | { $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] | 12451 | $as_echo "$ac_cv_c_extern_prefix" >&6; } |
| 12452 | |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12453 | case $host_cpu in |
| 12454 | *i[3456789]86*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12455 | { $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] | 12456 | $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12457 | if test "${ac_cv_c_stdcall_suffix+set}" = set; then : |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12458 | $as_echo_n "(cached) " >&6 |
| 12459 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12461 | /* end confdefs.h. */ |
| 12462 | #ifndef _MSC_VER |
| 12463 | #define __stdcall __attribute__((__stdcall__)) |
| 12464 | #endif |
| 12465 | int __stdcall ac_test(int i) { return i; } |
| 12466 | int |
| 12467 | main () |
| 12468 | { |
| 12469 | asm("jmp _ac_test@4"); if (ac_test(1)) return 1 |
| 12470 | ; |
| 12471 | return 0; |
| 12472 | } |
| 12473 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12474 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12475 | ac_cv_c_stdcall_suffix="yes" |
| 12476 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12477 | ac_cv_c_stdcall_suffix="no" |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12478 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12479 | rm -f core conftest.err conftest.$ac_objext \ |
| 12480 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12481 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12482 | { $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] | 12483 | $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;; |
| 12484 | *) ac_cv_c_stdcall_suffix="no" ;; |
| 12485 | esac |
| 12486 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12487 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12488 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 12489 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12490 | $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12491 | |
| 12492 | asm_name_prefix="_" |
| 12493 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12494 | $as_echo "#define __ASM_NAME(name) name" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12495 | |
| 12496 | asm_name_prefix="" |
| 12497 | fi |
| 12498 | |
| 12499 | |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12500 | if test "$ac_cv_c_stdcall_suffix" = "yes" |
| 12501 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12502 | $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12503 | |
| 12504 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12505 | $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12506 | |
| 12507 | fi |
| 12508 | |
| 12509 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12510 | { $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] | 12511 | $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] | 12512 | if test "${ac_cv_asm_func_def+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12513 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12514 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12516 | /* end confdefs.h. */ |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12517 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12518 | int |
| 12519 | main () |
| 12520 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12521 | 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] | 12522 | ; |
| 12523 | return 0; |
| 12524 | } |
| 12525 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12526 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12527 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12528 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12530 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12531 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12532 | int |
| 12533 | main () |
| 12534 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12535 | 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] | 12536 | ; |
| 12537 | return 0; |
| 12538 | } |
| 12539 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12540 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12541 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12542 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12544 | /* end confdefs.h. */ |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12545 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12546 | int |
| 12547 | main () |
| 12548 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12549 | 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] | 12550 | ; |
| 12551 | return 0; |
| 12552 | } |
| 12553 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12554 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12555 | ac_cv_asm_func_def=".type 2" |
| 12556 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12557 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12558 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12559 | rm -f core conftest.err conftest.$ac_objext \ |
| 12560 | conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12561 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12562 | rm -f core conftest.err conftest.$ac_objext \ |
| 12563 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12564 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12565 | rm -f core conftest.err conftest.$ac_objext \ |
| 12566 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12567 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12568 | { $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] | 12569 | $as_echo "$ac_cv_asm_func_def" >&6; } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12570 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12571 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12572 | case "$ac_cv_asm_func_def" in |
| 12573 | ".def") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12574 | $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] | 12575 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12576 | 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] | 12577 | ".type @function") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12578 | $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] | 12579 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12580 | asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12581 | ".type 2") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12582 | $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] | 12583 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12584 | asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12585 | *) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12586 | $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12587 | |
| 12588 | asm_func_header="" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12589 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12590 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12591 | { $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] | 12592 | $as_echo_n "checking whether asm() works outside of functions... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12593 | if test "${ac_cv_c_asm_outside_funcs+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12594 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12595 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12597 | /* end confdefs.h. */ |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12598 | asm(".text\n\t.long 0"); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12599 | int |
| 12600 | main () |
| 12601 | { |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12602 | |
| 12603 | ; |
| 12604 | return 0; |
| 12605 | } |
| 12606 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12607 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12608 | ac_cv_c_asm_outside_funcs="yes" |
| 12609 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12610 | ac_cv_c_asm_outside_funcs="no" |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12611 | fi |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12613 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12614 | { $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] | 12615 | $as_echo "$ac_cv_c_asm_outside_funcs" >&6; } |
| 12616 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12617 | { $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] | 12618 | $as_echo_n "checking whether .previous is supported in assembly code... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12619 | if test "${ac_cv_c_dot_previous+set}" = set; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12620 | $as_echo_n "(cached) " >&6 |
| 12621 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12623 | /* end confdefs.h. */ |
| 12624 | |
| 12625 | int |
| 12626 | main () |
| 12627 | { |
| 12628 | asm(".text\nac_test:\t.long 0\n\t.previous"); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12629 | ; |
| 12630 | return 0; |
| 12631 | } |
| 12632 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12633 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12634 | ac_cv_c_dot_previous="yes" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12635 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12636 | ac_cv_c_dot_previous="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12637 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12638 | rm -f core conftest.err conftest.$ac_objext \ |
| 12639 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12640 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12641 | { $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] | 12642 | $as_echo "$ac_cv_c_dot_previous" >&6; } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12643 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12644 | { $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] | 12645 | $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] | 12646 | if test "${ac_cv_c_cfi_support+set}" = set; then : |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12647 | $as_echo_n "(cached) " >&6 |
| 12648 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12650 | /* end confdefs.h. */ |
| 12651 | asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc"); |
| 12652 | int |
| 12653 | main () |
| 12654 | { |
| 12655 | |
| 12656 | ; |
| 12657 | return 0; |
| 12658 | } |
| 12659 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12660 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12661 | ac_cv_c_cfi_support="yes" |
| 12662 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12663 | ac_cv_c_cfi_support="no" |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12664 | fi |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12666 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12667 | { $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] | 12668 | $as_echo "$ac_cv_c_cfi_support" >&6; } |
| 12669 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12670 | 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] | 12671 | asm_func_trailer="" |
| 12672 | if test "$ac_cv_c_dot_previous" = "yes" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12673 | then |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12674 | asm_func_trailer="\\n\\t.previous" |
| 12675 | fi |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12676 | if test "$ac_cv_c_cfi_support" = "yes" |
| 12677 | then |
| 12678 | asm_func_header="$asm_func_header.cfi_startproc\\n\\t" |
| 12679 | asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer" |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12680 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12681 | $as_echo "#define __ASM_CFI(str) str" >>confdefs.h |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12682 | |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 12683 | UNWINDFLAGS=-fasynchronous-unwind-tables |
| 12684 | |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12685 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12686 | $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12687 | |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12688 | fi |
| 12689 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12690 | asm_func_code="$asm_func_header\" code \"$asm_func_trailer" |
| 12691 | |
| 12692 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12693 | if test "$ac_cv_c_asm_outside_funcs" = "yes" |
| 12694 | then |
| 12695 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12696 | #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] | 12697 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12698 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12699 | else |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12700 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12701 | #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] | 12702 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12703 | |
| 12704 | fi |
| 12705 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12706 | $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] | 12707 | |
| 12708 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12709 | $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] | 12710 | |
| 12711 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12712 | |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12713 | LDPATH="" |
| 12714 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12715 | case $build_os in |
| 12716 | cygwin*|mingw32*) |
Alexandre Julliard | b860c4a | 2009-09-01 22:36:13 +0200 | [diff] [blame] | 12717 | TOOLSEXT=".exe" |
| 12718 | |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 12719 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\"" |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12720 | ;; |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 12721 | darwin*|macosx*) |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12722 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12723 | *) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 12724 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12725 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12726 | esac |
| 12727 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12728 | case $host_os in |
| 12729 | mingw32*) |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 12730 | CRTLIBS="-lmsvcrt" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 12731 | |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 12732 | SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 12733 | |
| 12734 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 12735 | esac |
| 12736 | |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 12737 | MAIN_BINARY="wine" |
| 12738 | |
Alexandre Julliard | f3831cf | 2010-05-16 17:01:52 +0200 | [diff] [blame] | 12739 | test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64" |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 12740 | |
Alexandre Julliard | 0a08620 | 2010-12-16 16:54:15 +0100 | [diff] [blame] | 12741 | case $host_os in |
| 12742 | linux*) |
| 12743 | case $host_cpu in |
| 12744 | *i[3456789]86*) EXTRA_BINARIES="wine-preloader" |
| 12745 | ;; |
| 12746 | x86_64*) EXTRA_BINARIES="wine64-preloader" |
Tijl Coosemans | 9f5c69c | 2007-08-24 15:46:36 +0200 | [diff] [blame] | 12747 | ;; |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 12748 | esac |
Emmanuel Maillard | 3bc8d2e | 2004-07-19 20:11:10 +0000 | [diff] [blame] | 12749 | ;; |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12750 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12751 | |
| 12752 | |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12753 | ac_save_CFLAGS="$CFLAGS" |
| 12754 | CFLAGS="$CFLAGS $BUILTINFLAG" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12755 | for ac_func in \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12756 | _pclose \ |
| 12757 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12758 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 12759 | _spawnvp \ |
Bang Jun-young | ff96bd6 | 2007-10-15 17:09:12 +0900 | [diff] [blame] | 12760 | _strdup \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12761 | _stricmp \ |
| 12762 | _strnicmp \ |
Rob Shearman | e9f5bce | 2008-03-03 21:48:18 +0000 | [diff] [blame] | 12763 | _strtoi64 \ |
| 12764 | _strtoui64 \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 12765 | _vsnprintf \ |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 12766 | asctime_r \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12767 | chsize \ |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12768 | dlopen \ |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 12769 | epoll_create \ |
Hans Leidekker | c3de6ef | 2004-10-19 23:53:26 +0000 | [diff] [blame] | 12770 | ffs \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 12771 | finite \ |
Alexandre Julliard | 7d5e565 | 2009-06-01 12:51:54 +0200 | [diff] [blame] | 12772 | fnmatch \ |
Hans Leidekker | bed3842 | 2004-10-14 03:08:57 +0000 | [diff] [blame] | 12773 | fork \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 12774 | fpclass \ |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 12775 | fstatfs \ |
| 12776 | fstatvfs \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12777 | ftruncate \ |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 12778 | futimes \ |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 12779 | futimesat \ |
Charles Davis | 4e44e15 | 2011-01-18 13:09:44 -0700 | [diff] [blame] | 12780 | getattrlist \ |
Alexandre Julliard | a9f214c | 2006-11-13 15:42:48 +0100 | [diff] [blame] | 12781 | getdirentries \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 12782 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12783 | getpagesize \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 12784 | getpwuid \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 12785 | gettimeofday \ |
Steven Edwards | e7c3ab1 | 2004-10-04 20:45:49 +0000 | [diff] [blame] | 12786 | getuid \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 12787 | kqueue \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 12788 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12789 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 12790 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12791 | pclose \ |
Alexandre Julliard | 6f68b77 | 2009-07-01 12:13:34 +0200 | [diff] [blame] | 12792 | pipe2 \ |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12793 | poll \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12794 | popen \ |
Albert Lee | 01b972d | 2009-11-20 18:35:26 -0500 | [diff] [blame] | 12795 | port_create \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 12796 | prctl \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12797 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 12798 | pwrite \ |
Rob Shearman | 87175c6 | 2008-10-03 12:55:21 +0100 | [diff] [blame] | 12799 | readdir \ |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 12800 | readlink \ |
Juan Lang | 474b2e4 | 2009-09-29 09:17:30 -0700 | [diff] [blame] | 12801 | sched_setaffinity \ |
Jeremy White | 08c0f69 | 2004-10-09 02:26:29 +0000 | [diff] [blame] | 12802 | sched_yield \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12803 | select \ |
Gerald Pfeifer | 39f6727 | 2008-01-20 21:23:08 +0100 | [diff] [blame] | 12804 | setproctitle \ |
Paul Millar | df10b7d | 2006-07-16 15:06:28 +0100 | [diff] [blame] | 12805 | setrlimit \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12806 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12807 | sigaltstack \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 12808 | sigprocmask \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12809 | snprintf \ |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 12810 | spawnvp \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12811 | statfs \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 12812 | statvfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 12813 | strcasecmp \ |
Bang Jun-young | ff96bd6 | 2007-10-15 17:09:12 +0900 | [diff] [blame] | 12814 | strdup \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12815 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 12816 | strncasecmp \ |
Louis Lenders | 6c04a18 | 2006-12-17 17:56:50 +0000 | [diff] [blame] | 12817 | strtold \ |
Rob Shearman | e9f5bce | 2008-03-03 21:48:18 +0000 | [diff] [blame] | 12818 | strtoll \ |
| 12819 | strtoull \ |
Alexandre Julliard | 0fbd556 | 2008-12-22 10:47:16 +0100 | [diff] [blame] | 12820 | symlink \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12821 | tcgetattr \ |
Tijl Coosemans | 0c4f152 | 2007-08-23 14:12:37 +0200 | [diff] [blame] | 12822 | thr_kill2 \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12823 | timegm \ |
| 12824 | usleep \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 12825 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12826 | wait4 \ |
| 12827 | waitpid \ |
| 12828 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12829 | do : |
| 12830 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12831 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 12832 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12833 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12834 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12835 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 12836 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12837 | fi |
| 12838 | done |
| 12839 | |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12840 | CFLAGS="$ac_save_CFLAGS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12841 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12842 | if test "$ac_cv_func_dlopen" = no |
| 12843 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12844 | { $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] | 12845 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12846 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12847 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12848 | else |
| 12849 | ac_check_lib_save_LIBS=$LIBS |
| 12850 | LIBS="-ldl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12852 | /* end confdefs.h. */ |
| 12853 | |
| 12854 | /* Override any GCC internal prototype to avoid an error. |
| 12855 | Use char because int might match the return type of a GCC |
| 12856 | builtin and then its argument prototype would still apply. */ |
| 12857 | #ifdef __cplusplus |
| 12858 | extern "C" |
| 12859 | #endif |
| 12860 | char dlopen (); |
| 12861 | int |
| 12862 | main () |
| 12863 | { |
| 12864 | return dlopen (); |
| 12865 | ; |
| 12866 | return 0; |
| 12867 | } |
| 12868 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12869 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12870 | ac_cv_lib_dl_dlopen=yes |
| 12871 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12872 | ac_cv_lib_dl_dlopen=no |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12873 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12874 | rm -f core conftest.err conftest.$ac_objext \ |
| 12875 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12876 | LIBS=$ac_check_lib_save_LIBS |
| 12877 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12878 | { $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] | 12879 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12880 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| 12881 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12882 | LIBDL="-ldl" |
| 12883 | |
| 12884 | fi |
| 12885 | |
| 12886 | fi |
| 12887 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 12888 | LIBS="$LIBS $LIBDL" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12889 | for ac_func in dladdr |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12890 | do : |
| 12891 | ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" |
| 12892 | if test "x$ac_cv_func_dladdr" = x""yes; then : |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12893 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12894 | #define HAVE_DLADDR 1 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12895 | _ACEOF |
| 12896 | |
| 12897 | fi |
| 12898 | done |
| 12899 | |
| 12900 | LIBS="$ac_wine_check_funcs_save_LIBS" |
| 12901 | |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12902 | if test "$ac_cv_func_poll" = no |
| 12903 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12904 | { $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] | 12905 | $as_echo_n "checking for poll in -lpoll... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12906 | if test "${ac_cv_lib_poll_poll+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12907 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12908 | else |
| 12909 | ac_check_lib_save_LIBS=$LIBS |
| 12910 | LIBS="-lpoll $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12912 | /* end confdefs.h. */ |
| 12913 | |
| 12914 | /* Override any GCC internal prototype to avoid an error. |
| 12915 | Use char because int might match the return type of a GCC |
| 12916 | builtin and then its argument prototype would still apply. */ |
| 12917 | #ifdef __cplusplus |
| 12918 | extern "C" |
| 12919 | #endif |
| 12920 | char poll (); |
| 12921 | int |
| 12922 | main () |
| 12923 | { |
| 12924 | return poll (); |
| 12925 | ; |
| 12926 | return 0; |
| 12927 | } |
| 12928 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12929 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12930 | ac_cv_lib_poll_poll=yes |
| 12931 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12932 | ac_cv_lib_poll_poll=no |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12933 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12934 | rm -f core conftest.err conftest.$ac_objext \ |
| 12935 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12936 | LIBS=$ac_check_lib_save_LIBS |
| 12937 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12938 | { $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] | 12939 | $as_echo "$ac_cv_lib_poll_poll" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12940 | if test "x$ac_cv_lib_poll_poll" = x""yes; then : |
| 12941 | $as_echo "#define HAVE_POLL 1" >>confdefs.h |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12942 | LIBPOLL="-lpoll" |
| 12943 | |
| 12944 | fi |
| 12945 | |
| 12946 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12947 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12948 | { $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] | 12949 | $as_echo_n "checking for library containing gethostbyname... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12950 | if test "${ac_cv_search_gethostbyname+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12951 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12952 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12953 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12955 | /* end confdefs.h. */ |
| 12956 | |
| 12957 | /* Override any GCC internal prototype to avoid an error. |
| 12958 | Use char because int might match the return type of a GCC |
| 12959 | builtin and then its argument prototype would still apply. */ |
| 12960 | #ifdef __cplusplus |
| 12961 | extern "C" |
| 12962 | #endif |
| 12963 | char gethostbyname (); |
| 12964 | int |
| 12965 | main () |
| 12966 | { |
| 12967 | return gethostbyname (); |
| 12968 | ; |
| 12969 | return 0; |
| 12970 | } |
| 12971 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12972 | for ac_lib in '' nsl; do |
| 12973 | if test -z "$ac_lib"; then |
| 12974 | ac_res="none required" |
| 12975 | else |
| 12976 | ac_res=-l$ac_lib |
| 12977 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12978 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12979 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12980 | ac_cv_search_gethostbyname=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12981 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12982 | rm -f core conftest.err conftest.$ac_objext \ |
| 12983 | conftest$ac_exeext |
| 12984 | if test "${ac_cv_search_gethostbyname+set}" = set; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12985 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12986 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12987 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12988 | if test "${ac_cv_search_gethostbyname+set}" = set; then : |
| 12989 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12990 | else |
| 12991 | ac_cv_search_gethostbyname=no |
| 12992 | fi |
| 12993 | rm conftest.$ac_ext |
| 12994 | LIBS=$ac_func_search_save_LIBS |
| 12995 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12996 | { $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] | 12997 | $as_echo "$ac_cv_search_gethostbyname" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12998 | ac_res=$ac_cv_search_gethostbyname |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12999 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13000 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13001 | |
| 13002 | fi |
| 13003 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13004 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13005 | { $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] | 13006 | $as_echo_n "checking for library containing connect... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13007 | if test "${ac_cv_search_connect+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13008 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13009 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13010 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13012 | /* end confdefs.h. */ |
| 13013 | |
| 13014 | /* Override any GCC internal prototype to avoid an error. |
| 13015 | Use char because int might match the return type of a GCC |
| 13016 | builtin and then its argument prototype would still apply. */ |
| 13017 | #ifdef __cplusplus |
| 13018 | extern "C" |
| 13019 | #endif |
| 13020 | char connect (); |
| 13021 | int |
| 13022 | main () |
| 13023 | { |
| 13024 | return connect (); |
| 13025 | ; |
| 13026 | return 0; |
| 13027 | } |
| 13028 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13029 | for ac_lib in '' socket; do |
| 13030 | if test -z "$ac_lib"; then |
| 13031 | ac_res="none required" |
| 13032 | else |
| 13033 | ac_res=-l$ac_lib |
| 13034 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13035 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13036 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13037 | ac_cv_search_connect=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13038 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13039 | rm -f core conftest.err conftest.$ac_objext \ |
| 13040 | conftest$ac_exeext |
| 13041 | if test "${ac_cv_search_connect+set}" = set; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13042 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13043 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13044 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13045 | if test "${ac_cv_search_connect+set}" = set; then : |
| 13046 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13047 | else |
| 13048 | ac_cv_search_connect=no |
| 13049 | fi |
| 13050 | rm conftest.$ac_ext |
| 13051 | LIBS=$ac_func_search_save_LIBS |
| 13052 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13053 | { $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] | 13054 | $as_echo "$ac_cv_search_connect" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13055 | ac_res=$ac_cv_search_connect |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13056 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13057 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13058 | |
| 13059 | fi |
| 13060 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13061 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13062 | { $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] | 13063 | $as_echo_n "checking for library containing inet_aton... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13064 | if test "${ac_cv_search_inet_aton+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13065 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13066 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13067 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13069 | /* end confdefs.h. */ |
| 13070 | |
| 13071 | /* Override any GCC internal prototype to avoid an error. |
| 13072 | Use char because int might match the return type of a GCC |
| 13073 | builtin and then its argument prototype would still apply. */ |
| 13074 | #ifdef __cplusplus |
| 13075 | extern "C" |
| 13076 | #endif |
| 13077 | char inet_aton (); |
| 13078 | int |
| 13079 | main () |
| 13080 | { |
| 13081 | return inet_aton (); |
| 13082 | ; |
| 13083 | return 0; |
| 13084 | } |
| 13085 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13086 | for ac_lib in '' resolv; do |
| 13087 | if test -z "$ac_lib"; then |
| 13088 | ac_res="none required" |
| 13089 | else |
| 13090 | ac_res=-l$ac_lib |
| 13091 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13092 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13093 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13094 | ac_cv_search_inet_aton=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13095 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13096 | rm -f core conftest.err conftest.$ac_objext \ |
| 13097 | conftest$ac_exeext |
| 13098 | if test "${ac_cv_search_inet_aton+set}" = set; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13099 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13100 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13101 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13102 | if test "${ac_cv_search_inet_aton+set}" = set; then : |
| 13103 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13104 | else |
| 13105 | ac_cv_search_inet_aton=no |
| 13106 | fi |
| 13107 | rm conftest.$ac_ext |
| 13108 | LIBS=$ac_func_search_save_LIBS |
| 13109 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13110 | { $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] | 13111 | $as_echo "$ac_cv_search_inet_aton" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13112 | ac_res=$ac_cv_search_inet_aton |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13113 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13114 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13115 | |
| 13116 | fi |
| 13117 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13118 | |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13119 | for ac_func in \ |
| 13120 | getaddrinfo \ |
| 13121 | getnameinfo \ |
| 13122 | getnetbyname \ |
| 13123 | getprotobyname \ |
| 13124 | getprotobynumber \ |
| 13125 | getservbyport \ |
| 13126 | inet_network \ |
Austin English | 0656691 | 2009-03-28 00:13:09 -0500 | [diff] [blame] | 13127 | inet_ntop \ |
| 13128 | inet_pton \ |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13129 | sendmsg \ |
Alexandre Julliard | 98bec05 | 2009-03-26 11:07:28 +0100 | [diff] [blame] | 13130 | socketpair \ |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13131 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13132 | do : |
| 13133 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13134 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13135 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13136 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13137 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13138 | _ACEOF |
| 13139 | |
| 13140 | fi |
| 13141 | done |
| 13142 | |
| 13143 | |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13144 | LDAPLIBS="" |
| 13145 | |
| 13146 | if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes" |
| 13147 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13148 | ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h> |
| 13149 | " |
| 13150 | if test "x$ac_cv_type_LDAPSortKey" = x""yes; then : |
| 13151 | { $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] | 13152 | $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13153 | if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13154 | $as_echo_n "(cached) " >&6 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13155 | else |
| 13156 | ac_check_lib_save_LIBS=$LIBS |
| 13157 | LIBS="-lldap_r $LIBPTHREAD $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13159 | /* end confdefs.h. */ |
| 13160 | |
| 13161 | /* Override any GCC internal prototype to avoid an error. |
| 13162 | Use char because int might match the return type of a GCC |
| 13163 | builtin and then its argument prototype would still apply. */ |
| 13164 | #ifdef __cplusplus |
| 13165 | extern "C" |
| 13166 | #endif |
| 13167 | char ldap_initialize (); |
| 13168 | int |
| 13169 | main () |
| 13170 | { |
| 13171 | return ldap_initialize (); |
| 13172 | ; |
| 13173 | return 0; |
| 13174 | } |
| 13175 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13176 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13177 | ac_cv_lib_ldap_r_ldap_initialize=yes |
| 13178 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13179 | ac_cv_lib_ldap_r_ldap_initialize=no |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13180 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13181 | rm -f core conftest.err conftest.$ac_objext \ |
| 13182 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13183 | LIBS=$ac_check_lib_save_LIBS |
| 13184 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13185 | { $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] | 13186 | $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13187 | if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then : |
| 13188 | { $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] | 13189 | $as_echo_n "checking for ber_init in -llber... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13190 | if test "${ac_cv_lib_lber_ber_init+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13191 | $as_echo_n "(cached) " >&6 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13192 | else |
| 13193 | ac_check_lib_save_LIBS=$LIBS |
| 13194 | LIBS="-llber $LIBPTHREAD $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13196 | /* end confdefs.h. */ |
| 13197 | |
| 13198 | /* Override any GCC internal prototype to avoid an error. |
| 13199 | Use char because int might match the return type of a GCC |
| 13200 | builtin and then its argument prototype would still apply. */ |
| 13201 | #ifdef __cplusplus |
| 13202 | extern "C" |
| 13203 | #endif |
| 13204 | char ber_init (); |
| 13205 | int |
| 13206 | main () |
| 13207 | { |
| 13208 | return ber_init (); |
| 13209 | ; |
| 13210 | return 0; |
| 13211 | } |
| 13212 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13213 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13214 | ac_cv_lib_lber_ber_init=yes |
| 13215 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13216 | ac_cv_lib_lber_ber_init=no |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13217 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13218 | rm -f core conftest.err conftest.$ac_objext \ |
| 13219 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13220 | LIBS=$ac_check_lib_save_LIBS |
| 13221 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13222 | { $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] | 13223 | $as_echo "$ac_cv_lib_lber_ber_init" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13224 | if test "x$ac_cv_lib_lber_ber_init" = x""yes; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13225 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13226 | $as_echo "#define HAVE_LDAP 1" >>confdefs.h |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13227 | |
| 13228 | LDAPLIBS="-lldap_r -llber" |
| 13229 | fi |
| 13230 | |
| 13231 | fi |
| 13232 | |
| 13233 | fi |
| 13234 | |
| 13235 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 13236 | LIBS="$LIBS $LDAPLIBS $LIBPTHREAD" |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13237 | for ac_func in \ |
| 13238 | ldap_count_references \ |
| 13239 | ldap_first_reference \ |
| 13240 | ldap_next_reference \ |
| 13241 | ldap_parse_reference \ |
| 13242 | ldap_parse_sort_control \ |
| 13243 | ldap_parse_sortresponse_control \ |
| 13244 | ldap_parse_vlv_control \ |
| 13245 | ldap_parse_vlvresponse_control |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13246 | do : |
| 13247 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13248 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13249 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13250 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13251 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13252 | _ACEOF |
| 13253 | |
| 13254 | fi |
| 13255 | done |
| 13256 | |
| 13257 | LIBS="$ac_wine_check_funcs_save_LIBS" |
| 13258 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13259 | if test "x$LDAPLIBS" = "x"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13260 | case "x$with_ldap" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 13261 | 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] | 13262 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13263 | *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported. |
| 13264 | This is an error since --with-ldap was requested." "$LINENO" 5 ;; |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13265 | esac |
| 13266 | fi |
| 13267 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13268 | { $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] | 13269 | $as_echo_n "checking whether mkdir takes only one argument... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13270 | if test "${wine_cv_one_arg_mkdir+set}" = set; then : |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13271 | $as_echo_n "(cached) " >&6 |
| 13272 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13274 | /* end confdefs.h. */ |
| 13275 | #include <sys/stat.h> |
| 13276 | int |
| 13277 | main () |
| 13278 | { |
| 13279 | mkdir("foo"); |
| 13280 | ; |
| 13281 | return 0; |
| 13282 | } |
| 13283 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13284 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13285 | wine_cv_one_arg_mkdir=yes |
| 13286 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13287 | wine_cv_one_arg_mkdir=no |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13288 | fi |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13290 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13291 | { $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] | 13292 | $as_echo "$wine_cv_one_arg_mkdir" >&6; } |
| 13293 | if test "$wine_cv_one_arg_mkdir" = "yes" |
| 13294 | then |
| 13295 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13296 | $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13297 | |
| 13298 | fi |
| 13299 | |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13300 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13301 | { $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] | 13302 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13303 | if test "${ac_cv_c_const+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13304 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13305 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13307 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13308 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13309 | int |
| 13310 | main () |
| 13311 | { |
| 13312 | /* FIXME: Include the comments suggested by Paul. */ |
| 13313 | #ifndef __cplusplus |
| 13314 | /* Ultrix mips cc rejects this. */ |
| 13315 | typedef int charset[2]; |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13316 | const charset cs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13317 | /* SunOS 4.1.1 cc rejects this. */ |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13318 | char const *const *pcpcc; |
| 13319 | char **ppc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13320 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13321 | struct point {int x, y;}; |
| 13322 | static struct point const zero = {0,0}; |
| 13323 | /* AIX XL C 1.02.0.0 rejects this. |
| 13324 | It does not let you subtract one const X* pointer from another in |
| 13325 | an arm of an if-expression whose if-part is not a constant |
| 13326 | expression */ |
| 13327 | const char *g = "string"; |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13328 | pcpcc = &g + (g ? g-g : 0); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13329 | /* HPUX 7.0 cc rejects these. */ |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13330 | ++pcpcc; |
| 13331 | ppc = (char**) pcpcc; |
| 13332 | pcpcc = (char const *const *) ppc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13333 | { /* SCO 3.2v4 cc rejects this. */ |
| 13334 | char *t; |
| 13335 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13336 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13337 | *t++ = 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13338 | if (s) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13339 | } |
| 13340 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13341 | int x[] = {25, 17}; |
| 13342 | const int *foo = &x[0]; |
| 13343 | ++foo; |
| 13344 | } |
| 13345 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13346 | typedef const int *iptr; |
| 13347 | iptr p = 0; |
| 13348 | ++p; |
| 13349 | } |
| 13350 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13351 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13352 | struct s { int j; const int *ap[3]; }; |
| 13353 | struct s *b; b->j = 5; |
| 13354 | } |
| 13355 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13356 | const int foo = 10; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13357 | if (!foo) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13358 | } |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13359 | return !cs[0] && !zero.x; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13360 | #endif |
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 | ; |
| 13363 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13364 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13365 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13366 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13367 | ac_cv_c_const=yes |
| 13368 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13369 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13370 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13372 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13373 | { $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] | 13374 | $as_echo "$ac_cv_c_const" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13375 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13376 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13377 | $as_echo "#define const /**/" >>confdefs.h |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13378 | |
| 13379 | fi |
| 13380 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13382 | $as_echo_n "checking for inline... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13383 | if test "${ac_cv_c_inline+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13384 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13385 | else |
| 13386 | ac_cv_c_inline=no |
| 13387 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13389 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13390 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13391 | typedef int foo_t; |
| 13392 | static $ac_kw foo_t static_foo () {return 0; } |
| 13393 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13394 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13395 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13396 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13397 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13398 | ac_cv_c_inline=$ac_kw |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13399 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13401 | test "$ac_cv_c_inline" != no && break |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13402 | done |
| 13403 | |
| 13404 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13405 | { $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] | 13406 | $as_echo "$ac_cv_c_inline" >&6; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13407 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13408 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13409 | inline | yes) ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13410 | *) |
| 13411 | case $ac_cv_c_inline in |
| 13412 | no) ac_val=;; |
| 13413 | *) ac_val=$ac_cv_c_inline;; |
| 13414 | esac |
| 13415 | cat >>confdefs.h <<_ACEOF |
| 13416 | #ifndef __cplusplus |
| 13417 | #define inline $ac_val |
| 13418 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13419 | _ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13420 | ;; |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13421 | esac |
| 13422 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13423 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 13424 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13425 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13426 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13427 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13428 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13429 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13430 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13431 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13432 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 13433 | if test "x$ac_cv_type_off_t" = x""yes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13434 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13435 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13436 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13437 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13438 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13439 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13440 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13441 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 13442 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13443 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13444 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13445 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13446 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13447 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13448 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13449 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13450 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 13451 | if test "x$ac_cv_type_size_t" = x""yes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13452 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13453 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13454 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13455 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13456 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13457 | |
| 13458 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13459 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 13460 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13461 | |
| 13462 | cat >>confdefs.h <<_ACEOF |
| 13463 | #define HAVE_SSIZE_T 1 |
| 13464 | _ACEOF |
| 13465 | |
| 13466 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13467 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13468 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
| 13469 | if test "x$ac_cv_type_long_long" = x""yes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13470 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13471 | cat >>confdefs.h <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13472 | #define HAVE_LONG_LONG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13473 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13474 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13475 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13476 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13477 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default" |
| 13478 | if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13479 | |
| 13480 | cat >>confdefs.h <<_ACEOF |
| 13481 | #define HAVE_FSBLKCNT_T 1 |
| 13482 | _ACEOF |
| 13483 | |
| 13484 | |
| 13485 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13486 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default" |
| 13487 | if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13488 | |
| 13489 | cat >>confdefs.h <<_ACEOF |
| 13490 | #define HAVE_FSFILCNT_T 1 |
| 13491 | _ACEOF |
| 13492 | |
| 13493 | |
| 13494 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13495 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13496 | 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] | 13497 | #include <signal.h> |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13498 | " |
| 13499 | if test "x$ac_cv_type_sigset_t" = x""yes; then : |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13500 | |
| 13501 | cat >>confdefs.h <<_ACEOF |
| 13502 | #define HAVE_SIGSET_T 1 |
| 13503 | _ACEOF |
| 13504 | |
| 13505 | |
| 13506 | fi |
| 13507 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13508 | ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h> |
| 13509 | " |
| 13510 | if test "x$ac_cv_type_request_sense" = x""yes; then : |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 13511 | |
| 13512 | cat >>confdefs.h <<_ACEOF |
| 13513 | #define HAVE_REQUEST_SENSE 1 |
| 13514 | _ACEOF |
| 13515 | |
| 13516 | |
| 13517 | fi |
| 13518 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13519 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13520 | 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] | 13521 | #ifdef HAVE_SYS_SOCKET_H |
| 13522 | #include <sys/socket.h> |
| 13523 | #endif |
| 13524 | #ifdef HAVE_SYS_SOCKETVAR_H |
| 13525 | #include <sys/socketvar.h> |
| 13526 | #endif |
| 13527 | #ifdef HAVE_NET_ROUTE_H |
| 13528 | #include <net/route.h> |
| 13529 | #endif |
| 13530 | #ifdef HAVE_NETINET_IN_H |
| 13531 | #include <netinet/in.h> |
| 13532 | #endif |
| 13533 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 13534 | #include <netinet/in_systm.h> |
| 13535 | #endif |
| 13536 | #ifdef HAVE_NETINET_IP_H |
| 13537 | #include <netinet/ip.h> |
| 13538 | #endif |
| 13539 | #ifdef HAVE_NETINET_IN_PCB_H |
| 13540 | #include <netinet/in_pcb.h> |
| 13541 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13542 | " |
| 13543 | if test "x$ac_cv_type_struct_xinpgen" = x""yes; then : |
Austin English | 68f2db2 | 2009-01-29 08:28:37 -0600 | [diff] [blame] | 13544 | |
| 13545 | cat >>confdefs.h <<_ACEOF |
| 13546 | #define HAVE_STRUCT_XINPGEN 1 |
| 13547 | _ACEOF |
| 13548 | |
| 13549 | |
| 13550 | fi |
| 13551 | |
| 13552 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13553 | 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] | 13554 | #include <linux/input.h> |
| 13555 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13556 | " |
| 13557 | 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] | 13558 | |
| 13559 | cat >>confdefs.h <<_ACEOF |
| 13560 | #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1 |
| 13561 | _ACEOF |
| 13562 | |
| 13563 | |
| 13564 | fi |
| 13565 | |
| 13566 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13568 | $as_echo_n "checking for sigaddset... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13569 | if test "${wine_cv_have_sigaddset+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13570 | $as_echo_n "(cached) " >&6 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13571 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13573 | /* end confdefs.h. */ |
| 13574 | #include <signal.h> |
| 13575 | int |
| 13576 | main () |
| 13577 | { |
| 13578 | sigset_t set; sigaddset(&set,SIGTERM); |
| 13579 | ; |
| 13580 | return 0; |
| 13581 | } |
| 13582 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13583 | if ac_fn_c_try_link "$LINENO"; then : |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13584 | wine_cv_have_sigaddset=yes |
| 13585 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13586 | wine_cv_have_sigaddset=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13587 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13588 | rm -f core conftest.err conftest.$ac_objext \ |
| 13589 | conftest$ac_exeext conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13590 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13591 | { $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] | 13592 | $as_echo "$wine_cv_have_sigaddset" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13593 | if test "$wine_cv_have_sigaddset" = "yes" |
| 13594 | then |
| 13595 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13596 | $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13597 | |
| 13598 | fi |
| 13599 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13600 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13601 | { $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] | 13602 | $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] | 13603 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13604 | $as_echo_n "(cached) " >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13605 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13607 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13608 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13609 | int |
| 13610 | main () |
| 13611 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13612 | |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13613 | char *name=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13614 | struct hostent he; |
| 13615 | struct hostent *result; |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13616 | char *buf=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13617 | int bufsize=0; |
| 13618 | int res,errnr; |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13619 | char *addr=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13620 | int addrlen=0; |
| 13621 | int addrtype=0; |
| 13622 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 13623 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13624 | |
| 13625 | ; |
| 13626 | return 0; |
| 13627 | } |
| 13628 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13629 | if ac_fn_c_try_link "$LINENO"; then : |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13630 | wine_cv_linux_gethostbyname_r_6=yes |
| 13631 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13632 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13633 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13634 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13635 | rm -f core conftest.err conftest.$ac_objext \ |
| 13636 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13637 | |
| 13638 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13639 | { $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] | 13640 | $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; } |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13641 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 13642 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13643 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13644 | $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13645 | |
| 13646 | fi |
| 13647 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13648 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13649 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13650 | { $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] | 13651 | $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] | 13652 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13653 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13654 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13656 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13657 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13658 | #include <sys/ioctl.h> |
Marcus Meissner | 7c43499 | 2007-04-12 12:12:05 +0200 | [diff] [blame] | 13659 | #include <sys/types.h> |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13660 | #include <linux/joystick.h> |
| 13661 | |
| 13662 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 13663 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 13664 | #error "no 2.2 header" |
| 13665 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13666 | |
| 13667 | int |
| 13668 | main () |
| 13669 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13670 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13671 | ; |
| 13672 | return 0; |
| 13673 | } |
| 13674 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13675 | if ac_fn_c_try_compile "$LINENO"; then : |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13676 | wine_cv_linux_joystick_22_api=yes |
| 13677 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13678 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13679 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13681 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13682 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13683 | { $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] | 13684 | $as_echo "$wine_cv_linux_joystick_22_api" >&6; } |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 13685 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13686 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13687 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13688 | $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13689 | |
| 13690 | fi |
| 13691 | fi |
| 13692 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13693 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13694 | 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] | 13695 | #ifdef HAVE_SYS_PARAM_H |
| 13696 | # include <sys/param.h> |
| 13697 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13698 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13699 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13700 | #endif |
| 13701 | #ifdef HAVE_SYS_VFS_H |
| 13702 | # include <sys/vfs.h> |
| 13703 | #endif |
| 13704 | #ifdef HAVE_SYS_STATFS_H |
| 13705 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13706 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13707 | " |
| 13708 | 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] | 13709 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13710 | cat >>confdefs.h <<_ACEOF |
| 13711 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13712 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13713 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13714 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13715 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13716 | 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] | 13717 | #ifdef HAVE_SYS_PARAM_H |
| 13718 | # include <sys/param.h> |
| 13719 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13720 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13721 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13722 | #endif |
| 13723 | #ifdef HAVE_SYS_VFS_H |
| 13724 | # include <sys/vfs.h> |
| 13725 | #endif |
| 13726 | #ifdef HAVE_SYS_STATFS_H |
| 13727 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13728 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13729 | " |
| 13730 | 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] | 13731 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13732 | cat >>confdefs.h <<_ACEOF |
| 13733 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13734 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13735 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13736 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13737 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13738 | 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] | 13739 | #ifdef HAVE_SYS_PARAM_H |
| 13740 | # include <sys/param.h> |
| 13741 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13742 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13743 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13744 | #endif |
| 13745 | #ifdef HAVE_SYS_VFS_H |
| 13746 | # include <sys/vfs.h> |
| 13747 | #endif |
| 13748 | #ifdef HAVE_SYS_STATFS_H |
| 13749 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13750 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13751 | " |
| 13752 | 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] | 13753 | |
| 13754 | cat >>confdefs.h <<_ACEOF |
| 13755 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 |
| 13756 | _ACEOF |
| 13757 | |
| 13758 | |
| 13759 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13760 | 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] | 13761 | #ifdef HAVE_SYS_PARAM_H |
| 13762 | # include <sys/param.h> |
| 13763 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13764 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13765 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13766 | #endif |
| 13767 | #ifdef HAVE_SYS_VFS_H |
| 13768 | # include <sys/vfs.h> |
| 13769 | #endif |
| 13770 | #ifdef HAVE_SYS_STATFS_H |
| 13771 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13772 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13773 | " |
| 13774 | 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] | 13775 | |
| 13776 | cat >>confdefs.h <<_ACEOF |
| 13777 | #define HAVE_STRUCT_STATFS_F_FFREE 1 |
| 13778 | _ACEOF |
| 13779 | |
| 13780 | |
| 13781 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13782 | 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] | 13783 | #ifdef HAVE_SYS_PARAM_H |
| 13784 | # include <sys/param.h> |
| 13785 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13786 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13787 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13788 | #endif |
| 13789 | #ifdef HAVE_SYS_VFS_H |
| 13790 | # include <sys/vfs.h> |
| 13791 | #endif |
| 13792 | #ifdef HAVE_SYS_STATFS_H |
| 13793 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13794 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13795 | " |
| 13796 | 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] | 13797 | |
| 13798 | cat >>confdefs.h <<_ACEOF |
| 13799 | #define HAVE_STRUCT_STATFS_F_FAVAIL 1 |
| 13800 | _ACEOF |
| 13801 | |
| 13802 | |
| 13803 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13804 | 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] | 13805 | #ifdef HAVE_SYS_PARAM_H |
| 13806 | # include <sys/param.h> |
| 13807 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13808 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13809 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13810 | #endif |
| 13811 | #ifdef HAVE_SYS_VFS_H |
| 13812 | # include <sys/vfs.h> |
| 13813 | #endif |
| 13814 | #ifdef HAVE_SYS_STATFS_H |
| 13815 | # include <sys/statfs.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13816 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13817 | " |
| 13818 | 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] | 13819 | |
| 13820 | cat >>confdefs.h <<_ACEOF |
| 13821 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 |
| 13822 | _ACEOF |
| 13823 | |
| 13824 | |
| 13825 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13826 | |
| 13827 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13828 | 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] | 13829 | #include <sys/statvfs.h> |
| 13830 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13831 | " |
| 13832 | 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] | 13833 | |
| 13834 | cat >>confdefs.h <<_ACEOF |
| 13835 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 |
| 13836 | _ACEOF |
| 13837 | |
| 13838 | |
| 13839 | fi |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13840 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13841 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13842 | 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] | 13843 | #ifdef HAVE_SYS_SOCKET_H |
| 13844 | # include <sys/socket.h> |
| 13845 | #endif |
| 13846 | #ifdef HAVE_SYS_UN_H |
| 13847 | # include <sys/un.h> |
| 13848 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13849 | " |
| 13850 | 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] | 13851 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13852 | cat >>confdefs.h <<_ACEOF |
| 13853 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13854 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13855 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13856 | |
| 13857 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13858 | 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] | 13859 | #ifdef HAVE_SYS_SOCKET_H |
| 13860 | # include <sys/socket.h> |
| 13861 | #endif |
| 13862 | #ifdef HAVE_SYS_UN_H |
| 13863 | # include <sys/un.h> |
| 13864 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13865 | " |
| 13866 | 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] | 13867 | |
| 13868 | cat >>confdefs.h <<_ACEOF |
| 13869 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 13870 | _ACEOF |
| 13871 | |
| 13872 | |
| 13873 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13874 | 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] | 13875 | #ifdef HAVE_SYS_SOCKET_H |
| 13876 | # include <sys/socket.h> |
| 13877 | #endif |
| 13878 | #ifdef HAVE_SYS_UN_H |
| 13879 | # include <sys/un.h> |
| 13880 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13881 | " |
| 13882 | 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] | 13883 | |
| 13884 | cat >>confdefs.h <<_ACEOF |
| 13885 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 13886 | _ACEOF |
| 13887 | |
| 13888 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13889 | fi |
| 13890 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13891 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13892 | 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] | 13893 | #ifdef HAVE_SCSI_SG_H |
| 13894 | #include <scsi/sg.h> |
| 13895 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13896 | " |
| 13897 | if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then : |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 13898 | |
| 13899 | cat >>confdefs.h <<_ACEOF |
| 13900 | #define HAVE_SCSIREQ_T_CMD 1 |
| 13901 | _ACEOF |
| 13902 | |
| 13903 | |
| 13904 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13905 | 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] | 13906 | #ifdef HAVE_SCSI_SG_H |
| 13907 | #include <scsi/sg.h> |
| 13908 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13909 | " |
| 13910 | 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] | 13911 | |
| 13912 | cat >>confdefs.h <<_ACEOF |
| 13913 | #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1 |
| 13914 | _ACEOF |
| 13915 | |
| 13916 | |
| 13917 | fi |
| 13918 | |
| 13919 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13920 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h> |
| 13921 | " |
| 13922 | 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] | 13923 | |
| 13924 | cat >>confdefs.h <<_ACEOF |
| 13925 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 13926 | _ACEOF |
| 13927 | |
| 13928 | |
| 13929 | fi |
| 13930 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13931 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13932 | 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] | 13933 | #ifdef HAVE_SYS_MTIO_H |
| 13934 | #include <sys/mtio.h> |
| 13935 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13936 | " |
| 13937 | 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] | 13938 | |
| 13939 | cat >>confdefs.h <<_ACEOF |
| 13940 | #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1 |
| 13941 | _ACEOF |
| 13942 | |
| 13943 | |
| 13944 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13945 | 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] | 13946 | #ifdef HAVE_SYS_MTIO_H |
| 13947 | #include <sys/mtio.h> |
| 13948 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13949 | " |
| 13950 | 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] | 13951 | |
| 13952 | cat >>confdefs.h <<_ACEOF |
| 13953 | #define HAVE_STRUCT_MTGET_MT_GSTAT 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" "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] | 13959 | #ifdef HAVE_SYS_MTIO_H |
| 13960 | #include <sys/mtio.h> |
| 13961 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13962 | " |
| 13963 | 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] | 13964 | |
| 13965 | cat >>confdefs.h <<_ACEOF |
| 13966 | #define HAVE_STRUCT_MTGET_MT_BLKNO 1 |
| 13967 | _ACEOF |
| 13968 | |
| 13969 | |
| 13970 | fi |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 13971 | |
| 13972 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13973 | 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] | 13974 | #include <getopt.h> |
| 13975 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13976 | " |
| 13977 | if test "x$ac_cv_member_struct_option_name" = x""yes; then : |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 13978 | |
| 13979 | cat >>confdefs.h <<_ACEOF |
| 13980 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 13981 | _ACEOF |
| 13982 | |
| 13983 | |
| 13984 | fi |
| 13985 | |
| 13986 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13987 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
| 13988 | 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] | 13989 | |
| 13990 | cat >>confdefs.h <<_ACEOF |
| 13991 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13992 | _ACEOF |
| 13993 | |
| 13994 | |
| 13995 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13996 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" |
| 13997 | 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] | 13998 | |
| 13999 | cat >>confdefs.h <<_ACEOF |
| 14000 | #define HAVE_STRUCT_STAT_ST_MTIM 1 |
| 14001 | _ACEOF |
| 14002 | |
| 14003 | |
| 14004 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14005 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default" |
| 14006 | 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] | 14007 | |
| 14008 | cat >>confdefs.h <<_ACEOF |
| 14009 | #define HAVE_STRUCT_STAT_ST_CTIM 1 |
| 14010 | _ACEOF |
| 14011 | |
| 14012 | |
| 14013 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14014 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
| 14015 | 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] | 14016 | |
| 14017 | cat >>confdefs.h <<_ACEOF |
| 14018 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 14019 | _ACEOF |
| 14020 | |
| 14021 | |
| 14022 | fi |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 14023 | |
| 14024 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14025 | 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] | 14026 | #include <sys/types.h> |
| 14027 | #endif |
| 14028 | #ifdef HAVE_NETINET_IN_H |
| 14029 | #include <netinet/in.h> |
| 14030 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14031 | " |
| 14032 | 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] | 14033 | |
| 14034 | cat >>confdefs.h <<_ACEOF |
| 14035 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 14036 | _ACEOF |
| 14037 | |
| 14038 | |
| 14039 | fi |
| 14040 | |
| 14041 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14042 | 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] | 14043 | #include <sys/types.h> |
| 14044 | #endif |
| 14045 | #ifdef HAVE_NETINET_IN_H |
| 14046 | # include <netinet/in.h> |
| 14047 | #endif |
| 14048 | #ifdef HAVE_ARPA_NAMESER_H |
| 14049 | # include <arpa/nameser.h> |
| 14050 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14051 | " |
| 14052 | 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] | 14053 | |
| 14054 | cat >>confdefs.h <<_ACEOF |
| 14055 | #define HAVE_NS_MSG__MSG_PTR 1 |
| 14056 | _ACEOF |
| 14057 | |
| 14058 | |
| 14059 | fi |
| 14060 | |
| 14061 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14062 | 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] | 14063 | #include <sys/types.h> |
| 14064 | #endif |
| 14065 | #ifdef HAVE_ALIAS_H |
| 14066 | #include <alias.h> |
| 14067 | #endif |
| 14068 | #ifdef HAVE_SYS_SOCKET_H |
| 14069 | #include <sys/socket.h> |
| 14070 | #endif |
| 14071 | #ifdef HAVE_SYS_SOCKETVAR_H |
| 14072 | #include <sys/socketvar.h> |
| 14073 | #endif |
| 14074 | #ifdef HAVE_SYS_TIMEOUT_H |
| 14075 | #include <sys/timeout.h> |
| 14076 | #endif |
| 14077 | #ifdef HAVE_NETINET_IN_H |
| 14078 | #include <netinet/in.h> |
| 14079 | #endif |
| 14080 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 14081 | #include <netinet/in_systm.h> |
| 14082 | #endif |
| 14083 | #ifdef HAVE_NETINET_IP_H |
| 14084 | #include <netinet/ip.h> |
| 14085 | #endif |
| 14086 | #ifdef HAVE_NETINET_IP_VAR_H |
| 14087 | #include <netinet/ip_var.h> |
| 14088 | #endif |
| 14089 | #ifdef HAVE_NETINET_IP_ICMP_H |
| 14090 | #include <netinet/ip_icmp.h> |
| 14091 | #endif |
| 14092 | #ifdef HAVE_NETINET_ICMP_VAR |
| 14093 | #include <netinet/icmp_var.h> |
| 14094 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14095 | " |
| 14096 | 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] | 14097 | |
| 14098 | cat >>confdefs.h <<_ACEOF |
| 14099 | #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1 |
| 14100 | _ACEOF |
| 14101 | |
| 14102 | |
| 14103 | fi |
| 14104 | |
| 14105 | |
Juan Lang | 984c3b2 | 2010-03-12 10:38:46 -0800 | [diff] [blame] | 14106 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H |
| 14107 | #include <sys/types.h> |
| 14108 | #endif |
| 14109 | #ifdef HAVE_NET_IF_H |
| 14110 | # include <net/if.h> |
| 14111 | #endif |
| 14112 | " |
| 14113 | if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : |
| 14114 | |
| 14115 | cat >>confdefs.h <<_ACEOF |
| 14116 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 |
| 14117 | _ACEOF |
| 14118 | |
| 14119 | |
| 14120 | fi |
| 14121 | |
| 14122 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14124 | $as_echo_n "checking for timezone variable... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14125 | if test "${ac_cv_have_timezone+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14126 | $as_echo_n "(cached) " >&6 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14127 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14129 | /* end confdefs.h. */ |
| 14130 | #include <time.h> |
| 14131 | int |
| 14132 | main () |
| 14133 | { |
Alexandre Julliard | ff2bd66 | 2006-08-25 13:23:29 +0200 | [diff] [blame] | 14134 | timezone = 1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14135 | ; |
| 14136 | return 0; |
| 14137 | } |
| 14138 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14139 | if ac_fn_c_try_link "$LINENO"; then : |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14140 | ac_cv_have_timezone="yes" |
| 14141 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14142 | ac_cv_have_timezone="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14143 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14144 | rm -f core conftest.err conftest.$ac_objext \ |
| 14145 | conftest$ac_exeext conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14146 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14147 | { $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] | 14148 | $as_echo "$ac_cv_have_timezone" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14149 | if test "$ac_cv_have_timezone" = "yes" |
| 14150 | then |
| 14151 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14152 | $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14153 | |
| 14154 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14156 | $as_echo_n "checking for daylight variable... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14157 | if test "${ac_cv_have_daylight+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14158 | $as_echo_n "(cached) " >&6 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14159 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14161 | /* end confdefs.h. */ |
| 14162 | #include <time.h> |
| 14163 | int |
| 14164 | main () |
| 14165 | { |
Alexandre Julliard | ff2bd66 | 2006-08-25 13:23:29 +0200 | [diff] [blame] | 14166 | daylight = 1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14167 | ; |
| 14168 | return 0; |
| 14169 | } |
| 14170 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14171 | if ac_fn_c_try_link "$LINENO"; then : |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14172 | ac_cv_have_daylight="yes" |
| 14173 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14174 | ac_cv_have_daylight="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14175 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14176 | rm -f core conftest.err conftest.$ac_objext \ |
| 14177 | conftest$ac_exeext conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14178 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14179 | { $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] | 14180 | $as_echo "$ac_cv_have_daylight" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14181 | if test "$ac_cv_have_daylight" = "yes" |
| 14182 | then |
| 14183 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14184 | $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14185 | |
| 14186 | fi |
| 14187 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14189 | $as_echo_n "checking for isinf... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14190 | if test "${ac_cv_have_isinf+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14191 | $as_echo_n "(cached) " >&6 |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14192 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14194 | /* end confdefs.h. */ |
| 14195 | #include <math.h> |
| 14196 | int |
| 14197 | main () |
| 14198 | { |
Francois Gouget | 2fef93a | 2008-06-26 15:59:05 +0200 | [diff] [blame] | 14199 | float f = 0.0; int i=isinf(f) |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14200 | ; |
| 14201 | return 0; |
| 14202 | } |
| 14203 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14204 | if ac_fn_c_try_link "$LINENO"; then : |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14205 | ac_cv_have_isinf="yes" |
| 14206 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14207 | ac_cv_have_isinf="no" |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14208 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14209 | rm -f core conftest.err conftest.$ac_objext \ |
| 14210 | conftest$ac_exeext conftest.$ac_ext |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14211 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14212 | { $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] | 14213 | $as_echo "$ac_cv_have_isinf" >&6; } |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14214 | if test "$ac_cv_have_isinf" = "yes" |
| 14215 | then |
| 14216 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14217 | $as_echo "#define HAVE_ISINF 1" >>confdefs.h |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14218 | |
| 14219 | fi |
| 14220 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14222 | $as_echo_n "checking for isnan... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14223 | if test "${ac_cv_have_isnan+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14224 | $as_echo_n "(cached) " >&6 |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14225 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14227 | /* end confdefs.h. */ |
| 14228 | #include <math.h> |
| 14229 | int |
| 14230 | main () |
| 14231 | { |
| 14232 | float f = 0.0; int i=isnan(f) |
| 14233 | ; |
| 14234 | return 0; |
| 14235 | } |
| 14236 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14237 | if ac_fn_c_try_link "$LINENO"; then : |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14238 | ac_cv_have_isnan="yes" |
| 14239 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14240 | ac_cv_have_isnan="no" |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14241 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14242 | rm -f core conftest.err conftest.$ac_objext \ |
| 14243 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14244 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14245 | { $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] | 14246 | $as_echo "$ac_cv_have_isnan" >&6; } |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14247 | if test "$ac_cv_have_isnan" = "yes" |
| 14248 | then |
| 14249 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14250 | $as_echo "#define HAVE_ISNAN 1" >>confdefs.h |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14251 | |
| 14252 | fi |
| 14253 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14254 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14255 | case $host_cpu in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14256 | *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] | 14257 | $as_echo_n "checking whether we need to define __i386__... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14258 | if test "${ac_cv_cpp_def___i386__+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14259 | $as_echo_n "(cached) " >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 14260 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14262 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14263 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14264 | yes |
| 14265 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14266 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14267 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14268 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14269 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14270 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14271 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14272 | fi |
| 14273 | rm -f conftest* |
| 14274 | |
| 14275 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14276 | { $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] | 14277 | $as_echo "$ac_cv_cpp_def___i386__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14278 | if test $ac_cv_cpp_def___i386__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14279 | CFLAGS="$CFLAGS -D__i386__" |
| 14280 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14281 | fi ;; |
| 14282 | *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] | 14283 | $as_echo_n "checking whether we need to define __x86_64__... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14284 | if test "${ac_cv_cpp_def___x86_64__+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14285 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14286 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14288 | /* end confdefs.h. */ |
| 14289 | #ifndef __x86_64__ |
| 14290 | yes |
| 14291 | #endif |
| 14292 | _ACEOF |
| 14293 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14294 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14295 | ac_cv_cpp_def___x86_64__=yes |
| 14296 | else |
| 14297 | ac_cv_cpp_def___x86_64__=no |
| 14298 | fi |
| 14299 | rm -f conftest* |
| 14300 | |
| 14301 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14302 | { $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] | 14303 | $as_echo "$ac_cv_cpp_def___x86_64__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14304 | if test $ac_cv_cpp_def___x86_64__ = yes; then : |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14305 | CFLAGS="$CFLAGS -D__x86_64__" |
| 14306 | LINTFLAGS="$LINTFLAGS -D__x86_64__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14307 | fi ;; |
| 14308 | *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] | 14309 | $as_echo_n "checking whether we need to define __ALPHA__... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14310 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14311 | $as_echo_n "(cached) " >&6 |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 14312 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14314 | /* end confdefs.h. */ |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 14315 | #ifndef __ALPHA__ |
| 14316 | yes |
| 14317 | #endif |
| 14318 | _ACEOF |
| 14319 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14320 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14321 | ac_cv_cpp_def___ALPHA__=yes |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 14322 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14323 | ac_cv_cpp_def___ALPHA__=no |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 14324 | fi |
| 14325 | rm -f conftest* |
| 14326 | |
| 14327 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14328 | { $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] | 14329 | $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14330 | if test $ac_cv_cpp_def___ALPHA__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14331 | CFLAGS="$CFLAGS -D__ALPHA__" |
| 14332 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14333 | fi ;; |
| 14334 | *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] | 14335 | $as_echo_n "checking whether we need to define __sparc__... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14336 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14337 | $as_echo_n "(cached) " >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14338 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14340 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14341 | #ifndef __sparc__ |
| 14342 | yes |
| 14343 | #endif |
| 14344 | _ACEOF |
| 14345 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14346 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14347 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14348 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14349 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14350 | fi |
| 14351 | rm -f conftest* |
| 14352 | |
| 14353 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14354 | { $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] | 14355 | $as_echo "$ac_cv_cpp_def___sparc__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14356 | if test $ac_cv_cpp_def___sparc__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14357 | CFLAGS="$CFLAGS -D__sparc__" |
| 14358 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14359 | fi ;; |
| 14360 | *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] | 14361 | $as_echo_n "checking whether we need to define __powerpc__... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14362 | if test "${ac_cv_cpp_def___powerpc__+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14363 | $as_echo_n "(cached) " >&6 |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14364 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14366 | /* end confdefs.h. */ |
| 14367 | #ifndef __powerpc__ |
| 14368 | yes |
| 14369 | #endif |
| 14370 | _ACEOF |
| 14371 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14372 | $EGREP "yes" >/dev/null 2>&1; then : |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14373 | ac_cv_cpp_def___powerpc__=yes |
| 14374 | else |
| 14375 | ac_cv_cpp_def___powerpc__=no |
| 14376 | fi |
| 14377 | rm -f conftest* |
| 14378 | |
| 14379 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14380 | { $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] | 14381 | $as_echo "$ac_cv_cpp_def___powerpc__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14382 | if test $ac_cv_cpp_def___powerpc__ = yes; then : |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14383 | CFLAGS="$CFLAGS -D__powerpc__" |
| 14384 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14385 | fi ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14386 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14387 | |
| 14388 | case $host_vendor in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14389 | *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] | 14390 | $as_echo_n "checking whether we need to define __sun__... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14391 | if test "${ac_cv_cpp_def___sun__+set}" = set; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14392 | $as_echo_n "(cached) " >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14393 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14395 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14396 | #ifndef __sun__ |
| 14397 | yes |
| 14398 | #endif |
| 14399 | _ACEOF |
| 14400 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14401 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14402 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14403 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14404 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14405 | fi |
| 14406 | rm -f conftest* |
| 14407 | |
| 14408 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14409 | { $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] | 14410 | $as_echo "$ac_cv_cpp_def___sun__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14411 | if test $ac_cv_cpp_def___sun__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14412 | CFLAGS="$CFLAGS -D__sun__" |
| 14413 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14414 | fi ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14415 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14416 | |
| 14417 | |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14418 | |
Alexandre Julliard | 7d83115 | 2010-03-20 15:07:45 +0100 | [diff] [blame] | 14419 | |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 14420 | |
Alexandre Julliard | 7d83115 | 2010-03-20 15:07:45 +0100 | [diff] [blame] | 14421 | ac_config_commands="$ac_config_commands include/stamp-h" |
| 14422 | |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14423 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14424 | ALL_MAKEFILE_DEPENDS=" |
| 14425 | # Rules automatically generated by configure |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14426 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14427 | .INIT: Makefile |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14428 | .MAKEFILEDEPS: |
Alexandre Julliard | bd3110d | 2010-05-23 10:34:36 +0200 | [diff] [blame] | 14429 | all: Makefile |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 14430 | Makefile: Makefile.in Make.vars.in Make.rules config.status |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14431 | @./config.status Make.tmp Makefile" |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14432 | |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14433 | ALL_POT_FILES="" |
Alexandre Julliard | d5addea | 2010-02-08 21:27:54 +0100 | [diff] [blame] | 14434 | ALL_WINETEST_DEPENDS="# Test binaries" |
| 14435 | |
Alexandre Julliard | 454fb3c | 2010-02-08 21:29:13 +0100 | [diff] [blame] | 14436 | ALL_TEST_BINARIES="" |
| 14437 | |
Alexandre Julliard | 49163da | 2008-08-25 12:02:27 +0200 | [diff] [blame] | 14438 | |
Alexandre Julliard | 2de10c4 | 2010-02-11 23:23:45 +0100 | [diff] [blame] | 14439 | wine_fn_append_file () |
| 14440 | { |
| 14441 | as_fn_append $1 " \\$as_nl $2" |
| 14442 | } |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14443 | |
Alexandre Julliard | 2de10c4 | 2010-02-11 23:23:45 +0100 | [diff] [blame] | 14444 | wine_fn_append_rule () |
| 14445 | { |
| 14446 | as_fn_append $1 "$as_nl$2" |
| 14447 | } |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14448 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14449 | wine_fn_has_flag () |
| 14450 | { |
| 14451 | expr ",$2," : ".*,$1,.*" >/dev/null |
| 14452 | } |
| 14453 | |
Alexandre Julliard | 943cd73 | 2010-03-25 21:52:56 +0100 | [diff] [blame] | 14454 | wine_fn_all_dir_rules () |
| 14455 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14456 | ac_dir=$1 |
| 14457 | ac_alldeps=$2 |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14458 | ac_makedep="\$(MAKEDEP)" |
| 14459 | ac_input=Make.vars.in:$ac_dir/Makefile.in |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14460 | if test $ac_dir != tools |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14461 | then |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14462 | ac_alldeps="$2 $ac_makedep" |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14463 | fi |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14464 | case $2 in |
| 14465 | *.in) ac_input=$ac_input:$2 ;; |
| 14466 | *) ac_makedep="$2 $ac_makedep" ;; |
| 14467 | esac |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14468 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14469 | wine_fn_append_file ALL_DIRS $ac_dir |
Alexandre Julliard | 943cd73 | 2010-03-25 21:52:56 +0100 | [diff] [blame] | 14470 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14471 | "__clean__: $ac_dir/__clean__ |
| 14472 | .PHONY: $ac_dir/__clean__ |
| 14473 | $ac_dir/__clean__: $ac_dir/Makefile |
| 14474 | @cd $ac_dir && \$(MAKE) clean |
| 14475 | \$(RM) $ac_dir/Makefile |
| 14476 | $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] | 14477 | @./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] | 14478 | depend: $ac_dir/__depend__ |
| 14479 | .PHONY: $ac_dir/__depend__ |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14480 | $ac_dir/__depend__: $ac_makedep dummy |
| 14481 | @./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] | 14482 | } |
| 14483 | |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14484 | wine_fn_config_makefile () |
| 14485 | { |
| 14486 | ac_dir=$1 |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14487 | ac_enable=$2 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14488 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | 9bdd027 | 2010-06-30 17:34:20 +0200 | [diff] [blame] | 14489 | return 0 |
| 14490 | fi |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14491 | |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14492 | wine_fn_all_dir_rules $ac_dir Make.rules |
Alexandre Julliard | 9bdd027 | 2010-06-30 17:34:20 +0200 | [diff] [blame] | 14493 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14494 | "all: $ac_dir |
| 14495 | .PHONY: $ac_dir |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14496 | $ac_dir: $ac_dir/Makefile dummy |
| 14497 | @cd $ac_dir && \$(MAKE) |
Alexandre Julliard | e84063b | 2010-03-25 21:46:41 +0100 | [diff] [blame] | 14498 | install:: $ac_dir |
| 14499 | @cd $ac_dir && \$(MAKE) install |
| 14500 | install-lib:: $ac_dir |
| 14501 | @cd $ac_dir && \$(MAKE) install-lib |
| 14502 | install-dev:: $ac_dir |
| 14503 | @cd $ac_dir && \$(MAKE) install-dev |
| 14504 | uninstall:: $ac_dir/Makefile |
| 14505 | @cd $ac_dir && \$(MAKE) uninstall" |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14506 | } |
| 14507 | |
| 14508 | wine_fn_config_lib () |
| 14509 | { |
| 14510 | ac_name=$1 |
Alexandre Julliard | b8fb1d5 | 2010-03-20 14:50:53 +0100 | [diff] [blame] | 14511 | ac_dir=dlls/$ac_name |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14512 | wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14513 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | c2c3c21 | 2010-03-25 11:13:07 +0100 | [diff] [blame] | 14514 | "all __builddeps__: $ac_dir |
Alexandre Julliard | 7d2e772 | 2010-07-26 12:13:47 +0200 | [diff] [blame] | 14515 | $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] | 14516 | @cd $ac_dir && \$(MAKE) |
Alexandre Julliard | c2c3c21 | 2010-03-25 11:13:07 +0100 | [diff] [blame] | 14517 | install install-dev:: $ac_dir |
| 14518 | @cd $ac_dir && \$(MAKE) install |
| 14519 | uninstall:: $ac_dir/Makefile |
| 14520 | @cd $ac_dir && \$(MAKE) uninstall" |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14521 | } |
| 14522 | |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14523 | wine_fn_config_dll () |
| 14524 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14525 | ac_name=$1 |
| 14526 | ac_dir=dlls/$ac_name |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14527 | ac_enable=$2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14528 | ac_flags=$3 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14529 | ac_implib=${4:-$ac_name} |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14530 | ac_file=$ac_dir/lib$ac_implib |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14531 | ac_deps="tools/widl tools/winebuild tools/winegcc include" |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14532 | ac_implibflags="" |
| 14533 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14534 | case $ac_name in |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14535 | *16) ac_implibflags=" -m16" ;; |
| 14536 | esac |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14537 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14538 | wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules |
Alexandre Julliard | 82b743f | 2010-03-25 11:15:32 +0100 | [diff] [blame] | 14539 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14540 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14541 | test "$ac_enable" != enable_win16 || return 0 |
| 14542 | else |
Alexandre Julliard | 60a05ad | 2010-03-25 12:05:44 +0100 | [diff] [blame] | 14543 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14544 | "all: $ac_dir |
| 14545 | .PHONY: $ac_dir |
| 14546 | $ac_dir: $ac_dir/Makefile __builddeps__ dummy |
| 14547 | @cd $ac_dir && \$(MAKE) |
| 14548 | install:: $ac_dir/Makefile __builddeps__ |
| 14549 | @cd $ac_dir && \$(MAKE) install |
| 14550 | install-lib:: $ac_dir/Makefile __builddeps__ |
| 14551 | @cd $ac_dir && \$(MAKE) install-lib |
| 14552 | uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile |
| 14553 | @cd $ac_dir && \$(MAKE) \$@" |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14554 | |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14555 | if test "x$enable_maintainer_mode" = xyes |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14556 | then |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14557 | if wine_fn_has_flag mc $ac_flags |
| 14558 | then |
| 14559 | wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot |
| 14560 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14561 | "$ac_dir/msg.pot: $ac_dir" |
| 14562 | fi |
| 14563 | if wine_fn_has_flag po $ac_flags |
| 14564 | then |
| 14565 | wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot |
| 14566 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14567 | "$ac_dir/rsrc.pot: $ac_dir" |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14568 | fi |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14569 | fi |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14570 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14571 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14572 | if wine_fn_has_flag staticimplib $ac_flags |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14573 | then |
| 14574 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14575 | "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14576 | $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] | 14577 | $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile |
| 14578 | @cd $ac_dir && \$(MAKE) lib$ac_implib.def |
| 14579 | $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy |
| 14580 | @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT |
| 14581 | install-dev:: $ac_dir/Makefile __builddeps__ |
| 14582 | @cd $ac_dir && \$(MAKE) install-dev" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14583 | if test "x$CROSSTEST_DISABLE" = x |
| 14584 | then |
| 14585 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14586 | "__builddeps__: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14587 | $ac_file.cross.a: $ac_dir/Makefile dummy |
| 14588 | @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14589 | fi |
| 14590 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14591 | elif wine_fn_has_flag implib $ac_flags |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14592 | then |
| 14593 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14594 | "__builddeps__: $ac_file.$IMPLIBEXT |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14595 | $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14596 | \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec |
| 14597 | $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14598 | \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec |
| 14599 | install-dev:: $ac_dir/Makefile __builddeps__ |
| 14600 | @cd $ac_dir && \$(MAKE) install-dev" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14601 | if test "x$CROSSTEST_DISABLE" = x |
| 14602 | then |
| 14603 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14604 | "__builddeps__: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14605 | $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14606 | \$(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] | 14607 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14608 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14609 | if test "$ac_name" != "$ac_implib" |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14610 | then |
| 14611 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14612 | "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14613 | dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14614 | \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@ |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14615 | clean:: |
| 14616 | \$(RM) dlls/lib$ac_implib.$IMPLIBEXT" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14617 | if test "x$CROSSTEST_DISABLE" = x |
| 14618 | then |
| 14619 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14620 | "__builddeps__: dlls/lib$ac_implib.cross.a |
| 14621 | dlls/lib$ac_implib.cross.a: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14622 | \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14623 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14624 | fi |
| 14625 | fi |
| 14626 | } |
| 14627 | |
| 14628 | wine_fn_config_program () |
| 14629 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14630 | ac_name=$1 |
| 14631 | ac_dir=programs/$ac_name |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14632 | ac_enable=$2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14633 | ac_flags=$3 |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14634 | wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14635 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14636 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14637 | |
| 14638 | else |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14639 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14640 | "all: $ac_dir |
| 14641 | .PHONY: $ac_dir |
| 14642 | $ac_dir: $ac_dir/Makefile __builddeps__ dummy |
| 14643 | @cd $ac_dir && \$(MAKE)" |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14644 | |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14645 | if test "x$enable_maintainer_mode" = xyes |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14646 | then |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14647 | if wine_fn_has_flag mc $ac_flags |
| 14648 | then |
| 14649 | wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot |
| 14650 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14651 | "$ac_dir/msg.pot: $ac_dir" |
| 14652 | fi |
| 14653 | if wine_fn_has_flag po $ac_flags |
| 14654 | then |
| 14655 | wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot |
| 14656 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14657 | "$ac_dir/rsrc.pot: $ac_dir" |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14658 | fi |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14659 | fi |
| 14660 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14661 | wine_fn_has_flag install $ac_flags || return |
Alexandre Julliard | 2fb3021 | 2010-03-26 09:24:33 +0100 | [diff] [blame] | 14662 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14663 | "install install-lib:: $ac_dir/Makefile __builddeps__ |
| 14664 | @cd $ac_dir && \$(MAKE) install |
| 14665 | uninstall:: $ac_dir/Makefile |
| 14666 | @cd $ac_dir && \$(MAKE) uninstall" |
Alexandre Julliard | c1e2958 | 2011-01-03 18:28:27 +0100 | [diff] [blame] | 14667 | 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] | 14668 | then |
| 14669 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 718ea42 | 2010-03-26 09:29:10 +0100 | [diff] [blame] | 14670 | "install install-lib:: tools \$(DESTDIR)\$(bindir) |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14671 | \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name |
Alexandre Julliard | 2fb3021 | 2010-03-26 09:24:33 +0100 | [diff] [blame] | 14672 | uninstall:: |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14673 | \$(RM) \$(DESTDIR)\$(bindir)/$ac_name" |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14674 | fi |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14675 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14676 | } |
| 14677 | |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14678 | wine_fn_config_test () |
| 14679 | { |
| 14680 | ac_dir=$1 |
| 14681 | ac_name=$2 |
| 14682 | wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe |
| 14683 | wine_fn_append_rule ALL_WINETEST_DEPENDS \ |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 14684 | "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT |
| 14685 | cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@ |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14686 | $ac_name.rc: |
| 14687 | echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false) |
| 14688 | $ac_name.res: $ac_name.rc $ac_name.exe" |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14689 | wine_fn_all_dir_rules $ac_dir Maketest.rules |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14690 | |
Alexandre Julliard | dc3afa1 | 2010-03-20 14:51:52 +0100 | [diff] [blame] | 14691 | if test "x$enable_tests" = x""no; then : |
| 14692 | |
| 14693 | else |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14694 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14695 | "all programs/winetest: $ac_dir |
| 14696 | .PHONY: $ac_dir |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14697 | $ac_dir: $ac_dir/Makefile __builddeps__ dummy |
| 14698 | @cd $ac_dir && \$(MAKE) |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14699 | test: $ac_dir/__test__ |
| 14700 | .PHONY: $ac_dir/__test__ |
Alexandre Julliard | eab7efd | 2010-03-25 21:42:54 +0100 | [diff] [blame] | 14701 | $ac_dir/__test__: dummy |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14702 | @cd $ac_dir && \$(MAKE) test |
| 14703 | testclean:: |
| 14704 | \$(RM) $ac_dir/*.ok" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14705 | |
| 14706 | if test "x$CROSSTEST_DISABLE" = x |
| 14707 | then |
| 14708 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14709 | "crosstest: $ac_dir/__crosstest__ |
| 14710 | .PHONY: $ac_dir/__crosstest__ |
| 14711 | $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy |
| 14712 | @cd $ac_dir && \$(MAKE) crosstest" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14713 | fi |
Alexandre Julliard | dc3afa1 | 2010-03-20 14:51:52 +0100 | [diff] [blame] | 14714 | fi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14715 | } |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 14716 | |
| 14717 | wine_fn_config_tool () |
| 14718 | { |
| 14719 | ac_dir=$1 |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14720 | wine_fn_all_dir_rules $ac_dir Make.rules |
Alexandre Julliard | 6dbe7a0 | 2010-03-25 11:51:24 +0100 | [diff] [blame] | 14721 | |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 14722 | if test "x$enable_tools" = x""no; then : |
| 14723 | |
| 14724 | else |
Alexandre Julliard | 6dbe7a0 | 2010-03-25 11:51:24 +0100 | [diff] [blame] | 14725 | case $ac_dir in |
| 14726 | tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14727 | "install:: $ac_dir |
| 14728 | @cd $ac_dir && \$(MAKE) install |
| 14729 | install-lib:: $ac_dir |
| 14730 | @cd $ac_dir && \$(MAKE) install-lib |
| 14731 | install-dev:: $ac_dir |
| 14732 | @cd $ac_dir && \$(MAKE) install-dev" ;; |
| 14733 | *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14734 | "install install-dev:: $ac_dir |
| 14735 | @cd $ac_dir && \$(MAKE) install" ;; |
| 14736 | esac |
| 14737 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14738 | "uninstall:: $ac_dir/Makefile |
| 14739 | @cd $ac_dir && \$(MAKE) uninstall |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14740 | all __tooldeps__: $ac_dir |
| 14741 | .PHONY: $ac_dir |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14742 | $ac_dir: $ac_dir/Makefile libs/port dummy |
| 14743 | @cd $ac_dir && \$(MAKE)" |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14744 | case $ac_dir in |
| 14745 | tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;; |
| 14746 | esac |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 14747 | fi |
| 14748 | } |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14749 | |
| 14750 | wine_fn_config_makerules () |
| 14751 | { |
| 14752 | ac_rules=$1 |
| 14753 | ac_deps=$2 |
| 14754 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14755 | "$ac_rules: $ac_rules.in $ac_deps config.status |
| 14756 | @./config.status $ac_rules |
| 14757 | distclean:: |
| 14758 | \$(RM) $ac_rules" |
| 14759 | } |
| 14760 | |
| 14761 | wine_fn_config_symlink () |
| 14762 | { |
| 14763 | ac_link=$1 |
| 14764 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14765 | "$ac_link: |
| 14766 | @./config.status $ac_link |
| 14767 | distclean:: |
| 14768 | \$(RM) $ac_link" |
| 14769 | } |
Alexandre Julliard | a070f9b | 2010-07-26 20:53:12 +0200 | [diff] [blame] | 14770 | |
| 14771 | if test "x$CROSSTEST_DISABLE" != x |
| 14772 | then |
| 14773 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14774 | "crosstest: |
| 14775 | @echo \"crosstest is not supported (mingw not installed?)\" && false" |
| 14776 | fi |
Alexandre Julliard | 40977bf | 2010-11-11 12:24:46 +0100 | [diff] [blame] | 14777 | ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS" |
| 14778 | wine_fn_config_symlink dlls/shell32/AUTHORS |
Alexandre Julliard | a632052 | 2010-02-03 13:14:03 +0100 | [diff] [blame] | 14779 | 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] | 14780 | test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14781 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14782 | ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14783 | test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14784 | fi |
| 14785 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14786 | ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14787 | test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14788 | fi |
| 14789 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14790 | ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14791 | test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14792 | fi |
| 14793 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14794 | ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14795 | test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14796 | fi |
Alexandre Julliard | 321d388 | 2010-05-06 20:51:53 +0200 | [diff] [blame] | 14797 | ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls" |
| 14798 | test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 14799 | ac_config_links="$ac_config_links wine:tools/winewrapper" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14800 | wine_fn_config_symlink wine |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 14801 | |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 14802 | ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 14803 | |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 14804 | ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 14805 | |
Alexandre Julliard | 1c60e3b | 2006-09-12 16:10:51 +0200 | [diff] [blame] | 14806 | ac_config_commands="$ac_config_commands dlls/kernel32/nls" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14807 | |
Alexandre Julliard | b8a2e3b | 2006-11-16 14:49:25 +0100 | [diff] [blame] | 14808 | ac_config_commands="$ac_config_commands dlls/user32/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14809 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14810 | ac_config_commands="$ac_config_commands dlls/wineps.drv/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14811 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14812 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14813 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 14814 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14815 | wine_fn_config_makerules Make.rules |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 14816 | MAKE_RULES=Make.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14817 | ac_config_files="$ac_config_files Make.rules" |
| 14818 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14819 | wine_fn_config_makerules Maketest.rules Make.rules |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 14820 | MAKE_TEST_RULES=Maketest.rules |
| 14821 | ac_config_files="$ac_config_files Maketest.rules" |
| 14822 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14823 | wine_fn_config_makerules dlls/Makedll.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14824 | MAKE_DLL_RULES=dlls/Makedll.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14825 | ac_config_files="$ac_config_files dlls/Makedll.rules" |
| 14826 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14827 | wine_fn_config_makerules dlls/Makeimplib.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14828 | MAKE_IMPLIB_RULES=dlls/Makeimplib.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14829 | ac_config_files="$ac_config_files dlls/Makeimplib.rules" |
| 14830 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14831 | wine_fn_config_makerules programs/Makeprog.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14832 | MAKE_PROG_RULES=programs/Makeprog.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14833 | ac_config_files="$ac_config_files programs/Makeprog.rules" |
| 14834 | |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14835 | |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14836 | wine_fn_config_dll acledit enable_acledit |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14837 | wine_fn_config_dll aclui enable_aclui implib |
| 14838 | wine_fn_config_dll activeds enable_activeds implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14839 | wine_fn_config_dll actxprxy enable_actxprxy |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14840 | wine_fn_config_lib adsiid |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14841 | wine_fn_config_dll advapi32 enable_advapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14842 | wine_fn_config_test dlls/advapi32/tests advapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14843 | wine_fn_config_dll advpack enable_advpack implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14844 | wine_fn_config_test dlls/advpack/tests advpack_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14845 | wine_fn_config_dll amstream enable_amstream |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14846 | wine_fn_config_test dlls/amstream/tests amstream_test |
Alexandre Julliard | 902f10c | 2011-01-13 15:16:02 +0100 | [diff] [blame] | 14847 | wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14848 | wine_fn_config_dll atl enable_atl implib |
Marcus Meissner | b3f0425 | 2010-06-15 11:04:33 +0200 | [diff] [blame] | 14849 | wine_fn_config_test dlls/atl/tests atl_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14850 | wine_fn_config_dll authz enable_authz |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14851 | wine_fn_config_dll avicap32 enable_avicap32 implib |
Alexandre Julliard | af743a6 | 2011-01-13 15:37:43 +0100 | [diff] [blame] | 14852 | wine_fn_config_dll avifil32 enable_avifil32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14853 | wine_fn_config_test dlls/avifil32/tests avifil32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14854 | wine_fn_config_dll avifile.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14855 | wine_fn_config_dll avrt enable_avrt implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14856 | wine_fn_config_dll bcrypt enable_bcrypt |
Alexandre Julliard | 4447900 | 2011-01-11 12:56:17 +0100 | [diff] [blame] | 14857 | wine_fn_config_dll browseui enable_browseui po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14858 | wine_fn_config_test dlls/browseui/tests browseui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14859 | wine_fn_config_dll cabinet enable_cabinet implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14860 | wine_fn_config_test dlls/cabinet/tests cabinet_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14861 | wine_fn_config_dll capi2032 enable_capi2032 implib |
| 14862 | wine_fn_config_dll cards enable_cards implib |
| 14863 | wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib |
| 14864 | wine_fn_config_dll clusapi enable_clusapi implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14865 | wine_fn_config_dll comcat enable_comcat |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14866 | wine_fn_config_test dlls/comcat/tests comcat_test |
Alexandre Julliard | 54684cf | 2011-01-11 13:43:35 +0100 | [diff] [blame] | 14867 | wine_fn_config_dll comctl32 enable_comctl32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14868 | wine_fn_config_test dlls/comctl32/tests comctl32_test |
Alexandre Julliard | 7294f7d | 2011-01-14 12:27:20 +0100 | [diff] [blame] | 14869 | wine_fn_config_dll comdlg32 enable_comdlg32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14870 | wine_fn_config_test dlls/comdlg32/tests comdlg32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14871 | wine_fn_config_dll comm.drv16 enable_win16 |
| 14872 | wine_fn_config_dll commdlg.dll16 enable_win16 |
| 14873 | wine_fn_config_dll compobj.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14874 | wine_fn_config_dll compstui enable_compstui implib |
Alexandre Julliard | b6e78c4 | 2011-01-12 15:19:02 +0100 | [diff] [blame] | 14875 | wine_fn_config_dll credui enable_credui po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14876 | wine_fn_config_test dlls/credui/tests credui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14877 | wine_fn_config_dll crtdll enable_crtdll implib |
Alexandre Julliard | c485b18 | 2011-01-06 12:18:02 +0100 | [diff] [blame] | 14878 | wine_fn_config_dll crypt32 enable_crypt32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14879 | wine_fn_config_test dlls/crypt32/tests crypt32_test |
Alexandre Julliard | 8484e96 | 2011-01-06 12:28:26 +0100 | [diff] [blame] | 14880 | wine_fn_config_dll cryptdlg enable_cryptdlg po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14881 | wine_fn_config_dll cryptdll enable_cryptdll implib |
| 14882 | wine_fn_config_dll cryptnet enable_cryptnet implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14883 | wine_fn_config_test dlls/cryptnet/tests cryptnet_test |
Alexandre Julliard | aa1bdef | 2011-01-12 15:30:17 +0100 | [diff] [blame] | 14884 | wine_fn_config_dll cryptui enable_cryptui po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14885 | wine_fn_config_test dlls/cryptui/tests cryptui_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14886 | wine_fn_config_dll ctapi32 enable_ctapi32 |
| 14887 | wine_fn_config_dll ctl3d.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14888 | wine_fn_config_dll ctl3d32 enable_ctl3d32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14889 | wine_fn_config_dll ctl3dv2.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14890 | wine_fn_config_dll d3d10 enable_d3d10 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14891 | wine_fn_config_test dlls/d3d10/tests d3d10_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14892 | wine_fn_config_dll d3d10core enable_d3d10core implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14893 | wine_fn_config_test dlls/d3d10core/tests d3d10core_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14894 | wine_fn_config_dll d3d8 enable_d3d8 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14895 | wine_fn_config_test dlls/d3d8/tests d3d8_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14896 | wine_fn_config_dll d3d9 enable_d3d9 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14897 | wine_fn_config_test dlls/d3d9/tests d3d9_test |
Matteo Bruni | 0ac336f | 2010-07-29 01:53:54 +0200 | [diff] [blame] | 14898 | wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33 |
Matteo Bruni | 66d4499 | 2010-07-29 01:47:13 +0200 | [diff] [blame] | 14899 | wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34 |
Matteo Bruni | 8ea7583 | 2010-07-28 16:44:37 +0200 | [diff] [blame] | 14900 | wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35 |
Matteo Bruni | 458eb08 | 2010-07-28 16:37:28 +0200 | [diff] [blame] | 14901 | wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36 |
Matteo Bruni | 3c59b9c | 2010-07-28 16:22:11 +0200 | [diff] [blame] | 14902 | wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37 |
Matteo Bruni | fbf1e83 | 2010-07-28 16:13:40 +0200 | [diff] [blame] | 14903 | wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38 |
Matteo Bruni | 9949146 | 2010-07-28 04:31:18 +0200 | [diff] [blame] | 14904 | wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39 |
Matteo Bruni | fd4efcd | 2010-07-28 04:09:13 +0200 | [diff] [blame] | 14905 | wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40 |
Matteo Bruni | 79c1bc4 | 2010-08-03 18:44:25 +0200 | [diff] [blame] | 14906 | wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41 |
Matteo Bruni | fe05070 | 2010-08-03 18:44:25 +0200 | [diff] [blame] | 14907 | wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14908 | wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler |
Rico Schüller | 5ad7f7b | 2010-08-19 21:33:43 +0200 | [diff] [blame] | 14909 | wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14910 | wine_fn_config_dll d3dim enable_d3dim implib |
| 14911 | wine_fn_config_dll d3drm enable_d3drm implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14912 | wine_fn_config_test dlls/d3drm/tests d3drm_test |
Owen Rudge | 9870c04 | 2010-08-18 16:02:22 -0500 | [diff] [blame] | 14913 | wine_fn_config_dll d3dx10_33 enable_d3dx10_33 |
Owen Rudge | 49dbdc1 | 2010-08-18 16:02:20 -0500 | [diff] [blame] | 14914 | wine_fn_config_dll d3dx10_34 enable_d3dx10_34 |
Owen Rudge | 955b844 | 2010-08-18 16:02:18 -0500 | [diff] [blame] | 14915 | wine_fn_config_dll d3dx10_35 enable_d3dx10_35 |
Owen Rudge | f44830e | 2010-08-18 16:02:16 -0500 | [diff] [blame] | 14916 | wine_fn_config_dll d3dx10_36 enable_d3dx10_36 |
Owen Rudge | 4196ba2 | 2010-08-18 16:02:10 -0500 | [diff] [blame] | 14917 | wine_fn_config_dll d3dx10_37 enable_d3dx10_37 |
Owen Rudge | 199ff9b | 2010-08-18 16:02:08 -0500 | [diff] [blame] | 14918 | wine_fn_config_dll d3dx10_38 enable_d3dx10_38 |
Owen Rudge | fb8d7cd | 2010-08-18 16:02:06 -0500 | [diff] [blame] | 14919 | wine_fn_config_dll d3dx10_39 enable_d3dx10_39 |
Owen Rudge | 662cbb1 | 2010-08-18 16:02:03 -0500 | [diff] [blame] | 14920 | wine_fn_config_dll d3dx10_40 enable_d3dx10_40 |
Owen Rudge | 17591cc | 2010-08-18 16:01:59 -0500 | [diff] [blame] | 14921 | wine_fn_config_dll d3dx10_41 enable_d3dx10_41 |
Owen Rudge | e5d9e12 | 2010-08-18 16:01:57 -0500 | [diff] [blame] | 14922 | wine_fn_config_dll d3dx10_42 enable_d3dx10_42 |
Owen Rudge | 3c5b2e6 | 2010-08-18 16:01:53 -0500 | [diff] [blame] | 14923 | wine_fn_config_dll d3dx10_43 enable_d3dx10_43 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14924 | wine_fn_config_dll d3dx9_24 enable_d3dx9_24 |
| 14925 | wine_fn_config_dll d3dx9_25 enable_d3dx9_25 |
| 14926 | wine_fn_config_dll d3dx9_26 enable_d3dx9_26 |
| 14927 | wine_fn_config_dll d3dx9_27 enable_d3dx9_27 |
| 14928 | wine_fn_config_dll d3dx9_28 enable_d3dx9_28 |
| 14929 | wine_fn_config_dll d3dx9_29 enable_d3dx9_29 |
| 14930 | wine_fn_config_dll d3dx9_30 enable_d3dx9_30 |
| 14931 | wine_fn_config_dll d3dx9_31 enable_d3dx9_31 |
| 14932 | wine_fn_config_dll d3dx9_32 enable_d3dx9_32 |
| 14933 | wine_fn_config_dll d3dx9_33 enable_d3dx9_33 |
| 14934 | wine_fn_config_dll d3dx9_34 enable_d3dx9_34 |
| 14935 | wine_fn_config_dll d3dx9_35 enable_d3dx9_35 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14936 | wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14937 | wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14938 | wine_fn_config_dll d3dx9_37 enable_d3dx9_37 |
| 14939 | wine_fn_config_dll d3dx9_38 enable_d3dx9_38 |
| 14940 | wine_fn_config_dll d3dx9_39 enable_d3dx9_39 |
| 14941 | wine_fn_config_dll d3dx9_40 enable_d3dx9_40 |
| 14942 | wine_fn_config_dll d3dx9_41 enable_d3dx9_41 |
| 14943 | wine_fn_config_dll d3dx9_42 enable_d3dx9_42 |
Matteo Bruni | 90c615a | 2010-08-25 17:12:51 +0200 | [diff] [blame] | 14944 | wine_fn_config_dll d3dx9_43 enable_d3dx9_43 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14945 | wine_fn_config_dll d3dxof enable_d3dxof implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14946 | wine_fn_config_test dlls/d3dxof/tests d3dxof_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14947 | wine_fn_config_dll dbgeng enable_dbgeng implib |
| 14948 | wine_fn_config_dll dbghelp enable_dbghelp implib |
| 14949 | wine_fn_config_dll dciman32 enable_dciman32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14950 | wine_fn_config_dll ddeml.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14951 | wine_fn_config_dll ddraw enable_ddraw implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14952 | wine_fn_config_test dlls/ddraw/tests ddraw_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14953 | wine_fn_config_dll ddrawex enable_ddrawex |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14954 | wine_fn_config_test dlls/ddrawex/tests ddrawex_test |
Alexandre Julliard | 0cdd147 | 2011-01-06 12:37:11 +0100 | [diff] [blame] | 14955 | wine_fn_config_dll devenum enable_devenum po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14956 | wine_fn_config_dll dinput enable_dinput implib,staticimplib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14957 | wine_fn_config_test dlls/dinput/tests dinput_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14958 | wine_fn_config_dll dinput8 enable_dinput8 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14959 | wine_fn_config_dll dispdib.dll16 enable_win16 |
| 14960 | wine_fn_config_dll dispex enable_dispex |
Huw Davies | df07561 | 2010-03-19 13:34:53 +0000 | [diff] [blame] | 14961 | wine_fn_config_test dlls/dispex/tests dispex_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14962 | wine_fn_config_dll display.drv16 enable_win16 |
| 14963 | wine_fn_config_dll dmband enable_dmband |
| 14964 | wine_fn_config_dll dmcompos enable_dmcompos |
| 14965 | wine_fn_config_dll dmime enable_dmime |
Austin Lund | 203272e | 2010-08-06 17:50:49 +1000 | [diff] [blame] | 14966 | wine_fn_config_test dlls/dmime/tests dmime_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14967 | wine_fn_config_dll dmloader enable_dmloader |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14968 | wine_fn_config_test dlls/dmloader/tests dmloader_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14969 | wine_fn_config_dll dmscript enable_dmscript |
| 14970 | wine_fn_config_dll dmstyle enable_dmstyle |
| 14971 | wine_fn_config_dll dmsynth enable_dmsynth |
| 14972 | wine_fn_config_dll dmusic enable_dmusic |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14973 | wine_fn_config_dll dmusic32 enable_dmusic32 implib |
| 14974 | wine_fn_config_dll dnsapi enable_dnsapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14975 | wine_fn_config_test dlls/dnsapi/tests dnsapi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14976 | wine_fn_config_dll dplay enable_dplay implib |
| 14977 | wine_fn_config_dll dplayx enable_dplayx implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14978 | wine_fn_config_test dlls/dplayx/tests dplayx_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14979 | wine_fn_config_dll dpnaddr enable_dpnaddr |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14980 | wine_fn_config_dll dpnet enable_dpnet implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14981 | wine_fn_config_dll dpnhpast enable_dpnhpast |
| 14982 | wine_fn_config_dll dpnlobby enable_dpnlobby |
| 14983 | wine_fn_config_dll dpwsockx enable_dpwsockx |
| 14984 | wine_fn_config_dll drmclien enable_drmclien |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14985 | wine_fn_config_dll dsound enable_dsound implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14986 | wine_fn_config_test dlls/dsound/tests dsound_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14987 | wine_fn_config_dll dssenh enable_dssenh |
| 14988 | wine_fn_config_dll dswave enable_dswave |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14989 | wine_fn_config_dll dwmapi enable_dwmapi implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14990 | wine_fn_config_dll dxdiagn enable_dxdiagn |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14991 | wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14992 | wine_fn_config_lib dxerr8 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14993 | wine_fn_config_lib dxerr9 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14994 | wine_fn_config_dll dxgi enable_dxgi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14995 | wine_fn_config_test dlls/dxgi/tests dxgi_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14996 | wine_fn_config_lib dxguid |
David Hedberg | e2cf9ad | 2010-07-31 20:02:45 +0200 | [diff] [blame] | 14997 | wine_fn_config_dll explorerframe enable_explorerframe |
David Hedberg | 87212d5 | 2010-07-31 20:02:49 +0200 | [diff] [blame] | 14998 | wine_fn_config_test dlls/explorerframe/tests explorerframe_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14999 | wine_fn_config_dll faultrep enable_faultrep implib |
Detlef Riekenberg | 53fca11 | 2010-10-26 10:11:13 +0200 | [diff] [blame] | 15000 | wine_fn_config_test dlls/faultrep/tests faultrep_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15001 | wine_fn_config_dll fltlib enable_fltlib |
| 15002 | wine_fn_config_dll fusion enable_fusion |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15003 | wine_fn_config_test dlls/fusion/tests fusion_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15004 | wine_fn_config_dll fwpuclnt enable_fwpuclnt |
Mariusz Pluciński | b3a9ce4 | 2010-07-22 23:59:34 +0200 | [diff] [blame] | 15005 | wine_fn_config_dll gameux enable_gameux |
Mariusz Pluciński | cb886f4 | 2010-08-03 11:58:01 +0200 | [diff] [blame] | 15006 | wine_fn_config_test dlls/gameux/tests gameux_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15007 | wine_fn_config_dll gdi.exe16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15008 | wine_fn_config_dll gdi32 enable_gdi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15009 | wine_fn_config_test dlls/gdi32/tests gdi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15010 | wine_fn_config_dll gdiplus enable_gdiplus implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15011 | wine_fn_config_test dlls/gdiplus/tests gdiplus_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15012 | wine_fn_config_dll glu32 enable_glu32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15013 | wine_fn_config_dll gphoto2.ds enable_gphoto2_ds |
| 15014 | wine_fn_config_dll gpkcsp enable_gpkcsp |
| 15015 | wine_fn_config_dll hal enable_hal |
Alexandre Julliard | c9b52d2 | 2011-01-06 13:19:58 +0100 | [diff] [blame] | 15016 | wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15017 | wine_fn_config_dll hid enable_hid implib |
| 15018 | wine_fn_config_dll hlink enable_hlink implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15019 | wine_fn_config_test dlls/hlink/tests hlink_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15020 | wine_fn_config_dll hnetcfg enable_hnetcfg |
| 15021 | wine_fn_config_dll httpapi enable_httpapi |
Alexandre Julliard | 9c6444c | 2011-01-06 13:31:16 +0100 | [diff] [blame] | 15022 | wine_fn_config_dll iccvid enable_iccvid po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15023 | wine_fn_config_dll icmp enable_icmp |
| 15024 | wine_fn_config_dll ifsmgr.vxd enable_win16 |
| 15025 | wine_fn_config_dll imaadp32.acm enable_imaadp32_acm |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15026 | wine_fn_config_dll imagehlp enable_imagehlp implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15027 | wine_fn_config_test dlls/imagehlp/tests imagehlp_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15028 | wine_fn_config_dll imm.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15029 | wine_fn_config_dll imm32 enable_imm32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15030 | wine_fn_config_test dlls/imm32/tests imm32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15031 | wine_fn_config_dll inetcomm enable_inetcomm implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15032 | wine_fn_config_test dlls/inetcomm/tests inetcomm_test |
Alexandre Julliard | be52106 | 2011-01-12 15:49:32 +0100 | [diff] [blame] | 15033 | wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15034 | wine_fn_config_dll inetmib1 enable_inetmib1 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15035 | wine_fn_config_test dlls/inetmib1/tests inetmib1_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15036 | wine_fn_config_dll infosoft enable_infosoft |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15037 | wine_fn_config_test dlls/infosoft/tests infosoft_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15038 | wine_fn_config_dll initpki enable_initpki |
| 15039 | wine_fn_config_dll inkobj enable_inkobj |
| 15040 | wine_fn_config_dll inseng enable_inseng |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15041 | wine_fn_config_dll iphlpapi enable_iphlpapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15042 | wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15043 | wine_fn_config_dll itircl enable_itircl |
| 15044 | wine_fn_config_dll itss enable_itss |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15045 | wine_fn_config_test dlls/itss/tests itss_test |
Alexandre Julliard | 0ccf1d8 | 2011-01-06 13:38:57 +0100 | [diff] [blame] | 15046 | wine_fn_config_dll jscript enable_jscript po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15047 | wine_fn_config_test dlls/jscript/tests jscript_test |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 15048 | wine_fn_config_dll kernel32 enable_kernel32 mc,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15049 | wine_fn_config_test dlls/kernel32/tests kernel32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15050 | wine_fn_config_dll keyboard.drv16 enable_win16 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15051 | wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel |
Vincent Povirk | 8f87459 | 2010-09-26 16:38:44 -0500 | [diff] [blame] | 15052 | wine_fn_config_dll ktmw32 enable_ktmw32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15053 | wine_fn_config_dll loadperf enable_loadperf implib |
Alexandre Julliard | 7df87f3 | 2011-01-06 14:24:05 +0100 | [diff] [blame] | 15054 | wine_fn_config_dll localspl enable_localspl po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15055 | wine_fn_config_test dlls/localspl/tests localspl_test |
Alexandre Julliard | 0546dd5 | 2011-01-12 16:11:26 +0100 | [diff] [blame] | 15056 | wine_fn_config_dll localui enable_localui po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15057 | wine_fn_config_test dlls/localui/tests localui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15058 | wine_fn_config_dll lz32 enable_lz32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15059 | wine_fn_config_test dlls/lz32/tests lz32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15060 | wine_fn_config_dll lzexpand.dll16 enable_win16 |
Alexandre Julliard | b41fc57 | 2011-01-06 16:14:33 +0100 | [diff] [blame] | 15061 | wine_fn_config_dll mapi32 enable_mapi32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15062 | wine_fn_config_test dlls/mapi32/tests mapi32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15063 | wine_fn_config_dll mapistub enable_mapistub |
| 15064 | wine_fn_config_dll mciavi32 enable_mciavi32 |
| 15065 | wine_fn_config_dll mcicda enable_mcicda |
| 15066 | wine_fn_config_dll mciqtz32 enable_mciqtz32 |
| 15067 | wine_fn_config_dll mciseq enable_mciseq |
| 15068 | wine_fn_config_dll mciwave enable_mciwave |
| 15069 | wine_fn_config_dll midimap enable_midimap |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15070 | wine_fn_config_dll mlang enable_mlang implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15071 | wine_fn_config_test dlls/mlang/tests mlang_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15072 | wine_fn_config_dll mmdevapi enable_mmdevapi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15073 | wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15074 | wine_fn_config_dll mmdevldr.vxd enable_win16 |
| 15075 | wine_fn_config_dll mmsystem.dll16 enable_win16 |
| 15076 | wine_fn_config_dll monodebg.vxd enable_win16 |
| 15077 | wine_fn_config_dll mountmgr.sys enable_mountmgr_sys |
| 15078 | wine_fn_config_dll mouse.drv16 enable_win16 |
Alexandre Julliard | 142d416 | 2011-01-12 16:27:50 +0100 | [diff] [blame] | 15079 | wine_fn_config_dll mpr enable_mpr po,implib |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15080 | wine_fn_config_dll mprapi enable_mprapi implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15081 | wine_fn_config_dll msacm.dll16 enable_win16 |
| 15082 | wine_fn_config_dll msacm32.drv enable_msacm32_drv |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15083 | wine_fn_config_dll msacm32 enable_msacm32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15084 | wine_fn_config_test dlls/msacm32/tests msacm32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15085 | wine_fn_config_dll msadp32.acm enable_msadp32_acm |
| 15086 | wine_fn_config_dll mscat32 enable_mscat32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15087 | wine_fn_config_dll mscms enable_mscms implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15088 | wine_fn_config_test dlls/mscms/tests mscms_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15089 | wine_fn_config_dll mscoree enable_mscoree |
Louis Lenders | a852870 | 2010-08-24 11:48:01 +0200 | [diff] [blame] | 15090 | wine_fn_config_test dlls/mscoree/tests mscoree_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15091 | wine_fn_config_dll msctf enable_msctf |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15092 | wine_fn_config_test dlls/msctf/tests msctf_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15093 | wine_fn_config_dll msdaps enable_msdaps |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15094 | wine_fn_config_dll msdmo enable_msdmo implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15095 | wine_fn_config_dll msftedit enable_msftedit |
| 15096 | wine_fn_config_dll msg711.acm enable_msg711_acm |
| 15097 | wine_fn_config_dll msgsm32.acm enable_msgsm32_acm |
| 15098 | wine_fn_config_dll mshtml.tlb enable_mshtml_tlb |
Alexandre Julliard | 50c23ad | 2011-01-12 17:12:44 +0100 | [diff] [blame] | 15099 | wine_fn_config_dll mshtml enable_mshtml po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15100 | wine_fn_config_test dlls/mshtml/tests mshtml_test |
Alexandre Julliard | 214ca2c | 2011-01-06 16:21:30 +0100 | [diff] [blame] | 15101 | wine_fn_config_dll msi enable_msi po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15102 | wine_fn_config_test dlls/msi/tests msi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15103 | wine_fn_config_dll msimg32 enable_msimg32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15104 | wine_fn_config_dll msimtf enable_msimtf |
| 15105 | wine_fn_config_dll msisip enable_msisip |
| 15106 | wine_fn_config_dll msisys.ocx enable_msisys_ocx |
| 15107 | wine_fn_config_dll msnet32 enable_msnet32 |
Alexandre Julliard | ad5605b | 2011-01-06 16:36:14 +0100 | [diff] [blame] | 15108 | wine_fn_config_dll msrle32 enable_msrle32 po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15109 | wine_fn_config_dll mssign32 enable_mssign32 |
| 15110 | wine_fn_config_dll mssip32 enable_mssip32 |
| 15111 | wine_fn_config_dll mstask enable_mstask |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15112 | wine_fn_config_test dlls/mstask/tests mstask_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15113 | wine_fn_config_dll msvcirt enable_msvcirt |
Piotr Caban | 71a49eb | 2010-08-23 16:36:24 +0200 | [diff] [blame] | 15114 | wine_fn_config_dll msvcp80 enable_msvcp80 |
Piotr Caban | 9ae9d26 | 2010-07-20 23:22:16 +0200 | [diff] [blame] | 15115 | wine_fn_config_dll msvcp90 enable_msvcp90 |
Piotr Caban | d589d95 | 2010-07-20 23:24:32 +0200 | [diff] [blame] | 15116 | wine_fn_config_test dlls/msvcp90/tests msvcp90_test |
Detlef Riekenberg | 1434ef4 | 2010-04-30 14:07:34 +0200 | [diff] [blame] | 15117 | wine_fn_config_dll msvcr100 enable_msvcr100 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15118 | wine_fn_config_dll msvcr70 enable_msvcr70 implib |
| 15119 | wine_fn_config_dll msvcr71 enable_msvcr71 implib |
Piotr Caban | c452249 | 2010-03-25 11:06:29 +0100 | [diff] [blame] | 15120 | wine_fn_config_dll msvcr80 enable_msvcr80 |
| 15121 | wine_fn_config_dll msvcr90 enable_msvcr90 |
Detlef Riekenberg | 73e669c | 2010-03-20 00:32:17 +0100 | [diff] [blame] | 15122 | wine_fn_config_test dlls/msvcr90/tests msvcr90_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15123 | wine_fn_config_dll msvcrt enable_msvcrt implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15124 | wine_fn_config_test dlls/msvcrt/tests msvcrt_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15125 | wine_fn_config_dll msvcrt20 enable_msvcrt20 implib |
| 15126 | wine_fn_config_dll msvcrt40 enable_msvcrt40 implib |
| 15127 | wine_fn_config_dll msvcrtd enable_msvcrtd implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15128 | wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test |
Alexandre Julliard | f14712a | 2011-01-12 17:24:03 +0100 | [diff] [blame] | 15129 | wine_fn_config_dll msvfw32 enable_msvfw32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15130 | wine_fn_config_test dlls/msvfw32/tests msvfw32_test |
Alexandre Julliard | 958ecd6 | 2011-01-06 17:07:23 +0100 | [diff] [blame] | 15131 | wine_fn_config_dll msvidc32 enable_msvidc32 po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15132 | wine_fn_config_dll msvideo.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15133 | wine_fn_config_dll mswsock enable_mswsock implib |
Alexandre Julliard | 25ccc90 | 2010-12-21 12:03:14 +0100 | [diff] [blame] | 15134 | wine_fn_config_dll msxml enable_msxml |
Alexandre Julliard | 41d6a92 | 2010-12-21 13:27:20 +0100 | [diff] [blame] | 15135 | wine_fn_config_dll msxml2 enable_msxml2 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15136 | wine_fn_config_dll msxml3 enable_msxml3 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15137 | wine_fn_config_test dlls/msxml3/tests msxml3_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15138 | wine_fn_config_dll msxml4 enable_msxml4 |
Nikolay Sivov | 25bce45 | 2010-08-30 01:31:07 +0400 | [diff] [blame] | 15139 | wine_fn_config_dll msxml6 enable_msxml6 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15140 | wine_fn_config_dll nddeapi enable_nddeapi implib |
| 15141 | wine_fn_config_dll netapi32 enable_netapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15142 | wine_fn_config_test dlls/netapi32/tests netapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15143 | wine_fn_config_dll newdev enable_newdev implib |
Thomas Mullaly | 858ccff | 2011-01-02 17:13:43 -0500 | [diff] [blame] | 15144 | wine_fn_config_dll normaliz enable_normaliz implib |
Jacek Caban | 4a91265 | 2010-12-02 19:15:28 +0100 | [diff] [blame] | 15145 | wine_fn_config_dll npmshtml enable_npmshtml |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15146 | wine_fn_config_dll ntdll enable_ntdll implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15147 | wine_fn_config_test dlls/ntdll/tests ntdll_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15148 | wine_fn_config_dll ntdsapi enable_ntdsapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15149 | wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15150 | wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15151 | wine_fn_config_dll ntprint enable_ntprint |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15152 | wine_fn_config_test dlls/ntprint/tests ntprint_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15153 | wine_fn_config_dll objsel enable_objsel |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15154 | wine_fn_config_dll odbc32 enable_odbc32 implib |
| 15155 | wine_fn_config_dll odbccp32 enable_odbccp32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15156 | wine_fn_config_test dlls/odbccp32/tests odbccp32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15157 | wine_fn_config_dll ole2.dll16 enable_win16 |
| 15158 | wine_fn_config_dll ole2conv.dll16 enable_win16 |
| 15159 | wine_fn_config_dll ole2disp.dll16 enable_win16 |
| 15160 | wine_fn_config_dll ole2nls.dll16 enable_win16 |
| 15161 | wine_fn_config_dll ole2prox.dll16 enable_win16 |
| 15162 | wine_fn_config_dll ole2thk.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15163 | wine_fn_config_dll ole32 enable_ole32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15164 | wine_fn_config_test dlls/ole32/tests ole32_test |
Alexandre Julliard | 8062ec1 | 2011-01-13 16:00:53 +0100 | [diff] [blame] | 15165 | wine_fn_config_dll oleacc enable_oleacc po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15166 | wine_fn_config_test dlls/oleacc/tests oleacc_test |
Alexandre Julliard | 000bb24 | 2011-01-06 17:31:16 +0100 | [diff] [blame] | 15167 | wine_fn_config_dll oleaut32 enable_oleaut32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15168 | wine_fn_config_test dlls/oleaut32/tests oleaut32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15169 | wine_fn_config_dll olecli.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15170 | wine_fn_config_dll olecli32 enable_olecli32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15171 | wine_fn_config_dll oledb32 enable_oledb32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15172 | wine_fn_config_test dlls/oledb32/tests oledb32_test |
Alexandre Julliard | 7f59564 | 2011-01-13 16:18:24 +0100 | [diff] [blame] | 15173 | wine_fn_config_dll oledlg enable_oledlg po,implib |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15174 | wine_fn_config_dll olepro32 enable_olepro32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15175 | wine_fn_config_dll olesvr.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15176 | wine_fn_config_dll olesvr32 enable_olesvr32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15177 | wine_fn_config_dll olethk32 enable_olethk32 |
| 15178 | wine_fn_config_dll openal32 enable_openal32 |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 15179 | wine_fn_config_dll opencl enable_opencl |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15180 | wine_fn_config_dll opengl32 enable_opengl32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15181 | wine_fn_config_test dlls/opengl32/tests opengl32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15182 | wine_fn_config_dll pdh enable_pdh implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15183 | wine_fn_config_test dlls/pdh/tests pdh_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15184 | wine_fn_config_dll pidgen enable_pidgen |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15185 | wine_fn_config_dll powrprof enable_powrprof implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15186 | wine_fn_config_dll printui enable_printui |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15187 | wine_fn_config_dll propsys enable_propsys implib |
Andrew Nguyen | c20908b | 2010-07-25 21:57:59 -0500 | [diff] [blame] | 15188 | wine_fn_config_test dlls/propsys/tests propsys_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15189 | wine_fn_config_dll psapi enable_psapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15190 | wine_fn_config_test dlls/psapi/tests psapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15191 | wine_fn_config_dll pstorec enable_pstorec |
| 15192 | wine_fn_config_dll qcap enable_qcap |
| 15193 | wine_fn_config_dll qedit enable_qedit |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15194 | wine_fn_config_test dlls/qedit/tests qedit_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15195 | wine_fn_config_dll qmgr enable_qmgr |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15196 | wine_fn_config_test dlls/qmgr/tests qmgr_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15197 | wine_fn_config_dll qmgrprxy enable_qmgrprxy |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15198 | wine_fn_config_dll quartz enable_quartz implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15199 | wine_fn_config_test dlls/quartz/tests quartz_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15200 | wine_fn_config_dll query enable_query |
| 15201 | wine_fn_config_dll rasapi16.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15202 | wine_fn_config_dll rasapi32 enable_rasapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15203 | wine_fn_config_test dlls/rasapi32/tests rasapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15204 | wine_fn_config_dll rasdlg enable_rasdlg implib |
| 15205 | wine_fn_config_dll resutils enable_resutils implib |
| 15206 | wine_fn_config_dll riched20 enable_riched20 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15207 | wine_fn_config_test dlls/riched20/tests riched20_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15208 | wine_fn_config_dll riched32 enable_riched32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15209 | wine_fn_config_test dlls/riched32/tests riched32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15210 | wine_fn_config_dll rpcrt4 enable_rpcrt4 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15211 | wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15212 | wine_fn_config_dll rsabase enable_rsabase |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15213 | wine_fn_config_dll rsaenh enable_rsaenh implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15214 | wine_fn_config_test dlls/rsaenh/tests rsaenh_test |
Louis Lenders | 85b3f29 | 2010-08-27 11:45:11 +0200 | [diff] [blame] | 15215 | wine_fn_config_dll rstrtmgr enable_rstrtmgr |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15216 | wine_fn_config_dll rtutils enable_rtutils implib |
Louis Lenders | 1ae673f | 2010-05-11 22:59:22 +0200 | [diff] [blame] | 15217 | wine_fn_config_dll samlib enable_samlib |
Alexandre Julliard | 036fe88 | 2011-01-14 12:48:59 +0100 | [diff] [blame] | 15218 | wine_fn_config_dll sane.ds enable_sane_ds po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15219 | wine_fn_config_dll sccbase enable_sccbase |
| 15220 | wine_fn_config_dll schannel enable_schannel |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15221 | wine_fn_config_test dlls/schannel/tests schannel_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15222 | wine_fn_config_dll secur32 enable_secur32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15223 | wine_fn_config_test dlls/secur32/tests secur32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15224 | wine_fn_config_dll security enable_security |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15225 | wine_fn_config_dll sensapi enable_sensapi implib |
| 15226 | wine_fn_config_dll serialui enable_serialui implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15227 | wine_fn_config_test dlls/serialui/tests serialui_test |
Alexandre Julliard | fac153b | 2011-01-12 17:37:02 +0100 | [diff] [blame] | 15228 | wine_fn_config_dll setupapi enable_setupapi po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15229 | wine_fn_config_test dlls/setupapi/tests setupapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15230 | wine_fn_config_dll setupx.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15231 | wine_fn_config_dll sfc enable_sfc implib |
| 15232 | wine_fn_config_dll sfc_os enable_sfc_os implib |
Alexandre Julliard | b31d231 | 2011-01-06 17:42:05 +0100 | [diff] [blame] | 15233 | wine_fn_config_dll shdoclc enable_shdoclc po |
Alexandre Julliard | d3a1131 | 2011-01-12 17:52:15 +0100 | [diff] [blame] | 15234 | wine_fn_config_dll shdocvw enable_shdocvw po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15235 | wine_fn_config_test dlls/shdocvw/tests shdocvw_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15236 | wine_fn_config_dll shell.dll16 enable_win16 |
Alexandre Julliard | db60006 | 2011-01-13 17:00:16 +0100 | [diff] [blame] | 15237 | wine_fn_config_dll shell32 enable_shell32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15238 | wine_fn_config_test dlls/shell32/tests shell32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15239 | wine_fn_config_dll shfolder enable_shfolder implib |
Alexandre Julliard | 944d218 | 2011-01-12 17:58:54 +0100 | [diff] [blame] | 15240 | wine_fn_config_dll shlwapi enable_shlwapi po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15241 | wine_fn_config_test dlls/shlwapi/tests shlwapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15242 | wine_fn_config_dll slbcsp enable_slbcsp |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15243 | wine_fn_config_dll slc enable_slc implib |
| 15244 | wine_fn_config_dll snmpapi enable_snmpapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15245 | wine_fn_config_test dlls/snmpapi/tests snmpapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15246 | wine_fn_config_dll softpub enable_softpub |
| 15247 | wine_fn_config_dll sound.drv16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15248 | wine_fn_config_dll spoolss enable_spoolss implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15249 | wine_fn_config_test dlls/spoolss/tests spoolss_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15250 | wine_fn_config_dll stdole2.tlb enable_stdole2_tlb |
| 15251 | wine_fn_config_dll stdole32.tlb enable_stdole32_tlb |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15252 | wine_fn_config_dll sti enable_sti implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15253 | wine_fn_config_test dlls/sti/tests sti_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15254 | wine_fn_config_dll storage.dll16 enable_win16 |
| 15255 | wine_fn_config_dll stress.dll16 enable_win16 |
Aric Stewart | 9619210 | 2010-10-04 09:48:25 -0500 | [diff] [blame] | 15256 | wine_fn_config_lib strmbase |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15257 | wine_fn_config_lib strmiids |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15258 | wine_fn_config_dll svrapi enable_svrapi |
| 15259 | wine_fn_config_dll sxs enable_sxs |
| 15260 | wine_fn_config_dll system.drv16 enable_win16 |
| 15261 | wine_fn_config_dll t2embed enable_t2embed |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15262 | wine_fn_config_dll tapi32 enable_tapi32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15263 | wine_fn_config_dll toolhelp.dll16 enable_win16 |
| 15264 | wine_fn_config_dll traffic enable_traffic |
| 15265 | wine_fn_config_dll twain.dll16 enable_win16 |
| 15266 | wine_fn_config_dll twain_32 enable_twain_32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15267 | wine_fn_config_test dlls/twain_32/tests twain_32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15268 | wine_fn_config_dll typelib.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15269 | wine_fn_config_dll unicows enable_unicows implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15270 | wine_fn_config_dll updspapi enable_updspapi |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15271 | wine_fn_config_dll url enable_url implib |
| 15272 | wine_fn_config_dll urlmon enable_urlmon implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15273 | wine_fn_config_test dlls/urlmon/tests urlmon_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15274 | wine_fn_config_dll usbd.sys enable_usbd_sys implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15275 | wine_fn_config_dll user.exe16 enable_win16 |
Alexandre Julliard | 39558f8 | 2011-01-13 17:24:15 +0100 | [diff] [blame] | 15276 | wine_fn_config_dll user32 enable_user32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15277 | wine_fn_config_test dlls/user32/tests user32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15278 | wine_fn_config_dll userenv enable_userenv implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15279 | wine_fn_config_test dlls/userenv/tests userenv_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15280 | wine_fn_config_dll usp10 enable_usp10 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15281 | wine_fn_config_test dlls/usp10/tests usp10_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15282 | wine_fn_config_lib uuid |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15283 | wine_fn_config_dll uxtheme enable_uxtheme implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15284 | wine_fn_config_test dlls/uxtheme/tests uxtheme_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15285 | wine_fn_config_dll vdhcp.vxd enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15286 | wine_fn_config_dll vdmdbg enable_vdmdbg implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15287 | wine_fn_config_dll ver.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15288 | wine_fn_config_dll version enable_version implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15289 | wine_fn_config_test dlls/version/tests version_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15290 | wine_fn_config_dll vmm.vxd enable_win16 |
| 15291 | wine_fn_config_dll vnbt.vxd enable_win16 |
| 15292 | wine_fn_config_dll vnetbios.vxd enable_win16 |
| 15293 | wine_fn_config_dll vtdapi.vxd enable_win16 |
| 15294 | wine_fn_config_dll vwin32.vxd enable_win16 |
| 15295 | wine_fn_config_dll w32skrnl enable_win16 |
| 15296 | wine_fn_config_dll w32sys.dll16 enable_win16 |
| 15297 | wine_fn_config_dll wbemprox enable_wbemprox |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15298 | wine_fn_config_dll wer enable_wer implib |
Detlef Riekenberg | d8a5bc9 | 2010-10-26 11:37:17 +0200 | [diff] [blame] | 15299 | wine_fn_config_test dlls/wer/tests wer_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15300 | wine_fn_config_dll wiaservc enable_wiaservc |
| 15301 | wine_fn_config_dll win32s16.dll16 enable_win16 |
| 15302 | wine_fn_config_dll win87em.dll16 enable_win16 |
| 15303 | wine_fn_config_dll winaspi.dll16 enable_win16 |
| 15304 | wine_fn_config_dll windebug.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15305 | wine_fn_config_dll windowscodecs enable_windowscodecs implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15306 | wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15307 | wine_fn_config_dll winealsa.drv enable_winealsa_drv |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15308 | wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15309 | wine_fn_config_lib winecrt0 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15310 | wine_fn_config_dll wined3d enable_wined3d implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15311 | wine_fn_config_dll wineesd.drv enable_wineesd_drv |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 15312 | wine_fn_config_dll winegstreamer enable_winegstreamer |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15313 | wine_fn_config_dll winejack.drv enable_winejack_drv |
| 15314 | wine_fn_config_dll winejoystick.drv enable_winejoystick_drv |
| 15315 | wine_fn_config_dll winemapi enable_winemapi |
| 15316 | wine_fn_config_dll winemp3.acm enable_winemp3_acm |
| 15317 | wine_fn_config_dll winenas.drv enable_winenas_drv |
| 15318 | wine_fn_config_dll wineoss.drv enable_wineoss_drv |
| 15319 | wine_fn_config_dll wineps.drv enable_wineps_drv |
| 15320 | wine_fn_config_dll wineps16.drv16 enable_win16 |
Aric Stewart | eefe6f6 | 2010-12-03 07:33:08 -0600 | [diff] [blame] | 15321 | wine_fn_config_dll wineqtdecoder enable_wineqtdecoder |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15322 | wine_fn_config_dll winequartz.drv enable_winequartz_drv |
| 15323 | wine_fn_config_dll winex11.drv enable_winex11_drv |
| 15324 | wine_fn_config_dll wing.dll16 enable_win16 |
| 15325 | wine_fn_config_dll wing32 enable_wing32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15326 | wine_fn_config_dll winhttp enable_winhttp implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15327 | wine_fn_config_test dlls/winhttp/tests winhttp_test |
Alexandre Julliard | ec54750 | 2011-01-12 18:03:56 +0100 | [diff] [blame] | 15328 | wine_fn_config_dll wininet enable_wininet po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15329 | wine_fn_config_test dlls/wininet/tests wininet_test |
Alexandre Julliard | 8aefc90 | 2011-01-06 17:50:17 +0100 | [diff] [blame] | 15330 | wine_fn_config_dll winmm enable_winmm po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15331 | wine_fn_config_test dlls/winmm/tests winmm_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15332 | wine_fn_config_dll winnls.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15333 | wine_fn_config_dll winnls32 enable_winnls32 implib |
| 15334 | wine_fn_config_dll winscard enable_winscard implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15335 | wine_fn_config_dll winsock.dll16 enable_win16 |
Alexandre Julliard | 35f3db4 | 2011-01-12 18:10:48 +0100 | [diff] [blame] | 15336 | wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15337 | wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15338 | wine_fn_config_dll wintab.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15339 | wine_fn_config_dll wintab32 enable_wintab32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15340 | wine_fn_config_test dlls/wintab32/tests wintab32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15341 | wine_fn_config_dll wintrust enable_wintrust implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15342 | wine_fn_config_test dlls/wintrust/tests wintrust_test |
Ričardas Barkauskas | 303079f | 2010-10-20 11:21:15 +0300 | [diff] [blame] | 15343 | wine_fn_config_dll wlanapi enable_wlanapi |
Alexandre Julliard | d1d494b | 2011-01-06 17:57:43 +0100 | [diff] [blame] | 15344 | wine_fn_config_dll wldap32 enable_wldap32 po,implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15345 | wine_fn_config_test dlls/wldap32/tests wldap32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15346 | wine_fn_config_dll wmi enable_wmi |
| 15347 | wine_fn_config_dll wmiutils enable_wmiutils |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15348 | wine_fn_config_dll wnaspi32 enable_wnaspi32 implib |
| 15349 | wine_fn_config_dll wow32 enable_win16 implib |
| 15350 | wine_fn_config_dll ws2_32 enable_ws2_32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15351 | wine_fn_config_test dlls/ws2_32/tests ws2_32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15352 | wine_fn_config_dll wsock32 enable_wsock32 implib |
| 15353 | wine_fn_config_dll wtsapi32 enable_wtsapi32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15354 | wine_fn_config_dll wuapi enable_wuapi |
| 15355 | wine_fn_config_dll wuaueng enable_wuaueng |
Louis Lenders | 934d676 | 2010-11-12 11:23:37 +0100 | [diff] [blame] | 15356 | wine_fn_config_dll xapofx1_1 enable_xapofx1_1 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15357 | wine_fn_config_dll xinput1_1 enable_xinput1_1 |
| 15358 | wine_fn_config_dll xinput1_2 enable_xinput1_2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15359 | wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15360 | wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15361 | wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0 |
| 15362 | wine_fn_config_dll xmllite enable_xmllite |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15363 | wine_fn_config_test dlls/xmllite/tests xmllite_test |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 15364 | wine_fn_config_makefile documentation enable_documentation |
| 15365 | wine_fn_config_makefile fonts enable_fonts |
| 15366 | wine_fn_config_makefile include enable_include |
| 15367 | wine_fn_config_makefile libs/port enable_libs_port |
| 15368 | wine_fn_config_makefile libs/wine enable_libs_wine |
| 15369 | wine_fn_config_makefile libs/wpp enable_libs_wpp |
| 15370 | wine_fn_config_makefile loader enable_loader |
Hans Leidekker | ab789c6 | 2010-10-13 14:23:09 +0200 | [diff] [blame] | 15371 | wine_fn_config_program aspnet_regiis enable_aspnet_regiis install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15372 | wine_fn_config_program attrib enable_attrib install |
| 15373 | wine_fn_config_program cacls enable_cacls install |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 15374 | wine_fn_config_program clock enable_clock po,install |
Alexandre Julliard | 6864716 | 2011-01-04 00:03:40 +0100 | [diff] [blame] | 15375 | wine_fn_config_program cmd enable_cmd po,install |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15376 | wine_fn_config_test programs/cmd/tests cmd.exe_test |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15377 | wine_fn_config_program cmdlgtst enable_cmdlgtst |
| 15378 | wine_fn_config_program control enable_control install |
| 15379 | wine_fn_config_program dxdiag enable_dxdiag install |
| 15380 | wine_fn_config_program eject enable_eject install |
| 15381 | wine_fn_config_program expand enable_expand install |
| 15382 | wine_fn_config_program explorer enable_explorer install |
| 15383 | wine_fn_config_program extrac32 enable_extrac32 install |
| 15384 | wine_fn_config_program hh enable_hh install |
| 15385 | wine_fn_config_program icinfo enable_icinfo install |
| 15386 | wine_fn_config_program iexplore enable_iexplore install |
Alexandre Julliard | 6ec2a53 | 2011-01-04 10:49:45 +0100 | [diff] [blame] | 15387 | wine_fn_config_program ipconfig enable_ipconfig po,install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15388 | wine_fn_config_program lodctr enable_lodctr install |
Hans Leidekker | f15aea2 | 2010-09-29 09:57:34 +0200 | [diff] [blame] | 15389 | wine_fn_config_program mofcomp enable_mofcomp install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15390 | wine_fn_config_program mshta enable_mshta install |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15391 | wine_fn_config_program msiexec enable_msiexec install,installbin |
Alexandre Julliard | b8c80c9 | 2011-01-04 17:55:21 +0100 | [diff] [blame] | 15392 | wine_fn_config_program net enable_net po,install |
Hans Leidekker | 8ad7d2e | 2010-12-06 13:19:41 +0100 | [diff] [blame] | 15393 | wine_fn_config_program netsh enable_netsh install |
Vincent Povirk | 4d3e6f4 | 2010-04-02 10:19:18 -0500 | [diff] [blame] | 15394 | wine_fn_config_program ngen enable_ngen install |
Alexandre Julliard | ff71d91 | 2011-01-08 12:53:31 +0100 | [diff] [blame] | 15395 | wine_fn_config_program notepad enable_notepad po,install,installbin |
Alexandre Julliard | 4c934cf | 2011-01-13 21:45:59 +0100 | [diff] [blame] | 15396 | wine_fn_config_program oleview enable_oleview po,install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15397 | wine_fn_config_program ping enable_ping install |
Hans Leidekker | 2133b6c | 2011-01-31 15:26:17 +0100 | [diff] [blame^] | 15398 | wine_fn_config_program plugplay enable_plugplay install |
Alexandre Julliard | 8a4daab | 2011-01-08 16:19:06 +0100 | [diff] [blame] | 15399 | wine_fn_config_program progman enable_progman po,install |
Alexandre Julliard | 7ca7138 | 2011-01-04 18:03:01 +0100 | [diff] [blame] | 15400 | wine_fn_config_program reg enable_reg po,install |
Alexandre Julliard | 30b5e22 | 2011-01-13 22:24:00 +0100 | [diff] [blame] | 15401 | wine_fn_config_program regedit enable_regedit po,install,installbin |
Andrew Eikum | f3c6c62 | 2010-07-30 16:02:34 -0500 | [diff] [blame] | 15402 | wine_fn_config_test programs/regedit/tests regedit.exe_test |
Hans Leidekker | ab5fbeb | 2010-11-12 13:07:40 +0100 | [diff] [blame] | 15403 | wine_fn_config_program regsvcs enable_regsvcs install |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15404 | wine_fn_config_program regsvr32 enable_regsvr32 install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15405 | wine_fn_config_program rpcss enable_rpcss install |
Detlef Riekenberg | df898ea | 2010-07-18 19:15:57 +0200 | [diff] [blame] | 15406 | wine_fn_config_program rundll.exe16 enable_win16 install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15407 | wine_fn_config_program rundll32 enable_rundll32 install |
Hans Leidekker | 544da28 | 2010-05-03 12:56:58 +0200 | [diff] [blame] | 15408 | wine_fn_config_program sc enable_sc install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15409 | wine_fn_config_program secedit enable_secedit install |
Hans Leidekker | 1885c3d | 2010-11-18 12:09:11 +0100 | [diff] [blame] | 15410 | wine_fn_config_program servicemodelreg enable_servicemodelreg install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15411 | wine_fn_config_program services enable_services install |
| 15412 | wine_fn_config_program spoolsv enable_spoolsv install |
Alexandre Julliard | 1d3ef69 | 2011-01-04 19:24:34 +0100 | [diff] [blame] | 15413 | wine_fn_config_program start enable_start po,install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15414 | wine_fn_config_program svchost enable_svchost install |
Alexandre Julliard | f067301 | 2011-01-04 19:30:25 +0100 | [diff] [blame] | 15415 | wine_fn_config_program taskkill enable_taskkill po,install |
Alexandre Julliard | dfcd36c | 2011-01-08 16:43:38 +0100 | [diff] [blame] | 15416 | wine_fn_config_program taskmgr enable_taskmgr po,install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15417 | wine_fn_config_program termsv enable_termsv install |
Alexandre Julliard | 4bca334 | 2011-01-04 19:38:45 +0100 | [diff] [blame] | 15418 | wine_fn_config_program uninstaller enable_uninstaller po,install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15419 | wine_fn_config_program unlodctr enable_unlodctr install |
Alexandre Julliard | 9d6489a | 2011-01-10 13:25:22 +0100 | [diff] [blame] | 15420 | wine_fn_config_program view enable_view po |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15421 | wine_fn_config_program wineboot enable_wineboot install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15422 | wine_fn_config_program winebrowser enable_winebrowser install |
Alexandre Julliard | a2be59a | 2011-01-13 22:44:59 +0100 | [diff] [blame] | 15423 | wine_fn_config_program winecfg enable_winecfg po,install,installbin |
Alexandre Julliard | 389f0e7 | 2011-01-10 13:42:09 +0100 | [diff] [blame] | 15424 | wine_fn_config_program wineconsole enable_wineconsole po,install,installbin |
Alexandre Julliard | 4f103ef | 2011-01-10 13:54:23 +0100 | [diff] [blame] | 15425 | wine_fn_config_program winedbg enable_winedbg po,install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15426 | wine_fn_config_program winedevice enable_winedevice install |
Alexandre Julliard | 08b919f | 2011-01-10 23:37:15 +0100 | [diff] [blame] | 15427 | wine_fn_config_program winefile enable_winefile po,install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15428 | wine_fn_config_program winemenubuilder enable_winemenubuilder install |
Alexandre Julliard | 490a47e | 2011-01-10 19:35:32 +0100 | [diff] [blame] | 15429 | wine_fn_config_program winemine enable_winemine po,install,installbin |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15430 | wine_fn_config_program winepath enable_winepath install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15431 | wine_fn_config_program winetest enable_winetest |
| 15432 | wine_fn_config_program winevdm enable_win16 install |
| 15433 | wine_fn_config_program winhelp.exe16 enable_win16 install |
Alexandre Julliard | 433e240 | 2011-01-10 20:30:14 +0100 | [diff] [blame] | 15434 | wine_fn_config_program winhlp32 enable_winhlp32 po,install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15435 | wine_fn_config_program winoldap.mod16 enable_win16 install |
| 15436 | wine_fn_config_program winver enable_winver install |
Louis Lenders | 4b281b2 | 2010-12-06 23:04:20 +0100 | [diff] [blame] | 15437 | wine_fn_config_program wmic enable_wmic install |
Alexandre Julliard | 88daff7 | 2011-01-11 12:41:31 +0100 | [diff] [blame] | 15438 | wine_fn_config_program wordpad enable_wordpad po,install |
Alexandre Julliard | 26c924e | 2011-01-04 19:43:36 +0100 | [diff] [blame] | 15439 | wine_fn_config_program write enable_write po,install |
Jacek Caban | 16bad58 | 2010-07-27 15:51:18 +0200 | [diff] [blame] | 15440 | wine_fn_config_program wscript enable_wscript install |
Alexandre Julliard | f8be8ff | 2011-01-04 20:15:50 +0100 | [diff] [blame] | 15441 | wine_fn_config_program xcopy enable_xcopy po,install |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 15442 | wine_fn_config_makefile server enable_server |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 15443 | wine_fn_config_tool tools |
| 15444 | wine_fn_config_tool tools/widl |
| 15445 | wine_fn_config_tool tools/winebuild |
| 15446 | wine_fn_config_tool tools/winedump |
| 15447 | wine_fn_config_tool tools/winegcc |
| 15448 | wine_fn_config_tool tools/wmc |
| 15449 | wine_fn_config_tool tools/wrc |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 15450 | |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15451 | LINGUAS="\ |
Alexandre Julliard | ff71d91 | 2011-01-08 12:53:31 +0100 | [diff] [blame] | 15452 | ar \ |
Alexandre Julliard | 4bca334 | 2011-01-04 19:38:45 +0100 | [diff] [blame] | 15453 | bg \ |
Alexandre Julliard | 39558f8 | 2011-01-13 17:24:15 +0100 | [diff] [blame] | 15454 | ca \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15455 | cs \ |
| 15456 | da \ |
| 15457 | de \ |
Alexandre Julliard | c9b52d2 | 2011-01-06 13:19:58 +0100 | [diff] [blame] | 15458 | el \ |
| 15459 | en \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15460 | en_US \ |
| 15461 | eo \ |
| 15462 | es \ |
Alexandre Julliard | ff71d91 | 2011-01-08 12:53:31 +0100 | [diff] [blame] | 15463 | fa \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15464 | fi \ |
| 15465 | fr \ |
| 15466 | he \ |
| 15467 | hi \ |
| 15468 | hu \ |
| 15469 | it \ |
| 15470 | ja \ |
| 15471 | ko \ |
| 15472 | lt \ |
| 15473 | ml \ |
| 15474 | nb_NO \ |
| 15475 | nl \ |
| 15476 | or \ |
| 15477 | pa \ |
| 15478 | pl \ |
| 15479 | pt_BR \ |
| 15480 | pt_PT \ |
Alexandre Julliard | 433e240 | 2011-01-10 20:30:14 +0100 | [diff] [blame] | 15481 | rm \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15482 | ro \ |
| 15483 | ru \ |
| 15484 | sk \ |
| 15485 | sl \ |
Alexandre Julliard | c0b813f | 2011-01-07 12:11:41 +0100 | [diff] [blame] | 15486 | sr_RS@cyrillic \ |
| 15487 | sr_RS@latin \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15488 | sv \ |
| 15489 | te \ |
| 15490 | th \ |
| 15491 | tr \ |
| 15492 | uk \ |
| 15493 | wa \ |
| 15494 | zh_CN \ |
| 15495 | zh_TW" |
| 15496 | |
| 15497 | |
| 15498 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 15499 | ac_config_commands="$ac_config_commands Makefile" |
| 15500 | |
| 15501 | |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 15502 | 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] | 15503 | |
| 15504 | |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15505 | |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15506 | if test "x$enable_maintainer_mode" = xyes |
| 15507 | then |
| 15508 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4 |
| 15509 | cd \$(srcdir) && autoconf --warnings=all |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15510 | \$(srcdir)/include/config.h.in: include/stamp-h.in |
| 15511 | \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4 |
| 15512 | cd \$(srcdir) && autoheader --warnings=all |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 15513 | @echo timestamp > \$@ |
| 15514 | |
| 15515 | ALL_POT_FILES =$ALL_POT_FILES |
| 15516 | all: \$(ALL_PO_FILES) |
| 15517 | \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot |
Alexandre Julliard | 945ccf5 | 2011-01-27 15:09:55 +0100 | [diff] [blame] | 15518 | 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] | 15519 | \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES) |
| 15520 | msgcat -o \$@ \$(ALL_POT_FILES)" |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15521 | fi |
| 15522 | |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15523 | if test -n "$with_wine64" |
| 15524 | then |
Alexandre Julliard | 3c42b62 | 2010-12-27 14:37:57 +0100 | [diff] [blame] | 15525 | 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] | 15526 | fonts server: |
| 15527 | \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@ |
Alexandre Julliard | f3831cf | 2010-05-16 17:01:52 +0200 | [diff] [blame] | 15528 | $with_wine64/loader/wine: |
| 15529 | \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@ |
Alexandre Julliard | 3c42b62 | 2010-12-27 14:37:57 +0100 | [diff] [blame] | 15530 | $with_wine64/loader/wine-preloader: |
| 15531 | \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@ |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15532 | clean:: |
Alexandre Julliard | 3c42b62 | 2010-12-27 14:37:57 +0100 | [diff] [blame] | 15533 | \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader" |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15534 | fi |
| 15535 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 15536 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall:: |
| 15537 | -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)" |
| 15538 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15539 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15540 | # This file is a shell script that caches the results of configure |
| 15541 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15542 | # scripts and configure runs, see configure's option --config-cache. |
| 15543 | # It is not useful on other systems. If it contains results you don't |
| 15544 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15545 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15546 | # config.status only pays attention to the cache file if you give it |
| 15547 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15548 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15549 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15550 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15551 | # following values. |
| 15552 | |
| 15553 | _ACEOF |
| 15554 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 15555 | # The following way of writing the cache mishandles newlines in values, |
| 15556 | # but we know of no workaround that is simple, portable, and efficient. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15557 | # So, we kill variables containing newlines. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15558 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15559 | # 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] | 15560 | ( |
| 15561 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15562 | eval ac_val=\$$ac_var |
| 15563 | case $ac_val in #( |
| 15564 | *${as_nl}*) |
| 15565 | case $ac_var in #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15566 | *_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] | 15567 | $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] | 15568 | esac |
| 15569 | case $ac_var in #( |
| 15570 | _ | IFS | as_nl) ;; #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15571 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15572 | *) { eval $ac_var=; unset $ac_var;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15573 | esac ;; |
| 15574 | esac |
| 15575 | done |
| 15576 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15577 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15578 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15579 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15580 | # `set' does not quote correctly, so add quotes: double-quote |
| 15581 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15582 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15583 | "s/'/'\\\\''/g; |
| 15584 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15585 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15586 | *) |
| 15587 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15588 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15589 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15590 | esac | |
| 15591 | sort |
| 15592 | ) | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15593 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15594 | /^ac_cv_env_/b end |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15595 | t clear |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15596 | :clear |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15597 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15598 | t end |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15599 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15600 | :end' >>confcache |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15601 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15602 | if test -w "$cache_file"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15603 | test "x$cache_file" != "x/dev/null" && |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15604 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15605 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15606 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15607 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15608 | { $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] | 15609 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15610 | fi |
| 15611 | fi |
| 15612 | rm -f confcache |
| 15613 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15614 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15615 | # Let make expand exec_prefix. |
| 15616 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15617 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15618 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15619 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15620 | ac_libobjs= |
| 15621 | ac_ltlibobjs= |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15622 | U= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15623 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15624 | # 1. Remove the extension, and $U if already installed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15625 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15626 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15627 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15628 | # will be set to the directory where LIBOBJS objects are built. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15629 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15630 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15631 | done |
| 15632 | LIBOBJS=$ac_libobjs |
| 15633 | |
| 15634 | LTLIBOBJS=$ac_ltlibobjs |
| 15635 | |
| 15636 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15637 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15638 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15639 | ac_write_fail=0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15640 | ac_clean_files_save=$ac_clean_files |
| 15641 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15642 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15643 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15644 | as_write_fail=0 |
| 15645 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15646 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15647 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15648 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15649 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15650 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15651 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15652 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15653 | ac_cs_recheck=false |
| 15654 | ac_cs_silent=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15655 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15656 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15657 | export SHELL |
| 15658 | _ASEOF |
| 15659 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 15660 | ## -------------------- ## |
| 15661 | ## M4sh Initialization. ## |
| 15662 | ## -------------------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15663 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15664 | # Be more Bourne compatible |
| 15665 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15666 | 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] | 15667 | emulate sh |
| 15668 | NULLCMD=: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15669 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15670 | # is contrary to our usage. Disable this feature. |
| 15671 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15672 | setopt NO_GLOB_SUBST |
| 15673 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15674 | case `(set -o) 2>/dev/null` in #( |
| 15675 | *posix*) : |
| 15676 | set -o posix ;; #( |
| 15677 | *) : |
| 15678 | ;; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15679 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 15680 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15681 | |
| 15682 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15683 | as_nl=' |
| 15684 | ' |
| 15685 | export as_nl |
| 15686 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 15687 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 15688 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15689 | 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] | 15690 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 15691 | # but without wasting forks for bash or zsh. |
| 15692 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 15693 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15694 | as_echo='print -r --' |
| 15695 | as_echo_n='print -rn --' |
| 15696 | 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] | 15697 | as_echo='printf %s\n' |
| 15698 | as_echo_n='printf %s' |
| 15699 | else |
| 15700 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 15701 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 15702 | as_echo_n='/usr/ucb/echo -n' |
| 15703 | else |
| 15704 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 15705 | as_echo_n_body='eval |
| 15706 | arg=$1; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15707 | case $arg in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15708 | *"$as_nl"*) |
| 15709 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 15710 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 15711 | esac; |
| 15712 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 15713 | ' |
| 15714 | export as_echo_n_body |
| 15715 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 15716 | fi |
| 15717 | export as_echo_body |
| 15718 | as_echo='sh -c $as_echo_body as_echo' |
| 15719 | fi |
| 15720 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15721 | # The user is always right. |
| 15722 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15723 | PATH_SEPARATOR=: |
| 15724 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 15725 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 15726 | PATH_SEPARATOR=';' |
| 15727 | } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15728 | fi |
| 15729 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15730 | |
| 15731 | # IFS |
| 15732 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15733 | # there to prevent editors from complaining about space-tab. |
| 15734 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15735 | # splitting by setting IFS to empty value.) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15736 | IFS=" "" $as_nl" |
| 15737 | |
| 15738 | # 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] | 15739 | case $0 in #(( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15740 | *[\\/]* ) as_myself=$0 ;; |
| 15741 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15742 | for as_dir in $PATH |
| 15743 | do |
| 15744 | IFS=$as_save_IFS |
| 15745 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15746 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15747 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15748 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15749 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15750 | ;; |
| 15751 | esac |
| 15752 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15753 | # in which case we are not to be found in the path. |
| 15754 | if test "x$as_myself" = x; then |
| 15755 | as_myself=$0 |
| 15756 | fi |
| 15757 | if test ! -f "$as_myself"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15758 | $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] | 15759 | exit 1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15760 | fi |
| 15761 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15762 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 15763 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 15764 | # suppresses any "Segmentation fault" message there. '((' could |
| 15765 | # trigger a bug in pdksh 5.2.14. |
| 15766 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 15767 | do eval test x\${$as_var+set} = xset \ |
| 15768 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15769 | done |
| 15770 | PS1='$ ' |
| 15771 | PS2='> ' |
| 15772 | PS4='+ ' |
| 15773 | |
| 15774 | # NLS nuisances. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15775 | LC_ALL=C |
| 15776 | export LC_ALL |
| 15777 | LANGUAGE=C |
| 15778 | export LANGUAGE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15779 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15780 | # CDPATH. |
| 15781 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15782 | |
| 15783 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15784 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 15785 | # ---------------------------------------- |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15786 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 15787 | # 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] | 15788 | # script with STATUS, using 1 if that was 0. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15789 | as_fn_error () |
| 15790 | { |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15791 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 15792 | if test "$4"; then |
| 15793 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 15794 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15795 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15796 | $as_echo "$as_me: error: $2" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15797 | as_fn_exit $as_status |
| 15798 | } # as_fn_error |
| 15799 | |
| 15800 | |
| 15801 | # as_fn_set_status STATUS |
| 15802 | # ----------------------- |
| 15803 | # Set $? to STATUS, without forking. |
| 15804 | as_fn_set_status () |
| 15805 | { |
| 15806 | return $1 |
| 15807 | } # as_fn_set_status |
| 15808 | |
| 15809 | # as_fn_exit STATUS |
| 15810 | # ----------------- |
| 15811 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 15812 | as_fn_exit () |
| 15813 | { |
| 15814 | set +e |
| 15815 | as_fn_set_status $1 |
| 15816 | exit $1 |
| 15817 | } # as_fn_exit |
| 15818 | |
| 15819 | # as_fn_unset VAR |
| 15820 | # --------------- |
| 15821 | # Portably unset VAR. |
| 15822 | as_fn_unset () |
| 15823 | { |
| 15824 | { eval $1=; unset $1;} |
| 15825 | } |
| 15826 | as_unset=as_fn_unset |
| 15827 | # as_fn_append VAR VALUE |
| 15828 | # ---------------------- |
| 15829 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 15830 | # advantage of any shell optimizations that allow amortized linear growth over |
| 15831 | # repeated appends, instead of the typical quadratic growth present in naive |
| 15832 | # implementations. |
| 15833 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 15834 | eval 'as_fn_append () |
| 15835 | { |
| 15836 | eval $1+=\$2 |
| 15837 | }' |
| 15838 | else |
| 15839 | as_fn_append () |
| 15840 | { |
| 15841 | eval $1=\$$1\$2 |
| 15842 | } |
| 15843 | fi # as_fn_append |
| 15844 | |
| 15845 | # as_fn_arith ARG... |
| 15846 | # ------------------ |
| 15847 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 15848 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 15849 | # must be portable across $(()) and expr. |
| 15850 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 15851 | eval 'as_fn_arith () |
| 15852 | { |
| 15853 | as_val=$(( $* )) |
| 15854 | }' |
| 15855 | else |
| 15856 | as_fn_arith () |
| 15857 | { |
| 15858 | as_val=`expr "$@" || test $? -eq 1` |
| 15859 | } |
| 15860 | fi # as_fn_arith |
| 15861 | |
| 15862 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15863 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15864 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15865 | as_expr=expr |
| 15866 | else |
| 15867 | as_expr=false |
| 15868 | fi |
| 15869 | |
| 15870 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15871 | as_basename=basename |
| 15872 | else |
| 15873 | as_basename=false |
| 15874 | fi |
| 15875 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15876 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15877 | as_dirname=dirname |
| 15878 | else |
| 15879 | as_dirname=false |
| 15880 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15881 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15882 | as_me=`$as_basename -- "$0" || |
| 15883 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15884 | X"$0" : 'X\(//\)$' \| \ |
| 15885 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15886 | $as_echo X/"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15887 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15888 | s//\1/ |
| 15889 | q |
| 15890 | } |
| 15891 | /^X\/\(\/\/\)$/{ |
| 15892 | s//\1/ |
| 15893 | q |
| 15894 | } |
| 15895 | /^X\/\(\/\).*/{ |
| 15896 | s//\1/ |
| 15897 | q |
| 15898 | } |
| 15899 | s/.*/./; q'` |
| 15900 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15901 | # Avoid depending upon Character Ranges. |
| 15902 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15903 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15904 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15905 | as_cr_digits='0123456789' |
| 15906 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15907 | |
| 15908 | ECHO_C= ECHO_N= ECHO_T= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15909 | case `echo -n x` in #((((( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15910 | -n*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15911 | case `echo 'xy\c'` in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15912 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15913 | xy) ECHO_C='\c';; |
| 15914 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 15915 | ECHO_T=' ';; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15916 | esac;; |
| 15917 | *) |
| 15918 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15919 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15920 | |
| 15921 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15922 | if test -d conf$$.dir; then |
| 15923 | rm -f conf$$.dir/conf$$.file |
| 15924 | else |
| 15925 | rm -f conf$$.dir |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15926 | mkdir conf$$.dir 2>/dev/null |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15927 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15928 | if (echo >conf$$.file) 2>/dev/null; then |
| 15929 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15930 | as_ln_s='ln -s' |
| 15931 | # ... but there are two gotchas: |
| 15932 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15933 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15934 | # In both cases, we have to default to `cp -p'. |
| 15935 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 15936 | as_ln_s='cp -p' |
| 15937 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15938 | as_ln_s=ln |
| 15939 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15940 | as_ln_s='cp -p' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15941 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15942 | else |
| 15943 | as_ln_s='cp -p' |
| 15944 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15945 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15946 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15947 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15948 | |
| 15949 | # as_fn_mkdir_p |
| 15950 | # ------------- |
| 15951 | # Create "$as_dir" as a directory, including parents if necessary. |
| 15952 | as_fn_mkdir_p () |
| 15953 | { |
| 15954 | |
| 15955 | case $as_dir in #( |
| 15956 | -*) as_dir=./$as_dir;; |
| 15957 | esac |
| 15958 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 15959 | as_dirs= |
| 15960 | while :; do |
| 15961 | case $as_dir in #( |
| 15962 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 15963 | *) as_qdir=$as_dir;; |
| 15964 | esac |
| 15965 | as_dirs="'$as_qdir' $as_dirs" |
| 15966 | as_dir=`$as_dirname -- "$as_dir" || |
| 15967 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15968 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 15969 | X"$as_dir" : 'X\(//\)$' \| \ |
| 15970 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 15971 | $as_echo X"$as_dir" | |
| 15972 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15973 | s//\1/ |
| 15974 | q |
| 15975 | } |
| 15976 | /^X\(\/\/\)[^/].*/{ |
| 15977 | s//\1/ |
| 15978 | q |
| 15979 | } |
| 15980 | /^X\(\/\/\)$/{ |
| 15981 | s//\1/ |
| 15982 | q |
| 15983 | } |
| 15984 | /^X\(\/\).*/{ |
| 15985 | s//\1/ |
| 15986 | q |
| 15987 | } |
| 15988 | s/.*/./; q'` |
| 15989 | test -d "$as_dir" && break |
| 15990 | done |
| 15991 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15992 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15993 | |
| 15994 | |
| 15995 | } # as_fn_mkdir_p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15996 | if mkdir -p . 2>/dev/null; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15997 | as_mkdir_p='mkdir -p "$as_dir"' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15998 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15999 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16000 | as_mkdir_p=false |
| 16001 | fi |
| 16002 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16003 | if test -x / >/dev/null 2>&1; then |
| 16004 | as_test_x='test -x' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16005 | else |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16006 | if ls -dL / >/dev/null 2>&1; then |
| 16007 | as_ls_L_option=L |
| 16008 | else |
| 16009 | as_ls_L_option= |
| 16010 | fi |
| 16011 | as_test_x=' |
| 16012 | eval sh -c '\'' |
| 16013 | if test -d "$1"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16014 | test -d "$1/."; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16015 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16016 | case $1 in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16017 | -*)set "./$1";; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16018 | esac; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16019 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16020 | ???[sx]*):;;*)false;;esac;fi |
| 16021 | '\'' sh |
| 16022 | ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16023 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16024 | as_executable_p=$as_test_x |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16025 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16026 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16027 | 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] | 16028 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16029 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16030 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16031 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16032 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16033 | exec 6>&1 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16034 | ## ----------------------------------- ## |
| 16035 | ## Main body of $CONFIG_STATUS script. ## |
| 16036 | ## ----------------------------------- ## |
| 16037 | _ASEOF |
| 16038 | 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] | 16039 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16040 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16041 | # 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] | 16042 | # report actual input values of CONFIG_FILES etc. instead of their |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16043 | # values after options handling. |
| 16044 | ac_log=" |
Alexandre Julliard | f0296a8 | 2011-01-21 20:31:58 +0100 | [diff] [blame] | 16045 | This file was extended by Wine $as_me 1.3.12, which was |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16046 | generated by GNU Autoconf 2.67. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16047 | |
| 16048 | CONFIG_FILES = $CONFIG_FILES |
| 16049 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16050 | CONFIG_LINKS = $CONFIG_LINKS |
| 16051 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16052 | $ $0 $@ |
| 16053 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16054 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 16055 | " |
| 16056 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16057 | _ACEOF |
| 16058 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16059 | case $ac_config_files in *" |
| 16060 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 16061 | esac |
| 16062 | |
| 16063 | case $ac_config_headers in *" |
| 16064 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 16065 | esac |
| 16066 | |
| 16067 | |
| 16068 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16069 | # Files that config.status was made for. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16070 | config_files="$ac_config_files" |
| 16071 | config_headers="$ac_config_headers" |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16072 | config_links="$ac_config_links" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16073 | config_commands="$ac_config_commands" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16074 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16075 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16076 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16077 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16078 | ac_cs_usage="\ |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16079 | \`$as_me' instantiates files and other configuration actions |
| 16080 | from templates according to the current configuration. Unless the files |
| 16081 | and actions are specified as TAGs, all are instantiated by default. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16082 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16083 | Usage: $0 [OPTION]... [TAG]... |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16084 | |
| 16085 | -h, --help print this help, then exit |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 16086 | -V, --version print version number and configuration settings, then exit |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16087 | --config print configuration, then exit |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16088 | -q, --quiet, --silent |
| 16089 | do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16090 | -d, --debug don't remove temporary files |
| 16091 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16092 | --file=FILE[:TEMPLATE] |
| 16093 | instantiate the configuration file FILE |
| 16094 | --header=FILE[:TEMPLATE] |
| 16095 | instantiate the configuration header FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16096 | |
| 16097 | Configuration files: |
| 16098 | $config_files |
| 16099 | |
| 16100 | Configuration headers: |
| 16101 | $config_headers |
| 16102 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16103 | Configuration links: |
| 16104 | $config_links |
| 16105 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16106 | Configuration commands: |
| 16107 | $config_commands |
| 16108 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16109 | Report bugs to <wine-devel@winehq.org>. |
| 16110 | Wine home page: <http://www.winehq.org>." |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 16111 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16112 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16113 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16114 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16115 | ac_cs_version="\\ |
Alexandre Julliard | f0296a8 | 2011-01-21 20:31:58 +0100 | [diff] [blame] | 16116 | Wine config.status 1.3.12 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16117 | configured by $0, generated by GNU Autoconf 2.67, |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16118 | with options \\"\$ac_cs_config\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16119 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16120 | Copyright (C) 2010 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16121 | This config.status script is free software; the Free Software Foundation |
| 16122 | gives unlimited permission to copy, distribute and modify it." |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16123 | |
| 16124 | ac_pwd='$ac_pwd' |
| 16125 | srcdir='$srcdir' |
| 16126 | INSTALL='$INSTALL' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16127 | test -n "\$AWK" || AWK=awk |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16128 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16129 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16130 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16131 | # The default lists apply if the user does not specify any file. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16132 | ac_need_defaults=: |
| 16133 | while test $# != 0 |
| 16134 | do |
| 16135 | case $1 in |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16136 | --*=?*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16137 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16138 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16139 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16140 | ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16141 | --*=) |
| 16142 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16143 | ac_optarg= |
| 16144 | ac_shift=: |
| 16145 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16146 | *) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16147 | ac_option=$1 |
| 16148 | ac_optarg=$2 |
| 16149 | ac_shift=shift |
| 16150 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16151 | esac |
| 16152 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16153 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16154 | # Handling of the options. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16155 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16156 | ac_cs_recheck=: ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16157 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16158 | $as_echo "$ac_cs_version"; exit ;; |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16159 | --config | --confi | --conf | --con | --co | --c ) |
| 16160 | $as_echo "$ac_cs_config"; exit ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16161 | --debug | --debu | --deb | --de | --d | -d ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16162 | debug=: ;; |
| 16163 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16164 | $ac_shift |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16165 | case $ac_optarg in |
| 16166 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16167 | '') as_fn_error $? "missing file argument" ;; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16168 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16169 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16170 | ac_need_defaults=false;; |
| 16171 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16172 | $ac_shift |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16173 | case $ac_optarg in |
| 16174 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 16175 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16176 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16177 | ac_need_defaults=false;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16178 | --he | --h) |
| 16179 | # Conflict between --help and --header |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16180 | as_fn_error $? "ambiguous option: \`$1' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16181 | Try \`$0 --help' for more information.";; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16182 | --help | --hel | -h ) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16183 | $as_echo "$ac_cs_usage"; exit ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16184 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16185 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16186 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16187 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16188 | # This is an error. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16189 | -*) as_fn_error $? "unrecognized option: \`$1' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16190 | Try \`$0 --help' for more information." ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16191 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16192 | *) as_fn_append ac_config_targets " $1" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16193 | ac_need_defaults=false ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16194 | |
| 16195 | esac |
| 16196 | shift |
| 16197 | done |
| 16198 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16199 | ac_configure_extra_args= |
| 16200 | |
| 16201 | if $ac_cs_silent; then |
| 16202 | exec 6>/dev/null |
| 16203 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16204 | fi |
| 16205 | |
| 16206 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16207 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16208 | if \$ac_cs_recheck; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16209 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 16210 | shift |
| 16211 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 16212 | CONFIG_SHELL='$SHELL' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16213 | export CONFIG_SHELL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16214 | exec "\$@" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16215 | fi |
| 16216 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16217 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16218 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16219 | exec 5>>config.log |
| 16220 | { |
| 16221 | echo |
| 16222 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16223 | ## Running $as_me. ## |
| 16224 | _ASBOX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16225 | $as_echo "$ac_log" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16226 | } >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16227 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16228 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16229 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16230 | # |
| 16231 | # INIT-COMMANDS |
| 16232 | # |
| 16233 | wine_fn_output_makefile () |
| 16234 | { |
| 16235 | cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return |
| 16236 | $ALL_MAKEFILE_DEPENDS |
| 16237 | _WINE_EOF |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16238 | as_fn_error $? "could not create Makefile" "$LINENO" 5 |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16239 | } |
| 16240 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16241 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16242 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16243 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16244 | |
| 16245 | # Handling of arguments. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16246 | for ac_config_target in $ac_config_targets |
| 16247 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16248 | case $ac_config_target in |
| 16249 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | c4704c2 | 2006-09-22 09:33:00 +0200 | [diff] [blame] | 16250 | "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;; |
Alexandre Julliard | 40977bf | 2010-11-11 12:24:46 +0100 | [diff] [blame] | 16251 | "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;; |
Alexandre Julliard | a632052 | 2010-02-03 13:14:03 +0100 | [diff] [blame] | 16252 | "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] | 16253 | "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;; |
| 16254 | "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;; |
| 16255 | "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;; |
| 16256 | "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] | 16257 | "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] | 16258 | "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;; |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 16259 | "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;; |
| 16260 | "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;; |
Alexandre Julliard | 1c60e3b | 2006-09-12 16:10:51 +0200 | [diff] [blame] | 16261 | "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;; |
Alexandre Julliard | b8a2e3b | 2006-11-16 14:49:25 +0100 | [diff] [blame] | 16262 | "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16263 | "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;; |
| 16264 | "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
| 16265 | "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 16266 | "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16267 | "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
| 16268 | "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16269 | "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16270 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 16271 | "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] | 16272 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16273 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16274 | esac |
| 16275 | done |
| 16276 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16277 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16278 | # If the user did not use the arguments to specify the items to instantiate, |
| 16279 | # then the envvar interface is used. Set only those that are not. |
| 16280 | # We use the long form for the default assignment because of an extremely |
| 16281 | # bizarre bug on SunOS 4.1.3. |
| 16282 | if $ac_need_defaults; then |
| 16283 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16284 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16285 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16286 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 16287 | fi |
| 16288 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16289 | # Have a temporary directory for convenience. Make it in the build tree |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16290 | # 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] | 16291 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16292 | # Hook for its removal unless debugging. |
| 16293 | # Note that there is a small window in which the directory will not be cleaned: |
| 16294 | # after its creation but before its name has been assigned to `$tmp'. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16295 | $debug || |
| 16296 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16297 | tmp= |
| 16298 | trap 'exit_status=$? |
| 16299 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 16300 | ' 0 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16301 | trap 'as_fn_exit 1' 1 2 13 15 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16302 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16303 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16304 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16305 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16306 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16307 | test -n "$tmp" && test -d "$tmp" |
| 16308 | } || |
| 16309 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16310 | tmp=./conf$$-$RANDOM |
| 16311 | (umask 077 && mkdir "$tmp") |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16312 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16313 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16314 | # Set up the scripts for CONFIG_FILES section. |
| 16315 | # No need to generate them if there are no CONFIG_FILES. |
| 16316 | # This happens for instance with `./config.status config.h'. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16317 | if test -n "$CONFIG_FILES"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16318 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16319 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 16320 | ac_cs_awk_getline=: |
| 16321 | ac_cs_awk_pipe_init= |
| 16322 | ac_cs_awk_read_file=' |
| 16323 | while ((getline aline < (F[key])) > 0) |
| 16324 | print(aline) |
| 16325 | close(F[key])' |
| 16326 | ac_cs_awk_pipe_fini= |
| 16327 | else |
| 16328 | ac_cs_awk_getline=false |
| 16329 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 16330 | ac_cs_awk_read_file=' |
| 16331 | print "|#_!!_#|" |
| 16332 | print "cat " F[key] " &&" |
| 16333 | '$ac_cs_awk_pipe_init |
| 16334 | # The final `:' finishes the AND list. |
| 16335 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 16336 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16337 | ac_cr=`echo X | tr X '\015'` |
| 16338 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16339 | # But we know of no other shell where ac_cr would be empty at this |
| 16340 | # point, so we can use a bashism as a fallback. |
| 16341 | if test "x$ac_cr" = x; then |
| 16342 | eval ac_cr=\$\'\\r\' |
| 16343 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16344 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16345 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16346 | ac_cs_awk_cr='\\r' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16347 | else |
| 16348 | ac_cs_awk_cr=$ac_cr |
| 16349 | fi |
| 16350 | |
| 16351 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16352 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16353 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16354 | # Create commands to substitute file output variables. |
| 16355 | { |
| 16356 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
| 16357 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && |
| 16358 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 16359 | echo "_ACAWK" && |
| 16360 | echo "_ACEOF" |
| 16361 | } >conf$$files.sh && |
| 16362 | . ./conf$$files.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16363 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16364 | rm -f conf$$files.sh |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16365 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16366 | { |
| 16367 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16368 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16369 | echo "_ACEOF" |
| 16370 | } >conf$$subs.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16371 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16372 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16373 | ac_delim='%!_!# ' |
| 16374 | for ac_last_try in false false false false false :; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16375 | . ./conf$$subs.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16376 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16377 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16378 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16379 | if test $ac_delim_n = $ac_delim_num; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16380 | break |
| 16381 | elif $ac_last_try; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16382 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16383 | else |
| 16384 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16385 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16386 | done |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16387 | rm -f conf$$subs.sh |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16388 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16389 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16390 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16391 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16392 | sed -n ' |
| 16393 | h |
| 16394 | s/^/S["/; s/!.*/"]=/ |
| 16395 | p |
| 16396 | g |
| 16397 | s/^[^!]*!// |
| 16398 | :repl |
| 16399 | t repl |
| 16400 | s/'"$ac_delim"'$// |
| 16401 | t delim |
| 16402 | :nl |
| 16403 | h |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16404 | s/\(.\{148\}\)..*/\1/ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16405 | t more1 |
| 16406 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16407 | p |
| 16408 | n |
| 16409 | b repl |
| 16410 | :more1 |
| 16411 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16412 | p |
| 16413 | g |
| 16414 | s/.\{148\}// |
| 16415 | t nl |
| 16416 | :delim |
| 16417 | h |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16418 | s/\(.\{148\}\)..*/\1/ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16419 | t more2 |
| 16420 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 16421 | p |
| 16422 | b |
| 16423 | :more2 |
| 16424 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16425 | p |
| 16426 | g |
| 16427 | s/.\{148\}// |
| 16428 | t delim |
| 16429 | ' <conf$$subs.awk | sed ' |
| 16430 | /^[^""]/{ |
| 16431 | N |
| 16432 | s/\n// |
| 16433 | } |
| 16434 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16435 | rm -f conf$$subs.awk |
| 16436 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16437 | _ACAWK |
| 16438 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 16439 | for (key in S) S_is_set[key] = 1 |
| 16440 | FS = "" |
| 16441 | \$ac_cs_awk_pipe_init |
| 16442 | } |
| 16443 | { |
| 16444 | line = $ 0 |
| 16445 | nfields = split(line, field, "@") |
| 16446 | substed = 0 |
| 16447 | len = length(field[1]) |
| 16448 | for (i = 2; i < nfields; i++) { |
| 16449 | key = field[i] |
| 16450 | keylen = length(key) |
| 16451 | if (S_is_set[key]) { |
| 16452 | value = S[key] |
| 16453 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 16454 | len += length(value) + length(field[++i]) |
| 16455 | substed = 1 |
| 16456 | } else |
| 16457 | len += 1 + keylen |
| 16458 | } |
| 16459 | if (nfields == 3 && !substed) { |
| 16460 | key = field[2] |
| 16461 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 16462 | \$ac_cs_awk_read_file |
| 16463 | next |
| 16464 | } |
| 16465 | } |
| 16466 | print line |
| 16467 | } |
| 16468 | \$ac_cs_awk_pipe_fini |
| 16469 | _ACAWK |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16470 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16471 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16472 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 16473 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 16474 | else |
| 16475 | cat |
| 16476 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16477 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16478 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16479 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16480 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 16481 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16482 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16483 | # (actually we leave an empty line to preserve line numbers). |
| 16484 | if test "x$srcdir" = x.; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16485 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 16486 | h |
| 16487 | s/// |
| 16488 | s/^/:/ |
| 16489 | s/[ ]*$/:/ |
| 16490 | s/:\$(srcdir):/:/g |
| 16491 | s/:\${srcdir}:/:/g |
| 16492 | s/:@srcdir@:/:/g |
| 16493 | s/^:*// |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16494 | s/:*$// |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16495 | x |
| 16496 | s/\(=[ ]*\).*/\1/ |
| 16497 | G |
| 16498 | s/\n// |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16499 | s/^[^=]*=[ ]*$// |
| 16500 | }' |
| 16501 | fi |
| 16502 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16503 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16504 | fi # test -n "$CONFIG_FILES" |
| 16505 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16506 | # Set up the scripts for CONFIG_HEADERS section. |
| 16507 | # No need to generate them if there are no CONFIG_HEADERS. |
| 16508 | # This happens for instance with `./config.status Makefile'. |
| 16509 | if test -n "$CONFIG_HEADERS"; then |
| 16510 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 16511 | BEGIN { |
| 16512 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16513 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16514 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 16515 | # here-document in config.status, that substitutes the proper values into |
| 16516 | # config.h.in to produce config.h. |
| 16517 | |
| 16518 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 16519 | # handling of long lines. |
| 16520 | ac_delim='%!_!# ' |
| 16521 | for ac_last_try in false false :; do |
| 16522 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 16523 | if test -z "$ac_t"; then |
| 16524 | break |
| 16525 | elif $ac_last_try; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16526 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16527 | else |
| 16528 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16529 | fi |
| 16530 | done |
| 16531 | |
| 16532 | # For the awk script, D is an array of macro values keyed by name, |
| 16533 | # likewise P contains macro parameters if any. Preserve backslash |
| 16534 | # newline sequences. |
| 16535 | |
| 16536 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 16537 | sed -n ' |
| 16538 | s/.\{148\}/&'"$ac_delim"'/g |
| 16539 | t rset |
| 16540 | :rset |
| 16541 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 16542 | t def |
| 16543 | d |
| 16544 | :def |
| 16545 | s/\\$// |
| 16546 | t bsnl |
| 16547 | s/["\\]/\\&/g |
| 16548 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16549 | D["\1"]=" \3"/p |
| 16550 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 16551 | d |
| 16552 | :bsnl |
| 16553 | s/["\\]/\\&/g |
| 16554 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16555 | D["\1"]=" \3\\\\\\n"\\/p |
| 16556 | t cont |
| 16557 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 16558 | t cont |
| 16559 | d |
| 16560 | :cont |
| 16561 | n |
| 16562 | s/.\{148\}/&'"$ac_delim"'/g |
| 16563 | t clear |
| 16564 | :clear |
| 16565 | s/\\$// |
| 16566 | t bsnlc |
| 16567 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 16568 | d |
| 16569 | :bsnlc |
| 16570 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 16571 | b cont |
| 16572 | ' <confdefs.h | sed ' |
| 16573 | s/'"$ac_delim"'/"\\\ |
| 16574 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16575 | |
| 16576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16577 | for (key in D) D_is_set[key] = 1 |
| 16578 | FS = "" |
| 16579 | } |
| 16580 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 16581 | line = \$ 0 |
| 16582 | split(line, arg, " ") |
| 16583 | if (arg[1] == "#") { |
| 16584 | defundef = arg[2] |
| 16585 | mac1 = arg[3] |
| 16586 | } else { |
| 16587 | defundef = substr(arg[1], 2) |
| 16588 | mac1 = arg[2] |
| 16589 | } |
| 16590 | split(mac1, mac2, "(") #) |
| 16591 | macro = mac2[1] |
| 16592 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 16593 | if (D_is_set[macro]) { |
| 16594 | # Preserve the white space surrounding the "#". |
| 16595 | print prefix "define", macro P[macro] D[macro] |
| 16596 | next |
| 16597 | } else { |
| 16598 | # Replace #undef with comments. This is necessary, for example, |
| 16599 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 16600 | # on some systems where configure will not decide to define it. |
| 16601 | if (defundef == "undef") { |
| 16602 | print "/*", prefix defundef, macro, "*/" |
| 16603 | next |
| 16604 | } |
| 16605 | } |
| 16606 | } |
| 16607 | { print } |
| 16608 | _ACAWK |
| 16609 | _ACEOF |
| 16610 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16611 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16612 | fi # test -n "$CONFIG_HEADERS" |
| 16613 | |
| 16614 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16615 | 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] | 16616 | shift |
| 16617 | for ac_tag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16618 | do |
| 16619 | case $ac_tag in |
| 16620 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16621 | esac |
| 16622 | case $ac_mode$ac_tag in |
| 16623 | :[FHL]*:*);; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16624 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16625 | :[FH]-) ac_tag=-:-;; |
| 16626 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16627 | esac |
| 16628 | ac_save_IFS=$IFS |
| 16629 | IFS=: |
| 16630 | set x $ac_tag |
| 16631 | IFS=$ac_save_IFS |
| 16632 | shift |
| 16633 | ac_file=$1 |
| 16634 | shift |
| 16635 | |
| 16636 | case $ac_mode in |
| 16637 | :L) ac_source=$1;; |
| 16638 | :[FH]) |
| 16639 | ac_file_inputs= |
| 16640 | for ac_f |
| 16641 | do |
| 16642 | case $ac_f in |
| 16643 | -) ac_f="$tmp/stdin";; |
| 16644 | *) # Look for the file first in the build tree, then in the source tree |
| 16645 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16646 | # because $ac_f cannot contain `:'. |
| 16647 | test -f "$ac_f" || |
| 16648 | case $ac_f in |
| 16649 | [\\/$]*) false;; |
| 16650 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16651 | esac || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16652 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16653 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16654 | 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] | 16655 | as_fn_append ac_file_inputs " '$ac_f'" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16656 | done |
| 16657 | |
| 16658 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16659 | # use $as_me), people would be surprised to read: |
| 16660 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16661 | configure_input='Generated from '` |
| 16662 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 16663 | `' by configure.' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16664 | if test x"$ac_file" != x-; then |
| 16665 | configure_input="$ac_file. $configure_input" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16666 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16667 | $as_echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16668 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16669 | # Neutralize special characters interpreted by sed in replacement strings. |
| 16670 | case $configure_input in #( |
| 16671 | *\&* | *\|* | *\\* ) |
| 16672 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 16673 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 16674 | *) ac_sed_conf_input=$configure_input;; |
| 16675 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16676 | |
| 16677 | case $ac_tag in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16678 | *:-:* | *:-) cat >"$tmp/stdin" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16679 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16680 | esac |
| 16681 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16682 | esac |
| 16683 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16684 | ac_dir=`$as_dirname -- "$ac_file" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16685 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16686 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16687 | X"$ac_file" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16688 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16689 | $as_echo X"$ac_file" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16690 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16691 | s//\1/ |
| 16692 | q |
| 16693 | } |
| 16694 | /^X\(\/\/\)[^/].*/{ |
| 16695 | s//\1/ |
| 16696 | q |
| 16697 | } |
| 16698 | /^X\(\/\/\)$/{ |
| 16699 | s//\1/ |
| 16700 | q |
| 16701 | } |
| 16702 | /^X\(\/\).*/{ |
| 16703 | s//\1/ |
| 16704 | q |
| 16705 | } |
| 16706 | s/.*/./; q'` |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16707 | as_dir="$ac_dir"; as_fn_mkdir_p |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16708 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16709 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16710 | case "$ac_dir" in |
| 16711 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16712 | *) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16713 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16714 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16715 | 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] | 16716 | case $ac_top_builddir_sub in |
| 16717 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16718 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16719 | esac ;; |
| 16720 | esac |
| 16721 | ac_abs_top_builddir=$ac_pwd |
| 16722 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16723 | # for backward compatibility: |
| 16724 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16725 | |
| 16726 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16727 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16728 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16729 | ac_top_srcdir=$ac_top_builddir_sub |
| 16730 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16731 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16732 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16733 | ac_top_srcdir=$srcdir |
| 16734 | ac_abs_top_srcdir=$srcdir ;; |
| 16735 | *) # Relative name. |
| 16736 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16737 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16738 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16739 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16740 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16741 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16742 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16743 | case $ac_mode in |
| 16744 | :F) |
| 16745 | # |
| 16746 | # CONFIG_FILE |
| 16747 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16748 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16749 | case $INSTALL in |
| 16750 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16751 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 16752 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16753 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16754 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16755 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16756 | # If the template does not know about datarootdir, expand it. |
| 16757 | # FIXME: This hack should be removed a few years after 2.60. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16758 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16759 | ac_sed_dataroot=' |
| 16760 | /datarootdir/ { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16761 | p |
| 16762 | q |
| 16763 | } |
| 16764 | /@datadir@/p |
| 16765 | /@docdir@/p |
| 16766 | /@infodir@/p |
| 16767 | /@localedir@/p |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16768 | /@mandir@/p' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16769 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16770 | *datarootdir*) ac_datarootdir_seen=yes;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16771 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16772 | { $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] | 16773 | $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] | 16774 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16775 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16776 | ac_datarootdir_hack=' |
| 16777 | s&@datadir@&$datadir&g |
| 16778 | s&@docdir@&$docdir&g |
| 16779 | s&@infodir@&$infodir&g |
| 16780 | s&@localedir@&$localedir&g |
| 16781 | s&@mandir@&$mandir&g |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16782 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16783 | esac |
| 16784 | _ACEOF |
| 16785 | |
| 16786 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16787 | # Shell code in configure.ac might set extrasub. |
| 16788 | # FIXME: do we really want to maintain this feature? |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16789 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16790 | ac_sed_extra="$ac_vpsub |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16791 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16792 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16793 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16794 | :t |
| 16795 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16796 | s|@configure_input@|$ac_sed_conf_input|;t t |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16797 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16798 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16799 | s&@srcdir@&$ac_srcdir&;t t |
| 16800 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16801 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16802 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16803 | s&@builddir@&$ac_builddir&;t t |
| 16804 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16805 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16806 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16807 | $ac_datarootdir_hack |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16808 | " |
| 16809 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 16810 | if $ac_cs_awk_getline; then |
| 16811 | $AWK -f "$tmp/subs.awk" |
| 16812 | else |
| 16813 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 16814 | fi >$tmp/out \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16815 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16816 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16817 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16818 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 16819 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16820 | { $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] | 16821 | which seems to be undefined. Please make sure it is defined" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16822 | $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] | 16823 | which seems to be undefined. Please make sure it is defined" >&2;} |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16824 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16825 | rm -f "$tmp/stdin" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16826 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16827 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 16828 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 16829 | esac \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16830 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16831 | ;; |
| 16832 | :H) |
| 16833 | # |
| 16834 | # CONFIG_HEADER |
| 16835 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16836 | if test x"$ac_file" != x-; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16837 | { |
| 16838 | $as_echo "/* $configure_input */" \ |
| 16839 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 16840 | } >"$tmp/config.h" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16841 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16842 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16843 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16844 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16845 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16846 | rm -f "$ac_file" |
| 16847 | mv "$tmp/config.h" "$ac_file" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16848 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16849 | fi |
| 16850 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16851 | $as_echo "/* $configure_input */" \ |
| 16852 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16853 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16854 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16855 | ;; |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16856 | :L) |
| 16857 | # |
| 16858 | # CONFIG_LINK |
| 16859 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16860 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16861 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then |
| 16862 | : |
| 16863 | else |
| 16864 | # Prefer the file from the source tree if names are identical. |
| 16865 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then |
| 16866 | ac_source=$srcdir/$ac_source |
| 16867 | fi |
| 16868 | |
| 16869 | { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 |
| 16870 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} |
| 16871 | |
| 16872 | if test ! -r "$ac_source"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16873 | as_fn_error $? "$ac_source: file not found" "$LINENO" 5 |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16874 | fi |
| 16875 | rm -f "$ac_file" |
| 16876 | |
| 16877 | # Try a relative symlink, then a hard link, then a copy. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16878 | case $ac_source in |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16879 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; |
| 16880 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; |
| 16881 | esac |
| 16882 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || |
| 16883 | ln "$ac_source" "$ac_file" 2>/dev/null || |
| 16884 | cp -p "$ac_source" "$ac_file" || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16885 | 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] | 16886 | fi |
| 16887 | ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16888 | :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] | 16889 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16890 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16891 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16892 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16893 | |
| 16894 | case $ac_file$ac_mode in |
Alexandre Julliard | c4704c2 | 2006-09-22 09:33:00 +0200 | [diff] [blame] | 16895 | "include/stamp-h":C) echo timestamp > include/stamp-h ;; |
Alexandre Julliard | a1c253e | 2010-02-11 20:26:35 +0100 | [diff] [blame] | 16896 | "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5 |
| 16897 | $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;; |
| 16898 | "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5 |
| 16899 | $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;; |
| 16900 | "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5 |
| 16901 | $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;; |
| 16902 | "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5 |
| 16903 | $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;; |
| 16904 | "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5 |
| 16905 | $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;; |
| 16906 | "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5 |
| 16907 | $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] | 16908 | "Makefile":C) wine_fn_output_makefile Makefile ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16909 | |
| 16910 | esac |
| 16911 | done # for ac_tag |
| 16912 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 16913 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16914 | as_fn_exit 0 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16915 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16916 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16917 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16918 | test $ac_write_fail = 0 || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16919 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16920 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16921 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16922 | # configure is writing to config.log, and then calls config.status. |
| 16923 | # config.status does its own redirection, appending to config.log. |
| 16924 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16925 | # by configure, so config.status won't be able to write to it; its |
| 16926 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16927 | # effectively closing config.log, so it can be properly (re)opened and |
| 16928 | # appended to by config.status. When coming back to configure, we |
| 16929 | # need to make the FD available again. |
| 16930 | if test "$no_create" != yes; then |
| 16931 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16932 | ac_config_status_args= |
| 16933 | test "$silent" = yes && |
| 16934 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16935 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16936 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16937 | exec 5>>config.log |
| 16938 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16939 | # would make configure fail if this is the last instruction. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16940 | $ac_cs_success || as_fn_exit 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16941 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16942 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16943 | { $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] | 16944 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 16945 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16946 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16947 | |
Alexandre Julliard | e3bd111 | 2006-09-21 11:14:38 +0200 | [diff] [blame] | 16948 | if test "$no_create" = "yes" |
| 16949 | then |
| 16950 | exit 0 |
| 16951 | fi |
| 16952 | |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16953 | ac_save_IFS="$IFS" |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 16954 | if test "x$wine_notices != "x; then |
| 16955 | echo >&6 |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 16956 | IFS="|" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16957 | for msg in $wine_notices; do |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 16958 | IFS="$ac_save_IFS" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16959 | if test -n "$msg"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16960 | { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16961 | $as_echo "$as_me: $msg" >&6;} |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16962 | fi |
| 16963 | done |
| 16964 | fi |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 16965 | IFS="|" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16966 | for msg in $wine_warnings; do |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 16967 | IFS="$ac_save_IFS" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16968 | if test -n "$msg"; then |
| 16969 | echo >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16971 | $as_echo "$as_me: WARNING: $msg" >&2;} |
Detlef Riekenberg | e84a382 | 2006-08-21 05:28:17 +0200 | [diff] [blame] | 16972 | fi |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16973 | done |
| 16974 | IFS="$ac_save_IFS" |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 16975 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 16976 | echo " |
Alexandre Julliard | 64362ac | 2010-02-23 13:33:52 +0100 | [diff] [blame] | 16977 | $as_me: Finished. Do '${ac_make}' to compile Wine. |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 16978 | " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16979 | |