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 | d35cb81 | 2012-06-22 20:16:32 +0200 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for Wine 1.5.7. |
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 | # |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 9 | # |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 19 | 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] | 20 | emulate sh |
| 21 | NULLCMD=: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
| 26 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 32 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 33 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 34 | |
| 35 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | 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] | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | 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] | 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 60 | case $arg in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 81 | fi |
| 82 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 92 | as_myself= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 93 | case $0 in #(( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 102 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 103 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 112 | $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] | 113 | exit 1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 114 | fi |
| 115 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 133 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 201 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 202 | if (eval "$as_required") 2>/dev/null; then : |
| 203 | as_have_required=yes |
| 204 | else |
| 205 | as_have_required=no |
| 206 | fi |
| 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 208 | |
| 209 | else |
| 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 211 | as_found=false |
| 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 213 | do |
| 214 | IFS=$as_save_IFS |
| 215 | test -z "$as_dir" && as_dir=. |
| 216 | as_found=: |
| 217 | case $as_dir in #( |
| 218 | /*) |
| 219 | for as_base in sh bash ksh sh5; do |
| 220 | # Try only shells that exist, to save several forks. |
| 221 | as_shell=$as_dir/$as_base |
| 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 226 | break 2 |
| 227 | fi |
| 228 | fi |
| 229 | done;; |
| 230 | esac |
| 231 | as_found=false |
| 232 | done |
| 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 236 | fi; } |
| 237 | IFS=$as_save_IFS |
| 238 | |
| 239 | |
| 240 | if test "x$CONFIG_SHELL" != x; then : |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 241 | export CONFIG_SHELL |
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
| 243 | # neutralization value for shells without unset; and this also |
| 244 | # works around shells that cannot unset nonexistent variables. |
| 245 | # Preserve -v and -x to the replacement shell. |
| 246 | BASH_ENV=/dev/null |
| 247 | ENV=/dev/null |
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 249 | case $- in # (((( |
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 251 | *v* ) as_opts=-v ;; |
| 252 | *x* ) as_opts=-x ;; |
| 253 | * ) as_opts= ;; |
| 254 | esac |
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 257 | # out after a failed `exec'. |
| 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 259 | exit 255 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 260 | fi |
| 261 | |
| 262 | if test x$as_have_required = xno; then : |
| 263 | $as_echo "$0: This script requires a shell more modern than all" |
| 264 | $as_echo "$0: the shells that I found on your system." |
| 265 | if test x${ZSH_VERSION+set} = xset ; then |
| 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 268 | else |
| 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 270 | $0: wine-devel@winehq.org about your system, including any |
| 271 | $0: error possibly output before this message. Then install |
| 272 | $0: a modern shell, or manually run the script under such a |
| 273 | $0: shell if you do have one." |
| 274 | fi |
| 275 | exit 1 |
| 276 | fi |
| 277 | fi |
| 278 | fi |
| 279 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 280 | export SHELL |
| 281 | # Unset more variables known to interfere with behavior of common tools. |
| 282 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 284 | |
| 285 | ## --------------------- ## |
| 286 | ## M4sh Shell Functions. ## |
| 287 | ## --------------------- ## |
| 288 | # as_fn_unset VAR |
| 289 | # --------------- |
| 290 | # Portably unset VAR. |
| 291 | as_fn_unset () |
| 292 | { |
| 293 | { eval $1=; unset $1;} |
| 294 | } |
| 295 | as_unset=as_fn_unset |
| 296 | |
| 297 | # as_fn_set_status STATUS |
| 298 | # ----------------------- |
| 299 | # Set $? to STATUS, without forking. |
| 300 | as_fn_set_status () |
| 301 | { |
| 302 | return $1 |
| 303 | } # as_fn_set_status |
| 304 | |
| 305 | # as_fn_exit STATUS |
| 306 | # ----------------- |
| 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 308 | as_fn_exit () |
| 309 | { |
| 310 | set +e |
| 311 | as_fn_set_status $1 |
| 312 | exit $1 |
| 313 | } # as_fn_exit |
| 314 | |
| 315 | # as_fn_mkdir_p |
| 316 | # ------------- |
| 317 | # Create "$as_dir" as a directory, including parents if necessary. |
| 318 | as_fn_mkdir_p () |
| 319 | { |
| 320 | |
| 321 | case $as_dir in #( |
| 322 | -*) as_dir=./$as_dir;; |
| 323 | esac |
| 324 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 325 | as_dirs= |
| 326 | while :; do |
| 327 | case $as_dir in #( |
| 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 329 | *) as_qdir=$as_dir;; |
| 330 | esac |
| 331 | as_dirs="'$as_qdir' $as_dirs" |
| 332 | as_dir=`$as_dirname -- "$as_dir" || |
| 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 335 | X"$as_dir" : 'X\(//\)$' \| \ |
| 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 337 | $as_echo X"$as_dir" | |
| 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 339 | s//\1/ |
| 340 | q |
| 341 | } |
| 342 | /^X\(\/\/\)[^/].*/{ |
| 343 | s//\1/ |
| 344 | q |
| 345 | } |
| 346 | /^X\(\/\/\)$/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | /^X\(\/\).*/{ |
| 351 | s//\1/ |
| 352 | q |
| 353 | } |
| 354 | s/.*/./; q'` |
| 355 | test -d "$as_dir" && break |
| 356 | done |
| 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 359 | |
| 360 | |
| 361 | } # as_fn_mkdir_p |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 362 | |
| 363 | # as_fn_executable_p FILE |
| 364 | # ----------------------- |
| 365 | # Test if FILE is an executable regular file. |
| 366 | as_fn_executable_p () |
| 367 | { |
| 368 | test -f "$1" && test -x "$1" |
| 369 | } # as_fn_executable_p |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 370 | # as_fn_append VAR VALUE |
| 371 | # ---------------------- |
| 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 373 | # advantage of any shell optimizations that allow amortized linear growth over |
| 374 | # repeated appends, instead of the typical quadratic growth present in naive |
| 375 | # implementations. |
| 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 377 | eval 'as_fn_append () |
| 378 | { |
| 379 | eval $1+=\$2 |
| 380 | }' |
| 381 | else |
| 382 | as_fn_append () |
| 383 | { |
| 384 | eval $1=\$$1\$2 |
| 385 | } |
| 386 | fi # as_fn_append |
| 387 | |
| 388 | # as_fn_arith ARG... |
| 389 | # ------------------ |
| 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 392 | # must be portable across $(()) and expr. |
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 394 | eval 'as_fn_arith () |
| 395 | { |
| 396 | as_val=$(( $* )) |
| 397 | }' |
| 398 | else |
| 399 | as_fn_arith () |
| 400 | { |
| 401 | as_val=`expr "$@" || test $? -eq 1` |
| 402 | } |
| 403 | fi # as_fn_arith |
| 404 | |
| 405 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 407 | # ---------------------------------------- |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 409 | # 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] | 410 | # script with STATUS, using 1 if that was 0. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 411 | as_fn_error () |
| 412 | { |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 414 | if test "$4"; then |
| 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 417 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 418 | $as_echo "$as_me: error: $2" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 419 | as_fn_exit $as_status |
| 420 | } # as_fn_error |
| 421 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 424 | as_expr=expr |
| 425 | else |
| 426 | as_expr=false |
| 427 | fi |
| 428 | |
| 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 430 | as_basename=basename |
| 431 | else |
| 432 | as_basename=false |
| 433 | fi |
| 434 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 436 | as_dirname=dirname |
| 437 | else |
| 438 | as_dirname=false |
| 439 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 440 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || |
| 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 443 | X"$0" : 'X\(//\)$' \| \ |
| 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 445 | $as_echo X/"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 447 | s//\1/ |
| 448 | q |
| 449 | } |
| 450 | /^X\/\(\/\/\)$/{ |
| 451 | s//\1/ |
| 452 | q |
| 453 | } |
| 454 | /^X\/\(\/\).*/{ |
| 455 | s//\1/ |
| 456 | q |
| 457 | } |
| 458 | s/.*/./; q'` |
| 459 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. |
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 464 | as_cr_digits='0123456789' |
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 466 | |
| 467 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 473 | sed -n ' |
| 474 | p |
| 475 | /[$]LINENO/= |
| 476 | ' <$as_myself | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 477 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 478 | s/[$]LINENO.*/&-/ |
| 479 | t lineno |
| 480 | b |
| 481 | :lineno |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 482 | N |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 483 | :loop |
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 485 | t loop |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 486 | s/-\n.*// |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 487 | ' >$as_me.lineno && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 488 | chmod +x "$as_me.lineno" || |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 489 | { $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] | 490 | |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 492 | # already done that, so ensure we don't try to do so again and fall |
| 493 | # in an infinite loop. This has already happened in practice. |
| 494 | _as_can_reexec=no; export _as_can_reexec |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 496 | # (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] | 497 | # original and so on. Autoconf is especially sensitive to this). |
| 498 | . "./$as_me.lineno" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 499 | # Exit status is that of the last command. |
| 500 | exit |
| 501 | } |
| 502 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 504 | case `echo -n x` in #((((( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 505 | -n*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 506 | case `echo 'xy\c'` in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 508 | xy) ECHO_C='\c';; |
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 510 | ECHO_T=' ';; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 511 | esac;; |
| 512 | *) |
| 513 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 514 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 515 | |
| 516 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 517 | if test -d conf$$.dir; then |
| 518 | rm -f conf$$.dir/conf$$.file |
| 519 | else |
| 520 | rm -f conf$$.dir |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 521 | mkdir conf$$.dir 2>/dev/null |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 522 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 523 | if (echo >conf$$.file) 2>/dev/null; then |
| 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 525 | as_ln_s='ln -s' |
| 526 | # ... but there are two gotchas: |
| 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 529 | # In both cases, we have to default to `cp -pR'. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 531 | as_ln_s='cp -pR' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 533 | as_ln_s=ln |
| 534 | else |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 536 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 537 | else |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 538 | as_ln_s='cp -pR' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 539 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 541 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 542 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 543 | if mkdir -p . 2>/dev/null; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 545 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 546 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 547 | as_mkdir_p=false |
| 548 | fi |
| 549 | |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 550 | as_test_x='test -x' |
| 551 | as_executable_p=as_fn_executable_p |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 552 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 553 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 554 | 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] | 555 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 556 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 558 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 559 | |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 561 | exec 6>&1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 562 | |
| 563 | # Name of the host. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 564 | # 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] | 565 | # so uname gets run too. |
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 567 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 568 | # |
| 569 | # Initializations. |
| 570 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 571 | ac_default_prefix=/usr/local |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 572 | ac_clean_files= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 573 | ac_config_libobj_dir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 574 | LIBOBJS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 575 | cross_compiling=no |
| 576 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 577 | MFLAGS= |
| 578 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 579 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 580 | # Identity of this package. |
| 581 | PACKAGE_NAME='Wine' |
| 582 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | d35cb81 | 2012-06-22 20:16:32 +0200 | [diff] [blame] | 583 | PACKAGE_VERSION='1.5.7' |
| 584 | PACKAGE_STRING='Wine 1.5.7' |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='wine-devel@winehq.org' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 586 | PACKAGE_URL='http://www.winehq.org' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 587 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 588 | ac_unique_file="server/atom.c" |
| 589 | # Factoring default headers for most tests. |
| 590 | ac_includes_default="\ |
| 591 | #include <stdio.h> |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 592 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 593 | # include <sys/types.h> |
| 594 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 596 | # include <sys/stat.h> |
| 597 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 598 | #ifdef STDC_HEADERS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 599 | # include <stdlib.h> |
| 600 | # include <stddef.h> |
| 601 | #else |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 602 | # ifdef HAVE_STDLIB_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 603 | # include <stdlib.h> |
| 604 | # endif |
| 605 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H |
| 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 608 | # include <memory.h> |
| 609 | # endif |
| 610 | # include <string.h> |
| 611 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 613 | # include <strings.h> |
| 614 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 616 | # include <inttypes.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 617 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 618 | #ifdef HAVE_STDINT_H |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 619 | # include <stdint.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 620 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 621 | #ifdef HAVE_UNISTD_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 622 | # include <unistd.h> |
| 623 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 624 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 626 | LIBOBJS |
Alexandre Julliard | f4ec097 | 2011-10-22 18:21:04 +0200 | [diff] [blame] | 627 | PORCFLAGS |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 628 | LINGUAS |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 629 | ALL_TEST_RESOURCES |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 630 | LDAPLIBS |
| 631 | LIBPOLL |
| 632 | LIBDL |
| 633 | EXTRA_BINARIES |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 634 | MAIN_BINARY |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 635 | SOCKETLIBS |
| 636 | CRTLIBS |
Alexandre Julliard | b860c4a | 2009-09-01 22:36:13 +0200 | [diff] [blame] | 637 | TOOLSEXT |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 638 | LDPATH |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 639 | UNWINDFLAGS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 640 | BUILTINFLAG |
| 641 | EXTRACFLAGS |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 642 | LIBKSTAT |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 643 | LIBOPENAL |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 644 | LIBMPG123 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 645 | PNGINCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 646 | FONTCONFIGINCL |
| 647 | CUPSINCL |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 648 | OSS4INCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 649 | ALSALIBS |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 650 | GSTREAMER_INCL |
| 651 | GSTREAMER_LIBS |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 652 | LIBGETTEXTPO |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 653 | ZLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 654 | FREETYPEINCL |
| 655 | FREETYPELIBS |
| 656 | ft_devel |
| 657 | LCMSLIBS |
| 658 | RESOLVLIBS |
| 659 | GPHOTO2INCL |
| 660 | GPHOTO2LIBS |
| 661 | gphoto2port_devel |
| 662 | gphoto2_devel |
| 663 | SANEINCL |
| 664 | sane_devel |
| 665 | GNUTLSINCL |
| 666 | HALINCL |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 667 | DBUSINCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 668 | XSLTINCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 669 | XML2INCL |
| 670 | XML2LIBS |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 671 | X_EXTRA_LIBS |
| 672 | X_LIBS |
| 673 | X_PRE_LIBS |
| 674 | X_CFLAGS |
| 675 | XMKMF |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 676 | LIBPTHREAD |
Alexandre Julliard | 1f25421 | 2010-01-23 20:26:49 +0100 | [diff] [blame] | 677 | CROSSTARGET |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 678 | CROSSCC |
Alexandre Julliard | 7d2e772 | 2010-07-26 12:13:47 +0200 | [diff] [blame] | 679 | CROSSTEST_DISABLE |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 680 | PRELINK |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 681 | CARBONLIB |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 682 | QUICKTIMELIB |
Alexandre Julliard | fac6741 | 2010-12-03 14:16:55 +0100 | [diff] [blame] | 683 | LIBOPENCL |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 684 | FRAMEWORK_OPENAL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 685 | COREAUDIO |
Alexandre Julliard | 45db348 | 2011-03-14 14:25:45 +0100 | [diff] [blame] | 686 | SECURITYLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 687 | DISKARBITRATIONLIB |
| 688 | LDEXECFLAGS |
Ken Thomases | cd454fd | 2012-03-14 16:49:47 -0500 | [diff] [blame] | 689 | CORESERVICESLIB |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 690 | APPLICATIONSERVICESLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 691 | IOKITLIB |
| 692 | COREFOUNDATIONLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 693 | DLLWRAP |
| 694 | DLLTOOL |
| 695 | LDD |
| 696 | LDRPATH_LOCAL |
| 697 | LDRPATH_INSTALL |
| 698 | IMPLIBEXT |
| 699 | LIBEXT |
| 700 | LDDLLFLAGS |
| 701 | LDSHARED |
| 702 | DLLFLAGS |
| 703 | DLLEXT |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 704 | CPP |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 705 | OPENGL_LIBS |
| 706 | XLIB |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 707 | MAINTAINER_MODE |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 708 | MSGFMT |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 709 | ICOTOOL |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 710 | CONVERT |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 711 | RSVG |
| 712 | PKG_CONFIG |
| 713 | FONTFORGE |
| 714 | LINTFLAGS |
| 715 | LINT |
| 716 | INSTALL_DATA |
| 717 | INSTALL_SCRIPT |
| 718 | INSTALL_PROGRAM |
| 719 | LDCONFIG |
| 720 | EGREP |
| 721 | GREP |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 722 | LN_S |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 723 | RANLIB |
| 724 | ARFLAGS |
| 725 | ac_ct_AR |
| 726 | AR |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 727 | BISON |
| 728 | FLEX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 729 | TOOLSDIR |
Alexandre Julliard | 9064777 | 2009-08-13 19:48:42 +0200 | [diff] [blame] | 730 | WOW64_DISABLE |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 731 | TARGETFLAGS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 732 | CPPBIN |
| 733 | ac_ct_CXX |
| 734 | CXXFLAGS |
| 735 | CXX |
| 736 | OBJEXT |
| 737 | EXEEXT |
| 738 | ac_ct_CC |
| 739 | CPPFLAGS |
| 740 | LDFLAGS |
| 741 | CFLAGS |
| 742 | CC |
| 743 | SET_MAKE |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 744 | host_os |
| 745 | host_vendor |
| 746 | host_cpu |
| 747 | host |
| 748 | build_os |
| 749 | build_vendor |
| 750 | build_cpu |
| 751 | build |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 752 | target_alias |
| 753 | host_alias |
| 754 | build_alias |
| 755 | LIBS |
| 756 | ECHO_T |
| 757 | ECHO_N |
| 758 | ECHO_C |
| 759 | DEFS |
| 760 | mandir |
| 761 | localedir |
| 762 | libdir |
| 763 | psdir |
| 764 | pdfdir |
| 765 | dvidir |
| 766 | htmldir |
| 767 | infodir |
| 768 | docdir |
| 769 | oldincludedir |
| 770 | includedir |
| 771 | localstatedir |
| 772 | sharedstatedir |
| 773 | sysconfdir |
| 774 | datadir |
| 775 | datarootdir |
| 776 | libexecdir |
| 777 | sbindir |
| 778 | bindir |
| 779 | program_transform_name |
| 780 | prefix |
| 781 | exec_prefix |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 782 | PACKAGE_URL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 783 | PACKAGE_BUGREPORT |
| 784 | PACKAGE_STRING |
| 785 | PACKAGE_VERSION |
| 786 | PACKAGE_TARNAME |
| 787 | PACKAGE_NAME |
| 788 | PATH_SEPARATOR |
| 789 | SHELL' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 790 | ac_subst_files='MAKE_RULES |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 791 | MAKE_TEST_RULES |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 792 | MAKE_DLL_RULES |
| 793 | MAKE_IMPLIB_RULES |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 794 | MAKE_PROG_RULES' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 795 | ac_user_opts=' |
| 796 | enable_option_checking |
| 797 | enable_win16 |
| 798 | enable_win64 |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 799 | enable_tests |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 800 | enable_maintainer_mode |
| 801 | with_alsa |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 802 | with_capi |
| 803 | with_cms |
| 804 | with_coreaudio |
| 805 | with_cups |
| 806 | with_curses |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 807 | with_dbus |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 808 | with_fontconfig |
| 809 | with_freetype |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 810 | with_gettext |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 811 | with_gettextpo |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 812 | with_gphoto |
| 813 | with_glu |
| 814 | with_gnutls |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 815 | with_gsm |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 816 | with_gstreamer |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 817 | with_hal |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 818 | with_jpeg |
| 819 | with_ldap |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 820 | with_mpg123 |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 821 | with_openal |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 822 | with_opencl |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 823 | with_opengl |
| 824 | with_openssl |
| 825 | with_oss |
| 826 | with_png |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 827 | with_pthread |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 828 | with_sane |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 829 | with_tiff |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 830 | with_v4l |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 831 | with_xcomposite |
| 832 | with_xcursor |
| 833 | with_xinerama |
| 834 | with_xinput |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 835 | with_xinput2 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 836 | with_xml |
| 837 | with_xrandr |
| 838 | with_xrender |
| 839 | with_xshape |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 840 | with_xslt |
| 841 | with_xxf86vm |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 842 | with_zlib |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 843 | with_wine_tools |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 844 | with_wine64 |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 845 | enable_largefile |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 846 | with_x |
| 847 | ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 848 | ac_precious_vars='build_alias |
| 849 | host_alias |
| 850 | target_alias |
| 851 | CC |
| 852 | CFLAGS |
| 853 | LDFLAGS |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 854 | LIBS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 855 | CPPFLAGS |
| 856 | CXX |
| 857 | CXXFLAGS |
| 858 | CCC |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 859 | CPP |
| 860 | XMKMF' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 861 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 862 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 863 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 864 | ac_init_help= |
| 865 | ac_init_version=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 866 | ac_unrecognized_opts= |
| 867 | ac_unrecognized_sep= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 868 | # The variables have the same names as the options, with |
| 869 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 870 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 871 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 872 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 873 | no_recursion= |
| 874 | prefix=NONE |
| 875 | program_prefix=NONE |
| 876 | program_suffix=NONE |
| 877 | program_transform_name=s,x,x, |
| 878 | silent= |
| 879 | site= |
| 880 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 881 | verbose= |
| 882 | x_includes=NONE |
| 883 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 884 | |
| 885 | # Installation directory options. |
| 886 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 887 | # and all the variables that are supposed to be based on exec_prefix |
| 888 | # by default will actually change. |
| 889 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 890 | # (The list follows the same order as the GNU Coding Standards.) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 891 | bindir='${exec_prefix}/bin' |
| 892 | sbindir='${exec_prefix}/sbin' |
| 893 | libexecdir='${exec_prefix}/libexec' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 894 | datarootdir='${prefix}/share' |
| 895 | datadir='${datarootdir}' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 896 | sysconfdir='${prefix}/etc' |
| 897 | sharedstatedir='${prefix}/com' |
| 898 | localstatedir='${prefix}/var' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 899 | includedir='${prefix}/include' |
| 900 | oldincludedir='/usr/include' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 901 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 902 | infodir='${datarootdir}/info' |
| 903 | htmldir='${docdir}' |
| 904 | dvidir='${docdir}' |
| 905 | pdfdir='${docdir}' |
| 906 | psdir='${docdir}' |
| 907 | libdir='${exec_prefix}/lib' |
| 908 | localedir='${datarootdir}/locale' |
| 909 | mandir='${datarootdir}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 910 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 911 | ac_prev= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 912 | ac_dashdash= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 913 | for ac_option |
| 914 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 915 | # If the previous option needs an argument, assign it. |
| 916 | if test -n "$ac_prev"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 917 | eval $ac_prev=\$ac_option |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 918 | ac_prev= |
| 919 | continue |
| 920 | fi |
| 921 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 922 | case $ac_option in |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 923 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 924 | *=) ac_optarg= ;; |
| 925 | *) ac_optarg=yes ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 926 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 927 | |
| 928 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 929 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 930 | case $ac_dashdash$ac_option in |
| 931 | --) |
| 932 | ac_dashdash=yes ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 933 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 934 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 935 | ac_prev=bindir ;; |
| 936 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 937 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 938 | |
| 939 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 940 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 941 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 942 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 943 | |
| 944 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 945 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 946 | ac_prev=cache_file ;; |
| 947 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 948 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 949 | cache_file=$ac_optarg ;; |
| 950 | |
| 951 | --config-cache | -C) |
| 952 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 953 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 954 | -datadir | --datadir | --datadi | --datad) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 955 | ac_prev=datadir ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 956 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 957 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 958 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 959 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 960 | | --dataroo | --dataro | --datar) |
| 961 | ac_prev=datarootdir ;; |
| 962 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 963 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 964 | datarootdir=$ac_optarg ;; |
| 965 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 966 | -disable-* | --disable-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 967 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 968 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 969 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 970 | as_fn_error $? "invalid feature name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 971 | ac_useropt_orig=$ac_useropt |
| 972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 973 | case $ac_user_opts in |
| 974 | *" |
| 975 | "enable_$ac_useropt" |
| 976 | "*) ;; |
| 977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 978 | ac_unrecognized_sep=', ';; |
| 979 | esac |
| 980 | eval enable_$ac_useropt=no ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 981 | |
| 982 | -docdir | --docdir | --docdi | --doc | --do) |
| 983 | ac_prev=docdir ;; |
| 984 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 985 | docdir=$ac_optarg ;; |
| 986 | |
| 987 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 988 | ac_prev=dvidir ;; |
| 989 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 990 | dvidir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 991 | |
| 992 | -enable-* | --enable-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 993 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 994 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 995 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 996 | as_fn_error $? "invalid feature name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 997 | ac_useropt_orig=$ac_useropt |
| 998 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 999 | case $ac_user_opts in |
| 1000 | *" |
| 1001 | "enable_$ac_useropt" |
| 1002 | "*) ;; |
| 1003 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1004 | ac_unrecognized_sep=', ';; |
| 1005 | esac |
| 1006 | eval enable_$ac_useropt=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1007 | |
| 1008 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1009 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1010 | | --exec | --exe | --ex) |
| 1011 | ac_prev=exec_prefix ;; |
| 1012 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1013 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1014 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1015 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1016 | |
| 1017 | -gas | --gas | --ga | --g) |
| 1018 | # Obsolete; use --with-gas. |
| 1019 | with_gas=yes ;; |
| 1020 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1021 | -help | --help | --hel | --he | -h) |
| 1022 | ac_init_help=long ;; |
| 1023 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1024 | ac_init_help=recursive ;; |
| 1025 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1026 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1027 | |
| 1028 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1029 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1030 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1031 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1032 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1033 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1034 | ac_prev=htmldir ;; |
| 1035 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1036 | | --ht=*) |
| 1037 | htmldir=$ac_optarg ;; |
| 1038 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1039 | -includedir | --includedir | --includedi | --included | --include \ |
| 1040 | | --includ | --inclu | --incl | --inc) |
| 1041 | ac_prev=includedir ;; |
| 1042 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1043 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1044 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1045 | |
| 1046 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1047 | ac_prev=infodir ;; |
| 1048 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1049 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1050 | |
| 1051 | -libdir | --libdir | --libdi | --libd) |
| 1052 | ac_prev=libdir ;; |
| 1053 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1054 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1055 | |
| 1056 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1057 | | --libexe | --libex | --libe) |
| 1058 | ac_prev=libexecdir ;; |
| 1059 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1060 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1061 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1062 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1063 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1064 | ac_prev=localedir ;; |
| 1065 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1066 | localedir=$ac_optarg ;; |
| 1067 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1068 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1069 | | --localstate | --localstat | --localsta | --localst | --locals) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1070 | ac_prev=localstatedir ;; |
| 1071 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1072 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1073 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1074 | |
| 1075 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1076 | ac_prev=mandir ;; |
| 1077 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1078 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1079 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1080 | -nfp | --nfp | --nf) |
| 1081 | # Obsolete; use --without-fp. |
| 1082 | with_fp=no ;; |
| 1083 | |
| 1084 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1085 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1086 | no_create=yes ;; |
| 1087 | |
| 1088 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1089 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1090 | no_recursion=yes ;; |
| 1091 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1092 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1093 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1094 | | --oldin | --oldi | --old | --ol | --o) |
| 1095 | ac_prev=oldincludedir ;; |
| 1096 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1097 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1098 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1099 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1100 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1101 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1102 | ac_prev=prefix ;; |
| 1103 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1104 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1105 | |
| 1106 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1107 | | --program-pre | --program-pr | --program-p) |
| 1108 | ac_prev=program_prefix ;; |
| 1109 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1110 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1111 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1112 | |
| 1113 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1114 | | --program-suf | --program-su | --program-s) |
| 1115 | ac_prev=program_suffix ;; |
| 1116 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1117 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1118 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1119 | |
| 1120 | -program-transform-name | --program-transform-name \ |
| 1121 | | --program-transform-nam | --program-transform-na \ |
| 1122 | | --program-transform-n | --program-transform- \ |
| 1123 | | --program-transform | --program-transfor \ |
| 1124 | | --program-transfo | --program-transf \ |
| 1125 | | --program-trans | --program-tran \ |
| 1126 | | --progr-tra | --program-tr | --program-t) |
| 1127 | ac_prev=program_transform_name ;; |
| 1128 | -program-transform-name=* | --program-transform-name=* \ |
| 1129 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1130 | | --program-transform-n=* | --program-transform-=* \ |
| 1131 | | --program-transform=* | --program-transfor=* \ |
| 1132 | | --program-transfo=* | --program-transf=* \ |
| 1133 | | --program-trans=* | --program-tran=* \ |
| 1134 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1135 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1136 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1137 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1138 | ac_prev=pdfdir ;; |
| 1139 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1140 | pdfdir=$ac_optarg ;; |
| 1141 | |
| 1142 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1143 | ac_prev=psdir ;; |
| 1144 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1145 | psdir=$ac_optarg ;; |
| 1146 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1147 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1148 | | -silent | --silent | --silen | --sile | --sil) |
| 1149 | silent=yes ;; |
| 1150 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1151 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1152 | ac_prev=sbindir ;; |
| 1153 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1154 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1155 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1156 | |
| 1157 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1158 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1159 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1160 | | --sha | --sh) |
| 1161 | ac_prev=sharedstatedir ;; |
| 1162 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1163 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1164 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1165 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1166 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1167 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1168 | -site | --site | --sit) |
| 1169 | ac_prev=site ;; |
| 1170 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1171 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1172 | |
| 1173 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1174 | ac_prev=srcdir ;; |
| 1175 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1176 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1177 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1178 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1179 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1180 | ac_prev=sysconfdir ;; |
| 1181 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1182 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1183 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1184 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1185 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1186 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1187 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1188 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1189 | |
| 1190 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1191 | verbose=yes ;; |
| 1192 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1193 | -version | --version | --versio | --versi | --vers | -V) |
| 1194 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1195 | |
| 1196 | -with-* | --with-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1197 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1198 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1199 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1200 | as_fn_error $? "invalid package name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1201 | ac_useropt_orig=$ac_useropt |
| 1202 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1203 | case $ac_user_opts in |
| 1204 | *" |
| 1205 | "with_$ac_useropt" |
| 1206 | "*) ;; |
| 1207 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1208 | ac_unrecognized_sep=', ';; |
| 1209 | esac |
| 1210 | eval with_$ac_useropt=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1211 | |
| 1212 | -without-* | --without-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1213 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1214 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1215 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1216 | as_fn_error $? "invalid package name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1217 | ac_useropt_orig=$ac_useropt |
| 1218 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1219 | case $ac_user_opts in |
| 1220 | *" |
| 1221 | "with_$ac_useropt" |
| 1222 | "*) ;; |
| 1223 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1224 | ac_unrecognized_sep=', ';; |
| 1225 | esac |
| 1226 | eval with_$ac_useropt=no ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1227 | |
| 1228 | --x) |
| 1229 | # Obsolete; use --with-x. |
| 1230 | with_x=yes ;; |
| 1231 | |
| 1232 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1233 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1234 | ac_prev=x_includes ;; |
| 1235 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1236 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1237 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1238 | |
| 1239 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1240 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1241 | ac_prev=x_libraries ;; |
| 1242 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1243 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1244 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1245 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1246 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1247 | Try \`$0 --help' for more information" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1248 | ;; |
| 1249 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1250 | *=*) |
| 1251 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1252 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1253 | case $ac_envvar in #( |
| 1254 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1255 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1256 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1257 | eval $ac_envvar=\$ac_optarg |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1258 | export $ac_envvar ;; |
| 1259 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1260 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1261 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1262 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1263 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1264 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1265 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1266 | ;; |
| 1267 | |
| 1268 | esac |
| 1269 | done |
| 1270 | |
| 1271 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1272 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1273 | as_fn_error $? "missing argument to $ac_option" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1274 | fi |
| 1275 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1276 | if test -n "$ac_unrecognized_opts"; then |
| 1277 | case $enable_option_checking in |
| 1278 | no) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1279 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1280 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1281 | esac |
| 1282 | fi |
| 1283 | |
| 1284 | # Check all directory arguments for consistency. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1285 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1286 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1287 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1288 | libdir localedir mandir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1289 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1290 | eval ac_val=\$$ac_var |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1291 | # Remove trailing slashes. |
| 1292 | case $ac_val in |
| 1293 | */ ) |
| 1294 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1295 | eval $ac_var=\$ac_val;; |
| 1296 | esac |
| 1297 | # Be sure to have absolute directory names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1298 | case $ac_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1299 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1300 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1301 | esac |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1302 | 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] | 1303 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1304 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1305 | # There might be people who depend on the old broken behavior: `$host' |
| 1306 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1307 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1308 | build=$build_alias |
| 1309 | host=$host_alias |
| 1310 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1311 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1312 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1313 | if test "x$host_alias" != x; then |
| 1314 | if test "x$build_alias" = x; then |
| 1315 | cross_compiling=maybe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1316 | elif test "x$build_alias" != "x$host_alias"; then |
| 1317 | cross_compiling=yes |
| 1318 | fi |
| 1319 | fi |
| 1320 | |
| 1321 | ac_tool_prefix= |
| 1322 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1323 | |
| 1324 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1325 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1326 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1327 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1328 | ac_ls_di=`ls -di .` && |
| 1329 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1330 | as_fn_error $? "working directory cannot be determined" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1331 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1332 | as_fn_error $? "pwd does not report name of working directory" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1333 | |
| 1334 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1335 | # Find the source files, if location was not specified. |
| 1336 | if test -z "$srcdir"; then |
| 1337 | ac_srcdir_defaulted=yes |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1338 | # Try the directory containing this script, then the parent directory. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1339 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1340 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1341 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1342 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1343 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1344 | $as_echo X"$as_myself" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1346 | s//\1/ |
| 1347 | q |
| 1348 | } |
| 1349 | /^X\(\/\/\)[^/].*/{ |
| 1350 | s//\1/ |
| 1351 | q |
| 1352 | } |
| 1353 | /^X\(\/\/\)$/{ |
| 1354 | s//\1/ |
| 1355 | q |
| 1356 | } |
| 1357 | /^X\(\/\).*/{ |
| 1358 | s//\1/ |
| 1359 | q |
| 1360 | } |
| 1361 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1362 | srcdir=$ac_confdir |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1363 | if test ! -r "$srcdir/$ac_unique_file"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1364 | srcdir=.. |
| 1365 | fi |
| 1366 | else |
| 1367 | ac_srcdir_defaulted=no |
| 1368 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1369 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1370 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1371 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1372 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1373 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1374 | ac_abs_confdir=`( |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1375 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1376 | pwd)` |
| 1377 | # When building in place, set srcdir=. |
| 1378 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1379 | srcdir=. |
| 1380 | fi |
| 1381 | # Remove unnecessary trailing slashes from srcdir. |
| 1382 | # Double slashes in file names in object file debugging info |
| 1383 | # mess up M-x gdb in Emacs. |
| 1384 | case $srcdir in |
| 1385 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1386 | esac |
| 1387 | for ac_var in $ac_precious_vars; do |
| 1388 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1389 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1390 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1391 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1392 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1393 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1394 | # |
| 1395 | # Report the --help message. |
| 1396 | # |
| 1397 | if test "$ac_init_help" = "long"; then |
| 1398 | # Omit some internal or obsolete options to make the list less imposing. |
| 1399 | # 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] | 1400 | cat <<_ACEOF |
Alexandre Julliard | d35cb81 | 2012-06-22 20:16:32 +0200 | [diff] [blame] | 1401 | \`configure' configures Wine 1.5.7 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1402 | |
| 1403 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1404 | |
| 1405 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1406 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1407 | |
| 1408 | Defaults for the options are specified in brackets. |
| 1409 | |
| 1410 | Configuration: |
| 1411 | -h, --help display this help and exit |
| 1412 | --help=short display options specific to this package |
| 1413 | --help=recursive display the short help of all the included packages |
| 1414 | -V, --version display version information and exit |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1415 | -q, --quiet, --silent do not print \`checking ...' messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1416 | --cache-file=FILE cache test results in FILE [disabled] |
| 1417 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1418 | -n, --no-create do not create output files |
| 1419 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1420 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1421 | Installation directories: |
| 1422 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1423 | [$ac_default_prefix] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1424 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1425 | [PREFIX] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1426 | |
| 1427 | By default, \`make install' will install all the files in |
| 1428 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1429 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1430 | for instance \`--prefix=\$HOME'. |
| 1431 | |
| 1432 | For better control, use the options below. |
| 1433 | |
| 1434 | Fine tuning of the installation directories: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1435 | --bindir=DIR user executables [EPREFIX/bin] |
| 1436 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1437 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1438 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1439 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1440 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1441 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1442 | --includedir=DIR C header files [PREFIX/include] |
| 1443 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1444 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1445 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1446 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1447 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1448 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1449 | --docdir=DIR documentation root [DATAROOTDIR/doc/wine] |
| 1450 | --htmldir=DIR html documentation [DOCDIR] |
| 1451 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1452 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1453 | --psdir=DIR ps documentation [DOCDIR] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1454 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1455 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1456 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1457 | |
| 1458 | X features: |
| 1459 | --x-includes=DIR X include files are in DIR |
| 1460 | --x-libraries=DIR X library files are in DIR |
| 1461 | |
| 1462 | System types: |
| 1463 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1464 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1465 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1466 | fi |
| 1467 | |
| 1468 | if test -n "$ac_init_help"; then |
| 1469 | case $ac_init_help in |
Alexandre Julliard | d35cb81 | 2012-06-22 20:16:32 +0200 | [diff] [blame] | 1470 | short | recursive ) echo "Configuration of Wine 1.5.7:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1471 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1472 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1473 | |
| 1474 | Optional Features: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1475 | --disable-option-checking ignore unrecognized --enable/--with options |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1476 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1477 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1478 | --disable-win16 do not include Win16 support |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1479 | --enable-win64 build a Win64 emulator on AMD64 (won't run Win32 |
| 1480 | binaries) |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 1481 | --disable-tests do not build the regression tests |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 1482 | --enable-maintainer-mode |
| 1483 | enable maintainer-specific build rules |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 1484 | --disable-largefile omit support for large files |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1485 | |
| 1486 | Optional Packages: |
| 1487 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1488 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1489 | --without-alsa do not use the Alsa sound support |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1490 | --without-capi do not use CAPI (ISDN support) |
| 1491 | --without-cms do not use CMS (color management support) |
| 1492 | --without-coreaudio do not use the CoreAudio sound support |
| 1493 | --without-cups do not use CUPS |
| 1494 | --without-curses do not use (n)curses |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 1495 | --without-dbus do not use DBus (dynamic device support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1496 | --without-fontconfig do not use fontconfig |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 1497 | --without-freetype do not use the FreeType library |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 1498 | --without-gettext do not use gettext |
Alexandre Julliard | 9159cfe | 2011-10-22 20:46:36 +0200 | [diff] [blame] | 1499 | --with-gettextpo use the GetTextPO library to rebuild po files |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1500 | --without-gphoto do not use gphoto (Digital Camera support) |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 1501 | --without-glu do not use the GLU library |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 1502 | --without-gnutls do not use GnuTLS (schannel support) |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 1503 | --without-gsm do not use libgsm (GSM 06.10 codec support) |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 1504 | --without-gstreamer do not use GStreamer (codecs support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1505 | --without-hal do not use HAL (dynamic device support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1506 | --without-jpeg do not use JPEG |
| 1507 | --without-ldap do not use LDAP |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 1508 | --without-mpg123 do not use the mpg123 library |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 1509 | --without-openal do not use OpenAL |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 1510 | --without-opencl do not use OpenCL |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1511 | --without-opengl do not use OpenGL |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1512 | --without-openssl do not use OpenSSL |
| 1513 | --without-oss do not use the OSS sound support |
| 1514 | --without-png do not use PNG |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 1515 | --without-pthread do not use the pthread library |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1516 | --without-sane do not use SANE (scanner support) |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 1517 | --without-tiff do not use TIFF |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 1518 | --without-v4l do not use v4l1 (v4l support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1519 | --without-xcomposite do not use the Xcomposite extension |
| 1520 | --without-xcursor do not use the Xcursor extension |
| 1521 | --without-xinerama do not use Xinerama (multi-monitor support) |
| 1522 | --without-xinput do not use the Xinput extension |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 1523 | --without-xinput2 do not use the Xinput 2 extension |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1524 | --without-xml do not use XML |
| 1525 | --without-xrandr do not use Xrandr (resolution changes) |
| 1526 | --without-xrender do not use the Xrender extension |
| 1527 | --without-xshape do not use the Xshape extension |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1528 | --without-xslt do not use XSLT |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 1529 | --without-xxf86vm do not use XFree video mode extension |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 1530 | --without-zlib do not use Zlib (data compression) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1531 | --with-wine-tools=DIR use Wine tools from directory DIR |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 1532 | --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] | 1533 | --with-x use the X Window System |
| 1534 | |
| 1535 | Some influential environment variables: |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1536 | CC C compiler command |
| 1537 | CFLAGS C compiler flags |
| 1538 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1539 | nonstandard directory <lib dir> |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 1540 | LIBS libraries to pass to the linker, e.g. -l<library> |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1541 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1542 | you have headers in a nonstandard directory <include dir> |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 1543 | CXX C++ compiler command |
| 1544 | CXXFLAGS C++ compiler flags |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1545 | CPP C preprocessor |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 1546 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1547 | |
| 1548 | Use these variables to override the choices made by `configure' or to help |
| 1549 | it to find libraries and programs with nonstandard names/locations. |
| 1550 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1551 | Report bugs to <wine-devel@winehq.org>. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1552 | Wine home page: <http://www.winehq.org>. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1553 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1554 | ac_status=$? |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1555 | fi |
| 1556 | |
| 1557 | if test "$ac_init_help" = "recursive"; then |
| 1558 | # If there are subdirs, report their specific --help. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1559 | 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] | 1560 | test -d "$ac_dir" || |
| 1561 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1562 | continue |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1563 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1564 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1565 | case "$ac_dir" in |
| 1566 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1567 | *) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1568 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1569 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1570 | 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] | 1571 | case $ac_top_builddir_sub in |
| 1572 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1573 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1574 | esac ;; |
| 1575 | esac |
| 1576 | ac_abs_top_builddir=$ac_pwd |
| 1577 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1578 | # for backward compatibility: |
| 1579 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1580 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1581 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1582 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1583 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1584 | ac_top_srcdir=$ac_top_builddir_sub |
| 1585 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1586 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1587 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1588 | ac_top_srcdir=$srcdir |
| 1589 | ac_abs_top_srcdir=$srcdir ;; |
| 1590 | *) # Relative name. |
| 1591 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1592 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1593 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1594 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1595 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1596 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1597 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1598 | # Check for guested configure. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1599 | if test -f "$ac_srcdir/configure.gnu"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1600 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1601 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1602 | elif test -f "$ac_srcdir/configure"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1603 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1604 | $SHELL "$ac_srcdir/configure" --help=recursive |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1605 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1606 | $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] | 1607 | fi || ac_status=$? |
| 1608 | cd "$ac_pwd" || { ac_status=$?; break; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1609 | done |
| 1610 | fi |
| 1611 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1612 | test -n "$ac_init_help" && exit $ac_status |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1613 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1614 | cat <<\_ACEOF |
Alexandre Julliard | d35cb81 | 2012-06-22 20:16:32 +0200 | [diff] [blame] | 1615 | Wine configure 1.5.7 |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 1616 | generated by GNU Autoconf 2.69 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1617 | |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 1618 | Copyright (C) 2012 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1619 | This configure script is free software; the Free Software Foundation |
| 1620 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1621 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1622 | exit |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1623 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1624 | |
| 1625 | ## ------------------------ ## |
| 1626 | ## Autoconf initialization. ## |
| 1627 | ## ------------------------ ## |
| 1628 | |
| 1629 | # ac_fn_c_try_compile LINENO |
| 1630 | # -------------------------- |
| 1631 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1632 | ac_fn_c_try_compile () |
| 1633 | { |
| 1634 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1635 | rm -f conftest.$ac_objext |
| 1636 | if { { ac_try="$ac_compile" |
| 1637 | case "(($ac_try" in |
| 1638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1639 | *) ac_try_echo=$ac_try;; |
| 1640 | esac |
| 1641 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1642 | $as_echo "$ac_try_echo"; } >&5 |
| 1643 | (eval "$ac_compile") 2>conftest.err |
| 1644 | ac_status=$? |
| 1645 | if test -s conftest.err; then |
| 1646 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1647 | cat conftest.er1 >&5 |
| 1648 | mv -f conftest.er1 conftest.err |
| 1649 | fi |
| 1650 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1651 | test $ac_status = 0; } && { |
| 1652 | test -z "$ac_c_werror_flag" || |
| 1653 | test ! -s conftest.err |
| 1654 | } && test -s conftest.$ac_objext; then : |
| 1655 | ac_retval=0 |
| 1656 | else |
| 1657 | $as_echo "$as_me: failed program was:" >&5 |
| 1658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1659 | |
| 1660 | ac_retval=1 |
| 1661 | fi |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1662 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1663 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1664 | |
| 1665 | } # ac_fn_c_try_compile |
| 1666 | |
| 1667 | # ac_fn_cxx_try_compile LINENO |
| 1668 | # ---------------------------- |
| 1669 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1670 | ac_fn_cxx_try_compile () |
| 1671 | { |
| 1672 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1673 | rm -f conftest.$ac_objext |
| 1674 | if { { ac_try="$ac_compile" |
| 1675 | case "(($ac_try" in |
| 1676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1677 | *) ac_try_echo=$ac_try;; |
| 1678 | esac |
| 1679 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1680 | $as_echo "$ac_try_echo"; } >&5 |
| 1681 | (eval "$ac_compile") 2>conftest.err |
| 1682 | ac_status=$? |
| 1683 | if test -s conftest.err; then |
| 1684 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1685 | cat conftest.er1 >&5 |
| 1686 | mv -f conftest.er1 conftest.err |
| 1687 | fi |
| 1688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1689 | test $ac_status = 0; } && { |
| 1690 | test -z "$ac_cxx_werror_flag" || |
| 1691 | test ! -s conftest.err |
| 1692 | } && test -s conftest.$ac_objext; then : |
| 1693 | ac_retval=0 |
| 1694 | else |
| 1695 | $as_echo "$as_me: failed program was:" >&5 |
| 1696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1697 | |
| 1698 | ac_retval=1 |
| 1699 | fi |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1700 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1701 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1702 | |
| 1703 | } # ac_fn_cxx_try_compile |
| 1704 | |
| 1705 | # ac_fn_c_try_link LINENO |
| 1706 | # ----------------------- |
| 1707 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1708 | ac_fn_c_try_link () |
| 1709 | { |
| 1710 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1711 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1712 | if { { ac_try="$ac_link" |
| 1713 | case "(($ac_try" in |
| 1714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1715 | *) ac_try_echo=$ac_try;; |
| 1716 | esac |
| 1717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1718 | $as_echo "$ac_try_echo"; } >&5 |
| 1719 | (eval "$ac_link") 2>conftest.err |
| 1720 | ac_status=$? |
| 1721 | if test -s conftest.err; then |
| 1722 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1723 | cat conftest.er1 >&5 |
| 1724 | mv -f conftest.er1 conftest.err |
| 1725 | fi |
| 1726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1727 | test $ac_status = 0; } && { |
| 1728 | test -z "$ac_c_werror_flag" || |
| 1729 | test ! -s conftest.err |
| 1730 | } && test -s conftest$ac_exeext && { |
| 1731 | test "$cross_compiling" = yes || |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 1732 | test -x conftest$ac_exeext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1733 | }; then : |
| 1734 | ac_retval=0 |
| 1735 | else |
| 1736 | $as_echo "$as_me: failed program was:" >&5 |
| 1737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1738 | |
| 1739 | ac_retval=1 |
| 1740 | fi |
| 1741 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1742 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1743 | # interfere with the next link command; also delete a directory that is |
| 1744 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1745 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1746 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1747 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1748 | |
| 1749 | } # ac_fn_c_try_link |
| 1750 | |
| 1751 | # ac_fn_c_try_cpp LINENO |
| 1752 | # ---------------------- |
| 1753 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1754 | ac_fn_c_try_cpp () |
| 1755 | { |
| 1756 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1757 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1758 | case "(($ac_try" in |
| 1759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1760 | *) ac_try_echo=$ac_try;; |
| 1761 | esac |
| 1762 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1763 | $as_echo "$ac_try_echo"; } >&5 |
| 1764 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1765 | ac_status=$? |
| 1766 | if test -s conftest.err; then |
| 1767 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1768 | cat conftest.er1 >&5 |
| 1769 | mv -f conftest.er1 conftest.err |
| 1770 | fi |
| 1771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1772 | test $ac_status = 0; } > conftest.i && { |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1773 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1774 | test ! -s conftest.err |
| 1775 | }; then : |
| 1776 | ac_retval=0 |
| 1777 | else |
| 1778 | $as_echo "$as_me: failed program was:" >&5 |
| 1779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1780 | |
| 1781 | ac_retval=1 |
| 1782 | fi |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1784 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1785 | |
| 1786 | } # ac_fn_c_try_cpp |
| 1787 | |
| 1788 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1789 | # ------------------------------------------------------- |
| 1790 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1791 | # the include files in INCLUDES and setting the cache variable VAR |
| 1792 | # accordingly. |
| 1793 | ac_fn_c_check_header_mongrel () |
| 1794 | { |
| 1795 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1796 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1798 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1799 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1800 | $as_echo_n "(cached) " >&6 |
| 1801 | fi |
| 1802 | eval ac_res=\$$3 |
| 1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1804 | $as_echo "$ac_res" >&6; } |
| 1805 | else |
| 1806 | # Is the header compilable? |
| 1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1808 | $as_echo_n "checking $2 usability... " >&6; } |
| 1809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1810 | /* end confdefs.h. */ |
| 1811 | $4 |
| 1812 | #include <$2> |
| 1813 | _ACEOF |
| 1814 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1815 | ac_header_compiler=yes |
| 1816 | else |
| 1817 | ac_header_compiler=no |
| 1818 | fi |
| 1819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1821 | $as_echo "$ac_header_compiler" >&6; } |
| 1822 | |
| 1823 | # Is the header present? |
| 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1825 | $as_echo_n "checking $2 presence... " >&6; } |
| 1826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1827 | /* end confdefs.h. */ |
| 1828 | #include <$2> |
| 1829 | _ACEOF |
| 1830 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1831 | ac_header_preproc=yes |
| 1832 | else |
| 1833 | ac_header_preproc=no |
| 1834 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1835 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1837 | $as_echo "$ac_header_preproc" >&6; } |
| 1838 | |
| 1839 | # So? What about this header? |
| 1840 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1841 | yes:no: ) |
| 1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1843 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1845 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1846 | ;; |
| 1847 | no:yes:* ) |
| 1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1849 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1851 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1853 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1855 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1857 | $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] | 1858 | ( $as_echo "## ------------------------------------ ## |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1859 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1860 | ## ------------------------------------ ##" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1861 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1862 | ;; |
| 1863 | esac |
| 1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1865 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1866 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1867 | $as_echo_n "(cached) " >&6 |
| 1868 | else |
| 1869 | eval "$3=\$ac_header_compiler" |
| 1870 | fi |
| 1871 | eval ac_res=\$$3 |
| 1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1873 | $as_echo "$ac_res" >&6; } |
| 1874 | fi |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1875 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1876 | |
| 1877 | } # ac_fn_c_check_header_mongrel |
| 1878 | |
| 1879 | # ac_fn_c_try_run LINENO |
| 1880 | # ---------------------- |
| 1881 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1882 | # that executables *can* be run. |
| 1883 | ac_fn_c_try_run () |
| 1884 | { |
| 1885 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1886 | if { { ac_try="$ac_link" |
| 1887 | case "(($ac_try" in |
| 1888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1889 | *) ac_try_echo=$ac_try;; |
| 1890 | esac |
| 1891 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1892 | $as_echo "$ac_try_echo"; } >&5 |
| 1893 | (eval "$ac_link") 2>&5 |
| 1894 | ac_status=$? |
| 1895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1896 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1897 | { { case "(($ac_try" in |
| 1898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1899 | *) ac_try_echo=$ac_try;; |
| 1900 | esac |
| 1901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1902 | $as_echo "$ac_try_echo"; } >&5 |
| 1903 | (eval "$ac_try") 2>&5 |
| 1904 | ac_status=$? |
| 1905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1906 | test $ac_status = 0; }; }; then : |
| 1907 | ac_retval=0 |
| 1908 | else |
| 1909 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1910 | $as_echo "$as_me: failed program was:" >&5 |
| 1911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1912 | |
| 1913 | ac_retval=$ac_status |
| 1914 | fi |
| 1915 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1916 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1917 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1918 | |
| 1919 | } # ac_fn_c_try_run |
| 1920 | |
| 1921 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1922 | # ------------------------------------------------------- |
| 1923 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1924 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1925 | ac_fn_c_check_header_compile () |
| 1926 | { |
| 1927 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1929 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1930 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1931 | $as_echo_n "(cached) " >&6 |
| 1932 | else |
| 1933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1934 | /* end confdefs.h. */ |
| 1935 | $4 |
| 1936 | #include <$2> |
| 1937 | _ACEOF |
| 1938 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1939 | eval "$3=yes" |
| 1940 | else |
| 1941 | eval "$3=no" |
| 1942 | fi |
| 1943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1944 | fi |
| 1945 | eval ac_res=\$$3 |
| 1946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1947 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1948 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1949 | |
| 1950 | } # ac_fn_c_check_header_compile |
| 1951 | |
| 1952 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1953 | # ---------------------------------- |
| 1954 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1955 | ac_fn_c_check_func () |
| 1956 | { |
| 1957 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1959 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1960 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1961 | $as_echo_n "(cached) " >&6 |
| 1962 | else |
| 1963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1964 | /* end confdefs.h. */ |
| 1965 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1966 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1967 | #define $2 innocuous_$2 |
| 1968 | |
| 1969 | /* System header to define __stub macros and hopefully few prototypes, |
| 1970 | which can conflict with char $2 (); below. |
| 1971 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1972 | <limits.h> exists even on freestanding compilers. */ |
| 1973 | |
| 1974 | #ifdef __STDC__ |
| 1975 | # include <limits.h> |
| 1976 | #else |
| 1977 | # include <assert.h> |
| 1978 | #endif |
| 1979 | |
| 1980 | #undef $2 |
| 1981 | |
| 1982 | /* Override any GCC internal prototype to avoid an error. |
| 1983 | Use char because int might match the return type of a GCC |
| 1984 | builtin and then its argument prototype would still apply. */ |
| 1985 | #ifdef __cplusplus |
| 1986 | extern "C" |
| 1987 | #endif |
| 1988 | char $2 (); |
| 1989 | /* The GNU C library defines this for functions which it implements |
| 1990 | to always fail with ENOSYS. Some functions are actually named |
| 1991 | something starting with __ and the normal name is an alias. */ |
| 1992 | #if defined __stub_$2 || defined __stub___$2 |
| 1993 | choke me |
| 1994 | #endif |
| 1995 | |
| 1996 | int |
| 1997 | main () |
| 1998 | { |
| 1999 | return $2 (); |
| 2000 | ; |
| 2001 | return 0; |
| 2002 | } |
| 2003 | _ACEOF |
| 2004 | if ac_fn_c_try_link "$LINENO"; then : |
| 2005 | eval "$3=yes" |
| 2006 | else |
| 2007 | eval "$3=no" |
| 2008 | fi |
| 2009 | rm -f core conftest.err conftest.$ac_objext \ |
| 2010 | conftest$ac_exeext conftest.$ac_ext |
| 2011 | fi |
| 2012 | eval ac_res=\$$3 |
| 2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2014 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2015 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2016 | |
| 2017 | } # ac_fn_c_check_func |
| 2018 | |
| 2019 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2020 | # ---------------------------------------------------- |
| 2021 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2022 | # INCLUDES, setting cache variable VAR accordingly. |
| 2023 | ac_fn_c_check_member () |
| 2024 | { |
| 2025 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2027 | $as_echo_n "checking for $2.$3... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2028 | if eval \${$4+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2029 | $as_echo_n "(cached) " >&6 |
| 2030 | else |
| 2031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2032 | /* end confdefs.h. */ |
| 2033 | $5 |
| 2034 | int |
| 2035 | main () |
| 2036 | { |
| 2037 | static $2 ac_aggr; |
| 2038 | if (ac_aggr.$3) |
| 2039 | return 0; |
| 2040 | ; |
| 2041 | return 0; |
| 2042 | } |
| 2043 | _ACEOF |
| 2044 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2045 | eval "$4=yes" |
| 2046 | else |
| 2047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2048 | /* end confdefs.h. */ |
| 2049 | $5 |
| 2050 | int |
| 2051 | main () |
| 2052 | { |
| 2053 | static $2 ac_aggr; |
| 2054 | if (sizeof ac_aggr.$3) |
| 2055 | return 0; |
| 2056 | ; |
| 2057 | return 0; |
| 2058 | } |
| 2059 | _ACEOF |
| 2060 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2061 | eval "$4=yes" |
| 2062 | else |
| 2063 | eval "$4=no" |
| 2064 | fi |
| 2065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2066 | fi |
| 2067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2068 | fi |
| 2069 | eval ac_res=\$$4 |
| 2070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2071 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2072 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2073 | |
| 2074 | } # ac_fn_c_check_member |
| 2075 | |
| 2076 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2077 | # ------------------------------------------- |
| 2078 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2079 | # variable VAR accordingly. |
| 2080 | ac_fn_c_check_type () |
| 2081 | { |
| 2082 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2084 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2085 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2086 | $as_echo_n "(cached) " >&6 |
| 2087 | else |
| 2088 | eval "$3=no" |
| 2089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2090 | /* end confdefs.h. */ |
| 2091 | $4 |
| 2092 | int |
| 2093 | main () |
| 2094 | { |
| 2095 | if (sizeof ($2)) |
| 2096 | return 0; |
| 2097 | ; |
| 2098 | return 0; |
| 2099 | } |
| 2100 | _ACEOF |
| 2101 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2103 | /* end confdefs.h. */ |
| 2104 | $4 |
| 2105 | int |
| 2106 | main () |
| 2107 | { |
| 2108 | if (sizeof (($2))) |
| 2109 | return 0; |
| 2110 | ; |
| 2111 | return 0; |
| 2112 | } |
| 2113 | _ACEOF |
| 2114 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2115 | |
| 2116 | else |
| 2117 | eval "$3=yes" |
| 2118 | fi |
| 2119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2120 | fi |
| 2121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2122 | fi |
| 2123 | eval ac_res=\$$3 |
| 2124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2125 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2126 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2127 | |
| 2128 | } # ac_fn_c_check_type |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2129 | cat >config.log <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2130 | This file contains any messages produced by compilers while |
| 2131 | running configure, to aid debugging if configure makes a mistake. |
| 2132 | |
Alexandre Julliard | d35cb81 | 2012-06-22 20:16:32 +0200 | [diff] [blame] | 2133 | It was created by Wine $as_me 1.5.7, which was |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 2134 | generated by GNU Autoconf 2.69. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2135 | |
| 2136 | $ $0 $@ |
| 2137 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2138 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2139 | exec 5>>config.log |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2140 | { |
| 2141 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2142 | ## --------- ## |
| 2143 | ## Platform. ## |
| 2144 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2145 | |
| 2146 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2147 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2148 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2149 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2150 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2151 | |
| 2152 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2153 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2154 | |
| 2155 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2156 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2157 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2158 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2159 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2160 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2161 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2162 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2163 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2164 | |
| 2165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2166 | for as_dir in $PATH |
| 2167 | do |
| 2168 | IFS=$as_save_IFS |
| 2169 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2170 | $as_echo "PATH: $as_dir" |
| 2171 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2172 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2173 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2174 | } >&5 |
| 2175 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2176 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2177 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2178 | |
| 2179 | ## ----------- ## |
| 2180 | ## Core tests. ## |
| 2181 | ## ----------- ## |
| 2182 | |
| 2183 | _ACEOF |
| 2184 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2185 | |
| 2186 | # Keep a trace of the command line. |
| 2187 | # 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] | 2188 | # 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] | 2189 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2190 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2191 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2192 | ac_configure_args0= |
| 2193 | ac_configure_args1= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2194 | ac_must_keep_next=false |
| 2195 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2196 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2197 | for ac_arg |
| 2198 | do |
| 2199 | case $ac_arg in |
| 2200 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2201 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2202 | | -silent | --silent | --silen | --sile | --sil) |
| 2203 | continue ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2204 | *\'*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2205 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2206 | esac |
| 2207 | case $ac_pass in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2208 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2209 | 2) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2210 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2211 | if test $ac_must_keep_next = true; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2212 | ac_must_keep_next=false # Got value, back to normal. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2213 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2214 | case $ac_arg in |
| 2215 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2216 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2217 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2218 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2219 | case "$ac_configure_args0 " in |
| 2220 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2221 | esac |
| 2222 | ;; |
| 2223 | -* ) ac_must_keep_next=true ;; |
| 2224 | esac |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2225 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2226 | as_fn_append ac_configure_args " '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2227 | ;; |
| 2228 | esac |
| 2229 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2230 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2231 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2232 | { ac_configure_args1=; unset ac_configure_args1;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2233 | |
| 2234 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2235 | # config.log. We remove comments because anyway the quotes in there |
| 2236 | # would cause problems or look ugly. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2237 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2238 | # 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] | 2239 | trap 'exit_status=$? |
| 2240 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2241 | { |
| 2242 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2243 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2244 | $as_echo "## ---------------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2245 | ## Cache variables. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2246 | ## ---------------- ##" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2247 | echo |
| 2248 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2249 | ( |
| 2250 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2251 | eval ac_val=\$$ac_var |
| 2252 | case $ac_val in #( |
| 2253 | *${as_nl}*) |
| 2254 | case $ac_var in #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2255 | *_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] | 2256 | $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] | 2257 | esac |
| 2258 | case $ac_var in #( |
| 2259 | _ | IFS | as_nl) ;; #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2260 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2261 | *) { eval $ac_var=; unset $ac_var;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2262 | esac ;; |
| 2263 | esac |
| 2264 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2265 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2266 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2267 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2268 | sed -n \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2269 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2270 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2271 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2272 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2273 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2274 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2275 | esac | |
| 2276 | sort |
| 2277 | ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2278 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2279 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2280 | $as_echo "## ----------------- ## |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2281 | ## Output variables. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2282 | ## ----------------- ##" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2283 | echo |
| 2284 | for ac_var in $ac_subst_vars |
| 2285 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2286 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2287 | case $ac_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2288 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2289 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2290 | $as_echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2291 | done | sort |
| 2292 | echo |
| 2293 | |
| 2294 | if test -n "$ac_subst_files"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2295 | $as_echo "## ------------------- ## |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2296 | ## File substitutions. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2297 | ## ------------------- ##" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2298 | echo |
| 2299 | for ac_var in $ac_subst_files |
| 2300 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2301 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2302 | case $ac_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2303 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2304 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2305 | $as_echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2306 | done | sort |
| 2307 | echo |
| 2308 | fi |
| 2309 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2310 | if test -s confdefs.h; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2311 | $as_echo "## ----------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2312 | ## confdefs.h. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2313 | ## ----------- ##" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2314 | echo |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2315 | cat confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2316 | echo |
| 2317 | fi |
| 2318 | test "$ac_signal" != 0 && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2319 | $as_echo "$as_me: caught signal $ac_signal" |
| 2320 | $as_echo "$as_me: exit $exit_status" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2321 | } >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2322 | rm -f core *.core core.conftest.* && |
| 2323 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2324 | exit $exit_status |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2325 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2326 | for ac_signal in 1 2 13 15; do |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2327 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2328 | done |
| 2329 | ac_signal=0 |
| 2330 | |
| 2331 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2332 | rm -f -r conftest* confdefs.h |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2333 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2334 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2335 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2336 | # Predefined preprocessor variables. |
| 2337 | |
| 2338 | cat >>confdefs.h <<_ACEOF |
| 2339 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2340 | _ACEOF |
| 2341 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2342 | cat >>confdefs.h <<_ACEOF |
| 2343 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2344 | _ACEOF |
| 2345 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2346 | cat >>confdefs.h <<_ACEOF |
| 2347 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2348 | _ACEOF |
| 2349 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2350 | cat >>confdefs.h <<_ACEOF |
| 2351 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2352 | _ACEOF |
| 2353 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2354 | cat >>confdefs.h <<_ACEOF |
| 2355 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2356 | _ACEOF |
| 2357 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2358 | cat >>confdefs.h <<_ACEOF |
| 2359 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2360 | _ACEOF |
| 2361 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2362 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2363 | # 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] | 2364 | # Prefer an explicitly selected file to automatically selected ones. |
| 2365 | ac_site_file1=NONE |
| 2366 | ac_site_file2=NONE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2367 | if test -n "$CONFIG_SITE"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2368 | # We do not want a PATH search for config.site. |
| 2369 | case $CONFIG_SITE in #(( |
| 2370 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2371 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2372 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2373 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2374 | elif test "x$prefix" != xNONE; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2375 | ac_site_file1=$prefix/share/config.site |
| 2376 | ac_site_file2=$prefix/etc/config.site |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2377 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2378 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2379 | ac_site_file2=$ac_default_prefix/etc/config.site |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2380 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2381 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2382 | do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2383 | test "x$ac_site_file" = xNONE && continue |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 2384 | 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] | 2385 | { $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] | 2386 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2387 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2388 | . "$ac_site_file" \ |
| 2389 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2390 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2391 | as_fn_error $? "failed to load site script $ac_site_file |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2392 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2393 | fi |
| 2394 | done |
| 2395 | |
| 2396 | if test -r "$cache_file"; then |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 2397 | # Some versions of bash will fail to source /dev/null (special files |
| 2398 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2399 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2401 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2402 | case $cache_file in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2403 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2404 | *) . "./$cache_file";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2405 | esac |
| 2406 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2407 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2409 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2410 | >$cache_file |
| 2411 | fi |
| 2412 | |
| 2413 | # Check that the precious variables saved in the cache have kept the same |
| 2414 | # value. |
| 2415 | ac_cache_corrupted=false |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2416 | for ac_var in $ac_precious_vars; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2417 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2418 | eval ac_new_set=\$ac_env_${ac_var}_set |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2419 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2420 | eval ac_new_val=\$ac_env_${ac_var}_value |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2421 | case $ac_old_set,$ac_new_set in |
| 2422 | set,) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2423 | { $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] | 2424 | $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] | 2425 | ac_cache_corrupted=: ;; |
| 2426 | ,set) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2427 | { $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] | 2428 | $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] | 2429 | ac_cache_corrupted=: ;; |
| 2430 | ,);; |
| 2431 | *) |
| 2432 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2433 | # differences in whitespace do not lead to failure. |
| 2434 | ac_old_val_w=`echo x $ac_old_val` |
| 2435 | ac_new_val_w=`echo x $ac_new_val` |
| 2436 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2437 | { $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] | 2438 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2439 | ac_cache_corrupted=: |
| 2440 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2441 | { $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] | 2442 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2443 | eval $ac_var=\$ac_old_val |
| 2444 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2445 | { $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] | 2446 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2447 | { $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] | 2448 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2449 | fi;; |
| 2450 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2451 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2452 | if test "$ac_new_set" = set; then |
| 2453 | case $ac_new_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2454 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2455 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2456 | esac |
| 2457 | case " $ac_configure_args " in |
| 2458 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2459 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2460 | esac |
| 2461 | fi |
| 2462 | done |
| 2463 | if $ac_cache_corrupted; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2465 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2466 | { $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] | 2467 | $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] | 2468 | 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] | 2469 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2470 | ## -------------------- ## |
| 2471 | ## Main body of script. ## |
| 2472 | ## -------------------- ## |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2473 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2474 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2475 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2479 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2480 | |
| 2481 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2482 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 2483 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2484 | ac_aux_dir= |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2485 | for ac_dir in tools "$srcdir"/tools; do |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2486 | if test -f "$ac_dir/install-sh"; then |
| 2487 | ac_aux_dir=$ac_dir |
| 2488 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2489 | break |
| 2490 | elif test -f "$ac_dir/install.sh"; then |
| 2491 | ac_aux_dir=$ac_dir |
| 2492 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2493 | break |
| 2494 | elif test -f "$ac_dir/shtool"; then |
| 2495 | ac_aux_dir=$ac_dir |
| 2496 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2497 | break |
| 2498 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2499 | done |
| 2500 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2501 | 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] | 2502 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2503 | |
| 2504 | # These three variables are undocumented and unsupported, |
| 2505 | # and are intended to be withdrawn in a future Autoconf release. |
| 2506 | # They can cause serious problems if a builder's source tree is in a directory |
| 2507 | # whose full name contains unusual characters. |
| 2508 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2509 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2510 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2511 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 2512 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2513 | |
| 2514 | |
Alexandre Julliard | d59227e | 2010-02-20 12:36:04 +0100 | [diff] [blame] | 2515 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2516 | # Check whether --enable-win16 was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2517 | if test "${enable_win16+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2518 | enableval=$enable_win16; |
| 2519 | fi |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 2520 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2521 | # Check whether --enable-win64 was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2522 | if test "${enable_win64+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2523 | enableval=$enable_win64; |
| 2524 | fi |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 2525 | |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 2526 | # Check whether --enable-tests was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2527 | if test "${enable_tests+set}" = set; then : |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 2528 | enableval=$enable_tests; |
| 2529 | fi |
| 2530 | |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2531 | # Check whether --enable-maintainer-mode was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2532 | if test "${enable_maintainer_mode+set}" = set; then : |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2533 | enableval=$enable_maintainer_mode; |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2534 | fi |
| 2535 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 2536 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2537 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2538 | # Check whether --with-alsa was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2539 | if test "${with_alsa+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2540 | withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi |
| 2541 | fi |
| 2542 | |
| 2543 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2544 | # Check whether --with-capi was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2545 | if test "${with_capi+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2546 | withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi |
| 2547 | fi |
| 2548 | |
| 2549 | |
| 2550 | # Check whether --with-cms was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2551 | if test "${with_cms+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2552 | withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi |
| 2553 | fi |
| 2554 | |
| 2555 | |
| 2556 | # Check whether --with-coreaudio was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2557 | if test "${with_coreaudio+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2558 | withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi |
| 2559 | fi |
| 2560 | |
| 2561 | |
| 2562 | # Check whether --with-cups was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2563 | if test "${with_cups+set}" = set; then : |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 2564 | withval=$with_cups; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2565 | fi |
| 2566 | |
| 2567 | |
| 2568 | # Check whether --with-curses was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2569 | if test "${with_curses+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2570 | withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi |
| 2571 | fi |
| 2572 | |
| 2573 | |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 2574 | # Check whether --with-dbus was given. |
| 2575 | if test "${with_dbus+set}" = set; then : |
| 2576 | withval=$with_dbus; |
| 2577 | fi |
| 2578 | |
| 2579 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2580 | # Check whether --with-fontconfig was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2581 | if test "${with_fontconfig+set}" = set; then : |
Ken Thomases | 9cb7a97 | 2012-04-04 17:41:10 -0500 | [diff] [blame] | 2582 | withval=$with_fontconfig; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2583 | fi |
| 2584 | |
| 2585 | |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 2586 | # Check whether --with-freetype was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2587 | if test "${with_freetype+set}" = set; then : |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 2588 | withval=$with_freetype; |
| 2589 | fi |
| 2590 | |
| 2591 | |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 2592 | # Check whether --with-gettext was given. |
| 2593 | if test "${with_gettext+set}" = set; then : |
| 2594 | withval=$with_gettext; |
| 2595 | fi |
| 2596 | |
| 2597 | |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 2598 | # Check whether --with-gettextpo was given. |
| 2599 | if test "${with_gettextpo+set}" = set; then : |
| 2600 | withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi |
| 2601 | fi |
| 2602 | |
| 2603 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2604 | # Check whether --with-gphoto was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2605 | if test "${with_gphoto+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2606 | withval=$with_gphoto; |
| 2607 | fi |
| 2608 | |
| 2609 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 2610 | # Check whether --with-glu was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2611 | if test "${with_glu+set}" = set; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 2612 | withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi |
| 2613 | fi |
| 2614 | |
| 2615 | |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 2616 | # Check whether --with-gnutls was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2617 | if test "${with_gnutls+set}" = set; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 2618 | withval=$with_gnutls; |
| 2619 | fi |
| 2620 | |
| 2621 | |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 2622 | # Check whether --with-gsm was given. |
| 2623 | if test "${with_gsm+set}" = set; then : |
| 2624 | 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] | 2625 | fi |
| 2626 | |
| 2627 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 2628 | # Check whether --with-gstreamer was given. |
| 2629 | if test "${with_gstreamer+set}" = set; then : |
| 2630 | withval=$with_gstreamer; |
| 2631 | fi |
| 2632 | |
| 2633 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2634 | # Check whether --with-hal was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2635 | if test "${with_hal+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2636 | withval=$with_hal; |
| 2637 | fi |
| 2638 | |
| 2639 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2640 | # Check whether --with-jpeg was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2641 | if test "${with_jpeg+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2642 | withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi |
| 2643 | fi |
| 2644 | |
| 2645 | |
| 2646 | # Check whether --with-ldap was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2647 | if test "${with_ldap+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2648 | withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi |
| 2649 | fi |
| 2650 | |
| 2651 | |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 2652 | # Check whether --with-mpg123 was given. |
| 2653 | if test "${with_mpg123+set}" = set; then : |
| 2654 | withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi |
| 2655 | fi |
| 2656 | |
| 2657 | |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 2658 | # Check whether --with-openal was given. |
| 2659 | if test "${with_openal+set}" = set; then : |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 2660 | 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] | 2661 | fi |
| 2662 | |
| 2663 | |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 2664 | # Check whether --with-opencl was given. |
| 2665 | if test "${with_opencl+set}" = set; then : |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 2666 | 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] | 2667 | fi |
| 2668 | |
| 2669 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2670 | # Check whether --with-opengl was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2671 | if test "${with_opengl+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2672 | withval=$with_opengl; |
| 2673 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2674 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 2675 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2676 | # Check whether --with-openssl was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2677 | if test "${with_openssl+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2678 | withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi |
| 2679 | fi |
| 2680 | |
| 2681 | |
| 2682 | # Check whether --with-oss was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2683 | if test "${with_oss+set}" = set; then : |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 2684 | withval=$with_oss; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2685 | fi |
| 2686 | |
| 2687 | |
| 2688 | # Check whether --with-png was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2689 | if test "${with_png+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2690 | withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi |
| 2691 | fi |
| 2692 | |
| 2693 | |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 2694 | # Check whether --with-pthread was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2695 | if test "${with_pthread+set}" = set; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 2696 | withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi |
| 2697 | fi |
| 2698 | |
| 2699 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2700 | # Check whether --with-sane was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2701 | if test "${with_sane+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2702 | withval=$with_sane; |
| 2703 | fi |
| 2704 | |
| 2705 | |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 2706 | # Check whether --with-tiff was given. |
| 2707 | if test "${with_tiff+set}" = set; then : |
| 2708 | withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi |
| 2709 | fi |
| 2710 | |
| 2711 | |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 2712 | # Check whether --with-v4l was given. |
| 2713 | if test "${with_v4l+set}" = set; then : |
| 2714 | withval=$with_v4l; |
| 2715 | fi |
| 2716 | |
| 2717 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2718 | # Check whether --with-xcomposite was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2719 | if test "${with_xcomposite+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2720 | withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi |
| 2721 | fi |
| 2722 | |
| 2723 | |
| 2724 | # Check whether --with-xcursor was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2725 | if test "${with_xcursor+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2726 | withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi |
| 2727 | fi |
| 2728 | |
| 2729 | |
| 2730 | # Check whether --with-xinerama was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2731 | if test "${with_xinerama+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2732 | withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi |
| 2733 | fi |
| 2734 | |
| 2735 | |
| 2736 | # Check whether --with-xinput was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2737 | if test "${with_xinput+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2738 | withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi |
| 2739 | fi |
| 2740 | |
| 2741 | |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 2742 | # Check whether --with-xinput2 was given. |
| 2743 | if test "${with_xinput2+set}" = set; then : |
| 2744 | withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi |
| 2745 | fi |
| 2746 | |
| 2747 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2748 | # Check whether --with-xml was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2749 | if test "${with_xml+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2750 | withval=$with_xml; |
| 2751 | fi |
| 2752 | |
| 2753 | |
| 2754 | # Check whether --with-xrandr was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2755 | if test "${with_xrandr+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2756 | withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi |
| 2757 | fi |
| 2758 | |
| 2759 | |
| 2760 | # Check whether --with-xrender was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2761 | if test "${with_xrender+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2762 | withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi |
| 2763 | fi |
| 2764 | |
| 2765 | |
| 2766 | # Check whether --with-xshape was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2767 | if test "${with_xshape+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2768 | withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi |
| 2769 | fi |
| 2770 | |
| 2771 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2772 | # Check whether --with-xslt was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2773 | if test "${with_xslt+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2774 | withval=$with_xslt; |
| 2775 | fi |
| 2776 | |
| 2777 | |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 2778 | # Check whether --with-xxf86vm was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2779 | if test "${with_xxf86vm+set}" = set; then : |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 2780 | 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] | 2781 | fi |
| 2782 | |
| 2783 | |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 2784 | # Check whether --with-zlib was given. |
| 2785 | if test "${with_zlib+set}" = set; then : |
| 2786 | withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi |
| 2787 | fi |
| 2788 | |
| 2789 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2790 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2791 | # Check whether --with-wine-tools was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2792 | if test "${with_wine_tools+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2793 | withval=$with_wine_tools; |
| 2794 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2795 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2796 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 2797 | # Check whether --with-wine64 was given. |
| 2798 | if test "${with_wine64+set}" = set; then : |
| 2799 | withval=$with_wine64; |
| 2800 | fi |
| 2801 | |
| 2802 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2803 | # Make sure we can run config.sub. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2804 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2805 | 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] | 2806 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2808 | $as_echo_n "checking build system type... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2809 | if ${ac_cv_build+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2810 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2811 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2812 | ac_build_alias=$build_alias |
| 2813 | test "x$ac_build_alias" = x && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2814 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2815 | test "x$ac_build_alias" = x && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2816 | 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] | 2817 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2818 | 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] | 2819 | |
| 2820 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2822 | $as_echo "$ac_cv_build" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2823 | case $ac_cv_build in |
| 2824 | *-*-*) ;; |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2825 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2826 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2827 | build=$ac_cv_build |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2828 | ac_save_IFS=$IFS; IFS='-' |
| 2829 | set x $ac_cv_build |
| 2830 | shift |
| 2831 | build_cpu=$1 |
| 2832 | build_vendor=$2 |
| 2833 | shift; shift |
| 2834 | # Remember, the first character of IFS is used to create $*, |
| 2835 | # except with old shells: |
| 2836 | build_os=$* |
| 2837 | IFS=$ac_save_IFS |
| 2838 | 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] | 2839 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2840 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2842 | $as_echo_n "checking host system type... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2843 | if ${ac_cv_host+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2844 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2845 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2846 | if test "x$host_alias" = x; then |
| 2847 | ac_cv_host=$ac_cv_build |
| 2848 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2849 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2850 | 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] | 2851 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2852 | |
| 2853 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2855 | $as_echo "$ac_cv_host" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2856 | case $ac_cv_host in |
| 2857 | *-*-*) ;; |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2858 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2859 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2860 | host=$ac_cv_host |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2861 | ac_save_IFS=$IFS; IFS='-' |
| 2862 | set x $ac_cv_host |
| 2863 | shift |
| 2864 | host_cpu=$1 |
| 2865 | host_vendor=$2 |
| 2866 | shift; shift |
| 2867 | # Remember, the first character of IFS is used to create $*, |
| 2868 | # except with old shells: |
| 2869 | host_os=$* |
| 2870 | IFS=$ac_save_IFS |
| 2871 | 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] | 2872 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2873 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 2874 | |
Alexandre Julliard | 73b724e | 2006-12-28 11:40:19 +0100 | [diff] [blame] | 2875 | case "$srcdir" in |
| 2876 | .) ;; |
| 2877 | *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2878 | 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] | 2879 | 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] | 2880 | fi ;; |
| 2881 | esac |
| 2882 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 2883 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2884 | { $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] | 2885 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2886 | set x ${MAKE-make} |
| 2887 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2888 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2889 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2890 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2891 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2892 | SHELL = /bin/sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2893 | all: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2894 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2895 | _ACEOF |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2896 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2897 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2898 | *@@@%%%=?*=@@@%%%*) |
| 2899 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2900 | *) |
| 2901 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2902 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2903 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2904 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2905 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2907 | $as_echo "yes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2908 | SET_MAKE= |
| 2909 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2911 | $as_echo "no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2912 | SET_MAKE="MAKE=${MAKE-make}" |
| 2913 | fi |
| 2914 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2915 | ac_ext=c |
| 2916 | ac_cpp='$CPP $CPPFLAGS' |
| 2917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2920 | if test -n "$ac_tool_prefix"; then |
| 2921 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2922 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2924 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2925 | if ${ac_cv_prog_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2926 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2927 | else |
| 2928 | if test -n "$CC"; then |
| 2929 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2930 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2932 | for as_dir in $PATH |
| 2933 | do |
| 2934 | IFS=$as_save_IFS |
| 2935 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2936 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 2937 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2938 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2939 | $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] | 2940 | break 2 |
| 2941 | fi |
| 2942 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2943 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2944 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2945 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2946 | fi |
| 2947 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2948 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2949 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2951 | $as_echo "$CC" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2952 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2954 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2955 | fi |
| 2956 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2957 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2958 | fi |
| 2959 | if test -z "$ac_cv_prog_CC"; then |
| 2960 | ac_ct_CC=$CC |
| 2961 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2962 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2964 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2965 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2966 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2967 | else |
| 2968 | if test -n "$ac_ct_CC"; then |
| 2969 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2970 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2972 | for as_dir in $PATH |
| 2973 | do |
| 2974 | IFS=$as_save_IFS |
| 2975 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2976 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 2977 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2978 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2979 | $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] | 2980 | break 2 |
| 2981 | fi |
| 2982 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2983 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2984 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2985 | |
| 2986 | fi |
| 2987 | fi |
| 2988 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2989 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2991 | $as_echo "$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2992 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2994 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2995 | fi |
| 2996 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2997 | if test "x$ac_ct_CC" = x; then |
| 2998 | CC="" |
| 2999 | else |
| 3000 | case $cross_compiling:$ac_tool_warned in |
| 3001 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3002 | { $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] | 3003 | $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] | 3004 | ac_tool_warned=yes ;; |
| 3005 | esac |
| 3006 | CC=$ac_ct_CC |
| 3007 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3008 | else |
| 3009 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3010 | fi |
| 3011 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3012 | if test -z "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3013 | if test -n "$ac_tool_prefix"; then |
| 3014 | # 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] | 3015 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3017 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3018 | if ${ac_cv_prog_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3019 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3020 | else |
| 3021 | if test -n "$CC"; then |
| 3022 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3023 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3025 | for as_dir in $PATH |
| 3026 | do |
| 3027 | IFS=$as_save_IFS |
| 3028 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3029 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 3030 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3031 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3032 | $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] | 3033 | break 2 |
| 3034 | fi |
| 3035 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3036 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3037 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3038 | |
| 3039 | fi |
| 3040 | fi |
| 3041 | CC=$ac_cv_prog_CC |
| 3042 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3044 | $as_echo "$CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3045 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3047 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3048 | fi |
| 3049 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3050 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3051 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3052 | fi |
| 3053 | if test -z "$CC"; then |
| 3054 | # Extract the first word of "cc", so it can be a program name with args. |
| 3055 | set dummy cc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3057 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3058 | if ${ac_cv_prog_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3059 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3060 | else |
| 3061 | if test -n "$CC"; then |
| 3062 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3063 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3064 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3066 | for as_dir in $PATH |
| 3067 | do |
| 3068 | IFS=$as_save_IFS |
| 3069 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3070 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 3071 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3072 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3073 | ac_prog_rejected=yes |
| 3074 | continue |
| 3075 | fi |
| 3076 | ac_cv_prog_CC="cc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3077 | $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] | 3078 | break 2 |
| 3079 | fi |
| 3080 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3081 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3082 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3083 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3084 | if test $ac_prog_rejected = yes; then |
| 3085 | # We found a bogon in the path, so make sure we never use it. |
| 3086 | set dummy $ac_cv_prog_CC |
| 3087 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3088 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3089 | # We chose a different compiler from the bogus one. |
| 3090 | # However, it has the same basename, so the bogon will be chosen |
| 3091 | # first if we set CC to just the basename; use the full file name. |
| 3092 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3093 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3094 | fi |
| 3095 | fi |
| 3096 | fi |
| 3097 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3098 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3099 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3101 | $as_echo "$CC" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3102 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3104 | $as_echo "no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3105 | fi |
| 3106 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3107 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3108 | fi |
| 3109 | if test -z "$CC"; then |
| 3110 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3111 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3112 | do |
| 3113 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3114 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3116 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3117 | if ${ac_cv_prog_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3118 | $as_echo_n "(cached) " >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3119 | else |
| 3120 | if test -n "$CC"; then |
| 3121 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3122 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3124 | for as_dir in $PATH |
| 3125 | do |
| 3126 | IFS=$as_save_IFS |
| 3127 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3128 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 3129 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3130 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3131 | $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] | 3132 | break 2 |
| 3133 | fi |
| 3134 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3135 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3136 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3137 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3138 | fi |
| 3139 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3140 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3141 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3143 | $as_echo "$CC" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3144 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3146 | $as_echo "no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3147 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3148 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3149 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3150 | test -n "$CC" && break |
| 3151 | done |
| 3152 | fi |
| 3153 | if test -z "$CC"; then |
| 3154 | ac_ct_CC=$CC |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3155 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3156 | do |
| 3157 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3158 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3160 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3161 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3162 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3163 | else |
| 3164 | if test -n "$ac_ct_CC"; then |
| 3165 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3166 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3168 | for as_dir in $PATH |
| 3169 | do |
| 3170 | IFS=$as_save_IFS |
| 3171 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3172 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 3173 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3174 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3175 | $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] | 3176 | break 2 |
| 3177 | fi |
| 3178 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3179 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3180 | IFS=$as_save_IFS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3181 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3182 | fi |
| 3183 | fi |
| 3184 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3185 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3187 | $as_echo "$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3188 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3190 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3191 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3192 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3193 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3194 | test -n "$ac_ct_CC" && break |
| 3195 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3196 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3197 | if test "x$ac_ct_CC" = x; then |
| 3198 | CC="" |
| 3199 | else |
| 3200 | case $cross_compiling:$ac_tool_warned in |
| 3201 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3202 | { $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] | 3203 | $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] | 3204 | ac_tool_warned=yes ;; |
| 3205 | esac |
| 3206 | CC=$ac_ct_CC |
| 3207 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3208 | fi |
| 3209 | |
| 3210 | fi |
| 3211 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3212 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3213 | 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] | 3214 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3215 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3216 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3217 | |
| 3218 | # Provide some information about the compiler. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3219 | $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] | 3220 | set X $ac_compile |
| 3221 | ac_compiler=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3222 | for ac_option in --version -v -V -qversion; do |
| 3223 | { { ac_try="$ac_compiler $ac_option >&5" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3224 | case "(($ac_try" in |
| 3225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3226 | *) ac_try_echo=$ac_try;; |
| 3227 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3228 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3229 | $as_echo "$ac_try_echo"; } >&5 |
| 3230 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3231 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3232 | if test -s conftest.err; then |
| 3233 | sed '10a\ |
| 3234 | ... rest of stderr output deleted ... |
| 3235 | 10q' conftest.err >conftest.er1 |
| 3236 | cat conftest.er1 >&5 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3237 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3238 | rm -f conftest.er1 conftest.err |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3239 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3240 | test $ac_status = 0; } |
| 3241 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3242 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3244 | /* end confdefs.h. */ |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3245 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3246 | int |
| 3247 | main () |
| 3248 | { |
| 3249 | |
| 3250 | ; |
| 3251 | return 0; |
| 3252 | } |
| 3253 | _ACEOF |
| 3254 | ac_clean_files_save=$ac_clean_files |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3255 | 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] | 3256 | # Try to create an executable without -o first, disregard a.out. |
| 3257 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3258 | # of exeext. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3260 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3261 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3262 | |
| 3263 | # The possible output files: |
| 3264 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3265 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3266 | ac_rmfiles= |
| 3267 | for ac_file in $ac_files |
| 3268 | do |
| 3269 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3270 | *.$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] | 3271 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3272 | esac |
| 3273 | done |
| 3274 | rm -f $ac_rmfiles |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3275 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3276 | if { { ac_try="$ac_link_default" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3277 | case "(($ac_try" in |
| 3278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3279 | *) ac_try_echo=$ac_try;; |
| 3280 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3281 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3282 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3283 | (eval "$ac_link_default") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3284 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3286 | test $ac_status = 0; }; then : |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3287 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3288 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3289 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3290 | # so that the user can short-circuit this test for compilers unknown to |
| 3291 | # Autoconf. |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 3292 | for ac_file in $ac_files '' |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3293 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3294 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3295 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3296 | *.$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] | 3297 | ;; |
| 3298 | [ab].out ) |
| 3299 | # We found the default executable, but exeext='' is most |
| 3300 | # certainly right. |
| 3301 | break;; |
| 3302 | *.* ) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3303 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3304 | then :; else |
| 3305 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3306 | fi |
| 3307 | # We set ac_cv_exeext here because the later test for it is not |
| 3308 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3309 | # argument, so we may need to know it at that point already. |
| 3310 | # Even if this section looks crufty: it has the advantage of |
| 3311 | # actually working. |
| 3312 | break;; |
| 3313 | * ) |
| 3314 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3315 | esac |
| 3316 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3317 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3318 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3319 | else |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 3320 | ac_file='' |
| 3321 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3322 | if test -z "$ac_file"; then : |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3324 | $as_echo "no" >&6; } |
| 3325 | $as_echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3327 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3328 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3329 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3330 | as_fn_error 77 "C compiler cannot create executables |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3331 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3332 | else |
| 3333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3334 | $as_echo "yes" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3335 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3337 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3339 | $as_echo "$ac_file" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3340 | ac_exeext=$ac_cv_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3341 | |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3342 | 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] | 3343 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3344 | { $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] | 3345 | $as_echo_n "checking for suffix of executables... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3346 | if { { ac_try="$ac_link" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3347 | case "(($ac_try" in |
| 3348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3349 | *) ac_try_echo=$ac_try;; |
| 3350 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3351 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3352 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3353 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3354 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3356 | test $ac_status = 0; }; then : |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3357 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3358 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3359 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3360 | # `rm'. |
| 3361 | for ac_file in conftest.exe conftest conftest.*; do |
| 3362 | test -f "$ac_file" || continue |
| 3363 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3364 | *.$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] | 3365 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3366 | break;; |
| 3367 | * ) break;; |
| 3368 | esac |
| 3369 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3370 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3371 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3372 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3373 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3374 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3375 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3376 | rm -f conftest conftest$ac_cv_exeext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3378 | $as_echo "$ac_cv_exeext" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3379 | |
| 3380 | rm -f conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3381 | EXEEXT=$ac_cv_exeext |
| 3382 | ac_exeext=$EXEEXT |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3384 | /* end confdefs.h. */ |
| 3385 | #include <stdio.h> |
| 3386 | int |
| 3387 | main () |
| 3388 | { |
| 3389 | FILE *f = fopen ("conftest.out", "w"); |
| 3390 | return ferror (f) || fclose (f) != 0; |
| 3391 | |
| 3392 | ; |
| 3393 | return 0; |
| 3394 | } |
| 3395 | _ACEOF |
| 3396 | ac_clean_files="$ac_clean_files conftest.out" |
| 3397 | # Check that the compiler produces executables we can run. If not, either |
| 3398 | # the compiler is broken, or we cross compile. |
| 3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3400 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3401 | if test "$cross_compiling" != yes; then |
| 3402 | { { ac_try="$ac_link" |
| 3403 | case "(($ac_try" in |
| 3404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3405 | *) ac_try_echo=$ac_try;; |
| 3406 | esac |
| 3407 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3408 | $as_echo "$ac_try_echo"; } >&5 |
| 3409 | (eval "$ac_link") 2>&5 |
| 3410 | ac_status=$? |
| 3411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3412 | test $ac_status = 0; } |
| 3413 | if { ac_try='./conftest$ac_cv_exeext' |
| 3414 | { { case "(($ac_try" in |
| 3415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3416 | *) ac_try_echo=$ac_try;; |
| 3417 | esac |
| 3418 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3419 | $as_echo "$ac_try_echo"; } >&5 |
| 3420 | (eval "$ac_try") 2>&5 |
| 3421 | ac_status=$? |
| 3422 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3423 | test $ac_status = 0; }; }; then |
| 3424 | cross_compiling=no |
| 3425 | else |
| 3426 | if test "$cross_compiling" = maybe; then |
| 3427 | cross_compiling=yes |
| 3428 | else |
| 3429 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3430 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3431 | as_fn_error $? "cannot run C compiled programs. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3432 | If you meant to cross compile, use \`--host'. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3433 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3434 | fi |
| 3435 | fi |
| 3436 | fi |
| 3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3438 | $as_echo "$cross_compiling" >&6; } |
| 3439 | |
| 3440 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3441 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3442 | { $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] | 3443 | $as_echo_n "checking for suffix of object files... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3444 | if ${ac_cv_objext+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3445 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3446 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3448 | /* end confdefs.h. */ |
| 3449 | |
| 3450 | int |
| 3451 | main () |
| 3452 | { |
| 3453 | |
| 3454 | ; |
| 3455 | return 0; |
| 3456 | } |
| 3457 | _ACEOF |
| 3458 | rm -f conftest.o conftest.obj |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3459 | if { { ac_try="$ac_compile" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3460 | case "(($ac_try" in |
| 3461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3462 | *) ac_try_echo=$ac_try;; |
| 3463 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3464 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3465 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3466 | (eval "$ac_compile") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3467 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3468 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3469 | test $ac_status = 0; }; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3470 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3471 | test -f "$ac_file" || continue; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3472 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3473 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3474 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3475 | break;; |
| 3476 | esac |
| 3477 | done |
| 3478 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3479 | $as_echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3481 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3482 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3483 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3484 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3485 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3486 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3487 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3488 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3490 | $as_echo "$ac_cv_objext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3491 | OBJEXT=$ac_cv_objext |
| 3492 | ac_objext=$OBJEXT |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3493 | { $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] | 3494 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3495 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3496 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3497 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3499 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3500 | |
| 3501 | int |
| 3502 | main () |
| 3503 | { |
| 3504 | #ifndef __GNUC__ |
| 3505 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3506 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3507 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3508 | ; |
| 3509 | return 0; |
| 3510 | } |
| 3511 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3512 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3513 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3514 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3515 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3516 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3518 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3519 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3520 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3521 | { $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] | 3522 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3523 | if test $ac_compiler_gnu = yes; then |
| 3524 | GCC=yes |
| 3525 | else |
| 3526 | GCC= |
| 3527 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3528 | ac_test_CFLAGS=${CFLAGS+set} |
| 3529 | ac_save_CFLAGS=$CFLAGS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3530 | { $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] | 3531 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3532 | if ${ac_cv_prog_cc_g+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3533 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3534 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3535 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3536 | ac_c_werror_flag=yes |
| 3537 | ac_cv_prog_cc_g=no |
| 3538 | CFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3540 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3541 | |
| 3542 | int |
| 3543 | main () |
| 3544 | { |
| 3545 | |
| 3546 | ; |
| 3547 | return 0; |
| 3548 | } |
| 3549 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3550 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3551 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3552 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3553 | CFLAGS="" |
| 3554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3555 | /* end confdefs.h. */ |
| 3556 | |
| 3557 | int |
| 3558 | main () |
| 3559 | { |
| 3560 | |
| 3561 | ; |
| 3562 | return 0; |
| 3563 | } |
| 3564 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3565 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3566 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3567 | else |
| 3568 | ac_c_werror_flag=$ac_save_c_werror_flag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3569 | CFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3571 | /* end confdefs.h. */ |
| 3572 | |
| 3573 | int |
| 3574 | main () |
| 3575 | { |
| 3576 | |
| 3577 | ; |
| 3578 | return 0; |
| 3579 | } |
| 3580 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3581 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3582 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3583 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3585 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3587 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3589 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3590 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3591 | { $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] | 3592 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3593 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3594 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3595 | elif test $ac_cv_prog_cc_g = yes; then |
| 3596 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3597 | CFLAGS="-g -O2" |
| 3598 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3599 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3600 | fi |
| 3601 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3602 | if test "$GCC" = yes; then |
| 3603 | CFLAGS="-O2" |
| 3604 | else |
| 3605 | CFLAGS= |
| 3606 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3607 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3608 | { $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] | 3609 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3610 | if ${ac_cv_prog_cc_c89+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3611 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3612 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3613 | ac_cv_prog_cc_c89=no |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3614 | ac_save_CC=$CC |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3616 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3617 | #include <stdarg.h> |
| 3618 | #include <stdio.h> |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 3619 | struct stat; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3620 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3621 | struct buf { int x; }; |
| 3622 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3623 | static char *e (p, i) |
| 3624 | char **p; |
| 3625 | int i; |
| 3626 | { |
| 3627 | return p[i]; |
| 3628 | } |
| 3629 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3630 | { |
| 3631 | char *s; |
| 3632 | va_list v; |
| 3633 | va_start (v,p); |
| 3634 | s = g (p, va_arg (v,int)); |
| 3635 | va_end (v); |
| 3636 | return s; |
| 3637 | } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3638 | |
| 3639 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3640 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3641 | These don't provoke an error unfortunately, instead are silently treated |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3642 | 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] | 3643 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3644 | 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] | 3645 | that's true only with -std. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3646 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3647 | |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 3648 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3649 | inside strings and character constants. */ |
| 3650 | #define FOO(x) 'x' |
| 3651 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3652 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3653 | int test (int i, double x); |
| 3654 | struct s1 {int (*f) (int a);}; |
| 3655 | struct s2 {int (*f) (double a);}; |
| 3656 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3657 | int argc; |
| 3658 | char **argv; |
| 3659 | int |
| 3660 | main () |
| 3661 | { |
| 3662 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3663 | ; |
| 3664 | return 0; |
| 3665 | } |
| 3666 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3667 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3668 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3669 | do |
| 3670 | CC="$ac_save_CC $ac_arg" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3671 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3672 | ac_cv_prog_cc_c89=$ac_arg |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3673 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3674 | rm -f core conftest.err conftest.$ac_objext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3675 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3676 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3677 | rm -f conftest.$ac_ext |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3678 | CC=$ac_save_CC |
| 3679 | |
| 3680 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3681 | # AC_CACHE_VAL |
| 3682 | case "x$ac_cv_prog_cc_c89" in |
| 3683 | x) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3685 | $as_echo "none needed" >&6; } ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3686 | xno) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3688 | $as_echo "unsupported" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3689 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3690 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3691 | { $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] | 3692 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3693 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3694 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3695 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3696 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3697 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3698 | ac_ext=c |
| 3699 | ac_cpp='$CPP $CPPFLAGS' |
| 3700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3703 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3704 | ac_ext=cpp |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3705 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3706 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3707 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3708 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3709 | if test -z "$CXX"; then |
| 3710 | if test -n "$CCC"; then |
| 3711 | CXX=$CCC |
| 3712 | else |
| 3713 | if test -n "$ac_tool_prefix"; then |
| 3714 | 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] | 3715 | do |
| 3716 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3717 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3719 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3720 | if ${ac_cv_prog_CXX+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3721 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3722 | else |
| 3723 | if test -n "$CXX"; then |
| 3724 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3725 | else |
| 3726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3727 | for as_dir in $PATH |
| 3728 | do |
| 3729 | IFS=$as_save_IFS |
| 3730 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3731 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 3732 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3733 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3734 | $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] | 3735 | break 2 |
| 3736 | fi |
| 3737 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3738 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3739 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3740 | |
| 3741 | fi |
| 3742 | fi |
| 3743 | CXX=$ac_cv_prog_CXX |
| 3744 | if test -n "$CXX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3746 | $as_echo "$CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3747 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3749 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3750 | fi |
| 3751 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3752 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3753 | test -n "$CXX" && break |
| 3754 | done |
| 3755 | fi |
| 3756 | if test -z "$CXX"; then |
| 3757 | ac_ct_CXX=$CXX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3758 | 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] | 3759 | do |
| 3760 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3761 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3763 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3764 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3765 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3766 | else |
| 3767 | if test -n "$ac_ct_CXX"; then |
| 3768 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3769 | else |
| 3770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3771 | for as_dir in $PATH |
| 3772 | do |
| 3773 | IFS=$as_save_IFS |
| 3774 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3775 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 3776 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3777 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3778 | $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] | 3779 | break 2 |
| 3780 | fi |
| 3781 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3782 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3783 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3784 | |
| 3785 | fi |
| 3786 | fi |
| 3787 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3788 | if test -n "$ac_ct_CXX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3790 | $as_echo "$ac_ct_CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3791 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3793 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3794 | fi |
| 3795 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3796 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3797 | test -n "$ac_ct_CXX" && break |
| 3798 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3799 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3800 | if test "x$ac_ct_CXX" = x; then |
| 3801 | CXX="g++" |
| 3802 | else |
| 3803 | case $cross_compiling:$ac_tool_warned in |
| 3804 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3805 | { $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] | 3806 | $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] | 3807 | ac_tool_warned=yes ;; |
| 3808 | esac |
| 3809 | CXX=$ac_ct_CXX |
| 3810 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3811 | fi |
| 3812 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3813 | fi |
| 3814 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3815 | # Provide some information about the compiler. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3816 | $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] | 3817 | set X $ac_compile |
| 3818 | ac_compiler=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3819 | for ac_option in --version -v -V -qversion; do |
| 3820 | { { ac_try="$ac_compiler $ac_option >&5" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3821 | case "(($ac_try" in |
| 3822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3823 | *) ac_try_echo=$ac_try;; |
| 3824 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3825 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3826 | $as_echo "$ac_try_echo"; } >&5 |
| 3827 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3828 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3829 | if test -s conftest.err; then |
| 3830 | sed '10a\ |
| 3831 | ... rest of stderr output deleted ... |
| 3832 | 10q' conftest.err >conftest.er1 |
| 3833 | cat conftest.er1 >&5 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3834 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3835 | rm -f conftest.er1 conftest.err |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3837 | test $ac_status = 0; } |
| 3838 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3839 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3840 | { $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] | 3841 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3842 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3843 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3844 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3846 | /* end confdefs.h. */ |
| 3847 | |
| 3848 | int |
| 3849 | main () |
| 3850 | { |
| 3851 | #ifndef __GNUC__ |
| 3852 | choke me |
| 3853 | #endif |
| 3854 | |
| 3855 | ; |
| 3856 | return 0; |
| 3857 | } |
| 3858 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3859 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3860 | ac_compiler_gnu=yes |
| 3861 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3862 | ac_compiler_gnu=no |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3863 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3865 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3866 | |
| 3867 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3868 | { $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] | 3869 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3870 | if test $ac_compiler_gnu = yes; then |
| 3871 | GXX=yes |
| 3872 | else |
| 3873 | GXX= |
| 3874 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3875 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3876 | ac_save_CXXFLAGS=$CXXFLAGS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3877 | { $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] | 3878 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3879 | if ${ac_cv_prog_cxx_g+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3880 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3881 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3882 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3883 | ac_cxx_werror_flag=yes |
| 3884 | ac_cv_prog_cxx_g=no |
| 3885 | CXXFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3887 | /* end confdefs.h. */ |
| 3888 | |
| 3889 | int |
| 3890 | main () |
| 3891 | { |
| 3892 | |
| 3893 | ; |
| 3894 | return 0; |
| 3895 | } |
| 3896 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3897 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3898 | ac_cv_prog_cxx_g=yes |
| 3899 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3900 | CXXFLAGS="" |
| 3901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3902 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3903 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3904 | int |
| 3905 | main () |
| 3906 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3907 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3908 | ; |
| 3909 | return 0; |
| 3910 | } |
| 3911 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3912 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3913 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3914 | else |
| 3915 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3916 | CXXFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3918 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3919 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3920 | int |
| 3921 | main () |
| 3922 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3923 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3924 | ; |
| 3925 | return 0; |
| 3926 | } |
| 3927 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3928 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3929 | ac_cv_prog_cxx_g=yes |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3930 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3932 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3934 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3936 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3937 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3938 | { $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] | 3939 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3940 | if test "$ac_test_CXXFLAGS" = set; then |
| 3941 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3942 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3943 | if test "$GXX" = yes; then |
| 3944 | CXXFLAGS="-g -O2" |
| 3945 | else |
| 3946 | CXXFLAGS="-g" |
| 3947 | fi |
| 3948 | else |
| 3949 | if test "$GXX" = yes; then |
| 3950 | CXXFLAGS="-O2" |
| 3951 | else |
| 3952 | CXXFLAGS= |
| 3953 | fi |
| 3954 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3955 | ac_ext=c |
| 3956 | ac_cpp='$CPP $CPPFLAGS' |
| 3957 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3958 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3959 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3960 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3961 | if test -n "$ac_tool_prefix"; then |
| 3962 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. |
| 3963 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3965 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3966 | if ${ac_cv_prog_CPPBIN+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3967 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3968 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3969 | if test -n "$CPPBIN"; then |
| 3970 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3971 | else |
| 3972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3973 | for as_dir in $PATH |
| 3974 | do |
| 3975 | IFS=$as_save_IFS |
| 3976 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3977 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 3978 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3979 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3980 | $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] | 3981 | break 2 |
| 3982 | fi |
| 3983 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3984 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3985 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3986 | |
| 3987 | fi |
| 3988 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3989 | CPPBIN=$ac_cv_prog_CPPBIN |
| 3990 | if test -n "$CPPBIN"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3992 | $as_echo "$CPPBIN" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3993 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3995 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3996 | fi |
| 3997 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3998 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3999 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4000 | if test -z "$ac_cv_prog_CPPBIN"; then |
| 4001 | ac_ct_CPPBIN=$CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4002 | # Extract the first word of "cpp", so it can be a program name with args. |
| 4003 | set dummy cpp; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4005 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4006 | if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4007 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4008 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4009 | if test -n "$ac_ct_CPPBIN"; then |
| 4010 | 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] | 4011 | else |
| 4012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4013 | for as_dir in $PATH |
| 4014 | do |
| 4015 | IFS=$as_save_IFS |
| 4016 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4017 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4018 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4019 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4020 | $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] | 4021 | break 2 |
| 4022 | fi |
| 4023 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4024 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4025 | IFS=$as_save_IFS |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4026 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4027 | fi |
| 4028 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4029 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
| 4030 | if test -n "$ac_ct_CPPBIN"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4032 | $as_echo "$ac_ct_CPPBIN" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4033 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4035 | $as_echo "no" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4036 | fi |
| 4037 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4038 | if test "x$ac_ct_CPPBIN" = x; then |
| 4039 | CPPBIN="cpp" |
| 4040 | else |
| 4041 | case $cross_compiling:$ac_tool_warned in |
| 4042 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4043 | { $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] | 4044 | $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] | 4045 | ac_tool_warned=yes ;; |
| 4046 | esac |
| 4047 | CPPBIN=$ac_ct_CPPBIN |
| 4048 | fi |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4049 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4050 | CPPBIN="$ac_cv_prog_CPPBIN" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4051 | fi |
| 4052 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4053 | |
Alexandre Julliard | 1aea4ef | 2009-08-27 13:35:46 +0200 | [diff] [blame] | 4054 | cat >>confdefs.h <<_ACEOF |
| 4055 | #define EXEEXT "$ac_exeext" |
| 4056 | _ACEOF |
| 4057 | |
| 4058 | |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4059 | case $host in |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4060 | *-darwin*) |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4061 | if test "x$enable_win64" = "xyes" |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4062 | then |
| 4063 | CC="$CC -m64" |
| 4064 | CXX="$CXX -m64" |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4065 | host_cpu="x86_64" |
| 4066 | notice_platform="64-bit " |
| 4067 | TARGETFLAGS="-m64" |
| 4068 | |
| 4069 | else |
| 4070 | CC="$CC -m32" |
| 4071 | CXX="$CXX -m32" |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4072 | host_cpu="i386" |
| 4073 | notice_platform="32-bit " |
| 4074 | TARGETFLAGS="-m32" |
| 4075 | |
| 4076 | enable_win16=${enable_win16:-yes} |
| 4077 | fi |
Ken Thomases | 9cb7a97 | 2012-04-04 17:41:10 -0500 | [diff] [blame] | 4078 | with_fontconfig=${with_fontconfig:-no} |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4079 | ;; |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4080 | x86_64*) |
Alexandre Julliard | 6b4ed0f | 2009-01-12 19:29:43 +0100 | [diff] [blame] | 4081 | if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes" |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4082 | then |
| 4083 | CC="$CC -m32" |
| 4084 | CXX="$CXX -m32" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4086 | $as_echo_n "checking whether $CC works... " >&6; } |
| 4087 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4089 | /* end confdefs.h. */ |
| 4090 | |
| 4091 | int |
| 4092 | main () |
| 4093 | { |
| 4094 | |
| 4095 | ; |
| 4096 | return 0; |
| 4097 | } |
| 4098 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4099 | if ac_fn_c_try_link "$LINENO"; then : |
| 4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4101 | $as_echo "yes" >&6; } |
| 4102 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4104 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4105 | 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] | 4106 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4107 | rm -f core conftest.err conftest.$ac_objext \ |
| 4108 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4109 | host_cpu="i386" |
| 4110 | notice_platform="32-bit " |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4111 | TARGETFLAGS="-m32" |
| 4112 | |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4113 | enable_win16=${enable_win16:-yes} |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4114 | else |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4115 | if test "x${GCC}" = "xyes" |
| 4116 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4117 | { $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] | 4118 | $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4120 | /* end confdefs.h. */ |
| 4121 | #include <stdarg.h> |
| 4122 | int |
| 4123 | main () |
| 4124 | { |
| 4125 | void func(__builtin_ms_va_list *args); |
| 4126 | ; |
| 4127 | return 0; |
| 4128 | } |
| 4129 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4130 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4132 | $as_echo "yes" >&6; } |
| 4133 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4135 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4136 | 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] | 4137 | fi |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4139 | fi |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4140 | TARGETFLAGS="-m64" |
| 4141 | |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4142 | fi |
| 4143 | ;; |
André Hentschel | 33ca051 | 2012-04-29 21:43:43 +0200 | [diff] [blame] | 4144 | arm*) |
André Hentschel | 74518c8 | 2012-06-25 00:22:16 +0200 | [diff] [blame] | 4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5 |
| 4146 | $as_echo_n "checking whether $CC supports Thumb... " >&6; } |
André Hentschel | 33ca051 | 2012-04-29 21:43:43 +0200 | [diff] [blame] | 4147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4148 | /* end confdefs.h. */ |
| 4149 | int ac_test(int i) { return i; } |
| 4150 | int |
| 4151 | main () |
| 4152 | { |
André Hentschel | 74518c8 | 2012-06-25 00:22:16 +0200 | [diff] [blame] | 4153 | asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1 |
André Hentschel | 33ca051 | 2012-04-29 21:43:43 +0200 | [diff] [blame] | 4154 | ; |
| 4155 | return 0; |
| 4156 | } |
| 4157 | _ACEOF |
| 4158 | if ac_fn_c_try_link "$LINENO"; then : |
| 4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4160 | $as_echo "yes" >&6; } |
| 4161 | else |
| 4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4163 | $as_echo "no" >&6; } |
André Hentschel | 74518c8 | 2012-06-25 00:22:16 +0200 | [diff] [blame] | 4164 | as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5 |
André Hentschel | 33ca051 | 2012-04-29 21:43:43 +0200 | [diff] [blame] | 4165 | fi |
| 4166 | rm -f core conftest.err conftest.$ac_objext \ |
| 4167 | conftest$ac_exeext conftest.$ac_ext |
| 4168 | CFLAGS="$CFLAGS -marm" |
| 4169 | ;; |
Alexandre Julliard | 391fce6 | 2009-04-02 12:59:52 +0200 | [diff] [blame] | 4170 | *-mingw32*|*-cygwin*) |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4171 | enable_win16=${enable_win16:-no} |
Alexandre Goujon | ac0a38c | 2010-03-01 21:39:40 +0100 | [diff] [blame] | 4172 | CFLAGS="$CFLAGS -D_WIN32" |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4173 | ;; |
| 4174 | i[3456789]86*) |
| 4175 | enable_win16=${enable_win16:-yes} |
| 4176 | ;; |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4177 | esac |
| 4178 | |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4179 | enable_win16=${enable_win16:-no} |
Alexandre Julliard | 4422d22 | 2011-05-10 13:26:28 +0200 | [diff] [blame] | 4180 | enable_win64=${enable_win64:-no} |
Alexandre Julliard | 776820e | 2009-02-23 17:46:33 +0100 | [diff] [blame] | 4181 | |
Alexandre Julliard | 9508155 | 2010-02-09 19:08:17 +0100 | [diff] [blame] | 4182 | enable_winetest=${enable_winetest:-$enable_tests} |
| 4183 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4184 | if test -n "$with_wine64" |
| 4185 | then |
| 4186 | if test "x$enable_win64" = "xyes" |
| 4187 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4188 | as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive. |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4189 | --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5 |
| 4190 | fi |
Alexandre Julliard | 9064777 | 2009-08-13 19:48:42 +0200 | [diff] [blame] | 4191 | WOW64_DISABLE=\# |
| 4192 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4193 | enable_fonts=${enable_fonts:-no} |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4194 | enable_server=${enable_server:-no} |
| 4195 | enable_tools=${enable_tools:-no} |
Alexandre Julliard | b326532 | 2010-04-21 12:28:22 +0200 | [diff] [blame] | 4196 | elif test "x$enable_win64" = "xyes" |
| 4197 | then |
| 4198 | test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64" |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4199 | fi |
| 4200 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4201 | { $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] | 4202 | $as_echo_n "checking for the directory containing the Wine tools... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4203 | if ${wine_cv_toolsdir+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4204 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4205 | else |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4206 | wine_cv_toolsdir="$with_wine_tools" |
| 4207 | if test -z "$with_wine_tools"; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4208 | if test "$cross_compiling" = "yes"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4209 | 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] | 4210 | elif test -n "$with_wine64"; then |
| 4211 | wine_cv_toolsdir="$with_wine64" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4212 | fi |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4213 | fi |
| 4214 | if test -z "$wine_cv_toolsdir"; then |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4215 | wine_cv_toolsdir="\$(top_builddir)" |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4216 | elif test -d "$wine_cv_toolsdir/tools/winebuild"; then |
| 4217 | case "$wine_cv_toolsdir" in |
| 4218 | /*) ;; |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4219 | *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;; |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4220 | esac |
| 4221 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4222 | 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] | 4223 | fi |
| 4224 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4226 | $as_echo "$wine_cv_toolsdir" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4227 | TOOLSDIR=$wine_cv_toolsdir |
| 4228 | |
Alexandre Julliard | 4d135d9 | 2009-02-16 13:08:44 +0100 | [diff] [blame] | 4229 | if test -n "$host_alias" -a "$host_alias" != "$build_alias" |
Alexandre Julliard | 424cb27 | 2008-12-26 17:54:50 +0100 | [diff] [blame] | 4230 | then |
Alexandre Julliard | 0fea4a5 | 2009-02-12 10:28:23 +0100 | [diff] [blame] | 4231 | TARGETFLAGS="-b $host_alias $TARGETFLAGS" |
Alexandre Julliard | 424cb27 | 2008-12-26 17:54:50 +0100 | [diff] [blame] | 4232 | |
| 4233 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4234 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4235 | for ac_prog in flex |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4236 | do |
| 4237 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4238 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4240 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4241 | if ${ac_cv_prog_FLEX+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4242 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4243 | else |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4244 | if test -n "$FLEX"; then |
| 4245 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4246 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4248 | for as_dir in $PATH |
| 4249 | do |
| 4250 | IFS=$as_save_IFS |
| 4251 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4252 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4253 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4254 | ac_cv_prog_FLEX="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4255 | $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] | 4256 | break 2 |
| 4257 | fi |
| 4258 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4259 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4260 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4261 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4262 | fi |
| 4263 | fi |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4264 | FLEX=$ac_cv_prog_FLEX |
| 4265 | if test -n "$FLEX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4267 | $as_echo "$FLEX" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4268 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4270 | $as_echo "no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4271 | fi |
| 4272 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4273 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4274 | test -n "$FLEX" && break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4275 | done |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4276 | test -n "$FLEX" || FLEX="none" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4277 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4278 | if test "$FLEX" = "none" |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4279 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4280 | 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] | 4281 | fi |
Michael Stefaniuc | ce30733 | 2009-12-29 18:07:02 +0100 | [diff] [blame] | 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5 |
| 4283 | $as_echo_n "checking whether flex is recent enough... " >&6; } |
| 4284 | cat >conftest.l <<EOF |
| 4285 | %top{ |
| 4286 | #include "prediluvian.h" |
| 4287 | } |
| 4288 | %% |
| 4289 | EOF |
Alexandre Julliard | 27816c7 | 2010-07-28 11:04:46 +0200 | [diff] [blame] | 4290 | if $FLEX -t conftest.l >/dev/null 2>&5 |
Michael Stefaniuc | ce30733 | 2009-12-29 18:07:02 +0100 | [diff] [blame] | 4291 | then |
| 4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4293 | $as_echo "yes" >&6; } |
| 4294 | else |
| 4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4296 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4297 | 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] | 4298 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4299 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4300 | for ac_prog in bison |
| 4301 | do |
| 4302 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4303 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4305 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4306 | if ${ac_cv_prog_BISON+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4307 | $as_echo_n "(cached) " >&6 |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4308 | else |
| 4309 | if test -n "$BISON"; then |
| 4310 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
| 4311 | else |
| 4312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4313 | for as_dir in $PATH |
| 4314 | do |
| 4315 | IFS=$as_save_IFS |
| 4316 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4317 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4318 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4319 | ac_cv_prog_BISON="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4320 | $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] | 4321 | break 2 |
| 4322 | fi |
| 4323 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4324 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4325 | IFS=$as_save_IFS |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4326 | |
| 4327 | fi |
| 4328 | fi |
| 4329 | BISON=$ac_cv_prog_BISON |
| 4330 | if test -n "$BISON"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4332 | $as_echo "$BISON" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4333 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4335 | $as_echo "no" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4336 | fi |
| 4337 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4338 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4339 | test -n "$BISON" && break |
| 4340 | done |
| 4341 | test -n "$BISON" || BISON="none" |
| 4342 | |
| 4343 | if test "$BISON" = "none" |
| 4344 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4345 | 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] | 4346 | fi |
| 4347 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4348 | if test -n "$ac_tool_prefix"; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4349 | for ac_prog in ar gar |
| 4350 | do |
| 4351 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4352 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4354 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4355 | if ${ac_cv_prog_AR+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4356 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4357 | else |
| 4358 | if test -n "$AR"; then |
| 4359 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4360 | else |
| 4361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4362 | for as_dir in $PATH |
| 4363 | do |
| 4364 | IFS=$as_save_IFS |
| 4365 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4366 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4368 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4369 | $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] | 4370 | break 2 |
| 4371 | fi |
| 4372 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4373 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4374 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4375 | |
| 4376 | fi |
| 4377 | fi |
| 4378 | AR=$ac_cv_prog_AR |
| 4379 | if test -n "$AR"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4381 | $as_echo "$AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4382 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4384 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4385 | fi |
| 4386 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4387 | |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4388 | test -n "$AR" && break |
| 4389 | done |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4390 | fi |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4391 | if test -z "$AR"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4392 | ac_ct_AR=$AR |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4393 | for ac_prog in ar gar |
| 4394 | do |
| 4395 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4396 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4398 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4399 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4400 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4401 | else |
| 4402 | if test -n "$ac_ct_AR"; then |
| 4403 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4404 | else |
| 4405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4406 | for as_dir in $PATH |
| 4407 | do |
| 4408 | IFS=$as_save_IFS |
| 4409 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4410 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4412 | ac_cv_prog_ac_ct_AR="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4413 | $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] | 4414 | break 2 |
| 4415 | fi |
| 4416 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4417 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4418 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4419 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4420 | fi |
| 4421 | fi |
| 4422 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4423 | if test -n "$ac_ct_AR"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4425 | $as_echo "$ac_ct_AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4426 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4428 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4429 | fi |
| 4430 | |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4431 | |
| 4432 | test -n "$ac_ct_AR" && break |
| 4433 | done |
| 4434 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4435 | if test "x$ac_ct_AR" = x; then |
| 4436 | AR="ar" |
| 4437 | else |
| 4438 | case $cross_compiling:$ac_tool_warned in |
| 4439 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4440 | { $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] | 4441 | $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] | 4442 | ac_tool_warned=yes ;; |
| 4443 | esac |
| 4444 | AR=$ac_ct_AR |
| 4445 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4446 | fi |
| 4447 | |
Rob Shearman | 0c694d7 | 2008-03-04 15:53:41 +0000 | [diff] [blame] | 4448 | ARFLAGS=rc |
| 4449 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4450 | if test -n "$ac_tool_prefix"; then |
| 4451 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4452 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4454 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4455 | if ${ac_cv_prog_RANLIB+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4456 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4457 | else |
| 4458 | if test -n "$RANLIB"; then |
| 4459 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4460 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4462 | for as_dir in $PATH |
| 4463 | do |
| 4464 | IFS=$as_save_IFS |
| 4465 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4466 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4468 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4469 | $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] | 4470 | break 2 |
| 4471 | fi |
| 4472 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4473 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4474 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4475 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4476 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4477 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4478 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4479 | if test -n "$RANLIB"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4481 | $as_echo "$RANLIB" >&6; } |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4482 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4484 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4485 | fi |
| 4486 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4487 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4488 | fi |
| 4489 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4490 | ac_ct_RANLIB=$RANLIB |
| 4491 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4492 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4494 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4495 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4496 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4497 | else |
| 4498 | if test -n "$ac_ct_RANLIB"; then |
| 4499 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4500 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4502 | for as_dir in $PATH |
| 4503 | do |
| 4504 | IFS=$as_save_IFS |
| 4505 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4506 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4508 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4509 | $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] | 4510 | break 2 |
| 4511 | fi |
| 4512 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4513 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4514 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4515 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4516 | fi |
| 4517 | fi |
| 4518 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4519 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4521 | $as_echo "$ac_ct_RANLIB" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4522 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4524 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4525 | fi |
| 4526 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4527 | if test "x$ac_ct_RANLIB" = x; then |
| 4528 | RANLIB=":" |
| 4529 | else |
| 4530 | case $cross_compiling:$ac_tool_warned in |
| 4531 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4532 | { $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] | 4533 | $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] | 4534 | ac_tool_warned=yes ;; |
| 4535 | esac |
| 4536 | RANLIB=$ac_ct_RANLIB |
| 4537 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4538 | else |
| 4539 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4540 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4541 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4542 | { $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] | 4543 | $as_echo_n "checking whether ln -s works... " >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4544 | LN_S=$as_ln_s |
| 4545 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4547 | $as_echo "yes" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4548 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4549 | { $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] | 4550 | $as_echo "no, using $LN_S" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4551 | fi |
| 4552 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4553 | { $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] | 4554 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4555 | if ${ac_cv_path_GREP+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4556 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4557 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4558 | if test -z "$GREP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4559 | ac_path_GREP_found=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4560 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4562 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4563 | do |
| 4564 | IFS=$as_save_IFS |
| 4565 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4566 | for ac_prog in grep ggrep; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4567 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4568 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4569 | as_fn_executable_p "$ac_path_GREP" || continue |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4570 | # 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] | 4571 | # Check for GNU $ac_path_GREP |
| 4572 | case `"$ac_path_GREP" --version 2>&1` in |
| 4573 | *GNU*) |
| 4574 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4575 | *) |
| 4576 | ac_count=0 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4577 | $as_echo_n 0123456789 >"conftest.in" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4578 | while : |
| 4579 | do |
| 4580 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4581 | mv "conftest.tmp" "conftest.in" |
| 4582 | cp "conftest.in" "conftest.nl" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4583 | $as_echo 'GREP' >> "conftest.nl" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4584 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4585 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4586 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4587 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4588 | # Best one so far, save it but keep looking for a better one |
| 4589 | ac_cv_path_GREP="$ac_path_GREP" |
| 4590 | ac_path_GREP_max=$ac_count |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4591 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4592 | # 10*(2^10) chars as input seems more than enough |
| 4593 | test $ac_count -gt 10 && break |
| 4594 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4595 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4596 | esac |
| 4597 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4598 | $ac_path_GREP_found && break 3 |
| 4599 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4600 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4601 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4602 | IFS=$as_save_IFS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4603 | if test -z "$ac_cv_path_GREP"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4604 | 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] | 4605 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4606 | else |
| 4607 | ac_cv_path_GREP=$GREP |
| 4608 | fi |
| 4609 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4610 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4611 | { $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] | 4612 | $as_echo "$ac_cv_path_GREP" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4613 | GREP="$ac_cv_path_GREP" |
| 4614 | |
| 4615 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4617 | $as_echo_n "checking for egrep... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4618 | if ${ac_cv_path_EGREP+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4619 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4620 | else |
| 4621 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4622 | then ac_cv_path_EGREP="$GREP -E" |
| 4623 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4624 | if test -z "$EGREP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4625 | ac_path_EGREP_found=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4626 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4628 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4629 | do |
| 4630 | IFS=$as_save_IFS |
| 4631 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4632 | for ac_prog in egrep; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4633 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4634 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4635 | as_fn_executable_p "$ac_path_EGREP" || continue |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4636 | # 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] | 4637 | # Check for GNU $ac_path_EGREP |
| 4638 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4639 | *GNU*) |
| 4640 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4641 | *) |
| 4642 | ac_count=0 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4643 | $as_echo_n 0123456789 >"conftest.in" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4644 | while : |
| 4645 | do |
| 4646 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4647 | mv "conftest.tmp" "conftest.in" |
| 4648 | cp "conftest.in" "conftest.nl" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4649 | $as_echo 'EGREP' >> "conftest.nl" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4650 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4651 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4652 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4653 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4654 | # Best one so far, save it but keep looking for a better one |
| 4655 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4656 | ac_path_EGREP_max=$ac_count |
| 4657 | fi |
| 4658 | # 10*(2^10) chars as input seems more than enough |
| 4659 | test $ac_count -gt 10 && break |
| 4660 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4661 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4662 | esac |
| 4663 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4664 | $ac_path_EGREP_found && break 3 |
| 4665 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4666 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4667 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4668 | IFS=$as_save_IFS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4669 | if test -z "$ac_cv_path_EGREP"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4670 | 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] | 4671 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4672 | else |
| 4673 | ac_cv_path_EGREP=$EGREP |
| 4674 | fi |
| 4675 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4676 | fi |
| 4677 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4678 | { $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] | 4679 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4680 | EGREP="$ac_cv_path_EGREP" |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4681 | |
| 4682 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4683 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4684 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4686 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4687 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4688 | $as_echo_n "(cached) " >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4689 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4690 | case $LDCONFIG in |
| 4691 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4692 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4693 | ;; |
| 4694 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 4696 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4697 | do |
| 4698 | IFS=$as_save_IFS |
| 4699 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4700 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4702 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4703 | $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] | 4704 | break 2 |
| 4705 | fi |
| 4706 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4707 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4708 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4709 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 4710 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4711 | ;; |
| 4712 | esac |
| 4713 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4714 | LDCONFIG=$ac_cv_path_LDCONFIG |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4715 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4717 | $as_echo "$LDCONFIG" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4718 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4720 | $as_echo "no" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4721 | fi |
| 4722 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4723 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4724 | # Find a good install program. We prefer a C program (faster), |
| 4725 | # so one script is as good as another. But avoid the broken or |
| 4726 | # incompatible versions: |
| 4727 | # SysV /etc/install, /usr/sbin/install |
| 4728 | # SunOS /usr/etc/install |
| 4729 | # IRIX /sbin/install |
| 4730 | # AIX /bin/install |
| 4731 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4732 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4733 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4734 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4735 | # OS/2's system install, which has a completely different semantic |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4736 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4737 | # Reject install programs that cannot install multiple files. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4738 | { $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] | 4739 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4740 | if test -z "$INSTALL"; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4741 | if ${ac_cv_path_install+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4742 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4743 | else |
| 4744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4745 | for as_dir in $PATH |
| 4746 | do |
| 4747 | IFS=$as_save_IFS |
| 4748 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4749 | # Account for people who put trailing slashes in PATH elements. |
| 4750 | case $as_dir/ in #(( |
| 4751 | ./ | .// | /[cC]/* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4752 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4753 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4754 | /usr/ucb/* ) ;; |
| 4755 | *) |
| 4756 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4757 | # Don't use installbsd from OSF since it installs stuff as root |
| 4758 | # by default. |
| 4759 | for ac_prog in ginstall scoinst install; do |
| 4760 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4761 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4762 | if test $ac_prog = install && |
| 4763 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4764 | # AIX install. It has an incompatible calling convention. |
| 4765 | : |
| 4766 | elif test $ac_prog = install && |
| 4767 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4768 | # program-specific install script used by HP pwplus--don't use. |
| 4769 | : |
| 4770 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4771 | rm -rf conftest.one conftest.two conftest.dir |
| 4772 | echo one > conftest.one |
| 4773 | echo two > conftest.two |
| 4774 | mkdir conftest.dir |
| 4775 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4776 | test -s conftest.one && test -s conftest.two && |
| 4777 | test -s conftest.dir/conftest.one && |
| 4778 | test -s conftest.dir/conftest.two |
| 4779 | then |
| 4780 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4781 | break 3 |
| 4782 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4783 | fi |
| 4784 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4785 | done |
| 4786 | done |
| 4787 | ;; |
| 4788 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4789 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4790 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4791 | IFS=$as_save_IFS |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4792 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4793 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4794 | |
| 4795 | fi |
| 4796 | if test "${ac_cv_path_install+set}" = set; then |
| 4797 | INSTALL=$ac_cv_path_install |
| 4798 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4799 | # As a last resort, use the slow shell script. Don't cache a |
| 4800 | # value for INSTALL within a source directory, because that will |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4801 | # break other packages using the cache if that directory is |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4802 | # removed, or if the value is a relative name. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4803 | INSTALL=$ac_install_sh |
| 4804 | fi |
| 4805 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4807 | $as_echo "$INSTALL" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4808 | |
| 4809 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4810 | # It thinks the first close brace ends the variable substitution. |
| 4811 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4812 | |
| 4813 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4814 | |
| 4815 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4816 | |
| 4817 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 4818 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4819 | *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4820 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4821 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4822 | for ac_prog in lclint lint |
| 4823 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4824 | # 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] | 4825 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4827 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4828 | if ${ac_cv_prog_LINT+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4829 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4830 | else |
| 4831 | if test -n "$LINT"; then |
| 4832 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 4833 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4835 | for as_dir in $PATH |
| 4836 | do |
| 4837 | IFS=$as_save_IFS |
| 4838 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4839 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4840 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4841 | ac_cv_prog_LINT="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4842 | $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] | 4843 | break 2 |
| 4844 | fi |
| 4845 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4846 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4847 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4848 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4849 | fi |
| 4850 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4851 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4852 | if test -n "$LINT"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4854 | $as_echo "$LINT" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4855 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4857 | $as_echo "no" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4858 | fi |
| 4859 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4860 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4861 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4862 | done |
| 4863 | |
| 4864 | if test "$LINT" = "lint" |
| 4865 | then |
| 4866 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 4867 | fi |
| 4868 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4869 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4870 | for ac_prog in fontforge |
| 4871 | do |
| 4872 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4873 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4875 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4876 | if ${ac_cv_prog_FONTFORGE+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4877 | $as_echo_n "(cached) " >&6 |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4878 | else |
| 4879 | if test -n "$FONTFORGE"; then |
| 4880 | ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test. |
| 4881 | else |
| 4882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4883 | for as_dir in $PATH |
| 4884 | do |
| 4885 | IFS=$as_save_IFS |
| 4886 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4887 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4888 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4889 | ac_cv_prog_FONTFORGE="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4890 | $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] | 4891 | break 2 |
| 4892 | fi |
| 4893 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4894 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4895 | IFS=$as_save_IFS |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4896 | |
| 4897 | fi |
| 4898 | fi |
| 4899 | FONTFORGE=$ac_cv_prog_FONTFORGE |
| 4900 | if test -n "$FONTFORGE"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4902 | $as_echo "$FONTFORGE" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4903 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4905 | $as_echo "no" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4906 | fi |
| 4907 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4908 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4909 | test -n "$FONTFORGE" && break |
| 4910 | done |
| 4911 | test -n "$FONTFORGE" || FONTFORGE="false" |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 4912 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4913 | for ac_prog in pkg-config |
| 4914 | do |
| 4915 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4916 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4918 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4919 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4920 | $as_echo_n "(cached) " >&6 |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4921 | else |
| 4922 | if test -n "$PKG_CONFIG"; then |
| 4923 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 4924 | else |
| 4925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4926 | for as_dir in $PATH |
| 4927 | do |
| 4928 | IFS=$as_save_IFS |
| 4929 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4930 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4931 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4932 | ac_cv_prog_PKG_CONFIG="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4933 | $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] | 4934 | break 2 |
| 4935 | fi |
| 4936 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4937 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4938 | IFS=$as_save_IFS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4939 | |
| 4940 | fi |
| 4941 | fi |
| 4942 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 4943 | if test -n "$PKG_CONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4945 | $as_echo "$PKG_CONFIG" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4946 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4948 | $as_echo "no" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4949 | fi |
| 4950 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4951 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4952 | test -n "$PKG_CONFIG" && break |
| 4953 | done |
| 4954 | test -n "$PKG_CONFIG" || PKG_CONFIG="false" |
| 4955 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4956 | for ac_prog in rsvg |
| 4957 | do |
| 4958 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4959 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4961 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4962 | if ${ac_cv_prog_RSVG+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4963 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4964 | else |
| 4965 | if test -n "$RSVG"; then |
| 4966 | ac_cv_prog_RSVG="$RSVG" # Let the user override the test. |
| 4967 | else |
| 4968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4969 | for as_dir in $PATH |
| 4970 | do |
| 4971 | IFS=$as_save_IFS |
| 4972 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4973 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 4974 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4975 | ac_cv_prog_RSVG="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4976 | $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] | 4977 | break 2 |
| 4978 | fi |
| 4979 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4980 | done |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4981 | IFS=$as_save_IFS |
| 4982 | |
| 4983 | fi |
| 4984 | fi |
| 4985 | RSVG=$ac_cv_prog_RSVG |
| 4986 | if test -n "$RSVG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4988 | $as_echo "$RSVG" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4989 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4991 | $as_echo "no" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4992 | fi |
| 4993 | |
| 4994 | |
| 4995 | test -n "$RSVG" && break |
| 4996 | done |
| 4997 | test -n "$RSVG" || RSVG="false" |
| 4998 | |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 4999 | for ac_prog in convert |
| 5000 | do |
| 5001 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5002 | set dummy $ac_prog; ac_word=$2 |
| 5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5004 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5005 | if ${ac_cv_prog_CONVERT+:} false; then : |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 5006 | $as_echo_n "(cached) " >&6 |
| 5007 | else |
| 5008 | if test -n "$CONVERT"; then |
| 5009 | ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test. |
| 5010 | else |
| 5011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5012 | for as_dir in $PATH |
| 5013 | do |
| 5014 | IFS=$as_save_IFS |
| 5015 | test -z "$as_dir" && as_dir=. |
| 5016 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 5017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 5018 | ac_cv_prog_CONVERT="$ac_prog" |
| 5019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5020 | break 2 |
| 5021 | fi |
| 5022 | done |
| 5023 | done |
| 5024 | IFS=$as_save_IFS |
| 5025 | |
| 5026 | fi |
| 5027 | fi |
| 5028 | CONVERT=$ac_cv_prog_CONVERT |
| 5029 | if test -n "$CONVERT"; then |
| 5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5 |
| 5031 | $as_echo "$CONVERT" >&6; } |
| 5032 | else |
| 5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5034 | $as_echo "no" >&6; } |
| 5035 | fi |
| 5036 | |
| 5037 | |
| 5038 | test -n "$CONVERT" && break |
| 5039 | done |
| 5040 | test -n "$CONVERT" || CONVERT="false" |
| 5041 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5042 | for ac_prog in icotool |
| 5043 | do |
| 5044 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5045 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5047 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5048 | if ${ac_cv_prog_ICOTOOL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5049 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5050 | else |
| 5051 | if test -n "$ICOTOOL"; then |
| 5052 | ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test. |
| 5053 | else |
| 5054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5055 | for as_dir in $PATH |
| 5056 | do |
| 5057 | IFS=$as_save_IFS |
| 5058 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5059 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 5060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5061 | ac_cv_prog_ICOTOOL="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5062 | $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] | 5063 | break 2 |
| 5064 | fi |
| 5065 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5066 | done |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5067 | IFS=$as_save_IFS |
| 5068 | |
| 5069 | fi |
| 5070 | fi |
| 5071 | ICOTOOL=$ac_cv_prog_ICOTOOL |
| 5072 | if test -n "$ICOTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5074 | $as_echo "$ICOTOOL" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5075 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5077 | $as_echo "no" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5078 | fi |
| 5079 | |
| 5080 | |
| 5081 | test -n "$ICOTOOL" && break |
| 5082 | done |
| 5083 | test -n "$ICOTOOL" || ICOTOOL="false" |
| 5084 | |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 5085 | for ac_prog in msgfmt |
| 5086 | do |
| 5087 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5088 | set dummy $ac_prog; ac_word=$2 |
| 5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5090 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5091 | if ${ac_cv_prog_MSGFMT+:} false; then : |
| 5092 | $as_echo_n "(cached) " >&6 |
| 5093 | else |
| 5094 | if test -n "$MSGFMT"; then |
| 5095 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 5096 | else |
| 5097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5098 | for as_dir in $PATH |
| 5099 | do |
| 5100 | IFS=$as_save_IFS |
| 5101 | test -z "$as_dir" && as_dir=. |
| 5102 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 5103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 5104 | ac_cv_prog_MSGFMT="$ac_prog" |
| 5105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5106 | break 2 |
| 5107 | fi |
| 5108 | done |
| 5109 | done |
| 5110 | IFS=$as_save_IFS |
| 5111 | |
| 5112 | fi |
| 5113 | fi |
| 5114 | MSGFMT=$ac_cv_prog_MSGFMT |
| 5115 | if test -n "$MSGFMT"; then |
| 5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
| 5117 | $as_echo "$MSGFMT" >&6; } |
| 5118 | else |
| 5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5120 | $as_echo "no" >&6; } |
| 5121 | fi |
| 5122 | |
| 5123 | |
| 5124 | test -n "$MSGFMT" && break |
| 5125 | done |
| 5126 | test -n "$MSGFMT" || MSGFMT="false" |
| 5127 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5128 | |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 5129 | if test "x$enable_maintainer_mode" != "xyes" |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5130 | then |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 5131 | MAINTAINER_MODE=\# |
| 5132 | |
| 5133 | else |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5134 | if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi |
| 5135 | 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] | 5136 | |
| 5137 | if test "$CONVERT" = false |
| 5138 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5139 | 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] | 5140 | else |
| 5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5 |
| 5142 | $as_echo_n "checking for recent enough imagemagick... " >&6; } |
| 5143 | convert_version=`convert --version | head -n1` |
| 5144 | if test "x$convert_version" != "x" |
| 5145 | then |
| 5146 | convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'` |
| 5147 | convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'` |
| 5148 | if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6 |
| 5149 | then |
| 5150 | CONVERT=false |
Joel Holdsworth | b9eae1e | 2010-05-16 23:07:40 +0100 | [diff] [blame] | 5151 | fi |
| 5152 | fi |
| 5153 | if test "$CONVERT" = false |
| 5154 | then |
| 5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5 |
| 5156 | $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5157 | 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] | 5158 | else |
| 5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5 |
| 5160 | $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; } |
| 5161 | fi |
| 5162 | fi |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5163 | |
| 5164 | if test "$ICOTOOL" = false |
| 5165 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5166 | 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] | 5167 | else |
| 5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5 |
| 5169 | $as_echo_n "checking for recent enough icotool... " >&6; } |
| 5170 | icotool_version=`icotool --version | head -n1` |
| 5171 | if test "x$icotool_version" != "x" |
| 5172 | then |
Joel Holdsworth | 9571f78 | 2010-05-16 23:07:33 +0100 | [diff] [blame] | 5173 | icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'` |
| 5174 | icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'` |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5175 | if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29 |
| 5176 | then |
| 5177 | ICOTOOL=false |
| 5178 | as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons." |
| 5179 | fi |
| 5180 | fi |
| 5181 | if test "$ICOTOOL" = false |
| 5182 | then |
| 5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5 |
| 5184 | $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5185 | 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] | 5186 | else |
| 5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5 |
| 5188 | $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; } |
| 5189 | fi |
| 5190 | fi |
| 5191 | |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 5192 | with_gettext=yes |
| 5193 | with_gettextpo=yes |
| 5194 | { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;} |
| 5195 | fi |
| 5196 | |
| 5197 | test "x$with_gettext" != xno || MSGFMT=false |
Christian Costa | 9496930 | 2012-03-05 20:00:20 +0100 | [diff] [blame] | 5198 | if test "$MSGFMT" != "false" |
| 5199 | then |
| 5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5 |
| 5201 | $as_echo_n "checking whether msgfmt supports contexts... " >&6; } |
| 5202 | cat >conftest.po <<EOF |
| 5203 | # comment |
| 5204 | msgctxt "ctxt" |
| 5205 | msgid "id" |
| 5206 | msgstr "str" |
| 5207 | EOF |
| 5208 | if $MSGFMT -o /dev/null conftest.po 2>&5 |
| 5209 | then |
| 5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5211 | $as_echo "yes" >&6; } |
| 5212 | else |
| 5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5214 | $as_echo "no" >&6; } |
| 5215 | MSGFMT=false |
| 5216 | fi |
| 5217 | fi |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 5218 | if test "$MSGFMT" = false; then : |
| 5219 | case "x$with_gettext" in |
Christian Costa | 9496930 | 2012-03-05 20:00:20 +0100 | [diff] [blame] | 5220 | x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;; |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 5221 | xno) ;; |
Christian Costa | 9496930 | 2012-03-05 20:00:20 +0100 | [diff] [blame] | 5222 | *) as_fn_error $? "gettext tools not found (or too old), translations won't be built. |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 5223 | This is an error since --with-gettext was requested." "$LINENO" 5 ;; |
| 5224 | esac |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5225 | fi |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 5226 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5227 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5228 | { $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] | 5229 | $as_echo_n "checking for i386_set_ldt in -li386... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5230 | if ${ac_cv_lib_i386_i386_set_ldt+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5231 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5232 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5233 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5234 | LIBS="-li386 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5236 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5237 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5238 | /* Override any GCC internal prototype to avoid an error. |
| 5239 | Use char because int might match the return type of a GCC |
| 5240 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5241 | #ifdef __cplusplus |
| 5242 | extern "C" |
| 5243 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5244 | char i386_set_ldt (); |
| 5245 | int |
| 5246 | main () |
| 5247 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5248 | return i386_set_ldt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5249 | ; |
| 5250 | return 0; |
| 5251 | } |
| 5252 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5253 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5254 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5255 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5256 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5257 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5258 | rm -f core conftest.err conftest.$ac_objext \ |
| 5259 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5260 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5261 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5262 | { $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] | 5263 | $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5264 | if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5265 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5266 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5267 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5268 | |
| 5269 | LIBS="-li386 $LIBS" |
| 5270 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5271 | fi |
| 5272 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5273 | { $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] | 5274 | $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5275 | if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5276 | $as_echo_n "(cached) " >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5277 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5278 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5279 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5281 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5282 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5283 | /* Override any GCC internal prototype to avoid an error. |
| 5284 | Use char because int might match the return type of a GCC |
| 5285 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5286 | #ifdef __cplusplus |
| 5287 | extern "C" |
| 5288 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5289 | char _oss_ioctl (); |
| 5290 | int |
| 5291 | main () |
| 5292 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5293 | return _oss_ioctl (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5294 | ; |
| 5295 | return 0; |
| 5296 | } |
| 5297 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5298 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5299 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5300 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5301 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5302 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5303 | rm -f core conftest.err conftest.$ac_objext \ |
| 5304 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5305 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5306 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5307 | { $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] | 5308 | $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5309 | if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5310 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5311 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5312 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5313 | |
| 5314 | LIBS="-lossaudio $LIBS" |
| 5315 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5316 | fi |
| 5317 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5318 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 5319 | XLIB="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5320 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5321 | OPENGL_LIBS="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5322 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5323 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 5324 | |
Ken Thomases | 9cb7a97 | 2012-04-04 17:41:10 -0500 | [diff] [blame] | 5325 | test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no |
| 5326 | |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5327 | # Check whether --enable-largefile was given. |
| 5328 | if test "${enable_largefile+set}" = set; then : |
| 5329 | enableval=$enable_largefile; |
| 5330 | fi |
| 5331 | |
| 5332 | if test "$enable_largefile" != no; then |
| 5333 | |
| 5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 5335 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5336 | if ${ac_cv_sys_largefile_CC+:} false; then : |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5337 | $as_echo_n "(cached) " >&6 |
| 5338 | else |
| 5339 | ac_cv_sys_largefile_CC=no |
| 5340 | if test "$GCC" != yes; then |
| 5341 | ac_save_CC=$CC |
| 5342 | while :; do |
| 5343 | # IRIX 6.2 and later do not support large files by default, |
| 5344 | # so use the C compiler's -n32 option if that helps. |
| 5345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5346 | /* end confdefs.h. */ |
| 5347 | #include <sys/types.h> |
| 5348 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5349 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5350 | since some C++ compilers masquerading as C compilers |
| 5351 | incorrectly reject 9223372036854775807. */ |
| 5352 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5353 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5354 | && LARGE_OFF_T % 2147483647 == 1) |
| 5355 | ? 1 : -1]; |
| 5356 | int |
| 5357 | main () |
| 5358 | { |
| 5359 | |
| 5360 | ; |
| 5361 | return 0; |
| 5362 | } |
| 5363 | _ACEOF |
| 5364 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5365 | break |
| 5366 | fi |
| 5367 | rm -f core conftest.err conftest.$ac_objext |
| 5368 | CC="$CC -n32" |
| 5369 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5370 | ac_cv_sys_largefile_CC=' -n32'; break |
| 5371 | fi |
| 5372 | rm -f core conftest.err conftest.$ac_objext |
| 5373 | break |
| 5374 | done |
| 5375 | CC=$ac_save_CC |
| 5376 | rm -f conftest.$ac_ext |
| 5377 | fi |
| 5378 | fi |
| 5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 5380 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 5381 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 5382 | CC=$CC$ac_cv_sys_largefile_CC |
| 5383 | fi |
| 5384 | |
| 5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 5386 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5387 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5388 | $as_echo_n "(cached) " >&6 |
| 5389 | else |
| 5390 | while :; do |
| 5391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5392 | /* end confdefs.h. */ |
| 5393 | #include <sys/types.h> |
| 5394 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5395 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5396 | since some C++ compilers masquerading as C compilers |
| 5397 | incorrectly reject 9223372036854775807. */ |
| 5398 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5399 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5400 | && LARGE_OFF_T % 2147483647 == 1) |
| 5401 | ? 1 : -1]; |
| 5402 | int |
| 5403 | main () |
| 5404 | { |
| 5405 | |
| 5406 | ; |
| 5407 | return 0; |
| 5408 | } |
| 5409 | _ACEOF |
| 5410 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5411 | ac_cv_sys_file_offset_bits=no; break |
| 5412 | fi |
| 5413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5415 | /* end confdefs.h. */ |
| 5416 | #define _FILE_OFFSET_BITS 64 |
| 5417 | #include <sys/types.h> |
| 5418 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5419 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5420 | since some C++ compilers masquerading as C compilers |
| 5421 | incorrectly reject 9223372036854775807. */ |
| 5422 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5423 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5424 | && LARGE_OFF_T % 2147483647 == 1) |
| 5425 | ? 1 : -1]; |
| 5426 | int |
| 5427 | main () |
| 5428 | { |
| 5429 | |
| 5430 | ; |
| 5431 | return 0; |
| 5432 | } |
| 5433 | _ACEOF |
| 5434 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5435 | ac_cv_sys_file_offset_bits=64; break |
| 5436 | fi |
| 5437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5438 | ac_cv_sys_file_offset_bits=unknown |
| 5439 | break |
| 5440 | done |
| 5441 | fi |
| 5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 5443 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 5444 | case $ac_cv_sys_file_offset_bits in #( |
| 5445 | no | unknown) ;; |
| 5446 | *) |
| 5447 | cat >>confdefs.h <<_ACEOF |
| 5448 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 5449 | _ACEOF |
| 5450 | ;; |
| 5451 | esac |
| 5452 | rm -rf conftest* |
| 5453 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 5455 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5456 | if ${ac_cv_sys_large_files+:} false; then : |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5457 | $as_echo_n "(cached) " >&6 |
| 5458 | else |
| 5459 | while :; do |
| 5460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5461 | /* end confdefs.h. */ |
| 5462 | #include <sys/types.h> |
| 5463 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5464 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5465 | since some C++ compilers masquerading as C compilers |
| 5466 | incorrectly reject 9223372036854775807. */ |
| 5467 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5468 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5469 | && LARGE_OFF_T % 2147483647 == 1) |
| 5470 | ? 1 : -1]; |
| 5471 | int |
| 5472 | main () |
| 5473 | { |
| 5474 | |
| 5475 | ; |
| 5476 | return 0; |
| 5477 | } |
| 5478 | _ACEOF |
| 5479 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5480 | ac_cv_sys_large_files=no; break |
| 5481 | fi |
| 5482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5484 | /* end confdefs.h. */ |
| 5485 | #define _LARGE_FILES 1 |
| 5486 | #include <sys/types.h> |
| 5487 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5488 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5489 | since some C++ compilers masquerading as C compilers |
| 5490 | incorrectly reject 9223372036854775807. */ |
| 5491 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5492 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5493 | && LARGE_OFF_T % 2147483647 == 1) |
| 5494 | ? 1 : -1]; |
| 5495 | int |
| 5496 | main () |
| 5497 | { |
| 5498 | |
| 5499 | ; |
| 5500 | return 0; |
| 5501 | } |
| 5502 | _ACEOF |
| 5503 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5504 | ac_cv_sys_large_files=1; break |
| 5505 | fi |
| 5506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5507 | ac_cv_sys_large_files=unknown |
| 5508 | break |
| 5509 | done |
| 5510 | fi |
| 5511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 5512 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 5513 | case $ac_cv_sys_large_files in #( |
| 5514 | no | unknown) ;; |
| 5515 | *) |
| 5516 | cat >>confdefs.h <<_ACEOF |
| 5517 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 5518 | _ACEOF |
| 5519 | ;; |
| 5520 | esac |
| 5521 | rm -rf conftest* |
| 5522 | fi |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 5523 | |
| 5524 | |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5525 | fi |
| 5526 | |
| 5527 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5528 | ac_ext=c |
| 5529 | ac_cpp='$CPP $CPPFLAGS' |
| 5530 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5531 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5532 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5533 | { $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] | 5534 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5535 | # On Suns, sometimes $CPP names a directory. |
| 5536 | if test -n "$CPP" && test -d "$CPP"; then |
| 5537 | CPP= |
| 5538 | fi |
| 5539 | if test -z "$CPP"; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5540 | if ${ac_cv_prog_CPP+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5541 | $as_echo_n "(cached) " >&6 |
| 5542 | else |
| 5543 | # Double quotes because CPP needs to be expanded |
| 5544 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5545 | do |
| 5546 | ac_preproc_ok=false |
| 5547 | for ac_c_preproc_warn_flag in '' yes |
| 5548 | do |
| 5549 | # Use a header file that comes with gcc, so configuring glibc |
| 5550 | # with a fresh cross-compiler works. |
| 5551 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5552 | # <limits.h> exists even on freestanding compilers. |
| 5553 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5554 | # not just through cpp. "Syntax error" is here to catch this case. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5556 | /* end confdefs.h. */ |
| 5557 | #ifdef __STDC__ |
| 5558 | # include <limits.h> |
| 5559 | #else |
| 5560 | # include <assert.h> |
| 5561 | #endif |
| 5562 | Syntax error |
| 5563 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5564 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5565 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5566 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5567 | # Broken: fails on valid input. |
| 5568 | continue |
| 5569 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5570 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5571 | |
| 5572 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5573 | # can be detected and how. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5575 | /* end confdefs.h. */ |
| 5576 | #include <ac_nonexistent.h> |
| 5577 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5578 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5579 | # Broken: success on invalid input. |
| 5580 | continue |
| 5581 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5582 | # Passes both tests. |
| 5583 | ac_preproc_ok=: |
| 5584 | break |
| 5585 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5586 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5587 | |
| 5588 | done |
| 5589 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5590 | rm -f conftest.i conftest.err conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5591 | if $ac_preproc_ok; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5592 | break |
| 5593 | fi |
| 5594 | |
| 5595 | done |
| 5596 | ac_cv_prog_CPP=$CPP |
| 5597 | |
| 5598 | fi |
| 5599 | CPP=$ac_cv_prog_CPP |
| 5600 | else |
| 5601 | ac_cv_prog_CPP=$CPP |
| 5602 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5604 | $as_echo "$CPP" >&6; } |
| 5605 | ac_preproc_ok=false |
| 5606 | for ac_c_preproc_warn_flag in '' yes |
| 5607 | do |
| 5608 | # Use a header file that comes with gcc, so configuring glibc |
| 5609 | # with a fresh cross-compiler works. |
| 5610 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5611 | # <limits.h> exists even on freestanding compilers. |
| 5612 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5613 | # not just through cpp. "Syntax error" is here to catch this case. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5615 | /* end confdefs.h. */ |
| 5616 | #ifdef __STDC__ |
| 5617 | # include <limits.h> |
| 5618 | #else |
| 5619 | # include <assert.h> |
| 5620 | #endif |
| 5621 | Syntax error |
| 5622 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5623 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5624 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5625 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5626 | # Broken: fails on valid input. |
| 5627 | continue |
| 5628 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5629 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5630 | |
| 5631 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5632 | # can be detected and how. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5634 | /* end confdefs.h. */ |
| 5635 | #include <ac_nonexistent.h> |
| 5636 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5637 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5638 | # Broken: success on invalid input. |
| 5639 | continue |
| 5640 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5641 | # Passes both tests. |
| 5642 | ac_preproc_ok=: |
| 5643 | break |
| 5644 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5645 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5646 | |
| 5647 | done |
| 5648 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5649 | rm -f conftest.i conftest.err conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5650 | if $ac_preproc_ok; then : |
| 5651 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5652 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5653 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5654 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5655 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5656 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5657 | fi |
| 5658 | |
| 5659 | ac_ext=c |
| 5660 | ac_cpp='$CPP $CPPFLAGS' |
| 5661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5664 | |
| 5665 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5666 | { $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] | 5667 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5668 | if ${ac_cv_header_stdc+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5669 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5670 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5672 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5673 | #include <stdlib.h> |
| 5674 | #include <stdarg.h> |
| 5675 | #include <string.h> |
| 5676 | #include <float.h> |
| 5677 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5678 | int |
| 5679 | main () |
| 5680 | { |
| 5681 | |
| 5682 | ; |
| 5683 | return 0; |
| 5684 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5685 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5686 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5687 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5688 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5689 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5690 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5692 | |
| 5693 | if test $ac_cv_header_stdc = yes; then |
| 5694 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5696 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5697 | #include <string.h> |
| 5698 | |
| 5699 | _ACEOF |
| 5700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5701 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5702 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5703 | else |
| 5704 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5705 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5706 | rm -f conftest* |
| 5707 | |
| 5708 | fi |
| 5709 | |
| 5710 | if test $ac_cv_header_stdc = yes; then |
| 5711 | # 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] | 5712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5713 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5714 | #include <stdlib.h> |
| 5715 | |
| 5716 | _ACEOF |
| 5717 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5718 | $EGREP "free" >/dev/null 2>&1; then : |
| 5719 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5720 | else |
| 5721 | ac_cv_header_stdc=no |
| 5722 | fi |
| 5723 | rm -f conftest* |
| 5724 | |
| 5725 | fi |
| 5726 | |
| 5727 | if test $ac_cv_header_stdc = yes; then |
| 5728 | # /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] | 5729 | if test "$cross_compiling" = yes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5730 | : |
| 5731 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5733 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5734 | #include <ctype.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5735 | #include <stdlib.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5736 | #if ((' ' & 0x0FF) == 0x020) |
| 5737 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5738 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5739 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5740 | # define ISLOWER(c) \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5741 | (('a' <= (c) && (c) <= 'i') \ |
| 5742 | || ('j' <= (c) && (c) <= 'r') \ |
| 5743 | || ('s' <= (c) && (c) <= 'z')) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5744 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5745 | #endif |
| 5746 | |
| 5747 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5748 | int |
| 5749 | main () |
| 5750 | { |
| 5751 | int i; |
| 5752 | for (i = 0; i < 256; i++) |
| 5753 | if (XOR (islower (i), ISLOWER (i)) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5754 | || toupper (i) != TOUPPER (i)) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5755 | return 2; |
| 5756 | return 0; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5757 | } |
| 5758 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5759 | if ac_fn_c_try_run "$LINENO"; then : |
| 5760 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5761 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5762 | ac_cv_header_stdc=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5763 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5764 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5765 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5766 | fi |
| 5767 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5768 | fi |
| 5769 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5770 | { $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] | 5771 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5772 | if test $ac_cv_header_stdc = yes; then |
| 5773 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5774 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5775 | |
| 5776 | fi |
| 5777 | |
| 5778 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5779 | 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] | 5780 | inttypes.h stdint.h unistd.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5781 | do : |
| 5782 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5783 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5784 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5785 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5786 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5787 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5788 | _ACEOF |
| 5789 | |
| 5790 | fi |
| 5791 | |
| 5792 | done |
| 5793 | |
| 5794 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5795 | for ac_header in \ |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 5796 | AL/al.h \ |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 5797 | ApplicationServices/ApplicationServices.h \ |
Aric Stewart | 4430ab4 | 2010-03-17 10:58:32 -0500 | [diff] [blame] | 5798 | AudioToolbox/AudioConverter.h \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 5799 | AudioUnit/AudioUnit.h \ |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 5800 | AudioUnit/AudioComponent.h \ |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 5801 | CL/cl.h \ |
Pierre d'Herbemont | 0888451 | 2006-10-24 15:26:33 +0200 | [diff] [blame] | 5802 | Carbon/Carbon.h \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 5803 | CoreAudio/CoreAudio.h \ |
Ken Thomases | cd454fd | 2012-03-14 16:49:47 -0500 | [diff] [blame] | 5804 | CoreServices/CoreServices.h \ |
Alexandre Julliard | 66f45a5 | 2006-11-06 13:33:16 +0100 | [diff] [blame] | 5805 | DiskArbitration/DiskArbitration.h \ |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 5806 | IOKit/IOKitLib.h \ |
Aric Stewart | 225a494 | 2009-03-10 14:59:20 -0500 | [diff] [blame] | 5807 | IOKit/hid/IOHIDLib.h \ |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 5808 | OpenAL/al.h \ |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 5809 | OpenCL/opencl.h \ |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 5810 | QuickTime/ImageCompression.h \ |
Ken Thomases | 25ed687 | 2011-03-13 18:58:44 -0500 | [diff] [blame] | 5811 | Security/Security.h \ |
Eric Durbin | 020b0ef | 2008-06-24 22:45:51 -0500 | [diff] [blame] | 5812 | alias.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5813 | alsa/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5814 | arpa/inet.h \ |
| 5815 | arpa/nameser.h \ |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 5816 | asm/types.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5817 | capi20.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5818 | curses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5819 | direct.h \ |
Rob Shearman | 87175c6 | 2008-10-03 12:55:21 +0100 | [diff] [blame] | 5820 | dirent.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5821 | dlfcn.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5822 | elf.h \ |
| 5823 | float.h \ |
Alexandre Julliard | 7d5e565 | 2009-06-01 12:51:54 +0200 | [diff] [blame] | 5824 | fnmatch.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5825 | fontconfig/fontconfig.h \ |
| 5826 | getopt.h \ |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 5827 | gettext-po.h \ |
Alexandre Julliard | 46678dc | 2008-12-09 17:09:42 +0100 | [diff] [blame] | 5828 | grp.h \ |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 5829 | gsm.h \ |
Maarten Lankhorst | c186d8a | 2009-08-05 11:35:50 +0200 | [diff] [blame] | 5830 | gsm/gsm.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5831 | ieeefp.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5832 | inet/mib2.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5833 | io.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5834 | jpeglib.h \ |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 5835 | kstat.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 5836 | lber.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5837 | lcms.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5838 | lcms/lcms.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 5839 | ldap.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5840 | link.h \ |
| 5841 | linux/cdrom.h \ |
| 5842 | linux/compiler.h \ |
| 5843 | linux/hdreg.h \ |
| 5844 | linux/input.h \ |
| 5845 | linux/ioctl.h \ |
| 5846 | linux/joystick.h \ |
| 5847 | linux/major.h \ |
| 5848 | linux/param.h \ |
| 5849 | linux/serial.h \ |
Francois Gouget | da1a352 | 2008-12-28 10:35:02 +0100 | [diff] [blame] | 5850 | linux/types.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5851 | linux/ucdrom.h \ |
Ken Thomases | d35c0e8 | 2009-03-11 09:05:53 -0500 | [diff] [blame] | 5852 | mach-o/nlist.h \ |
Austin English | 95740b3 | 2010-10-08 00:33:52 -0700 | [diff] [blame] | 5853 | mach-o/loader.h \ |
Alexandre Julliard | 150b5dc | 2006-12-29 20:02:02 +0100 | [diff] [blame] | 5854 | mach/mach.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 5855 | mach/machine.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5856 | machine/cpu.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 5857 | machine/limits.h \ |
Austin English | 40b3d2e | 2010-05-23 21:18:17 -0500 | [diff] [blame] | 5858 | machine/sysarch.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5859 | mntent.h \ |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 5860 | mpg123.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5861 | ncurses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5862 | netdb.h \ |
| 5863 | netinet/in.h \ |
| 5864 | netinet/in_systm.h \ |
| 5865 | netinet/tcp.h \ |
| 5866 | netinet/tcp_fsm.h \ |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 5867 | openssl/err.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5868 | openssl/ssl.h \ |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 5869 | png.h \ |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 5870 | poll.h \ |
Albert Lee | 01b972d | 2009-11-20 18:35:26 -0500 | [diff] [blame] | 5871 | port.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5872 | process.h \ |
| 5873 | pthread.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5874 | pwd.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5875 | sched.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5876 | scsi/scsi.h \ |
| 5877 | scsi/scsi_ioctl.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5878 | scsi/sg.h \ |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 5879 | stdbool.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5880 | stdint.h \ |
| 5881 | strings.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5882 | stropts.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5883 | sys/asoundlib.h \ |
Charles Davis | 4e44e15 | 2011-01-18 13:09:44 -0700 | [diff] [blame] | 5884 | sys/attr.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5885 | sys/cdio.h \ |
| 5886 | sys/elf32.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5887 | sys/epoll.h \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 5888 | sys/event.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5889 | sys/exec_elf.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5890 | sys/filio.h \ |
Alexandre Julliard | 61a7036 | 2009-06-26 15:45:03 +0200 | [diff] [blame] | 5891 | sys/inotify.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5892 | sys/ioctl.h \ |
| 5893 | sys/ipc.h \ |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 5894 | sys/limits.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5895 | sys/link.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5896 | sys/mman.h \ |
| 5897 | sys/modem.h \ |
| 5898 | sys/msg.h \ |
Hans Leidekker | 0844b70 | 2006-01-26 13:23:08 +0100 | [diff] [blame] | 5899 | sys/mtio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5900 | sys/param.h \ |
| 5901 | sys/poll.h \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 5902 | sys/prctl.h \ |
Austin English | 94021a1 | 2009-01-20 17:42:53 -0600 | [diff] [blame] | 5903 | sys/protosw.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5904 | sys/ptrace.h \ |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 5905 | sys/resource.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5906 | sys/scsiio.h \ |
| 5907 | sys/shm.h \ |
| 5908 | sys/signal.h \ |
| 5909 | sys/socket.h \ |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5910 | sys/socketvar.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5911 | sys/sockio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5912 | sys/statvfs.h \ |
| 5913 | sys/strtio.h \ |
| 5914 | sys/syscall.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5915 | sys/tihdr.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5916 | sys/time.h \ |
Austin English | 8b19591 | 2009-01-21 21:59:11 -0600 | [diff] [blame] | 5917 | sys/timeout.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5918 | sys/times.h \ |
| 5919 | sys/uio.h \ |
| 5920 | sys/un.h \ |
Alexandre Julliard | 66eb4bd | 2008-12-09 19:33:06 +0100 | [diff] [blame] | 5921 | sys/utsname.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5922 | sys/vm86.h \ |
| 5923 | sys/wait.h \ |
| 5924 | syscall.h \ |
| 5925 | termios.h \ |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 5926 | tiffio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5927 | unistd.h \ |
| 5928 | utime.h \ |
John Reiser | 0a2c94e | 2008-07-24 13:31:53 -0700 | [diff] [blame] | 5929 | valgrind/memcheck.h \ |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 5930 | valgrind/valgrind.h \ |
| 5931 | zlib.h |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5932 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5933 | do : |
| 5934 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5935 | 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] | 5936 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5937 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5938 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5939 | _ACEOF |
| 5940 | |
| 5941 | fi |
| 5942 | |
| 5943 | done |
| 5944 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5945 | { $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] | 5946 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5947 | if ${ac_cv_header_stat_broken+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5948 | $as_echo_n "(cached) " >&6 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5949 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5951 | /* end confdefs.h. */ |
| 5952 | #include <sys/types.h> |
| 5953 | #include <sys/stat.h> |
| 5954 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5955 | #if defined S_ISBLK && defined S_IFDIR |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5956 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5957 | #endif |
| 5958 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5959 | #if defined S_ISBLK && defined S_IFCHR |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5960 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5961 | #endif |
| 5962 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5963 | #if defined S_ISLNK && defined S_IFREG |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5964 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5965 | #endif |
| 5966 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5967 | #if defined S_ISSOCK && defined S_IFREG |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5968 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5969 | #endif |
| 5970 | |
| 5971 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5972 | if ac_fn_c_try_compile "$LINENO"; then : |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5973 | ac_cv_header_stat_broken=no |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5974 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5975 | ac_cv_header_stat_broken=yes |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5976 | fi |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5978 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5979 | { $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] | 5980 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5981 | if test $ac_cv_header_stat_broken = yes; then |
| 5982 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5983 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5984 | |
| 5985 | fi |
| 5986 | |
| 5987 | |
| 5988 | |
Austin English | 51094be | 2008-12-27 14:53:53 -0600 | [diff] [blame] | 5989 | 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] | 5990 | do : |
| 5991 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5992 | 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] | 5993 | #ifdef HAVE_SYS_PARAM_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5994 | # include <sys/param.h> |
| 5995 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5996 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5997 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5998 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5999 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6000 | _ACEOF |
| 6001 | |
| 6002 | fi |
| 6003 | |
| 6004 | done |
| 6005 | |
| 6006 | |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 6007 | for ac_header in \ |
| 6008 | netinet/ip.h \ |
| 6009 | net/if.h \ |
| 6010 | net/if_arp.h \ |
| 6011 | net/if_dl.h \ |
| 6012 | net/if_types.h \ |
| 6013 | net/route.h \ |
| 6014 | netinet/if_ether.h \ |
Austin English | 337067a | 2009-01-22 10:44:06 -0600 | [diff] [blame] | 6015 | netinet/if_inarp.h \ |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 6016 | netinet/in_pcb.h \ |
| 6017 | netinet/ip_icmp.h \ |
| 6018 | netinet/ip_var.h \ |
| 6019 | netinet/udp.h \ |
| 6020 | netipx/ipx.h \ |
| 6021 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6022 | do : |
| 6023 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6024 | 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] | 6025 | #ifdef HAVE_SYS_SOCKET_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6026 | # include <sys/socket.h> |
| 6027 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6028 | #ifdef HAVE_SYS_SOCKETVAR_H |
Ken Thomases | a609fee | 2007-10-19 16:18:17 -0500 | [diff] [blame] | 6029 | # include <sys/socketvar.h> |
| 6030 | #endif |
Austin English | bb3f258 | 2009-01-26 23:34:42 -0600 | [diff] [blame] | 6031 | #ifdef HAVE_NET_ROUTE_H |
| 6032 | # include <net/route.h> |
| 6033 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6034 | #ifdef HAVE_NETINET_IN_H |
Ken Thomases | ffd78b1 | 2007-10-19 16:18:27 -0500 | [diff] [blame] | 6035 | # include <netinet/in.h> |
| 6036 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 6037 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 6038 | # include <netinet/in_systm.h> |
| 6039 | #endif |
Alexandre Julliard | d7e846c | 2009-01-30 14:01:12 +0100 | [diff] [blame] | 6040 | #ifdef HAVE_NET_IF_H |
| 6041 | # include <net/if.h> |
| 6042 | #endif |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 6043 | #ifdef HAVE_NETINET_IP_H |
| 6044 | # include <netinet/ip.h> |
| 6045 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6046 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6047 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6048 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6049 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6050 | _ACEOF |
| 6051 | |
| 6052 | fi |
| 6053 | |
| 6054 | done |
| 6055 | |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6056 | |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 6057 | 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] | 6058 | do : |
| 6059 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6060 | 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] | 6061 | #ifdef HAVE_ALIAS_H |
| 6062 | # include <alias.h> |
| 6063 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6064 | #ifdef HAVE_SYS_SOCKET_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6065 | # include <sys/socket.h> |
| 6066 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6067 | #ifdef HAVE_SYS_SOCKETVAR_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6068 | # include <sys/socketvar.h> |
| 6069 | #endif |
Austin English | 53d3c46 | 2009-01-26 23:47:49 -0600 | [diff] [blame] | 6070 | #ifdef HAVE_SYS_TIMEOUT_H |
| 6071 | # include <sys/timeout.h> |
| 6072 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6073 | #ifdef HAVE_NETINET_IN_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6074 | # include <netinet/in.h> |
| 6075 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 6076 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 6077 | # include <netinet/in_systm.h> |
| 6078 | #endif |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 6079 | #ifdef HAVE_NETINET_IP_H |
| 6080 | # include <netinet/ip.h> |
| 6081 | #endif |
Eric Durbin | 6d4eab9 | 2008-06-24 22:44:13 -0500 | [diff] [blame] | 6082 | #ifdef HAVE_NETINET_IP_VAR_H |
| 6083 | # include <netinet/ip_var.h> |
| 6084 | #endif |
Eric Durbin | 020b0ef | 2008-06-24 22:45:51 -0500 | [diff] [blame] | 6085 | #ifdef HAVE_NETINET_IP_ICMP_H |
| 6086 | # include <netinet/ip_icmp.h> |
| 6087 | #endif |
Eric Durbin | 6d4eab9 | 2008-06-24 22:44:13 -0500 | [diff] [blame] | 6088 | #ifdef HAVE_NETINET_UDP_H |
| 6089 | # include <netinet/udp.h> |
| 6090 | #endif |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6091 | #ifdef HAVE_NETINET_TCP_H |
| 6092 | # include <netinet/tcp.h> |
| 6093 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 6094 | #ifdef HAVE_NETINET_TCP_TIMER_H |
| 6095 | #include <netinet/tcp_timer.h> |
| 6096 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6097 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6098 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6099 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6100 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6101 | _ACEOF |
| 6102 | |
| 6103 | fi |
| 6104 | |
| 6105 | done |
| 6106 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6107 | |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 6108 | for ac_header in linux/ipx.h linux/irda.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6109 | do : |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 6110 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6111 | 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] | 6112 | #ifdef HAVE_ASM_TYPES_H |
| 6113 | # include <asm/types.h> |
| 6114 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6115 | #ifdef HAVE_SYS_SOCKET_H |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6116 | # include <sys/socket.h> |
| 6117 | #endif |
Francois Gouget | da1a352 | 2008-12-28 10:35:02 +0100 | [diff] [blame] | 6118 | #ifdef HAVE_LINUX_TYPES_H |
| 6119 | # include <linux/types.h> |
| 6120 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6121 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6122 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6123 | cat >>confdefs.h <<_ACEOF |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 6124 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6125 | _ACEOF |
| 6126 | |
| 6127 | fi |
| 6128 | |
| 6129 | done |
| 6130 | |
| 6131 | |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6132 | for ac_header in mach-o/dyld_images.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6133 | do : |
| 6134 | 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] | 6135 | # include <stdbool.h> |
| 6136 | #endif |
| 6137 | #ifdef HAVE_STDINT_H |
| 6138 | # include <stdint.h> |
| 6139 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6140 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6141 | if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then : |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6142 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6143 | #define HAVE_MACH_O_DYLD_IMAGES_H 1 |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6144 | _ACEOF |
| 6145 | |
| 6146 | fi |
| 6147 | |
| 6148 | done |
| 6149 | |
| 6150 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6151 | for ac_header in resolv.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6152 | do : |
| 6153 | 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] | 6154 | #ifdef HAVE_SYS_SOCKET_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6155 | # include <sys/socket.h> |
| 6156 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6157 | #ifdef HAVE_NETINET_IN_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6158 | # include <netinet/in.h> |
| 6159 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6160 | #ifdef HAVE_ARPA_NAMESER_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6161 | # include <arpa/nameser.h> |
| 6162 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6163 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6164 | if test "x$ac_cv_header_resolv_h" = xyes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6165 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6166 | #define HAVE_RESOLV_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6167 | _ACEOF |
| 6168 | |
| 6169 | fi |
| 6170 | |
| 6171 | done |
| 6172 | |
| 6173 | |
Juan Lang | e3c0e30 | 2010-03-11 18:36:46 -0800 | [diff] [blame] | 6174 | for ac_header in ifaddrs.h |
| 6175 | do : |
| 6176 | ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h> |
| 6177 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6178 | if test "x$ac_cv_header_ifaddrs_h" = xyes; then : |
Juan Lang | e3c0e30 | 2010-03-11 18:36:46 -0800 | [diff] [blame] | 6179 | cat >>confdefs.h <<_ACEOF |
| 6180 | #define HAVE_IFADDRS_H 1 |
| 6181 | _ACEOF |
| 6182 | |
| 6183 | fi |
| 6184 | |
| 6185 | done |
| 6186 | |
| 6187 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6188 | for ac_header in ucontext.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6189 | do : |
| 6190 | ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h> |
| 6191 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6192 | if test "x$ac_cv_header_ucontext_h" = xyes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6193 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6194 | #define HAVE_UCONTEXT_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6195 | _ACEOF |
| 6196 | |
| 6197 | fi |
| 6198 | |
| 6199 | done |
| 6200 | |
| 6201 | |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6202 | for ac_header in sys/thr.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6203 | do : |
| 6204 | 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] | 6205 | #ifdef HAVE_UCONTEXT_H |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6206 | #include <ucontext.h> |
| 6207 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6208 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6209 | if test "x$ac_cv_header_sys_thr_h" = xyes; then : |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6210 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6211 | #define HAVE_SYS_THR_H 1 |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6212 | _ACEOF |
| 6213 | |
| 6214 | fi |
| 6215 | |
| 6216 | done |
| 6217 | |
| 6218 | |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6219 | for ac_header in pthread_np.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6220 | do : |
| 6221 | 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] | 6222 | #include <pthread.h> |
| 6223 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6224 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6225 | if test "x$ac_cv_header_pthread_np_h" = xyes; then : |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6226 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6227 | #define HAVE_PTHREAD_NP_H 1 |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6228 | _ACEOF |
| 6229 | |
| 6230 | fi |
| 6231 | |
| 6232 | done |
| 6233 | |
| 6234 | |
Rafał Mużyło | 898d8ab | 2011-07-14 21:38:14 +0200 | [diff] [blame] | 6235 | for ac_header in linux/videodev.h linux/videodev2.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6236 | do : |
Rafał Mużyło | 898d8ab | 2011-07-14 21:38:14 +0200 | [diff] [blame] | 6237 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6238 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6239 | #include <sys/time.h> |
| 6240 | #endif |
| 6241 | #include <sys/types.h> |
| 6242 | #ifdef HAVE_ASM_TYPES_H |
| 6243 | #include <asm/types.h> |
| 6244 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6245 | " |
Rafał Mużyło | 898d8ab | 2011-07-14 21:38:14 +0200 | [diff] [blame] | 6246 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6247 | cat >>confdefs.h <<_ACEOF |
Rafał Mużyło | 898d8ab | 2011-07-14 21:38:14 +0200 | [diff] [blame] | 6248 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6249 | _ACEOF |
| 6250 | |
| 6251 | fi |
| 6252 | |
| 6253 | done |
| 6254 | |
| 6255 | |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6256 | for ac_header in linux/capi.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6257 | do : |
| 6258 | ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user |
| 6259 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6260 | if test "x$ac_cv_header_linux_capi_h" = xyes; then : |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6261 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6262 | #define HAVE_LINUX_CAPI_H 1 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6263 | _ACEOF |
| 6264 | |
| 6265 | fi |
| 6266 | |
| 6267 | done |
| 6268 | |
| 6269 | |
| 6270 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6271 | DLLEXT="" |
| 6272 | |
| 6273 | DLLFLAGS="-D_REENTRANT" |
| 6274 | |
| 6275 | LDSHARED="" |
| 6276 | |
| 6277 | LDDLLFLAGS="" |
| 6278 | |
| 6279 | LIBEXT="so" |
| 6280 | |
| 6281 | IMPLIBEXT="def" |
| 6282 | |
| 6283 | LDRPATH_INSTALL="" |
| 6284 | |
| 6285 | LDRPATH_LOCAL="" |
| 6286 | |
Alexandre Julliard | 950a0f8 | 2010-01-26 21:10:14 +0100 | [diff] [blame] | 6287 | STATIC_IMPLIBEXT="def.a" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6288 | # Extract the first word of "ldd", so it can be a program name with args. |
| 6289 | set dummy ldd; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6291 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6292 | if ${ac_cv_path_LDD+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6293 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6294 | else |
| 6295 | case $LDD in |
| 6296 | [\\/]* | ?:[\\/]*) |
| 6297 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 6298 | ;; |
| 6299 | *) |
| 6300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6301 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 6302 | for as_dir in $as_dummy |
| 6303 | do |
| 6304 | IFS=$as_save_IFS |
| 6305 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6306 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6307 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6308 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6309 | $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] | 6310 | break 2 |
| 6311 | fi |
| 6312 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6313 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6314 | IFS=$as_save_IFS |
| 6315 | |
| 6316 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 6317 | ;; |
| 6318 | esac |
| 6319 | fi |
| 6320 | LDD=$ac_cv_path_LDD |
| 6321 | if test -n "$LDD"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6323 | $as_echo "$LDD" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6324 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6326 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6327 | fi |
| 6328 | |
| 6329 | |
| 6330 | |
| 6331 | case $host_os in |
| 6332 | cygwin*|mingw32*) |
| 6333 | if test -n "$ac_tool_prefix"; then |
| 6334 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 6335 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6337 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6338 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6339 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6340 | else |
| 6341 | if test -n "$DLLTOOL"; then |
| 6342 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 6343 | else |
| 6344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6345 | for as_dir in $PATH |
| 6346 | do |
| 6347 | IFS=$as_save_IFS |
| 6348 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6349 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6350 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6351 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6352 | $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] | 6353 | break 2 |
| 6354 | fi |
| 6355 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6356 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6357 | IFS=$as_save_IFS |
| 6358 | |
| 6359 | fi |
| 6360 | fi |
| 6361 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 6362 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6364 | $as_echo "$DLLTOOL" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6365 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6367 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6368 | fi |
| 6369 | |
| 6370 | |
| 6371 | fi |
| 6372 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 6373 | ac_ct_DLLTOOL=$DLLTOOL |
| 6374 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 6375 | set dummy dlltool; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6377 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6378 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6379 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6380 | else |
| 6381 | if test -n "$ac_ct_DLLTOOL"; then |
| 6382 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 6383 | else |
| 6384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6385 | for as_dir in $PATH |
| 6386 | do |
| 6387 | IFS=$as_save_IFS |
| 6388 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6389 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6391 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6392 | $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] | 6393 | break 2 |
| 6394 | fi |
| 6395 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6396 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6397 | IFS=$as_save_IFS |
| 6398 | |
| 6399 | fi |
| 6400 | fi |
| 6401 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 6402 | if test -n "$ac_ct_DLLTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6404 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6405 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6407 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6408 | fi |
| 6409 | |
| 6410 | if test "x$ac_ct_DLLTOOL" = x; then |
| 6411 | DLLTOOL="false" |
| 6412 | else |
| 6413 | case $cross_compiling:$ac_tool_warned in |
| 6414 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6415 | { $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] | 6416 | $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] | 6417 | ac_tool_warned=yes ;; |
| 6418 | esac |
| 6419 | DLLTOOL=$ac_ct_DLLTOOL |
| 6420 | fi |
| 6421 | else |
| 6422 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 6423 | fi |
| 6424 | |
| 6425 | if test -n "$ac_tool_prefix"; then |
| 6426 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 6427 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6429 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6430 | if ${ac_cv_prog_DLLWRAP+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6431 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6432 | else |
| 6433 | if test -n "$DLLWRAP"; then |
| 6434 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 6435 | else |
| 6436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6437 | for as_dir in $PATH |
| 6438 | do |
| 6439 | IFS=$as_save_IFS |
| 6440 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6441 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6443 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6444 | $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] | 6445 | break 2 |
| 6446 | fi |
| 6447 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6448 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6449 | IFS=$as_save_IFS |
| 6450 | |
| 6451 | fi |
| 6452 | fi |
| 6453 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 6454 | if test -n "$DLLWRAP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6456 | $as_echo "$DLLWRAP" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6457 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6459 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6460 | fi |
| 6461 | |
| 6462 | |
| 6463 | fi |
| 6464 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 6465 | ac_ct_DLLWRAP=$DLLWRAP |
| 6466 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 6467 | set dummy dllwrap; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6469 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6470 | if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6471 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6472 | else |
| 6473 | if test -n "$ac_ct_DLLWRAP"; then |
| 6474 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 6475 | else |
| 6476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6477 | for as_dir in $PATH |
| 6478 | do |
| 6479 | IFS=$as_save_IFS |
| 6480 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6481 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6482 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6483 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6484 | $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] | 6485 | break 2 |
| 6486 | fi |
| 6487 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6488 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6489 | IFS=$as_save_IFS |
| 6490 | |
| 6491 | fi |
| 6492 | fi |
| 6493 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 6494 | if test -n "$ac_ct_DLLWRAP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6496 | $as_echo "$ac_ct_DLLWRAP" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6497 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6499 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6500 | fi |
| 6501 | |
| 6502 | if test "x$ac_ct_DLLWRAP" = x; then |
| 6503 | DLLWRAP="false" |
| 6504 | else |
| 6505 | case $cross_compiling:$ac_tool_warned in |
| 6506 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6507 | { $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] | 6508 | $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] | 6509 | ac_tool_warned=yes ;; |
| 6510 | esac |
| 6511 | DLLWRAP=$ac_ct_DLLWRAP |
| 6512 | fi |
| 6513 | else |
| 6514 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 6515 | fi |
| 6516 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6517 | if test "$DLLWRAP" = "false"; then |
| 6518 | LIBEXT="a" |
| 6519 | else |
| 6520 | LIBEXT="dll" |
| 6521 | fi |
| 6522 | IMPLIBEXT="a" |
Alexandre Julliard | 950a0f8 | 2010-01-26 21:10:14 +0100 | [diff] [blame] | 6523 | STATIC_IMPLIBEXT="a" |
Alexandre Julliard | ec1ebfb | 2008-09-04 12:29:07 +0200 | [diff] [blame] | 6524 | enable_iphlpapi=${enable_iphlpapi:-no} |
| 6525 | enable_kernel32=${enable_kernel32:-no} |
| 6526 | enable_msvcrt=${enable_msvcrt:-no} |
| 6527 | enable_ntdll=${enable_ntdll:-no} |
| 6528 | enable_ws2_32=${enable_ws2_32:-no} |
| 6529 | enable_loader=${enable_loader:-no} |
| 6530 | enable_server=${enable_server:-no} |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 6531 | with_x=${with_x:-no} |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 6532 | with_pthread=${with_pthread:-no} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6533 | ;; |
| 6534 | darwin*|macosx*) |
| 6535 | DLLEXT=".so" |
| 6536 | LIBEXT="dylib" |
| 6537 | DLLFLAGS="$DLLFLAGS -fPIC" |
| 6538 | LDDLLFLAGS="-bundle -multiply_defined suppress" |
| 6539 | LIBWINE_LDFLAGS="-multiply_defined suppress" |
| 6540 | LDSHARED="\$(CC) -dynamiclib" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6541 | LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@" |
Alexandre Julliard | 45db348 | 2011-03-14 14:25:45 +0100 | [diff] [blame] | 6542 | COREFOUNDATIONLIB="-framework CoreFoundation" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6543 | |
| 6544 | IOKITLIB="-framework IOKit -framework CoreFoundation" |
| 6545 | |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 6546 | APPLICATIONSERVICESLIB="-framework ApplicationServices" |
| 6547 | |
Ken Thomases | cd454fd | 2012-03-14 16:49:47 -0500 | [diff] [blame] | 6548 | CORESERVICESLIB="-framework CoreServices" |
| 6549 | |
Camillo Lugaresi | 0b5dcba | 2011-08-02 04:31:53 +0200 | [diff] [blame] | 6550 | case $host_os in |
| 6551 | darwin11*) |
| 6552 | LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000" |
| 6553 | ;; |
| 6554 | *) |
| 6555 | LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000" |
| 6556 | ;; |
| 6557 | esac |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6558 | if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes" |
| 6559 | then |
| 6560 | DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation" |
| 6561 | |
| 6562 | fi |
Alexandre Julliard | 45db348 | 2011-03-14 14:25:45 +0100 | [diff] [blame] | 6563 | if test "$ac_cv_header_Security_Security_h" = "yes" |
| 6564 | then |
| 6565 | SECURITYLIB="-framework Security -framework CoreFoundation" |
| 6566 | |
Charles Davis | 65634bc | 2011-10-26 22:57:30 -0600 | [diff] [blame] | 6567 | ac_save_LIBS="$LIBS" |
| 6568 | LIBS="$LIBS $SECURITYLIB" |
| 6569 | for ac_func in SSLCopyPeerCertificates |
| 6570 | do : |
| 6571 | ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates" |
| 6572 | if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then : |
| 6573 | cat >>confdefs.h <<_ACEOF |
| 6574 | #define HAVE_SSLCOPYPEERCERTIFICATES 1 |
| 6575 | _ACEOF |
| 6576 | |
| 6577 | fi |
| 6578 | done |
| 6579 | |
| 6580 | LIBS="$ac_save_LIBS" |
Alexandre Julliard | 45db348 | 2011-03-14 14:25:45 +0100 | [diff] [blame] | 6581 | with_gnutls=${with_gnutls:-no} |
| 6582 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6583 | if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes" |
| 6584 | then |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 6585 | if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes" |
| 6586 | then |
| 6587 | COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6588 | |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 6589 | else |
| 6590 | COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI" |
| 6591 | |
| 6592 | fi |
Charles Davis | b149d7b | 2011-01-29 16:45:54 -0700 | [diff] [blame] | 6593 | ac_save_LIBS="$LIBS" |
| 6594 | LIBS="$LIBS $COREAUDIO" |
| 6595 | for ac_func in AUGraphAddNode |
| 6596 | do : |
| 6597 | ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6598 | if test "x$ac_cv_func_AUGraphAddNode" = xyes; then : |
Charles Davis | b149d7b | 2011-01-29 16:45:54 -0700 | [diff] [blame] | 6599 | cat >>confdefs.h <<_ACEOF |
| 6600 | #define HAVE_AUGRAPHADDNODE 1 |
| 6601 | _ACEOF |
| 6602 | |
| 6603 | fi |
| 6604 | done |
| 6605 | |
| 6606 | LIBS="$ac_save_LIBS" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6607 | fi |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6608 | if test "$ac_cv_header_OpenAL_al_h" = "yes" |
| 6609 | then |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 6610 | FRAMEWORK_OPENAL="-framework OpenAL" |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6611 | |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 6612 | |
| 6613 | cat >>confdefs.h <<_ACEOF |
| 6614 | #define HAVE_OPENAL 1 |
| 6615 | _ACEOF |
| 6616 | |
| 6617 | ac_cv_lib_openal=yes |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6618 | fi |
Alexandre Julliard | fac6741 | 2010-12-03 14:16:55 +0100 | [diff] [blame] | 6619 | if test "$ac_cv_header_OpenCL_opencl_h" = "yes" |
| 6620 | then |
| 6621 | LIBOPENCL="-framework OpenCL" |
| 6622 | |
| 6623 | ac_cv_lib_OpenCL_clGetPlatformInfo=yes |
| 6624 | fi |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6625 | if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes" |
| 6626 | then |
| 6627 | ac_save_LIBS="$LIBS" |
| 6628 | LIBS="$LIBS $IOKITLIB" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6629 | for ac_func in IOHIDManagerCreate |
| 6630 | do : |
| 6631 | ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6632 | if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then : |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6633 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6634 | #define HAVE_IOHIDMANAGERCREATE 1 |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6635 | _ACEOF |
| 6636 | |
| 6637 | fi |
| 6638 | done |
| 6639 | |
| 6640 | LIBS="$ac_save_LIBS" |
| 6641 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6642 | case $host_cpu in |
| 6643 | *powerpc*) |
| 6644 | LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;; |
| 6645 | esac |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 6646 | if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes" |
| 6647 | then |
| 6648 | QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo" |
| 6649 | |
| 6650 | enable_wineqtdecoder=${enable_wineqtdecoder:-yes} |
| 6651 | else |
| 6652 | as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported." |
| 6653 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6654 | if test "$ac_cv_header_Carbon_Carbon_h" = "yes" |
| 6655 | then |
| 6656 | CARBONLIB="-framework Carbon" |
| 6657 | |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 6658 | enable_winequartz_drv=${enable_winequartz_drv:-yes} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6659 | fi |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6660 | if test "x$enable_win16" = "xyes" |
| 6661 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6662 | { $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] | 6663 | $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] | 6664 | if test "$cross_compiling" = yes; then : |
| 6665 | { $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] | 6666 | $as_echo "cross-compiling, assuming yes" >&6; } |
| 6667 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6669 | /* end confdefs.h. */ |
| 6670 | asm(".text\n" |
| 6671 | "bad:\tnop;nop\n" |
| 6672 | "good:\tnop;nop\n\t" |
| 6673 | ".globl _testfunc\n" |
| 6674 | "_testfunc:\tcallw good"); |
| 6675 | extern void testfunc(); |
| 6676 | int |
| 6677 | main () |
| 6678 | { |
| 6679 | unsigned short *p = (unsigned short *)testfunc; |
| 6680 | return p[0] != 0xe866 || p[1] != 0xfffa |
| 6681 | ; |
| 6682 | return 0; |
| 6683 | } |
| 6684 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6685 | if ac_fn_c_try_run "$LINENO"; then : |
| 6686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6687 | $as_echo "yes" >&6; } |
| 6688 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6690 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6691 | 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] | 6692 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6693 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6694 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6695 | fi |
| 6696 | |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6697 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6698 | ;; |
| 6699 | *) |
| 6700 | DLLFLAGS="$DLLFLAGS -fPIC" |
| 6701 | DLLEXT=".so" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6702 | { $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] | 6703 | $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6704 | if ${ac_cv_c_dll_gnuelf+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6705 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6706 | else |
| 6707 | ac_wine_try_cflags_saved=$CFLAGS |
| 6708 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6710 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6711 | void myfunc() {} |
| 6712 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6713 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6714 | ac_cv_c_dll_gnuelf="yes" |
| 6715 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6716 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6717 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6718 | rm -f core conftest.err conftest.$ac_objext \ |
| 6719 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6720 | CFLAGS=$ac_wine_try_cflags_saved |
| 6721 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6722 | { $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] | 6723 | $as_echo "$ac_cv_c_dll_gnuelf" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6724 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 6725 | then |
| 6726 | LDSHARED="\$(CC) -shared" |
| 6727 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6728 | { $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] | 6729 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6730 | if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6731 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6732 | else |
| 6733 | ac_wine_try_cflags_saved=$CFLAGS |
| 6734 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6736 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6737 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6738 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6739 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6740 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes |
| 6741 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6742 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6743 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6744 | rm -f core conftest.err conftest.$ac_objext \ |
| 6745 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6746 | CFLAGS=$ac_wine_try_cflags_saved |
| 6747 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6748 | { $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] | 6749 | $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] | 6750 | 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] | 6751 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 6752 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6753 | { $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] | 6754 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6755 | if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6756 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6757 | else |
| 6758 | ac_wine_try_cflags_saved=$CFLAGS |
| 6759 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6761 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6762 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6763 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6764 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6765 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes |
| 6766 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6767 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6768 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6769 | rm -f core conftest.err conftest.$ac_objext \ |
| 6770 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6771 | CFLAGS=$ac_wine_try_cflags_saved |
| 6772 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6773 | { $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] | 6774 | $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] | 6775 | 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] | 6776 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)" |
| 6777 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6778 | fi |
| 6779 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6780 | { $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] | 6781 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6782 | if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6783 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6784 | else |
| 6785 | ac_wine_try_cflags_saved=$CFLAGS |
| 6786 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6788 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6789 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6790 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6791 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6792 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes |
| 6793 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6794 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6795 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6796 | rm -f core conftest.err conftest.$ac_objext \ |
| 6797 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6798 | CFLAGS=$ac_wine_try_cflags_saved |
| 6799 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6800 | { $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] | 6801 | $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6802 | 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] | 6803 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
| 6804 | fi |
| 6805 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6806 | { $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] | 6807 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6808 | if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6809 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6810 | else |
| 6811 | ac_wine_try_cflags_saved=$CFLAGS |
| 6812 | 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] | 6813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6814 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6815 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6816 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6817 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6818 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes |
| 6819 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6820 | 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] | 6821 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6822 | rm -f core conftest.err conftest.$ac_objext \ |
| 6823 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6824 | CFLAGS=$ac_wine_try_cflags_saved |
| 6825 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6826 | { $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] | 6827 | $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] | 6828 | 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] | 6829 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 6830 | fi |
| 6831 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6832 | echo '{ global: *; };' >conftest.map |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6833 | { $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] | 6834 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; } |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6835 | if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6836 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6837 | else |
| 6838 | ac_wine_try_cflags_saved=$CFLAGS |
| 6839 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6841 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6842 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6843 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6844 | if ac_fn_c_try_link "$LINENO"; then : |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6845 | ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6846 | else |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6847 | ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6848 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6849 | rm -f core conftest.err conftest.$ac_objext \ |
| 6850 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6851 | CFLAGS=$ac_wine_try_cflags_saved |
| 6852 | fi |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5 |
| 6854 | $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; } |
| 6855 | if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6856 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" |
| 6857 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6858 | rm -f conftest.map |
| 6859 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6860 | { $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] | 6861 | $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6862 | if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6863 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6864 | else |
| 6865 | ac_wine_try_cflags_saved=$CFLAGS |
| 6866 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6868 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6869 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6870 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6871 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6872 | ac_cv_cflags__fPIC__Wl___export_dynamic=yes |
| 6873 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6874 | ac_cv_cflags__fPIC__Wl___export_dynamic=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6875 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6876 | rm -f core conftest.err conftest.$ac_objext \ |
| 6877 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6878 | CFLAGS=$ac_wine_try_cflags_saved |
| 6879 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6880 | { $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] | 6881 | $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6882 | if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6883 | LDEXECFLAGS="-Wl,--export-dynamic" |
| 6884 | |
| 6885 | fi |
| 6886 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6887 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh` |
| 6888 | { $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] | 6889 | $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6890 | if eval \${$as_ac_var+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6891 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6892 | else |
| 6893 | ac_wine_try_cflags_saved=$CFLAGS |
| 6894 | CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6896 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6897 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6898 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6899 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6900 | eval "$as_ac_var=yes" |
| 6901 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6902 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6903 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6904 | rm -f core conftest.err conftest.$ac_objext \ |
| 6905 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6906 | CFLAGS=$ac_wine_try_cflags_saved |
| 6907 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6908 | eval ac_res=\$$as_ac_var |
| 6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6910 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6911 | 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] | 6912 | LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6913 | LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6914 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6915 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh` |
| 6916 | { $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] | 6917 | $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6918 | if eval \${$as_ac_var+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6919 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6920 | else |
| 6921 | ac_wine_try_cflags_saved=$CFLAGS |
| 6922 | CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6924 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6925 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6926 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6927 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6928 | eval "$as_ac_var=yes" |
| 6929 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6930 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6931 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6932 | rm -f core conftest.err conftest.$ac_objext \ |
| 6933 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6934 | CFLAGS=$ac_wine_try_cflags_saved |
| 6935 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6936 | eval ac_res=\$$as_ac_var |
| 6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6938 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6939 | 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] | 6940 | LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6941 | LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6942 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6943 | fi |
| 6944 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6945 | { $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] | 6946 | $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6947 | if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6948 | $as_echo_n "(cached) " >&6 |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6949 | else |
| 6950 | ac_wine_try_cflags_saved=$CFLAGS |
| 6951 | CFLAGS="$CFLAGS -Wl,--enable-new-dtags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6953 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6954 | int main(int argc, char **argv) { return 0; } |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6955 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6956 | if ac_fn_c_try_link "$LINENO"; then : |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6957 | ac_cv_cflags__Wl___enable_new_dtags=yes |
| 6958 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6959 | ac_cv_cflags__Wl___enable_new_dtags=no |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6960 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6961 | rm -f core conftest.err conftest.$ac_objext \ |
| 6962 | conftest$ac_exeext conftest.$ac_ext |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6963 | CFLAGS=$ac_wine_try_cflags_saved |
| 6964 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6965 | { $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] | 6966 | $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6967 | if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then : |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6968 | LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags" |
| 6969 | fi |
| 6970 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6971 | case $host_cpu in |
| 6972 | *i[3456789]86* | x86_64) |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6973 | { $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] | 6974 | $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; } |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6975 | if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6976 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6977 | else |
| 6978 | ac_wine_try_cflags_saved=$CFLAGS |
| 6979 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6981 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6982 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6983 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6984 | if ac_fn_c_try_link "$LINENO"; then : |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6985 | ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6986 | else |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6987 | ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6988 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6989 | rm -f core conftest.err conftest.$ac_objext \ |
| 6990 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6991 | CFLAGS=$ac_wine_try_cflags_saved |
| 6992 | fi |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5 |
| 6994 | $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; } |
| 6995 | if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then : |
Francois Gouget | 5f694dd | 2010-11-26 16:18:32 +0100 | [diff] [blame] | 6996 | case $host_os in |
Robert Millan | 535a55e | 2011-08-23 20:39:45 +0200 | [diff] [blame] | 6997 | freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;; |
Francois Gouget | 5f694dd | 2010-11-26 16:18:32 +0100 | [diff] [blame] | 6998 | *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;; |
| 6999 | esac |
| 7000 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7001 | fi |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 7002 | # Extract the first word of "prelink", so it can be a program name with args. |
| 7003 | set dummy prelink; ac_word=$2 |
| 7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7005 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7006 | if ${ac_cv_path_PRELINK+:} false; then : |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 7007 | $as_echo_n "(cached) " >&6 |
| 7008 | else |
| 7009 | case $PRELINK in |
| 7010 | [\\/]* | ?:[\\/]*) |
| 7011 | ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path. |
| 7012 | ;; |
| 7013 | *) |
| 7014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7015 | for as_dir in /sbin /usr/sbin $PATH |
| 7016 | do |
| 7017 | IFS=$as_save_IFS |
| 7018 | test -z "$as_dir" && as_dir=. |
| 7019 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 7020 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 7021 | ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext" |
| 7022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7023 | break 2 |
| 7024 | fi |
| 7025 | done |
| 7026 | done |
| 7027 | IFS=$as_save_IFS |
| 7028 | |
| 7029 | test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false" |
| 7030 | ;; |
| 7031 | esac |
| 7032 | fi |
| 7033 | PRELINK=$ac_cv_path_PRELINK |
| 7034 | if test -n "$PRELINK"; then |
| 7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5 |
| 7036 | $as_echo "$PRELINK" >&6; } |
| 7037 | else |
| 7038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7039 | $as_echo "no" >&6; } |
| 7040 | fi |
| 7041 | |
| 7042 | |
| 7043 | if test "x$PRELINK" = xfalse |
| 7044 | then |
| 7045 | as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly." |
| 7046 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7047 | ;; |
| 7048 | esac |
| 7049 | |
| 7050 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7051 | { $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] | 7052 | $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7053 | if ${ac_cv_c_dll_unixware+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7054 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7055 | else |
| 7056 | ac_wine_try_cflags_saved=$CFLAGS |
| 7057 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7059 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7060 | void myfunc() {} |
| 7061 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7062 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7063 | ac_cv_c_dll_unixware="yes" |
| 7064 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7065 | ac_cv_c_dll_unixware="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7066 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7067 | rm -f core conftest.err conftest.$ac_objext \ |
| 7068 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7069 | CFLAGS=$ac_wine_try_cflags_saved |
| 7070 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7071 | { $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] | 7072 | $as_echo "$ac_cv_c_dll_unixware" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7073 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 7074 | then |
| 7075 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
| 7076 | LDDLLFLAGS="-Wl,-G,-B,symbolic" |
| 7077 | |
| 7078 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7079 | { $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] | 7080 | $as_echo_n "checking whether we can build an HP-UX dll... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7081 | if ${ac_cv_c_dll_hpux+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7082 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7083 | else |
| 7084 | ac_wine_try_cflags_saved=$CFLAGS |
| 7085 | CFLAGS="$CFLAGS -shared" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7087 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7088 | void myfunc() {} |
| 7089 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7090 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7091 | ac_cv_c_dll_hpux="yes" |
| 7092 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7093 | ac_cv_c_dll_hpux="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7094 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7095 | rm -f core conftest.err conftest.$ac_objext \ |
| 7096 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7097 | CFLAGS=$ac_wine_try_cflags_saved |
| 7098 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7099 | { $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] | 7100 | $as_echo "$ac_cv_c_dll_hpux" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7101 | if test "$ac_cv_c_dll_hpux" = "yes" |
| 7102 | then |
| 7103 | LIBEXT="sl" |
| 7104 | DLLEXT=".sl" |
| 7105 | LDDLLFLAGS="-shared -fPIC" |
| 7106 | LDSHARED="\$(CC) -shared" |
| 7107 | fi |
| 7108 | fi |
| 7109 | fi |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7110 | ;; |
| 7111 | esac |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7112 | |
Aric Stewart | eefe6f6 | 2010-12-03 07:33:08 -0600 | [diff] [blame] | 7113 | enable_wineqtdecoder=${enable_wineqtdecoder:-no} |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7114 | enable_winequartz_drv=${enable_winequartz_drv:-no} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7115 | |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7116 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7117 | as_fn_error $? "could not find a way to build shared libraries. |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7118 | It is currently not possible to build Wine without shared library |
| 7119 | (.so) support to allow transparent switch between .so and .dll files. |
| 7120 | If you are using Linux, you will need a newer binutils. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7121 | " "$LINENO" 5 |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7122 | fi |
| 7123 | |
Alexandre Julliard | 7d2e772 | 2010-07-26 12:13:47 +0200 | [diff] [blame] | 7124 | CROSSTEST_DISABLE=\# |
| 7125 | |
| 7126 | 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] | 7127 | then |
Alexandre Julliard | a91fb21 | 2009-12-07 15:36:09 +0100 | [diff] [blame] | 7128 | case "$host_cpu" in |
| 7129 | i[3456789]86*) |
Damjan Jovanovic | 009ad8a | 2012-06-14 08:20:58 +0200 | [diff] [blame] | 7130 | 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 |
| 7131 | mingw32-gcc" ;; |
Alexandre Julliard | a91fb21 | 2009-12-07 15:36:09 +0100 | [diff] [blame] | 7132 | x86_64) |
Vincent Povirk | d210375 | 2010-10-11 15:55:40 -0500 | [diff] [blame] | 7133 | 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] | 7134 | *) |
| 7135 | ac_prefix_list="" ;; |
| 7136 | esac |
| 7137 | for ac_prog in $ac_prefix_list |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7138 | do |
| 7139 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7140 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7142 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7143 | if ${ac_cv_prog_CROSSCC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7144 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7145 | else |
| 7146 | if test -n "$CROSSCC"; then |
| 7147 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 7148 | else |
| 7149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7150 | for as_dir in $PATH |
| 7151 | do |
| 7152 | IFS=$as_save_IFS |
| 7153 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7154 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 7155 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7156 | ac_cv_prog_CROSSCC="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7157 | $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] | 7158 | break 2 |
| 7159 | fi |
| 7160 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7161 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7162 | IFS=$as_save_IFS |
| 7163 | |
| 7164 | fi |
| 7165 | fi |
| 7166 | CROSSCC=$ac_cv_prog_CROSSCC |
| 7167 | if test -n "$CROSSCC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7169 | $as_echo "$CROSSCC" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7170 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7172 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7173 | fi |
| 7174 | |
| 7175 | |
| 7176 | test -n "$CROSSCC" && break |
| 7177 | done |
| 7178 | test -n "$CROSSCC" || CROSSCC="false" |
| 7179 | |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7180 | if test "$CROSSCC" != "false" |
| 7181 | then |
Alexandre Julliard | c2a29db | 2010-08-04 13:16:19 +0200 | [diff] [blame] | 7182 | ac_save_CC="$CC" |
| 7183 | CC="$CROSSCC" |
| 7184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5 |
| 7185 | $as_echo_n "checking whether $CROSSCC works... " >&6; } |
| 7186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7187 | /* end confdefs.h. */ |
Alexandre Julliard | a2d88ab | 2009-05-30 17:08:06 +0200 | [diff] [blame] | 7188 | |
Alexandre Julliard | c2a29db | 2010-08-04 13:16:19 +0200 | [diff] [blame] | 7189 | int |
| 7190 | main () |
| 7191 | { |
| 7192 | |
| 7193 | ; |
| 7194 | return 0; |
| 7195 | } |
| 7196 | _ACEOF |
| 7197 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7199 | $as_echo "yes" >&6; } |
| 7200 | set x $CROSSCC |
| 7201 | shift |
| 7202 | target="" |
| 7203 | while test $# -ge 1 |
| 7204 | do |
| 7205 | case "$1" in |
| 7206 | *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;; |
| 7207 | esac |
| 7208 | shift |
| 7209 | done |
| 7210 | if test -n "$target" |
| 7211 | then |
| 7212 | CROSSTEST_DISABLE="" |
| 7213 | CROSSTARGET="$target" |
| 7214 | |
| 7215 | fi |
| 7216 | else |
| 7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7218 | $as_echo "no" >&6; } |
| 7219 | fi |
| 7220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7221 | CC="$ac_save_CC" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7222 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7223 | fi |
| 7224 | |
| 7225 | |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7226 | if test "$ac_cv_header_pthread_h" = "yes" |
| 7227 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7228 | { $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] | 7229 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7230 | if ${ac_cv_lib_pthread_pthread_create+:} false; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7231 | $as_echo_n "(cached) " >&6 |
| 7232 | else |
| 7233 | ac_check_lib_save_LIBS=$LIBS |
| 7234 | LIBS="-lpthread $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7236 | /* end confdefs.h. */ |
| 7237 | |
| 7238 | /* Override any GCC internal prototype to avoid an error. |
| 7239 | Use char because int might match the return type of a GCC |
| 7240 | builtin and then its argument prototype would still apply. */ |
| 7241 | #ifdef __cplusplus |
| 7242 | extern "C" |
| 7243 | #endif |
| 7244 | char pthread_create (); |
| 7245 | int |
| 7246 | main () |
| 7247 | { |
| 7248 | return pthread_create (); |
| 7249 | ; |
| 7250 | return 0; |
| 7251 | } |
| 7252 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7253 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7254 | ac_cv_lib_pthread_pthread_create=yes |
| 7255 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7256 | ac_cv_lib_pthread_pthread_create=no |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7257 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7258 | rm -f core conftest.err conftest.$ac_objext \ |
| 7259 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7260 | LIBS=$ac_check_lib_save_LIBS |
| 7261 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7262 | { $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] | 7263 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7264 | if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7265 | LIBPTHREAD="-lpthread" |
| 7266 | |
| 7267 | fi |
| 7268 | |
| 7269 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7270 | if test "x$LIBPTHREAD" = "x"; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7271 | case "x$with_pthread" in |
| 7272 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7273 | *) as_fn_error $? "pthread ${notice_platform}development files not found. |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7274 | Wine cannot support threads without libpthread. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7275 | Use the --without-pthread option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7276 | esac |
| 7277 | fi |
| 7278 | |
| 7279 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7281 | $as_echo_n "checking for X... " >&6; } |
| 7282 | |
| 7283 | |
| 7284 | # Check whether --with-x was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7285 | if test "${with_x+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7286 | withval=$with_x; |
| 7287 | fi |
| 7288 | |
| 7289 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 7290 | if test "x$with_x" = xno; then |
| 7291 | # The user explicitly disabled X. |
| 7292 | have_x=disabled |
| 7293 | else |
| 7294 | case $x_includes,$x_libraries in #( |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7295 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 7296 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7297 | $as_echo_n "(cached) " >&6 |
| 7298 | else |
| 7299 | # One or both of the vars are not set, and there is no cached value. |
| 7300 | ac_x_includes=no ac_x_libraries=no |
| 7301 | rm -f -r conftest.dir |
| 7302 | if mkdir conftest.dir; then |
| 7303 | cd conftest.dir |
| 7304 | cat >Imakefile <<'_ACEOF' |
| 7305 | incroot: |
| 7306 | @echo incroot='${INCROOT}' |
| 7307 | usrlibdir: |
| 7308 | @echo usrlibdir='${USRLIBDIR}' |
| 7309 | libdir: |
| 7310 | @echo libdir='${LIBDIR}' |
| 7311 | _ACEOF |
| 7312 | 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] | 7313 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7314 | for ac_var in incroot usrlibdir libdir; do |
| 7315 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 7316 | done |
| 7317 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 7318 | for ac_extension in a so sl dylib la dll; do |
| 7319 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 7320 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 7321 | ac_im_usrlibdir=$ac_im_libdir; break |
| 7322 | fi |
| 7323 | done |
| 7324 | # Screen out bogus values from the imake configuration. They are |
| 7325 | # bogus both because they are the default anyway, and because |
| 7326 | # using them would break gcc on systems where it needs fixed includes. |
| 7327 | case $ac_im_incroot in |
| 7328 | /usr/include) ac_x_includes= ;; |
| 7329 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 7330 | esac |
| 7331 | case $ac_im_usrlibdir in |
| 7332 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 7333 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 7334 | esac |
| 7335 | fi |
| 7336 | cd .. |
| 7337 | rm -f -r conftest.dir |
| 7338 | fi |
| 7339 | |
| 7340 | # Standard set of common directories for X headers. |
| 7341 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 7342 | ac_x_header_dirs=' |
| 7343 | /usr/X11/include |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7344 | /usr/X11R7/include |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7345 | /usr/X11R6/include |
| 7346 | /usr/X11R5/include |
| 7347 | /usr/X11R4/include |
| 7348 | |
| 7349 | /usr/include/X11 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7350 | /usr/include/X11R7 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7351 | /usr/include/X11R6 |
| 7352 | /usr/include/X11R5 |
| 7353 | /usr/include/X11R4 |
| 7354 | |
| 7355 | /usr/local/X11/include |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7356 | /usr/local/X11R7/include |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7357 | /usr/local/X11R6/include |
| 7358 | /usr/local/X11R5/include |
| 7359 | /usr/local/X11R4/include |
| 7360 | |
| 7361 | /usr/local/include/X11 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7362 | /usr/local/include/X11R7 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7363 | /usr/local/include/X11R6 |
| 7364 | /usr/local/include/X11R5 |
| 7365 | /usr/local/include/X11R4 |
| 7366 | |
| 7367 | /usr/X386/include |
| 7368 | /usr/x386/include |
| 7369 | /usr/XFree86/include/X11 |
| 7370 | |
| 7371 | /usr/include |
| 7372 | /usr/local/include |
| 7373 | /usr/unsupported/include |
| 7374 | /usr/athena/include |
| 7375 | /usr/local/x11r5/include |
| 7376 | /usr/lpp/Xamples/include |
| 7377 | |
| 7378 | /usr/openwin/include |
| 7379 | /usr/openwin/share/include' |
| 7380 | |
| 7381 | if test "$ac_x_includes" = no; then |
| 7382 | # Guess where to find include files, by looking for Xlib.h. |
| 7383 | # First, try using that file with no special directory specified. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7385 | /* end confdefs.h. */ |
| 7386 | #include <X11/Xlib.h> |
| 7387 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7388 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7389 | # We can compile using X headers with no special include directory. |
| 7390 | ac_x_includes= |
| 7391 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7392 | for ac_dir in $ac_x_header_dirs; do |
| 7393 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 7394 | ac_x_includes=$ac_dir |
| 7395 | break |
| 7396 | fi |
| 7397 | done |
| 7398 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7399 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7400 | fi # $ac_x_includes = no |
| 7401 | |
| 7402 | if test "$ac_x_libraries" = no; then |
| 7403 | # Check for the libraries. |
| 7404 | # See if we find them without any special options. |
| 7405 | # Don't add to $LIBS permanently. |
| 7406 | ac_save_LIBS=$LIBS |
| 7407 | LIBS="-lX11 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7409 | /* end confdefs.h. */ |
| 7410 | #include <X11/Xlib.h> |
| 7411 | int |
| 7412 | main () |
| 7413 | { |
| 7414 | XrmInitialize () |
| 7415 | ; |
| 7416 | return 0; |
| 7417 | } |
| 7418 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7419 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7420 | LIBS=$ac_save_LIBS |
| 7421 | # We can link X programs with no special library path. |
| 7422 | ac_x_libraries= |
| 7423 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7424 | LIBS=$ac_save_LIBS |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7425 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 7426 | do |
| 7427 | # Don't even attempt the hair of trying to link an X program! |
| 7428 | for ac_extension in a so sl dylib la dll; do |
| 7429 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 7430 | ac_x_libraries=$ac_dir |
| 7431 | break 2 |
| 7432 | fi |
| 7433 | done |
| 7434 | done |
| 7435 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7436 | rm -f core conftest.err conftest.$ac_objext \ |
| 7437 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7438 | fi # $ac_x_libraries = no |
| 7439 | |
| 7440 | case $ac_x_includes,$ac_x_libraries in #( |
| 7441 | no,* | *,no | *\'*) |
| 7442 | # Didn't find X, or a directory has "'" in its name. |
| 7443 | ac_cv_have_x="have_x=no";; #( |
| 7444 | *) |
| 7445 | # Record where we found X for the cache. |
| 7446 | ac_cv_have_x="have_x=yes\ |
| 7447 | ac_x_includes='$ac_x_includes'\ |
| 7448 | ac_x_libraries='$ac_x_libraries'" |
| 7449 | esac |
| 7450 | fi |
| 7451 | ;; #( |
| 7452 | *) have_x=yes;; |
| 7453 | esac |
| 7454 | eval "$ac_cv_have_x" |
| 7455 | fi # $with_x != no |
| 7456 | |
| 7457 | if test "$have_x" != yes; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7459 | $as_echo "$have_x" >&6; } |
| 7460 | no_x=yes |
| 7461 | else |
| 7462 | # If each of the values was on the command line, it overrides each guess. |
| 7463 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 7464 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 7465 | # Update the cache value to reflect the command line values. |
| 7466 | ac_cv_have_x="have_x=yes\ |
| 7467 | ac_x_includes='$x_includes'\ |
| 7468 | ac_x_libraries='$x_libraries'" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7469 | { $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] | 7470 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 7471 | fi |
| 7472 | |
| 7473 | if test "$no_x" = yes; then |
| 7474 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 7475 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7476 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7477 | |
| 7478 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 7479 | else |
| 7480 | if test -n "$x_includes"; then |
| 7481 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 7482 | fi |
| 7483 | |
| 7484 | # It would also be nice to do this for all -L options, not just this one. |
| 7485 | if test -n "$x_libraries"; then |
| 7486 | X_LIBS="$X_LIBS -L$x_libraries" |
| 7487 | # For Solaris; some versions of Sun CC require a space after -R and |
| 7488 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7489 | { $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] | 7490 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 7491 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 7492 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 7493 | ac_c_werror_flag=yes |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7495 | /* end confdefs.h. */ |
| 7496 | |
| 7497 | int |
| 7498 | main () |
| 7499 | { |
| 7500 | |
| 7501 | ; |
| 7502 | return 0; |
| 7503 | } |
| 7504 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7505 | if ac_fn_c_try_link "$LINENO"; then : |
| 7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7507 | $as_echo "no" >&6; } |
| 7508 | X_LIBS="$X_LIBS -R$x_libraries" |
| 7509 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7510 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 7511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7512 | /* end confdefs.h. */ |
| 7513 | |
| 7514 | int |
| 7515 | main () |
| 7516 | { |
| 7517 | |
| 7518 | ; |
| 7519 | return 0; |
| 7520 | } |
| 7521 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7522 | if ac_fn_c_try_link "$LINENO"; then : |
| 7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7524 | $as_echo "yes" >&6; } |
| 7525 | X_LIBS="$X_LIBS -R $x_libraries" |
| 7526 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7528 | $as_echo "neither works" >&6; } |
| 7529 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7530 | rm -f core conftest.err conftest.$ac_objext \ |
| 7531 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7532 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7533 | rm -f core conftest.err conftest.$ac_objext \ |
| 7534 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7535 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 7536 | LIBS=$ac_xsave_LIBS |
| 7537 | fi |
| 7538 | |
| 7539 | # Check for system-dependent libraries X programs must link with. |
| 7540 | # Do this before checking for the system-independent R6 libraries |
| 7541 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 7542 | |
| 7543 | if test "$ISC" = yes; then |
| 7544 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 7545 | else |
| 7546 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 7547 | # libraries were built with DECnet support. And Karl Berry says |
| 7548 | # the Alpha needs dnet_stub (dnet does not exist). |
| 7549 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7551 | /* end confdefs.h. */ |
| 7552 | |
| 7553 | /* Override any GCC internal prototype to avoid an error. |
| 7554 | Use char because int might match the return type of a GCC |
| 7555 | builtin and then its argument prototype would still apply. */ |
| 7556 | #ifdef __cplusplus |
| 7557 | extern "C" |
| 7558 | #endif |
| 7559 | char XOpenDisplay (); |
| 7560 | int |
| 7561 | main () |
| 7562 | { |
| 7563 | return XOpenDisplay (); |
| 7564 | ; |
| 7565 | return 0; |
| 7566 | } |
| 7567 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7568 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7569 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7570 | else |
| 7571 | { $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] | 7572 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7573 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7574 | $as_echo_n "(cached) " >&6 |
| 7575 | else |
| 7576 | ac_check_lib_save_LIBS=$LIBS |
| 7577 | LIBS="-ldnet $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7579 | /* end confdefs.h. */ |
| 7580 | |
| 7581 | /* Override any GCC internal prototype to avoid an error. |
| 7582 | Use char because int might match the return type of a GCC |
| 7583 | builtin and then its argument prototype would still apply. */ |
| 7584 | #ifdef __cplusplus |
| 7585 | extern "C" |
| 7586 | #endif |
| 7587 | char dnet_ntoa (); |
| 7588 | int |
| 7589 | main () |
| 7590 | { |
| 7591 | return dnet_ntoa (); |
| 7592 | ; |
| 7593 | return 0; |
| 7594 | } |
| 7595 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7596 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7597 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 7598 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7599 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7600 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7601 | rm -f core conftest.err conftest.$ac_objext \ |
| 7602 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7603 | LIBS=$ac_check_lib_save_LIBS |
| 7604 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7605 | { $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] | 7606 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7607 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7608 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 7609 | fi |
| 7610 | |
| 7611 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7612 | { $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] | 7613 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7614 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7615 | $as_echo_n "(cached) " >&6 |
| 7616 | else |
| 7617 | ac_check_lib_save_LIBS=$LIBS |
| 7618 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7620 | /* end confdefs.h. */ |
| 7621 | |
| 7622 | /* Override any GCC internal prototype to avoid an error. |
| 7623 | Use char because int might match the return type of a GCC |
| 7624 | builtin and then its argument prototype would still apply. */ |
| 7625 | #ifdef __cplusplus |
| 7626 | extern "C" |
| 7627 | #endif |
| 7628 | char dnet_ntoa (); |
| 7629 | int |
| 7630 | main () |
| 7631 | { |
| 7632 | return dnet_ntoa (); |
| 7633 | ; |
| 7634 | return 0; |
| 7635 | } |
| 7636 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7637 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7638 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 7639 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7640 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7641 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7642 | rm -f core conftest.err conftest.$ac_objext \ |
| 7643 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7644 | LIBS=$ac_check_lib_save_LIBS |
| 7645 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7646 | { $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] | 7647 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7648 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7649 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 7650 | fi |
| 7651 | |
| 7652 | fi |
| 7653 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7654 | rm -f core conftest.err conftest.$ac_objext \ |
| 7655 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7656 | LIBS="$ac_xsave_LIBS" |
| 7657 | |
| 7658 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 7659 | # to get the SysV transport functions. |
| 7660 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 7661 | # needs -lnsl. |
| 7662 | # The nsl library prevents programs from opening the X display |
| 7663 | # on Irix 5.2, according to T.E. Dickey. |
| 7664 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 7665 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7666 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7667 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7668 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7669 | fi |
| 7670 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7671 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7672 | { $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] | 7673 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7674 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7675 | $as_echo_n "(cached) " >&6 |
| 7676 | else |
| 7677 | ac_check_lib_save_LIBS=$LIBS |
| 7678 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7680 | /* end confdefs.h. */ |
| 7681 | |
| 7682 | /* Override any GCC internal prototype to avoid an error. |
| 7683 | Use char because int might match the return type of a GCC |
| 7684 | builtin and then its argument prototype would still apply. */ |
| 7685 | #ifdef __cplusplus |
| 7686 | extern "C" |
| 7687 | #endif |
| 7688 | char gethostbyname (); |
| 7689 | int |
| 7690 | main () |
| 7691 | { |
| 7692 | return gethostbyname (); |
| 7693 | ; |
| 7694 | return 0; |
| 7695 | } |
| 7696 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7697 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7698 | ac_cv_lib_nsl_gethostbyname=yes |
| 7699 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7700 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7701 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7702 | rm -f core conftest.err conftest.$ac_objext \ |
| 7703 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7704 | LIBS=$ac_check_lib_save_LIBS |
| 7705 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7706 | { $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] | 7707 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7708 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7709 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 7710 | fi |
| 7711 | |
| 7712 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7713 | { $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] | 7714 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7715 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7716 | $as_echo_n "(cached) " >&6 |
| 7717 | else |
| 7718 | ac_check_lib_save_LIBS=$LIBS |
| 7719 | LIBS="-lbsd $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7721 | /* end confdefs.h. */ |
| 7722 | |
| 7723 | /* Override any GCC internal prototype to avoid an error. |
| 7724 | Use char because int might match the return type of a GCC |
| 7725 | builtin and then its argument prototype would still apply. */ |
| 7726 | #ifdef __cplusplus |
| 7727 | extern "C" |
| 7728 | #endif |
| 7729 | char gethostbyname (); |
| 7730 | int |
| 7731 | main () |
| 7732 | { |
| 7733 | return gethostbyname (); |
| 7734 | ; |
| 7735 | return 0; |
| 7736 | } |
| 7737 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7738 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7739 | ac_cv_lib_bsd_gethostbyname=yes |
| 7740 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7741 | ac_cv_lib_bsd_gethostbyname=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7742 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7743 | rm -f core conftest.err conftest.$ac_objext \ |
| 7744 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7745 | LIBS=$ac_check_lib_save_LIBS |
| 7746 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7747 | { $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] | 7748 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7749 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7750 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 7751 | fi |
| 7752 | |
| 7753 | fi |
| 7754 | fi |
| 7755 | |
| 7756 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 7757 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 7758 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 7759 | # on later versions), says Simon Leinen: it contains gethostby* |
| 7760 | # variants that don't use the name server (or something). -lsocket |
| 7761 | # must be given before -lnsl if both are needed. We assume that |
| 7762 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7763 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7764 | if test "x$ac_cv_func_connect" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7765 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7766 | fi |
| 7767 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7768 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7769 | { $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] | 7770 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7771 | if ${ac_cv_lib_socket_connect+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7772 | $as_echo_n "(cached) " >&6 |
| 7773 | else |
| 7774 | ac_check_lib_save_LIBS=$LIBS |
| 7775 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7777 | /* end confdefs.h. */ |
| 7778 | |
| 7779 | /* Override any GCC internal prototype to avoid an error. |
| 7780 | Use char because int might match the return type of a GCC |
| 7781 | builtin and then its argument prototype would still apply. */ |
| 7782 | #ifdef __cplusplus |
| 7783 | extern "C" |
| 7784 | #endif |
| 7785 | char connect (); |
| 7786 | int |
| 7787 | main () |
| 7788 | { |
| 7789 | return connect (); |
| 7790 | ; |
| 7791 | return 0; |
| 7792 | } |
| 7793 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7794 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7795 | ac_cv_lib_socket_connect=yes |
| 7796 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7797 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7798 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7799 | rm -f core conftest.err conftest.$ac_objext \ |
| 7800 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7801 | LIBS=$ac_check_lib_save_LIBS |
| 7802 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7803 | { $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] | 7804 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7805 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7806 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 7807 | fi |
| 7808 | |
| 7809 | fi |
| 7810 | |
| 7811 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7812 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7813 | if test "x$ac_cv_func_remove" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7814 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7815 | fi |
| 7816 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7817 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7818 | { $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] | 7819 | $as_echo_n "checking for remove in -lposix... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7820 | if ${ac_cv_lib_posix_remove+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7821 | $as_echo_n "(cached) " >&6 |
| 7822 | else |
| 7823 | ac_check_lib_save_LIBS=$LIBS |
| 7824 | LIBS="-lposix $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7826 | /* end confdefs.h. */ |
| 7827 | |
| 7828 | /* Override any GCC internal prototype to avoid an error. |
| 7829 | Use char because int might match the return type of a GCC |
| 7830 | builtin and then its argument prototype would still apply. */ |
| 7831 | #ifdef __cplusplus |
| 7832 | extern "C" |
| 7833 | #endif |
| 7834 | char remove (); |
| 7835 | int |
| 7836 | main () |
| 7837 | { |
| 7838 | return remove (); |
| 7839 | ; |
| 7840 | return 0; |
| 7841 | } |
| 7842 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7843 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7844 | ac_cv_lib_posix_remove=yes |
| 7845 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7846 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7847 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7848 | rm -f core conftest.err conftest.$ac_objext \ |
| 7849 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7850 | LIBS=$ac_check_lib_save_LIBS |
| 7851 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7852 | { $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] | 7853 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7854 | if test "x$ac_cv_lib_posix_remove" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7855 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 7856 | fi |
| 7857 | |
| 7858 | fi |
| 7859 | |
| 7860 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7861 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7862 | if test "x$ac_cv_func_shmat" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7863 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7864 | fi |
| 7865 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7866 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7867 | { $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] | 7868 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7869 | if ${ac_cv_lib_ipc_shmat+:} false; 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="-lipc $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 shmat (); |
| 7884 | int |
| 7885 | main () |
| 7886 | { |
| 7887 | return shmat (); |
| 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_ipc_shmat=yes |
| 7894 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7895 | ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7902 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7903 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7904 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 7905 | fi |
| 7906 | |
| 7907 | fi |
| 7908 | fi |
| 7909 | |
| 7910 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 7911 | ac_save_LDFLAGS=$LDFLAGS |
| 7912 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 7913 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 7914 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 7915 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 7916 | # These have to be linked with before -lX11, unlike the other |
| 7917 | # libraries we check for below, so use a different variable. |
| 7918 | # John Interrante, Karl Berry |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7919 | { $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] | 7920 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7921 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7922 | $as_echo_n "(cached) " >&6 |
| 7923 | else |
| 7924 | ac_check_lib_save_LIBS=$LIBS |
| 7925 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7927 | /* end confdefs.h. */ |
| 7928 | |
| 7929 | /* Override any GCC internal prototype to avoid an error. |
| 7930 | Use char because int might match the return type of a GCC |
| 7931 | builtin and then its argument prototype would still apply. */ |
| 7932 | #ifdef __cplusplus |
| 7933 | extern "C" |
| 7934 | #endif |
| 7935 | char IceConnectionNumber (); |
| 7936 | int |
| 7937 | main () |
| 7938 | { |
| 7939 | return IceConnectionNumber (); |
| 7940 | ; |
| 7941 | return 0; |
| 7942 | } |
| 7943 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7944 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7945 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 7946 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7947 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7948 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7949 | rm -f core conftest.err conftest.$ac_objext \ |
| 7950 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7951 | LIBS=$ac_check_lib_save_LIBS |
| 7952 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7953 | { $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] | 7954 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7955 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7956 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 7957 | fi |
| 7958 | |
| 7959 | LDFLAGS=$ac_save_LDFLAGS |
| 7960 | |
| 7961 | fi |
| 7962 | |
| 7963 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7964 | if test "$have_x" = "yes" |
| 7965 | then |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 7966 | XLIB="-lX11" |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7967 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 7968 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 7969 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7971 | $as_echo_n "checking for -lX11... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7972 | if ${ac_cv_lib_soname_X11+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7973 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7974 | else |
| 7975 | ac_check_soname_save_LIBS=$LIBS |
| 7976 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7978 | /* end confdefs.h. */ |
| 7979 | |
| 7980 | /* Override any GCC internal prototype to avoid an error. |
| 7981 | Use char because int might match the return type of a GCC |
| 7982 | builtin and then its argument prototype would still apply. */ |
| 7983 | #ifdef __cplusplus |
| 7984 | extern "C" |
| 7985 | #endif |
| 7986 | char XCreateWindow (); |
| 7987 | int |
| 7988 | main () |
| 7989 | { |
| 7990 | return XCreateWindow (); |
| 7991 | ; |
| 7992 | return 0; |
| 7993 | } |
| 7994 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7995 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7996 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 7997 | 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] | 7998 | 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'` ;; |
| 7999 | *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8000 | esac |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8001 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8002 | rm -f core conftest.err conftest.$ac_objext \ |
| 8003 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8004 | LIBS=$ac_check_soname_save_LIBS |
| 8005 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8006 | if test "x$ac_cv_lib_soname_X11" = "x"; then : |
| 8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8008 | $as_echo "not found" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8009 | |
| 8010 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8011 | { $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] | 8012 | $as_echo "$ac_cv_lib_soname_X11" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8013 | |
| 8014 | cat >>confdefs.h <<_ACEOF |
| 8015 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 8016 | _ACEOF |
| 8017 | |
| 8018 | |
| 8019 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8021 | $as_echo_n "checking for -lXext... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8022 | if ${ac_cv_lib_soname_Xext+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8023 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8024 | else |
| 8025 | ac_check_soname_save_LIBS=$LIBS |
| 8026 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8028 | /* end confdefs.h. */ |
| 8029 | |
| 8030 | /* Override any GCC internal prototype to avoid an error. |
| 8031 | Use char because int might match the return type of a GCC |
| 8032 | builtin and then its argument prototype would still apply. */ |
| 8033 | #ifdef __cplusplus |
| 8034 | extern "C" |
| 8035 | #endif |
| 8036 | char XextCreateExtension (); |
| 8037 | int |
| 8038 | main () |
| 8039 | { |
| 8040 | return XextCreateExtension (); |
| 8041 | ; |
| 8042 | return 0; |
| 8043 | } |
| 8044 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8045 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8046 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8047 | 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] | 8048 | 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'` ;; |
| 8049 | *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8050 | esac |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8051 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8052 | rm -f core conftest.err conftest.$ac_objext \ |
| 8053 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8054 | LIBS=$ac_check_soname_save_LIBS |
| 8055 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8056 | if test "x$ac_cv_lib_soname_Xext" = "x"; then : |
| 8057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8058 | $as_echo "not found" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8059 | |
| 8060 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8061 | { $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] | 8062 | $as_echo "$ac_cv_lib_soname_Xext" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8063 | |
| 8064 | cat >>confdefs.h <<_ACEOF |
| 8065 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 8066 | _ACEOF |
| 8067 | |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8068 | XLIB="-lXext $XLIB" |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8069 | fi |
| 8070 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8071 | for ac_header in X11/Xlib.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8072 | X11/XKBlib.h \ |
| 8073 | X11/Xutil.h \ |
Andrew Riedi | 23e2cb1 | 2007-03-22 12:06:19 -0700 | [diff] [blame] | 8074 | X11/Xcursor/Xcursor.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8075 | X11/extensions/shape.h \ |
| 8076 | X11/extensions/XInput.h \ |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 8077 | X11/extensions/XInput2.h \ |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8078 | X11/extensions/Xcomposite.h \ |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8079 | X11/extensions/Xinerama.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8080 | X11/extensions/Xrandr.h \ |
| 8081 | X11/extensions/Xrender.h \ |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 8082 | X11/extensions/xf86vmode.h \ |
| 8083 | X11/extensions/xf86vmproto.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8084 | do : |
| 8085 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8086 | 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] | 8087 | # include <X11/Xlib.h> |
| 8088 | #endif |
| 8089 | #ifdef HAVE_X11_XUTIL_H |
| 8090 | # include <X11/Xutil.h> |
| 8091 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8092 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8093 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8094 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8095 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8096 | _ACEOF |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8097 | |
| 8098 | fi |
| 8099 | |
| 8100 | done |
| 8101 | |
| 8102 | |
| 8103 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" |
| 8104 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8105 | { $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] | 8106 | $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8107 | if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8108 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8109 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8110 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8111 | LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8113 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8114 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8115 | /* Override any GCC internal prototype to avoid an error. |
| 8116 | Use char because int might match the return type of a GCC |
| 8117 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8118 | #ifdef __cplusplus |
| 8119 | extern "C" |
| 8120 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8121 | char XkbQueryExtension (); |
| 8122 | int |
| 8123 | main () |
| 8124 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8125 | return XkbQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8126 | ; |
| 8127 | return 0; |
| 8128 | } |
| 8129 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8130 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8131 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8132 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8133 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8134 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8135 | rm -f core conftest.err conftest.$ac_objext \ |
| 8136 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8137 | LIBS=$ac_check_lib_save_LIBS |
| 8138 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8139 | { $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] | 8140 | $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8141 | if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then : |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8142 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8143 | $as_echo "#define HAVE_XKB 1" >>confdefs.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8144 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8145 | fi |
| 8146 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8147 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8148 | |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8149 | if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes" |
| 8150 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8152 | $as_echo_n "checking for -lXcursor... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8153 | if ${ac_cv_lib_soname_Xcursor+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8154 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8155 | else |
| 8156 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8157 | LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8159 | /* end confdefs.h. */ |
| 8160 | |
| 8161 | /* Override any GCC internal prototype to avoid an error. |
| 8162 | Use char because int might match the return type of a GCC |
| 8163 | builtin and then its argument prototype would still apply. */ |
| 8164 | #ifdef __cplusplus |
| 8165 | extern "C" |
| 8166 | #endif |
| 8167 | char XcursorImageLoadCursor (); |
| 8168 | int |
| 8169 | main () |
| 8170 | { |
| 8171 | return XcursorImageLoadCursor (); |
| 8172 | ; |
| 8173 | return 0; |
| 8174 | } |
| 8175 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8176 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8177 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8178 | 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] | 8179 | 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'` ;; |
| 8180 | *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8181 | esac |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8182 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8183 | rm -f core conftest.err conftest.$ac_objext \ |
| 8184 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8185 | LIBS=$ac_check_soname_save_LIBS |
| 8186 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8187 | if test "x$ac_cv_lib_soname_Xcursor" = "x"; then : |
| 8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8189 | $as_echo "not found" >&6; } |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8190 | |
| 8191 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8192 | { $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] | 8193 | $as_echo "$ac_cv_lib_soname_Xcursor" >&6; } |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8194 | |
| 8195 | cat >>confdefs.h <<_ACEOF |
| 8196 | #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor" |
| 8197 | _ACEOF |
| 8198 | |
| 8199 | |
| 8200 | fi |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8201 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8202 | if test "x$ac_cv_lib_soname_Xcursor" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8203 | case "x$with_xcursor" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8204 | 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] | 8205 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8206 | *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8207 | This is an error since --with-xcursor was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8208 | esac |
| 8209 | fi |
| 8210 | |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8211 | if test "$ac_cv_header_X11_extensions_XInput_h" = "yes" |
| 8212 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8214 | $as_echo_n "checking for -lXi... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8215 | if ${ac_cv_lib_soname_Xi+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8216 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8217 | else |
| 8218 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8219 | LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8221 | /* end confdefs.h. */ |
| 8222 | |
| 8223 | /* Override any GCC internal prototype to avoid an error. |
| 8224 | Use char because int might match the return type of a GCC |
| 8225 | builtin and then its argument prototype would still apply. */ |
| 8226 | #ifdef __cplusplus |
| 8227 | extern "C" |
| 8228 | #endif |
| 8229 | char XOpenDevice (); |
| 8230 | int |
| 8231 | main () |
| 8232 | { |
| 8233 | return XOpenDevice (); |
| 8234 | ; |
| 8235 | return 0; |
| 8236 | } |
| 8237 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8238 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8239 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8240 | 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] | 8241 | 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'` ;; |
| 8242 | *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8243 | esac |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8244 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8245 | rm -f core conftest.err conftest.$ac_objext \ |
| 8246 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8247 | LIBS=$ac_check_soname_save_LIBS |
| 8248 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8249 | if test "x$ac_cv_lib_soname_Xi" = "x"; then : |
| 8250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8251 | $as_echo "not found" >&6; } |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8252 | |
| 8253 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8254 | { $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] | 8255 | $as_echo "$ac_cv_lib_soname_Xi" >&6; } |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8256 | |
| 8257 | cat >>confdefs.h <<_ACEOF |
| 8258 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" |
| 8259 | _ACEOF |
| 8260 | |
| 8261 | |
| 8262 | fi |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8263 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8264 | if test "x$ac_cv_lib_soname_Xi" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8265 | case "x$with_xinput" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8266 | 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] | 8267 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8268 | *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8269 | This is an error since --with-xinput was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8270 | esac |
| 8271 | fi |
| 8272 | |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 8273 | if test "x$ac_cv_lib_soname_Xi" != x |
| 8274 | then |
| 8275 | if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then : |
| 8276 | case "x$with_xinput2" in |
| 8277 | x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;; |
| 8278 | xno) ;; |
| 8279 | *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8280 | This is an error since --with-xinput2 was requested." "$LINENO" 5 ;; |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 8281 | esac |
| 8282 | fi |
| 8283 | fi |
| 8284 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8285 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
| 8286 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8287 | { $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] | 8288 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8289 | if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8290 | $as_echo_n "(cached) " >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8291 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8292 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8293 | LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8295 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8296 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8297 | /* Override any GCC internal prototype to avoid an error. |
| 8298 | Use char because int might match the return type of a GCC |
| 8299 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8300 | #ifdef __cplusplus |
| 8301 | extern "C" |
| 8302 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8303 | char XShapeQueryExtension (); |
| 8304 | int |
| 8305 | main () |
| 8306 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8307 | return XShapeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8308 | ; |
| 8309 | return 0; |
| 8310 | } |
| 8311 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8312 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8313 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8314 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8315 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8316 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8317 | rm -f core conftest.err conftest.$ac_objext \ |
| 8318 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8319 | LIBS=$ac_check_lib_save_LIBS |
| 8320 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8321 | { $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] | 8322 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8323 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8324 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8325 | $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8326 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8327 | fi |
| 8328 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8329 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8330 | if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8331 | case "x$with_xshape" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8332 | 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] | 8333 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8334 | *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8335 | This is an error since --with-xshape was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8336 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8337 | fi |
| 8338 | |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 8339 | 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] | 8340 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8342 | $as_echo_n "checking for -lXxf86vm... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8343 | if ${ac_cv_lib_soname_Xxf86vm+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8344 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8345 | else |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8346 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8347 | LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8349 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8350 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8351 | /* Override any GCC internal prototype to avoid an error. |
| 8352 | Use char because int might match the return type of a GCC |
| 8353 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8354 | #ifdef __cplusplus |
| 8355 | extern "C" |
| 8356 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8357 | char XF86VidModeQueryExtension (); |
| 8358 | int |
| 8359 | main () |
| 8360 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8361 | return XF86VidModeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8362 | ; |
| 8363 | return 0; |
| 8364 | } |
| 8365 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8366 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8367 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8368 | 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] | 8369 | 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'` ;; |
| 8370 | *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8371 | esac |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8372 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8373 | rm -f core conftest.err conftest.$ac_objext \ |
| 8374 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8375 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8376 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8377 | if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then : |
| 8378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8379 | $as_echo "not found" >&6; } |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8380 | |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8381 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8382 | { $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] | 8383 | $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; } |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8384 | |
| 8385 | cat >>confdefs.h <<_ACEOF |
| 8386 | #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8387 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8388 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8389 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8390 | fi |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8391 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8392 | if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then : |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8393 | case "x$with_xxf86vm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8394 | 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] | 8395 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8396 | *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8397 | This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8398 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8399 | fi |
| 8400 | |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8401 | 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] | 8402 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8404 | $as_echo_n "checking for -lXrender... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8405 | if ${ac_cv_lib_soname_Xrender+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8406 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8407 | else |
| 8408 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8409 | LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8411 | /* end confdefs.h. */ |
| 8412 | |
| 8413 | /* Override any GCC internal prototype to avoid an error. |
| 8414 | Use char because int might match the return type of a GCC |
| 8415 | builtin and then its argument prototype would still apply. */ |
| 8416 | #ifdef __cplusplus |
| 8417 | extern "C" |
| 8418 | #endif |
| 8419 | char XRenderQueryExtension (); |
| 8420 | int |
| 8421 | main () |
| 8422 | { |
| 8423 | return XRenderQueryExtension (); |
| 8424 | ; |
| 8425 | return 0; |
| 8426 | } |
| 8427 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8428 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8429 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8430 | 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] | 8431 | 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'` ;; |
| 8432 | *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8433 | esac |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8434 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8435 | rm -f core conftest.err conftest.$ac_objext \ |
| 8436 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8437 | LIBS=$ac_check_soname_save_LIBS |
| 8438 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8439 | if test "x$ac_cv_lib_soname_Xrender" = "x"; then : |
| 8440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8441 | $as_echo "not found" >&6; } |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8442 | |
| 8443 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8444 | { $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] | 8445 | $as_echo "$ac_cv_lib_soname_Xrender" >&6; } |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8446 | |
| 8447 | cat >>confdefs.h <<_ACEOF |
| 8448 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 8449 | _ACEOF |
| 8450 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8451 | { $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] | 8452 | $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8453 | if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8454 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8455 | else |
| 8456 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8457 | LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8459 | /* end confdefs.h. */ |
| 8460 | |
| 8461 | /* Override any GCC internal prototype to avoid an error. |
| 8462 | Use char because int might match the return type of a GCC |
| 8463 | builtin and then its argument prototype would still apply. */ |
| 8464 | #ifdef __cplusplus |
| 8465 | extern "C" |
| 8466 | #endif |
| 8467 | char XRenderSetPictureTransform (); |
| 8468 | int |
| 8469 | main () |
| 8470 | { |
| 8471 | return XRenderSetPictureTransform (); |
| 8472 | ; |
| 8473 | return 0; |
| 8474 | } |
| 8475 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8476 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8477 | ac_cv_lib_Xrender_XRenderSetPictureTransform=yes |
| 8478 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8479 | ac_cv_lib_Xrender_XRenderSetPictureTransform=no |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8480 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8481 | rm -f core conftest.err conftest.$ac_objext \ |
| 8482 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8483 | LIBS=$ac_check_lib_save_LIBS |
| 8484 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8485 | { $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] | 8486 | $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8487 | if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8488 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8489 | $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8490 | |
| 8491 | fi |
| 8492 | |
Alexandre Julliard | 7635821 | 2011-11-30 13:22:21 +0100 | [diff] [blame] | 8493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5 |
| 8494 | $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; } |
| 8495 | if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then : |
| 8496 | $as_echo_n "(cached) " >&6 |
| 8497 | else |
| 8498 | ac_check_lib_save_LIBS=$LIBS |
| 8499 | LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
| 8500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8501 | /* end confdefs.h. */ |
| 8502 | |
| 8503 | /* Override any GCC internal prototype to avoid an error. |
| 8504 | Use char because int might match the return type of a GCC |
| 8505 | builtin and then its argument prototype would still apply. */ |
| 8506 | #ifdef __cplusplus |
| 8507 | extern "C" |
| 8508 | #endif |
| 8509 | char XRenderCreateLinearGradient (); |
| 8510 | int |
| 8511 | main () |
| 8512 | { |
| 8513 | return XRenderCreateLinearGradient (); |
| 8514 | ; |
| 8515 | return 0; |
| 8516 | } |
| 8517 | _ACEOF |
| 8518 | if ac_fn_c_try_link "$LINENO"; then : |
| 8519 | ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes |
| 8520 | else |
| 8521 | ac_cv_lib_Xrender_XRenderCreateLinearGradient=no |
| 8522 | fi |
| 8523 | rm -f core conftest.err conftest.$ac_objext \ |
| 8524 | conftest$ac_exeext conftest.$ac_ext |
| 8525 | LIBS=$ac_check_lib_save_LIBS |
| 8526 | fi |
| 8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5 |
| 8528 | $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; } |
| 8529 | if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then : |
| 8530 | |
| 8531 | $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h |
| 8532 | |
| 8533 | fi |
| 8534 | |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8535 | fi |
| 8536 | |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8537 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8538 | if test "x$ac_cv_lib_soname_Xrender" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8539 | case "x$with_xrender" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8540 | 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] | 8541 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8542 | *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8543 | This is an error since --with-xrender was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8544 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8545 | fi |
| 8546 | |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8547 | 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] | 8548 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8550 | /* end confdefs.h. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8551 | #include <X11/Xlib.h> |
| 8552 | #include <X11/extensions/Xrandr.h> |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8553 | int |
| 8554 | main () |
| 8555 | { |
Dan Kegel | 45725be | 2011-08-31 17:35:49 -0700 | [diff] [blame] | 8556 | static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0; |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8557 | ; |
| 8558 | return 0; |
| 8559 | } |
| 8560 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8561 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8563 | $as_echo_n "checking for -lXrandr... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8564 | if ${ac_cv_lib_soname_Xrandr+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8565 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8566 | else |
| 8567 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8568 | LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8570 | /* end confdefs.h. */ |
| 8571 | |
| 8572 | /* Override any GCC internal prototype to avoid an error. |
| 8573 | Use char because int might match the return type of a GCC |
| 8574 | builtin and then its argument prototype would still apply. */ |
| 8575 | #ifdef __cplusplus |
| 8576 | extern "C" |
| 8577 | #endif |
| 8578 | char XRRQueryExtension (); |
| 8579 | int |
| 8580 | main () |
| 8581 | { |
| 8582 | return XRRQueryExtension (); |
| 8583 | ; |
| 8584 | return 0; |
| 8585 | } |
| 8586 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8587 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8588 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8589 | 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] | 8590 | 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'` ;; |
| 8591 | *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8592 | esac |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8593 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8594 | rm -f core conftest.err conftest.$ac_objext \ |
| 8595 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8596 | LIBS=$ac_check_soname_save_LIBS |
| 8597 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8598 | if test "x$ac_cv_lib_soname_Xrandr" = "x"; then : |
| 8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8600 | $as_echo "not found" >&6; } |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8601 | |
| 8602 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8603 | { $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] | 8604 | $as_echo "$ac_cv_lib_soname_Xrandr" >&6; } |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8605 | |
| 8606 | cat >>confdefs.h <<_ACEOF |
| 8607 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" |
| 8608 | _ACEOF |
| 8609 | |
| 8610 | |
| 8611 | fi |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8612 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8614 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8615 | if test "x$ac_cv_lib_soname_Xrandr" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8616 | case "x$with_xrandr" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8617 | 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] | 8618 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8619 | *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8620 | This is an error since --with-xrandr was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8621 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8622 | fi |
| 8623 | |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8624 | if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes" |
| 8625 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8627 | /* end confdefs.h. */ |
| 8628 | #include <X11/Xlib.h> |
| 8629 | #include <X11/extensions/Xinerama.h> |
| 8630 | int |
| 8631 | main () |
| 8632 | { |
Dan Kegel | 45725be | 2011-08-31 17:35:49 -0700 | [diff] [blame] | 8633 | static typeof(XineramaQueryScreens) * func; if (func) return 0; |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8634 | ; |
| 8635 | return 0; |
| 8636 | } |
| 8637 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8638 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8640 | $as_echo_n "checking for -lXinerama... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8641 | if ${ac_cv_lib_soname_Xinerama+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8642 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8643 | else |
| 8644 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8645 | LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8647 | /* end confdefs.h. */ |
| 8648 | |
| 8649 | /* Override any GCC internal prototype to avoid an error. |
| 8650 | Use char because int might match the return type of a GCC |
| 8651 | builtin and then its argument prototype would still apply. */ |
| 8652 | #ifdef __cplusplus |
| 8653 | extern "C" |
| 8654 | #endif |
| 8655 | char XineramaQueryScreens (); |
| 8656 | int |
| 8657 | main () |
| 8658 | { |
| 8659 | return XineramaQueryScreens (); |
| 8660 | ; |
| 8661 | return 0; |
| 8662 | } |
| 8663 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8664 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8665 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8666 | 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] | 8667 | 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'` ;; |
| 8668 | *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8669 | esac |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8670 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8671 | rm -f core conftest.err conftest.$ac_objext \ |
| 8672 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8673 | LIBS=$ac_check_soname_save_LIBS |
| 8674 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8675 | if test "x$ac_cv_lib_soname_Xinerama" = "x"; then : |
| 8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8677 | $as_echo "not found" >&6; } |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8678 | |
| 8679 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8680 | { $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] | 8681 | $as_echo "$ac_cv_lib_soname_Xinerama" >&6; } |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8682 | |
| 8683 | cat >>confdefs.h <<_ACEOF |
| 8684 | #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama" |
| 8685 | _ACEOF |
| 8686 | |
| 8687 | |
| 8688 | fi |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8689 | fi |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8691 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8692 | if test "x$ac_cv_lib_soname_Xinerama" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8693 | case "x$with_xinerama" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8694 | 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] | 8695 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8696 | *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8697 | This is an error since --with-xinerama was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8698 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8699 | fi |
| 8700 | |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8701 | if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes" |
| 8702 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8704 | $as_echo_n "checking for -lXcomposite... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8705 | if ${ac_cv_lib_soname_Xcomposite+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8706 | $as_echo_n "(cached) " >&6 |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8707 | else |
| 8708 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8709 | LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8711 | /* end confdefs.h. */ |
| 8712 | |
| 8713 | /* Override any GCC internal prototype to avoid an error. |
| 8714 | Use char because int might match the return type of a GCC |
| 8715 | builtin and then its argument prototype would still apply. */ |
| 8716 | #ifdef __cplusplus |
| 8717 | extern "C" |
| 8718 | #endif |
| 8719 | char XCompositeRedirectWindow (); |
| 8720 | int |
| 8721 | main () |
| 8722 | { |
| 8723 | return XCompositeRedirectWindow (); |
| 8724 | ; |
| 8725 | return 0; |
| 8726 | } |
| 8727 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8728 | if ac_fn_c_try_link "$LINENO"; then : |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8729 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8730 | 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] | 8731 | 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'` ;; |
| 8732 | *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8733 | esac |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8734 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8735 | rm -f core conftest.err conftest.$ac_objext \ |
| 8736 | conftest$ac_exeext conftest.$ac_ext |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8737 | LIBS=$ac_check_soname_save_LIBS |
| 8738 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8739 | if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then : |
| 8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8741 | $as_echo "not found" >&6; } |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8742 | |
| 8743 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8744 | { $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] | 8745 | $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; } |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8746 | |
| 8747 | cat >>confdefs.h <<_ACEOF |
| 8748 | #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite" |
| 8749 | _ACEOF |
| 8750 | |
| 8751 | |
| 8752 | fi |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8753 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8754 | if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8755 | case "x$with_xcomposite" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8756 | 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] | 8757 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8758 | *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8759 | This is an error since --with-xcomposite was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8760 | esac |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8761 | fi |
| 8762 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8763 | 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] | 8764 | #include <X11/Xlib.h> |
| 8765 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8766 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8767 | if test "x$ac_cv_member_XICCallback_callback" = xyes; then : |
Kusanagi Kouichi | 75e4022 | 2008-04-16 00:34:54 +0900 | [diff] [blame] | 8768 | |
| 8769 | cat >>confdefs.h <<_ACEOF |
| 8770 | #define HAVE_XICCALLBACK_CALLBACK 1 |
| 8771 | _ACEOF |
| 8772 | |
| 8773 | |
| 8774 | fi |
Alexandre Julliard | a8575a8 | 2011-04-12 21:16:15 +0200 | [diff] [blame] | 8775 | ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H |
| 8776 | #include <X11/Xlib.h> |
| 8777 | #endif |
| 8778 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8779 | if test "x$ac_cv_member_XEvent_xcookie" = xyes; then : |
Alexandre Julliard | a8575a8 | 2011-04-12 21:16:15 +0200 | [diff] [blame] | 8780 | |
| 8781 | cat >>confdefs.h <<_ACEOF |
| 8782 | #define HAVE_XEVENT_XCOOKIE 1 |
| 8783 | _ACEOF |
| 8784 | |
| 8785 | |
| 8786 | fi |
Kusanagi Kouichi | 75e4022 | 2008-04-16 00:34:54 +0900 | [diff] [blame] | 8787 | |
| 8788 | |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8789 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8790 | opengl_msg="" |
| 8791 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8792 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8793 | for ac_header in GL/gl.h GL/glx.h GL/glu.h |
| 8794 | do : |
| 8795 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8796 | 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] | 8797 | # include <GL/glx.h> |
| 8798 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8799 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8800 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8801 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8802 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8803 | _ACEOF |
| 8804 | |
| 8805 | fi |
| 8806 | |
| 8807 | done |
| 8808 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8809 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
| 8810 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8811 | { $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] | 8812 | $as_echo_n "checking for up-to-date OpenGL version... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8813 | if ${wine_cv_opengl_header_version_OK+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8814 | $as_echo_n "(cached) " >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8815 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8817 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8818 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8819 | int |
| 8820 | main () |
| 8821 | { |
Dan Kegel | 45725be | 2011-08-31 17:35:49 -0700 | [diff] [blame] | 8822 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8823 | ; |
| 8824 | return 0; |
| 8825 | } |
| 8826 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8827 | if ac_fn_c_try_compile "$LINENO"; then : |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 8828 | wine_cv_opengl_header_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8829 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8830 | wine_cv_opengl_header_version_OK="no" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8831 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8833 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8834 | { $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] | 8835 | $as_echo "$wine_cv_opengl_header_version_OK" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8836 | |
Alexandre Julliard | cc6a08c | 2006-08-24 14:34:22 +0200 | [diff] [blame] | 8837 | if test "$wine_cv_opengl_header_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8838 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8840 | $as_echo_n "checking for -lGL... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8841 | if ${ac_cv_lib_soname_GL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8842 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8843 | else |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8844 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8845 | LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8847 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8848 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8849 | /* Override any GCC internal prototype to avoid an error. |
| 8850 | Use char because int might match the return type of a GCC |
| 8851 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8852 | #ifdef __cplusplus |
| 8853 | extern "C" |
| 8854 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8855 | char glXCreateContext (); |
| 8856 | int |
| 8857 | main () |
| 8858 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8859 | return glXCreateContext (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8860 | ; |
| 8861 | return 0; |
| 8862 | } |
| 8863 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8864 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8865 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8866 | 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] | 8867 | 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'` ;; |
| 8868 | *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8869 | esac |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8870 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8871 | rm -f core conftest.err conftest.$ac_objext \ |
| 8872 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8873 | LIBS=$ac_check_soname_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8874 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8875 | if test "x$ac_cv_lib_soname_GL" = "x"; then : |
| 8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8877 | $as_echo "not found" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8879 | $as_echo_n "checking for -lGL... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8880 | if ${ac_cv_lib_soname_GL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8881 | $as_echo_n "(cached) " >&6 |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8882 | else |
| 8883 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8884 | 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] | 8885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8886 | /* end confdefs.h. */ |
| 8887 | |
| 8888 | /* Override any GCC internal prototype to avoid an error. |
| 8889 | Use char because int might match the return type of a GCC |
| 8890 | builtin and then its argument prototype would still apply. */ |
| 8891 | #ifdef __cplusplus |
| 8892 | extern "C" |
| 8893 | #endif |
| 8894 | char glXCreateContext (); |
| 8895 | int |
| 8896 | main () |
| 8897 | { |
| 8898 | return glXCreateContext (); |
| 8899 | ; |
| 8900 | return 0; |
| 8901 | } |
| 8902 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8903 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8904 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8905 | 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] | 8906 | 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'` ;; |
| 8907 | *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8908 | esac |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8909 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8910 | rm -f core conftest.err conftest.$ac_objext \ |
| 8911 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8912 | LIBS=$ac_check_soname_save_LIBS |
| 8913 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8914 | if test "x$ac_cv_lib_soname_GL" = "x"; then : |
| 8915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8916 | $as_echo "not found" >&6; } |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8917 | if test -f /usr/X11R6/lib/libGL.a |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8918 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8919 | opengl_msg="/usr/X11R6/lib/libGL.a is present on your system. |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8920 | 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] | 8921 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8922 | opengl_msg="No OpenGL library found on this system." |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8923 | fi |
| 8924 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8925 | { $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] | 8926 | $as_echo "$ac_cv_lib_soname_GL" >&6; } |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8927 | |
| 8928 | cat >>confdefs.h <<_ACEOF |
| 8929 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 8930 | _ACEOF |
| 8931 | |
| 8932 | 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] | 8933 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8934 | $as_echo "#define HAVE_OPENGL 1" >>confdefs.h |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8935 | |
| 8936 | fi |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8937 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8938 | { $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] | 8939 | $as_echo "$ac_cv_lib_soname_GL" >&6; } |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8940 | |
| 8941 | cat >>confdefs.h <<_ACEOF |
| 8942 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 8943 | _ACEOF |
| 8944 | |
| 8945 | OPENGL_LIBS="-lGL" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8946 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8947 | $as_echo "#define HAVE_OPENGL 1" >>confdefs.h |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8948 | |
Alexandre Julliard | c84c478 | 2006-09-22 09:36:12 +0200 | [diff] [blame] | 8949 | fi |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8950 | if test "$ac_cv_header_GL_glu_h" = "yes" |
| 8951 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8953 | $as_echo_n "checking for -lGLU... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8954 | if ${ac_cv_lib_soname_GLU+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8955 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8956 | else |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8957 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8958 | 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] | 8959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8960 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8961 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8962 | /* Override any GCC internal prototype to avoid an error. |
| 8963 | Use char because int might match the return type of a GCC |
| 8964 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8965 | #ifdef __cplusplus |
| 8966 | extern "C" |
| 8967 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8968 | char gluLookAt (); |
| 8969 | int |
| 8970 | main () |
| 8971 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8972 | return gluLookAt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8973 | ; |
| 8974 | return 0; |
| 8975 | } |
| 8976 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8977 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8978 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8979 | 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] | 8980 | 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'` ;; |
| 8981 | *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8982 | esac |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8983 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8984 | rm -f core conftest.err conftest.$ac_objext \ |
| 8985 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8986 | LIBS=$ac_check_soname_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8987 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8988 | if test "x$ac_cv_lib_soname_GLU" = "x"; then : |
| 8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8990 | $as_echo "not found" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8991 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8992 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8993 | { $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] | 8994 | $as_echo "$ac_cv_lib_soname_GLU" >&6; } |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8995 | |
| 8996 | cat >>confdefs.h <<_ACEOF |
| 8997 | #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU" |
| 8998 | _ACEOF |
| 8999 | |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 9000 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 9001 | fi |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 9002 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9003 | if test "x$ac_cv_lib_soname_GLU" = "x"; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 9004 | case "x$with_glu" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9005 | 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] | 9006 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9007 | *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9008 | This is an error since --with-glu was requested." "$LINENO" 5 ;; |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 9009 | esac |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9010 | fi |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9011 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9012 | opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries." |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9013 | fi |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 9014 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9015 | opengl_msg="OpenGL development headers not found." |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9016 | fi |
Alexandre Julliard | 8e9504d | 2008-09-24 13:11:11 +0200 | [diff] [blame] | 9017 | test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no} |
| 9018 | test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no} |
| 9019 | else |
| 9020 | enable_opengl32=${enable_opengl32:-no} |
| 9021 | enable_glu32=${enable_glu32:-no} |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9022 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9023 | if test -n "$opengl_msg"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9024 | case "x$with_opengl" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9025 | x) as_fn_append wine_warnings "|$opengl_msg |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9026 | OpenGL and Direct3D won't be supported." ;; |
| 9027 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9028 | *) as_fn_error $? "$opengl_msg |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9029 | OpenGL and Direct3D won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9030 | This is an error since --with-opengl was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9031 | esac |
| 9032 | fi |
| 9033 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 9034 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 9035 | else |
| 9036 | XLIB="" |
| 9037 | X_CFLAGS="" |
| 9038 | X_LIBS="" |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 9039 | enable_winex11_drv=${enable_winex11_drv:-no} |
| 9040 | enable_opengl32=${enable_opengl32:-no} |
| 9041 | enable_glu32=${enable_glu32:-no} |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 9042 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9043 | if test "x$XLIB" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9044 | case "x$with_x" in |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9045 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9046 | *) 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] | 9047 | without X support, which probably isn't what you want. You will need |
| 9048 | to install ${notice_platform}development packages of Xlib/Xfree86 at the very least. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9049 | Use the --without-x option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9050 | esac |
| 9051 | fi |
| 9052 | |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 9053 | if test "$ac_cv_header_CL_cl_h" = "yes" |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 9054 | then |
| 9055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5 |
| 9056 | $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9057 | if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then : |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 9058 | $as_echo_n "(cached) " >&6 |
| 9059 | else |
| 9060 | ac_check_lib_save_LIBS=$LIBS |
| 9061 | LIBS="-lOpenCL $LIBS" |
| 9062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9063 | /* end confdefs.h. */ |
| 9064 | |
| 9065 | /* Override any GCC internal prototype to avoid an error. |
| 9066 | Use char because int might match the return type of a GCC |
| 9067 | builtin and then its argument prototype would still apply. */ |
| 9068 | #ifdef __cplusplus |
| 9069 | extern "C" |
| 9070 | #endif |
| 9071 | char clGetPlatformInfo (); |
| 9072 | int |
| 9073 | main () |
| 9074 | { |
| 9075 | return clGetPlatformInfo (); |
| 9076 | ; |
| 9077 | return 0; |
| 9078 | } |
| 9079 | _ACEOF |
| 9080 | if ac_fn_c_try_link "$LINENO"; then : |
| 9081 | ac_cv_lib_OpenCL_clGetPlatformInfo=yes |
| 9082 | else |
| 9083 | ac_cv_lib_OpenCL_clGetPlatformInfo=no |
| 9084 | fi |
| 9085 | rm -f core conftest.err conftest.$ac_objext \ |
| 9086 | conftest$ac_exeext conftest.$ac_ext |
| 9087 | LIBS=$ac_check_lib_save_LIBS |
| 9088 | fi |
| 9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5 |
| 9090 | $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9091 | if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then : |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 9092 | LIBOPENCL="-lOpenCL" |
| 9093 | |
| 9094 | fi |
| 9095 | |
| 9096 | fi |
| 9097 | if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then : |
| 9098 | case "x$with_opencl" in |
| 9099 | x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;; |
| 9100 | xno) ;; |
| 9101 | *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9102 | This is an error since --with-opencl was requested." "$LINENO" 5 ;; |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 9103 | esac |
| 9104 | fi |
| 9105 | test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no} |
| 9106 | |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 9107 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9108 | XML2LIBS="" |
| 9109 | |
| 9110 | XML2INCL="" |
| 9111 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9112 | XSLTINCL="" |
| 9113 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9114 | if test "x$with_xml" != "xno" |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9115 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9116 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9117 | if test "$PKG_CONFIG" != "false" |
| 9118 | then |
| 9119 | ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`" |
| 9120 | ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`" |
| 9121 | else |
| 9122 | ac_xml_libs="`xml2-config --libs 2>/dev/null`" |
| 9123 | ac_xml_cflags="`xml2-config --cflags 2>/dev/null`" |
| 9124 | fi |
| 9125 | CPPFLAGS="$CPPFLAGS $ac_xml_cflags" |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9126 | for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9127 | do : |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9128 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9129 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9130 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9131 | cat >>confdefs.h <<_ACEOF |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9132 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9133 | _ACEOF |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9134 | |
| 9135 | fi |
| 9136 | |
| 9137 | done |
| 9138 | |
| 9139 | if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes" |
| 9140 | then |
| 9141 | { $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] | 9142 | $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9143 | if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9144 | $as_echo_n "(cached) " >&6 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9145 | else |
| 9146 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9147 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9149 | /* end confdefs.h. */ |
| 9150 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9151 | /* Override any GCC internal prototype to avoid an error. |
| 9152 | Use char because int might match the return type of a GCC |
| 9153 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9154 | #ifdef __cplusplus |
| 9155 | extern "C" |
| 9156 | #endif |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9157 | char xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9158 | int |
| 9159 | main () |
| 9160 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9161 | return xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9162 | ; |
| 9163 | return 0; |
| 9164 | } |
| 9165 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9166 | if ac_fn_c_try_link "$LINENO"; then : |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9167 | ac_cv_lib_xml2_xmlParseMemory=yes |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9168 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9169 | ac_cv_lib_xml2_xmlParseMemory=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9170 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9171 | rm -f core conftest.err conftest.$ac_objext \ |
| 9172 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9173 | LIBS=$ac_check_lib_save_LIBS |
| 9174 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9175 | { $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] | 9176 | $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9177 | if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then : |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9178 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9179 | $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9180 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9181 | XML2LIBS="$ac_xml_libs" |
| 9182 | XML2INCL="$ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9183 | fi |
| 9184 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9185 | { $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] | 9186 | $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9187 | if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9188 | $as_echo_n "(cached) " >&6 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9189 | else |
| 9190 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9191 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9193 | /* end confdefs.h. */ |
| 9194 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9195 | /* Override any GCC internal prototype to avoid an error. |
| 9196 | Use char because int might match the return type of a GCC |
| 9197 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9198 | #ifdef __cplusplus |
| 9199 | extern "C" |
| 9200 | #endif |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9201 | char xmlReadMemory (); |
| 9202 | int |
| 9203 | main () |
| 9204 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9205 | return xmlReadMemory (); |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9206 | ; |
| 9207 | return 0; |
| 9208 | } |
| 9209 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9210 | if ac_fn_c_try_link "$LINENO"; then : |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9211 | ac_cv_lib_xml2_xmlReadMemory=yes |
| 9212 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9213 | ac_cv_lib_xml2_xmlReadMemory=no |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9214 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9215 | rm -f core conftest.err conftest.$ac_objext \ |
| 9216 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9217 | LIBS=$ac_check_lib_save_LIBS |
| 9218 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9219 | { $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] | 9220 | $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9221 | if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then : |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9222 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9223 | $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9224 | |
| 9225 | fi |
| 9226 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9227 | { $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] | 9228 | $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9229 | if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9230 | $as_echo_n "(cached) " >&6 |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9231 | else |
| 9232 | ac_check_lib_save_LIBS=$LIBS |
| 9233 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9235 | /* end confdefs.h. */ |
| 9236 | |
| 9237 | /* Override any GCC internal prototype to avoid an error. |
| 9238 | Use char because int might match the return type of a GCC |
| 9239 | builtin and then its argument prototype would still apply. */ |
| 9240 | #ifdef __cplusplus |
| 9241 | extern "C" |
| 9242 | #endif |
| 9243 | char xmlNewDocPI (); |
| 9244 | int |
| 9245 | main () |
| 9246 | { |
| 9247 | return xmlNewDocPI (); |
| 9248 | ; |
| 9249 | return 0; |
| 9250 | } |
| 9251 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9252 | if ac_fn_c_try_link "$LINENO"; then : |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9253 | ac_cv_lib_xml2_xmlNewDocPI=yes |
| 9254 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9255 | ac_cv_lib_xml2_xmlNewDocPI=no |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9256 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9257 | rm -f core conftest.err conftest.$ac_objext \ |
| 9258 | conftest$ac_exeext conftest.$ac_ext |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9259 | LIBS=$ac_check_lib_save_LIBS |
| 9260 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9261 | { $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] | 9262 | $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9263 | if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then : |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9264 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9265 | $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9266 | |
| 9267 | fi |
| 9268 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5 |
Adam Martinson | 6ee2231 | 2010-11-22 20:54:54 -0600 | [diff] [blame] | 9270 | $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9271 | if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then : |
Adam Martinson | 6ee2231 | 2010-11-22 20:54:54 -0600 | [diff] [blame] | 9272 | $as_echo_n "(cached) " >&6 |
| 9273 | else |
| 9274 | ac_check_lib_save_LIBS=$LIBS |
| 9275 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9277 | /* end confdefs.h. */ |
| 9278 | |
| 9279 | /* Override any GCC internal prototype to avoid an error. |
| 9280 | Use char because int might match the return type of a GCC |
| 9281 | builtin and then its argument prototype would still apply. */ |
| 9282 | #ifdef __cplusplus |
| 9283 | extern "C" |
| 9284 | #endif |
| 9285 | char xmlSchemaSetParserStructuredErrors (); |
| 9286 | int |
| 9287 | main () |
| 9288 | { |
| 9289 | return xmlSchemaSetParserStructuredErrors (); |
| 9290 | ; |
| 9291 | return 0; |
| 9292 | } |
| 9293 | _ACEOF |
| 9294 | if ac_fn_c_try_link "$LINENO"; then : |
| 9295 | ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes |
| 9296 | else |
| 9297 | ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no |
| 9298 | fi |
| 9299 | rm -f core conftest.err conftest.$ac_objext \ |
| 9300 | conftest$ac_exeext conftest.$ac_ext |
| 9301 | LIBS=$ac_check_lib_save_LIBS |
| 9302 | fi |
| 9303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5 |
| 9304 | $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9305 | if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then : |
Adam Martinson | 6ee2231 | 2010-11-22 20:54:54 -0600 | [diff] [blame] | 9306 | |
| 9307 | $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h |
| 9308 | |
| 9309 | fi |
| 9310 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5 |
Adam Martinson | be4d0e9 | 2010-11-01 14:11:16 -0500 | [diff] [blame] | 9312 | $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9313 | if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then : |
Adam Martinson | be4d0e9 | 2010-11-01 14:11:16 -0500 | [diff] [blame] | 9314 | $as_echo_n "(cached) " >&6 |
| 9315 | else |
| 9316 | ac_check_lib_save_LIBS=$LIBS |
| 9317 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9319 | /* end confdefs.h. */ |
| 9320 | |
| 9321 | /* Override any GCC internal prototype to avoid an error. |
| 9322 | Use char because int might match the return type of a GCC |
| 9323 | builtin and then its argument prototype would still apply. */ |
| 9324 | #ifdef __cplusplus |
| 9325 | extern "C" |
| 9326 | #endif |
| 9327 | char xmlSchemaSetValidStructuredErrors (); |
| 9328 | int |
| 9329 | main () |
| 9330 | { |
| 9331 | return xmlSchemaSetValidStructuredErrors (); |
| 9332 | ; |
| 9333 | return 0; |
| 9334 | } |
| 9335 | _ACEOF |
| 9336 | if ac_fn_c_try_link "$LINENO"; then : |
| 9337 | ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes |
| 9338 | else |
| 9339 | ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no |
| 9340 | fi |
| 9341 | rm -f core conftest.err conftest.$ac_objext \ |
| 9342 | conftest$ac_exeext conftest.$ac_ext |
| 9343 | LIBS=$ac_check_lib_save_LIBS |
| 9344 | fi |
| 9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5 |
| 9346 | $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9347 | if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then : |
Adam Martinson | be4d0e9 | 2010-11-01 14:11:16 -0500 | [diff] [blame] | 9348 | |
| 9349 | $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h |
| 9350 | |
| 9351 | fi |
| 9352 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5 |
Adam Martinson | 82f73c8 | 2010-11-11 15:16:24 -0600 | [diff] [blame] | 9354 | $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9355 | if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then : |
Adam Martinson | 82f73c8 | 2010-11-11 15:16:24 -0600 | [diff] [blame] | 9356 | $as_echo_n "(cached) " >&6 |
| 9357 | else |
| 9358 | ac_check_lib_save_LIBS=$LIBS |
| 9359 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9361 | /* end confdefs.h. */ |
| 9362 | |
| 9363 | /* Override any GCC internal prototype to avoid an error. |
| 9364 | Use char because int might match the return type of a GCC |
| 9365 | builtin and then its argument prototype would still apply. */ |
| 9366 | #ifdef __cplusplus |
| 9367 | extern "C" |
| 9368 | #endif |
| 9369 | char xmlFirstElementChild (); |
| 9370 | int |
| 9371 | main () |
| 9372 | { |
| 9373 | return xmlFirstElementChild (); |
| 9374 | ; |
| 9375 | return 0; |
| 9376 | } |
| 9377 | _ACEOF |
| 9378 | if ac_fn_c_try_link "$LINENO"; then : |
| 9379 | ac_cv_lib_xml2_xmlFirstElementChild=yes |
| 9380 | else |
| 9381 | ac_cv_lib_xml2_xmlFirstElementChild=no |
| 9382 | fi |
| 9383 | rm -f core conftest.err conftest.$ac_objext \ |
| 9384 | conftest$ac_exeext conftest.$ac_ext |
| 9385 | LIBS=$ac_check_lib_save_LIBS |
| 9386 | fi |
| 9387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5 |
| 9388 | $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9389 | if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then : |
Adam Martinson | 82f73c8 | 2010-11-11 15:16:24 -0600 | [diff] [blame] | 9390 | |
| 9391 | $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h |
| 9392 | |
| 9393 | fi |
| 9394 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9395 | ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h> |
Adam Martinson | 9408b49 | 2010-11-02 17:20:08 -0500 | [diff] [blame] | 9396 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9397 | if test "x$ac_cv_type_xmlDocProperties" = xyes; then : |
Adam Martinson | 9408b49 | 2010-11-02 17:20:08 -0500 | [diff] [blame] | 9398 | |
| 9399 | $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h |
| 9400 | |
| 9401 | fi |
| 9402 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9403 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9404 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9405 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9406 | if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9407 | case "x$with_xml" in |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9408 | x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9409 | xno) ;; |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9410 | *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9411 | This is an error since --with-xml was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9412 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9413 | fi |
| 9414 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9415 | if test "x$with_xslt" != "xno" |
Emmanuel Maillard | 2a98b40 | 2007-06-22 02:58:39 +0200 | [diff] [blame] | 9416 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9417 | if test "$PKG_CONFIG" != "false" |
| 9418 | then |
| 9419 | ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`" |
| 9420 | ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`" |
| 9421 | else |
| 9422 | ac_xslt_libs="`xslt-config --libs 2>/dev/null`" |
| 9423 | ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`" |
| 9424 | fi |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9425 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9426 | CPPFLAGS="$CPPFLAGS $ac_xslt_cflags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9427 | for ac_header in libxslt/pattern.h libxslt/transform.h |
| 9428 | do : |
| 9429 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9430 | 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] | 9431 | # include <libxslt/pattern.h> |
| 9432 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9433 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9434 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9435 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9436 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9437 | _ACEOF |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9438 | |
| 9439 | fi |
| 9440 | |
| 9441 | done |
| 9442 | |
| 9443 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9444 | if test "$ac_cv_header_libxslt_transform_h" = "yes" |
| 9445 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5 |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9447 | $as_echo_n "checking for -lxslt... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9448 | if ${ac_cv_lib_soname_xslt+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9449 | $as_echo_n "(cached) " >&6 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9450 | else |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9451 | ac_check_soname_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9452 | LIBS="-lxslt $ac_xslt_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9454 | /* end confdefs.h. */ |
| 9455 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9456 | /* Override any GCC internal prototype to avoid an error. |
| 9457 | Use char because int might match the return type of a GCC |
| 9458 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9459 | #ifdef __cplusplus |
| 9460 | extern "C" |
| 9461 | #endif |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9462 | char xsltCompilePattern (); |
| 9463 | int |
| 9464 | main () |
| 9465 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9466 | return xsltCompilePattern (); |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9467 | ; |
| 9468 | return 0; |
| 9469 | } |
| 9470 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9471 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9472 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9473 | 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] | 9474 | 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'` ;; |
| 9475 | *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9476 | esac |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9477 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9478 | rm -f core conftest.err conftest.$ac_objext \ |
| 9479 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9480 | LIBS=$ac_check_soname_save_LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9481 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9482 | if test "x$ac_cv_lib_soname_xslt" = "x"; then : |
| 9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9484 | $as_echo "not found" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9485 | |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9486 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9487 | { $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] | 9488 | $as_echo "$ac_cv_lib_soname_xslt" >&6; } |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9489 | |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9490 | cat >>confdefs.h <<_ACEOF |
| 9491 | #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt" |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9492 | _ACEOF |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9493 | |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9494 | XSLTINCL="$ac_xslt_cflags" |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9495 | fi |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9496 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9497 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9498 | if test "x$ac_cv_lib_soname_xslt" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9499 | case "x$with_xslt" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9500 | 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] | 9501 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9502 | *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9503 | This is an error since --with-xslt was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9504 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9505 | fi |
| 9506 | |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9507 | if test "x$with_dbus" != "xno" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9508 | then |
| 9509 | ac_save_CPPFLAGS="$CPPFLAGS" |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9510 | if test "$PKG_CONFIG" != "false" |
| 9511 | then |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9512 | ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`" |
| 9513 | ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`" |
| 9514 | CPPFLAGS="$CPPFLAGS $ac_dbus_cflags" |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9515 | fi |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9516 | ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default" |
| 9517 | if test "x$ac_cv_header_dbus_dbus_h" = xyes; then : |
| 9518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5 |
| 9519 | $as_echo_n "checking for -ldbus-1... " >&6; } |
| 9520 | if ${ac_cv_lib_soname_dbus_1+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9521 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9522 | else |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9523 | ac_check_soname_save_LIBS=$LIBS |
| 9524 | LIBS="-ldbus-1 $ac_dbus_libs $LIBS" |
| 9525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9526 | /* end confdefs.h. */ |
| 9527 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9528 | /* Override any GCC internal prototype to avoid an error. |
| 9529 | Use char because int might match the return type of a GCC |
| 9530 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9531 | #ifdef __cplusplus |
| 9532 | extern "C" |
| 9533 | #endif |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9534 | char dbus_connection_close (); |
| 9535 | int |
| 9536 | main () |
| 9537 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9538 | return dbus_connection_close (); |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9539 | ; |
| 9540 | return 0; |
| 9541 | } |
| 9542 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9543 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9544 | case "$LIBEXT" in |
| 9545 | dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
| 9546 | dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep "libdbus-1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 9547 | *) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9548 | esac |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9549 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9550 | rm -f core conftest.err conftest.$ac_objext \ |
| 9551 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9552 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9553 | fi |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9554 | if test "x$ac_cv_lib_soname_dbus_1" = "x"; then : |
| 9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 9556 | $as_echo "not found" >&6; } |
| 9557 | |
| 9558 | else |
| 9559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5 |
| 9560 | $as_echo "$ac_cv_lib_soname_dbus_1" >&6; } |
| 9561 | |
| 9562 | cat >>confdefs.h <<_ACEOF |
| 9563 | #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1" |
| 9564 | _ACEOF |
| 9565 | |
| 9566 | DBUSINCL="$ac_dbus_cflags" |
| 9567 | |
| 9568 | fi |
| 9569 | fi |
| 9570 | |
| 9571 | |
| 9572 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9573 | fi |
| 9574 | if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \ |
| 9575 | "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then : |
| 9576 | case "x$with_dbus" in |
| 9577 | x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;; |
| 9578 | xno) ;; |
| 9579 | *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support. |
| 9580 | This is an error since --with-dbus was requested." "$LINENO" 5 ;; |
| 9581 | esac |
| 9582 | fi |
| 9583 | |
| 9584 | if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x |
| 9585 | then |
| 9586 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9587 | if test "$PKG_CONFIG" != "false" |
| 9588 | then |
| 9589 | ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`" |
| 9590 | ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`" |
| 9591 | CPPFLAGS="$CPPFLAGS $ac_hal_cflags" |
| 9592 | fi |
| 9593 | ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default" |
| 9594 | if test "x$ac_cv_header_hal_libhal_h" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9596 | $as_echo_n "checking for -lhal... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9597 | if ${ac_cv_lib_soname_hal+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9598 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9599 | else |
| 9600 | ac_check_soname_save_LIBS=$LIBS |
| 9601 | LIBS="-lhal $ac_hal_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9603 | /* end confdefs.h. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9604 | |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9605 | /* Override any GCC internal prototype to avoid an error. |
| 9606 | Use char because int might match the return type of a GCC |
| 9607 | builtin and then its argument prototype would still apply. */ |
| 9608 | #ifdef __cplusplus |
| 9609 | extern "C" |
| 9610 | #endif |
| 9611 | char libhal_ctx_new (); |
| 9612 | int |
| 9613 | main () |
| 9614 | { |
| 9615 | return libhal_ctx_new (); |
| 9616 | ; |
| 9617 | return 0; |
| 9618 | } |
| 9619 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9620 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9621 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9622 | 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] | 9623 | 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'` ;; |
| 9624 | *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9625 | esac |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9626 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9627 | rm -f core conftest.err conftest.$ac_objext \ |
| 9628 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9629 | LIBS=$ac_check_soname_save_LIBS |
| 9630 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9631 | if test "x$ac_cv_lib_soname_hal" = "x"; then : |
| 9632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9633 | $as_echo "not found" >&6; } |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9634 | |
| 9635 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9636 | { $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] | 9637 | $as_echo "$ac_cv_lib_soname_hal" >&6; } |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9638 | |
| 9639 | cat >>confdefs.h <<_ACEOF |
| 9640 | #define SONAME_LIBHAL "$ac_cv_lib_soname_hal" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9641 | _ACEOF |
| 9642 | |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9643 | HALINCL="$ac_hal_cflags" |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9644 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9645 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9646 | fi |
| 9647 | |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9648 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9649 | CPPFLAGS="$ac_save_CPPFLAGS" |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9650 | if test "x$ac_cv_lib_soname_hal" = "x" -a \ |
| 9651 | "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9652 | case "x$with_hal" in |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9653 | x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9654 | xno) ;; |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9655 | *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9656 | This is an error since --with-hal was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9657 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9658 | fi |
Alexandre Julliard | e45d124 | 2011-12-20 10:36:35 +0100 | [diff] [blame] | 9659 | fi |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9660 | |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9661 | if test "x$with_gnutls" != "xno" |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9662 | then |
| 9663 | ac_save_CPPFLAGS="$CPPFLAGS" |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9664 | if test "$PKG_CONFIG" != "false" |
| 9665 | then |
| 9666 | ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`" |
| 9667 | ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`" |
| 9668 | CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags" |
| 9669 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9670 | ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9671 | if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9673 | /* end confdefs.h. */ |
| 9674 | #include <gnutls/gnutls.h> |
| 9675 | int |
| 9676 | main () |
| 9677 | { |
Dan Kegel | 45725be | 2011-08-31 17:35:49 -0700 | [diff] [blame] | 9678 | static typeof(gnutls_mac_get_key_size) *func; if (func) return 0; |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9679 | ; |
| 9680 | return 0; |
| 9681 | } |
| 9682 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9683 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9685 | $as_echo_n "checking for -lgnutls... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9686 | if ${ac_cv_lib_soname_gnutls+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9687 | $as_echo_n "(cached) " >&6 |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9688 | else |
| 9689 | ac_check_soname_save_LIBS=$LIBS |
| 9690 | LIBS="-lgnutls $ac_gnutls_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9692 | /* end confdefs.h. */ |
| 9693 | |
| 9694 | /* Override any GCC internal prototype to avoid an error. |
| 9695 | Use char because int might match the return type of a GCC |
| 9696 | builtin and then its argument prototype would still apply. */ |
| 9697 | #ifdef __cplusplus |
| 9698 | extern "C" |
| 9699 | #endif |
| 9700 | char gnutls_global_init (); |
| 9701 | int |
| 9702 | main () |
| 9703 | { |
| 9704 | return gnutls_global_init (); |
| 9705 | ; |
| 9706 | return 0; |
| 9707 | } |
| 9708 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9709 | if ac_fn_c_try_link "$LINENO"; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9710 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9711 | 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] | 9712 | 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'` ;; |
| 9713 | *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9714 | esac |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9715 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9716 | rm -f core conftest.err conftest.$ac_objext \ |
| 9717 | conftest$ac_exeext conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9718 | LIBS=$ac_check_soname_save_LIBS |
| 9719 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9720 | if test "x$ac_cv_lib_soname_gnutls" = "x"; then : |
| 9721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9722 | $as_echo "not found" >&6; } |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9723 | |
| 9724 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9725 | { $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] | 9726 | $as_echo "$ac_cv_lib_soname_gnutls" >&6; } |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9727 | |
| 9728 | cat >>confdefs.h <<_ACEOF |
| 9729 | #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls" |
| 9730 | _ACEOF |
| 9731 | |
| 9732 | GNUTLSINCL="$ac_gnutls_cflags" |
| 9733 | |
| 9734 | fi |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9735 | fi |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9737 | fi |
| 9738 | |
| 9739 | |
| 9740 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9741 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9742 | if test "x$ac_cv_lib_soname_gnutls" = "x"; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9743 | case "x$with_gnutls" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9744 | 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] | 9745 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9746 | *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9747 | This is an error since --with-gnutls was requested." "$LINENO" 5 ;; |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9748 | esac |
| 9749 | fi |
| 9750 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9751 | CURSESLIBS="" |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9752 | if test "$ac_cv_header_ncurses_h" = "yes" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 9753 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9755 | $as_echo_n "checking for -lncurses... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9756 | if ${ac_cv_lib_soname_ncurses+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9757 | $as_echo_n "(cached) " >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9758 | else |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9759 | ac_check_soname_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9760 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9762 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9763 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9764 | /* Override any GCC internal prototype to avoid an error. |
| 9765 | Use char because int might match the return type of a GCC |
| 9766 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9767 | #ifdef __cplusplus |
| 9768 | extern "C" |
| 9769 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9770 | char waddch (); |
| 9771 | int |
| 9772 | main () |
| 9773 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9774 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9775 | ; |
| 9776 | return 0; |
| 9777 | } |
| 9778 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9779 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9780 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9781 | 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] | 9782 | 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'` ;; |
| 9783 | *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9784 | esac |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9785 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9786 | rm -f core conftest.err conftest.$ac_objext \ |
| 9787 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9788 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9789 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9790 | if test "x$ac_cv_lib_soname_ncurses" = "x"; then : |
| 9791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9792 | $as_echo "not found" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9793 | |
| 9794 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9795 | { $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] | 9796 | $as_echo "$ac_cv_lib_soname_ncurses" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9797 | |
| 9798 | cat >>confdefs.h <<_ACEOF |
| 9799 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
| 9800 | _ACEOF |
| 9801 | |
| 9802 | CURSESLIBS="-lncurses" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9803 | fi |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9804 | elif test "$ac_cv_header_curses_h" = "yes" |
| 9805 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9807 | $as_echo_n "checking for -lcurses... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9808 | if ${ac_cv_lib_soname_curses+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9809 | $as_echo_n "(cached) " >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9810 | else |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9811 | ac_check_soname_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9812 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9814 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9815 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9816 | /* Override any GCC internal prototype to avoid an error. |
| 9817 | Use char because int might match the return type of a GCC |
| 9818 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9819 | #ifdef __cplusplus |
| 9820 | extern "C" |
| 9821 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9822 | char waddch (); |
| 9823 | int |
| 9824 | main () |
| 9825 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9826 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9827 | ; |
| 9828 | return 0; |
| 9829 | } |
| 9830 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9831 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9832 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9833 | 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] | 9834 | 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'` ;; |
| 9835 | *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9836 | esac |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9837 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9838 | rm -f core conftest.err conftest.$ac_objext \ |
| 9839 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9840 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9841 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9842 | if test "x$ac_cv_lib_soname_curses" = "x"; then : |
| 9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9844 | $as_echo "not found" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9845 | |
| 9846 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9847 | { $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] | 9848 | $as_echo "$ac_cv_lib_soname_curses" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9849 | |
| 9850 | cat >>confdefs.h <<_ACEOF |
| 9851 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
| 9852 | _ACEOF |
| 9853 | |
| 9854 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9855 | fi |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9856 | fi |
| 9857 | ac_save_LIBS="$LIBS" |
| 9858 | LIBS="$LIBS $CURSESLIBS" |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9859 | for ac_func in mousemask |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9860 | do : |
| 9861 | ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9862 | if test "x$ac_cv_func_mousemask" = xyes; then : |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9863 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9864 | #define HAVE_MOUSEMASK 1 |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9865 | _ACEOF |
| 9866 | |
| 9867 | fi |
| 9868 | done |
| 9869 | |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9870 | LIBS="$ac_save_LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9871 | 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] | 9872 | case "x$with_curses" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9873 | 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] | 9874 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9875 | *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9876 | This is an error since --with-curses was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9877 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9878 | fi |
| 9879 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9880 | if test "x$with_sane" != "xno" |
| 9881 | then |
| 9882 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9883 | # 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] | 9884 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9886 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9887 | if ${ac_cv_prog_sane_devel+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9888 | $as_echo_n "(cached) " >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9889 | else |
| 9890 | if test -n "$sane_devel"; then |
| 9891 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 9892 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9894 | for as_dir in $PATH |
| 9895 | do |
| 9896 | IFS=$as_save_IFS |
| 9897 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9898 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 9899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9900 | ac_cv_prog_sane_devel="sane-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9901 | $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] | 9902 | break 2 |
| 9903 | fi |
| 9904 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9905 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9906 | IFS=$as_save_IFS |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9907 | |
| 9908 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 9909 | fi |
| 9910 | fi |
| 9911 | sane_devel=$ac_cv_prog_sane_devel |
| 9912 | if test -n "$sane_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9914 | $as_echo "$sane_devel" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9915 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9917 | $as_echo "no" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9918 | fi |
| 9919 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9920 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9921 | if test "$sane_devel" != "no" |
| 9922 | then |
| 9923 | ac_sane_incl="`$sane_devel --cflags`" |
| 9924 | ac_sane_libs="`$sane_devel --ldflags`" |
| 9925 | CPPFLAGS="$CPPFLAGS $ac_sane_incl" |
| 9926 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9927 | ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9928 | if test "x$ac_cv_header_sane_sane_h" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9930 | $as_echo_n "checking for -lsane... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9931 | if ${ac_cv_lib_soname_sane+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9932 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9933 | else |
| 9934 | ac_check_soname_save_LIBS=$LIBS |
Francois Gouget | a9d7bab | 2008-07-20 22:41:41 +0200 | [diff] [blame] | 9935 | LIBS="-lsane $ac_sane_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9937 | /* end confdefs.h. */ |
| 9938 | |
| 9939 | /* Override any GCC internal prototype to avoid an error. |
| 9940 | Use char because int might match the return type of a GCC |
| 9941 | builtin and then its argument prototype would still apply. */ |
| 9942 | #ifdef __cplusplus |
| 9943 | extern "C" |
| 9944 | #endif |
| 9945 | char sane_init (); |
| 9946 | int |
| 9947 | main () |
| 9948 | { |
| 9949 | return sane_init (); |
| 9950 | ; |
| 9951 | return 0; |
| 9952 | } |
| 9953 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9954 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9955 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9956 | 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] | 9957 | 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'` ;; |
| 9958 | *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9959 | esac |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9960 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9961 | rm -f core conftest.err conftest.$ac_objext \ |
| 9962 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9963 | LIBS=$ac_check_soname_save_LIBS |
| 9964 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9965 | if test "x$ac_cv_lib_soname_sane" = "x"; then : |
| 9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9967 | $as_echo "not found" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9968 | |
| 9969 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9970 | { $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] | 9971 | $as_echo "$ac_cv_lib_soname_sane" >&6; } |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9972 | |
| 9973 | cat >>confdefs.h <<_ACEOF |
| 9974 | #define SONAME_LIBSANE "$ac_cv_lib_soname_sane" |
| 9975 | _ACEOF |
| 9976 | |
| 9977 | SANEINCL="$ac_sane_incl" |
| 9978 | |
| 9979 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9980 | fi |
| 9981 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9982 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9983 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9984 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9985 | if test "x$ac_cv_lib_soname_sane" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9986 | case "x$with_sane" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9987 | 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] | 9988 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9989 | *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9990 | This is an error since --with-sane was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9991 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9992 | fi |
| 9993 | |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 9994 | if test "x$with_v4l" != "xno" |
| 9995 | then |
| 9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5 |
| 9997 | $as_echo_n "checking for -lv4l1... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9998 | if ${ac_cv_lib_soname_v4l1+:} false; then : |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 9999 | $as_echo_n "(cached) " >&6 |
| 10000 | else |
| 10001 | ac_check_soname_save_LIBS=$LIBS |
| 10002 | LIBS="-lv4l1 $LIBS" |
| 10003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10004 | /* end confdefs.h. */ |
| 10005 | |
| 10006 | /* Override any GCC internal prototype to avoid an error. |
| 10007 | Use char because int might match the return type of a GCC |
| 10008 | builtin and then its argument prototype would still apply. */ |
| 10009 | #ifdef __cplusplus |
| 10010 | extern "C" |
| 10011 | #endif |
| 10012 | char v4l1_open (); |
| 10013 | int |
| 10014 | main () |
| 10015 | { |
| 10016 | return v4l1_open (); |
| 10017 | ; |
| 10018 | return 0; |
| 10019 | } |
| 10020 | _ACEOF |
| 10021 | if ac_fn_c_try_link "$LINENO"; then : |
| 10022 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10023 | 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] | 10024 | 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'` ;; |
| 10025 | *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10026 | esac |
| 10027 | fi |
| 10028 | rm -f core conftest.err conftest.$ac_objext \ |
| 10029 | conftest$ac_exeext conftest.$ac_ext |
| 10030 | LIBS=$ac_check_soname_save_LIBS |
| 10031 | fi |
| 10032 | if test "x$ac_cv_lib_soname_v4l1" = "x"; then : |
| 10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 10034 | $as_echo "not found" >&6; } |
| 10035 | |
| 10036 | else |
| 10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5 |
| 10038 | $as_echo "$ac_cv_lib_soname_v4l1" >&6; } |
| 10039 | |
| 10040 | cat >>confdefs.h <<_ACEOF |
| 10041 | #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1" |
| 10042 | _ACEOF |
| 10043 | |
| 10044 | |
| 10045 | fi |
| 10046 | fi |
| 10047 | if test "x$ac_cv_lib_soname_v4l1" = "x"; then : |
| 10048 | case "x$with_v4l" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10049 | 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] | 10050 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10051 | *) as_fn_error $? "libv4l ${notice_platform}development files not found. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10052 | This is an error since --with-v4l was requested." "$LINENO" 5 ;; |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 10053 | esac |
| 10054 | fi |
| 10055 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10056 | if test "x$with_gphoto" != "xno" |
| 10057 | then |
| 10058 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10059 | # 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] | 10060 | set dummy gphoto2-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10062 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10063 | if ${ac_cv_prog_gphoto2_devel+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10064 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10065 | else |
| 10066 | if test -n "$gphoto2_devel"; then |
| 10067 | ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test. |
| 10068 | else |
| 10069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10070 | for as_dir in $PATH |
| 10071 | do |
| 10072 | IFS=$as_save_IFS |
| 10073 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10074 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 10075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10076 | ac_cv_prog_gphoto2_devel="gphoto2-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10077 | $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] | 10078 | break 2 |
| 10079 | fi |
| 10080 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10081 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10082 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10083 | |
| 10084 | test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no" |
| 10085 | fi |
| 10086 | fi |
| 10087 | gphoto2_devel=$ac_cv_prog_gphoto2_devel |
| 10088 | if test -n "$gphoto2_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10090 | $as_echo "$gphoto2_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10091 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10093 | $as_echo "no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10094 | fi |
| 10095 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10096 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10097 | # 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] | 10098 | set dummy gphoto2-port-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10100 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10101 | if ${ac_cv_prog_gphoto2port_devel+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10102 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10103 | else |
| 10104 | if test -n "$gphoto2port_devel"; then |
| 10105 | ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test. |
| 10106 | else |
| 10107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10108 | for as_dir in $PATH |
| 10109 | do |
| 10110 | IFS=$as_save_IFS |
| 10111 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10112 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 10113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10114 | ac_cv_prog_gphoto2port_devel="gphoto2-port-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10115 | $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] | 10116 | break 2 |
| 10117 | fi |
| 10118 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10119 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10120 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10121 | |
| 10122 | test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no" |
| 10123 | fi |
| 10124 | fi |
| 10125 | gphoto2port_devel=$ac_cv_prog_gphoto2port_devel |
| 10126 | if test -n "$gphoto2port_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10128 | $as_echo "$gphoto2port_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10129 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10131 | $as_echo "no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10132 | fi |
| 10133 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10134 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10135 | if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no" |
| 10136 | then |
| 10137 | ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`" |
| 10138 | ac_gphoto2_libs="" |
| 10139 | for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs` |
| 10140 | do |
| 10141 | case "$i" in |
| 10142 | -L/usr/lib|-L/usr/lib64) ;; |
| 10143 | -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";; |
| 10144 | esac |
| 10145 | done |
| 10146 | CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl" |
| 10147 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 10148 | ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10149 | ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10150 | if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10151 | { $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] | 10152 | $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10153 | if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10154 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10155 | else |
| 10156 | ac_check_lib_save_LIBS=$LIBS |
Francois Gouget | 4bc03fe | 2008-07-21 17:10:45 +0200 | [diff] [blame] | 10157 | LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10159 | /* end confdefs.h. */ |
| 10160 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10161 | /* Override any GCC internal prototype to avoid an error. |
| 10162 | Use char because int might match the return type of a GCC |
| 10163 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10164 | #ifdef __cplusplus |
| 10165 | extern "C" |
| 10166 | #endif |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10167 | char gp_camera_new (); |
| 10168 | int |
| 10169 | main () |
| 10170 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10171 | return gp_camera_new (); |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10172 | ; |
| 10173 | return 0; |
| 10174 | } |
| 10175 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10176 | if ac_fn_c_try_link "$LINENO"; then : |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10177 | ac_cv_lib_gphoto2_gp_camera_new=yes |
| 10178 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10179 | ac_cv_lib_gphoto2_gp_camera_new=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10180 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10181 | rm -f core conftest.err conftest.$ac_objext \ |
| 10182 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10183 | LIBS=$ac_check_lib_save_LIBS |
| 10184 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10185 | { $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] | 10186 | $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10187 | if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then : |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10188 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10189 | $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10190 | |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10191 | GPHOTO2LIBS="$ac_gphoto2_libs" |
| 10192 | |
| 10193 | GPHOTO2INCL="$ac_gphoto2_incl" |
| 10194 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10195 | fi |
| 10196 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10197 | fi |
| 10198 | |
| 10199 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10200 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10201 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10202 | if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10203 | case "x$with_gphoto" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10204 | 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] | 10205 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10206 | *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10207 | This is an error since --with-gphoto was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10208 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10209 | fi |
| 10210 | |
| 10211 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10212 | if test "$ac_cv_header_resolv_h" = "yes" |
| 10213 | then |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10214 | ac_save_LIBS="$LIBS" |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10215 | for lib in '' -lresolv |
| 10216 | do |
| 10217 | LIBS="$lib $ac_save_LIBS" |
| 10218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10219 | /* end confdefs.h. */ |
Rob Shearman | ba34921 | 2009-01-02 12:12:06 +0000 | [diff] [blame] | 10220 | #ifdef HAVE_NETINET_IN_H |
| 10221 | #include <netinet/in.h> |
| 10222 | #endif |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10223 | #include <resolv.h> |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10224 | int |
| 10225 | main () |
| 10226 | { |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10227 | res_query("foo",ns_c_in,0,0,0); |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10228 | ; |
| 10229 | return 0; |
| 10230 | } |
| 10231 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10232 | if ac_fn_c_try_link "$LINENO"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10233 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10234 | $as_echo "#define HAVE_RESOLV 1" >>confdefs.h |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10235 | |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10236 | RESOLVLIBS="$lib" |
| 10237 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10238 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10239 | rm -f core conftest.err conftest.$ac_objext \ |
| 10240 | conftest$ac_exeext conftest.$ac_ext |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10241 | if test "${RESOLVLIBS+set}" = set; then |
| 10242 | break |
| 10243 | fi |
| 10244 | done |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10245 | LIBS="$ac_save_LIBS" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10246 | fi |
| 10247 | |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10248 | LCMSLIBS="" |
| 10249 | |
| 10250 | if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes" |
| 10251 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10252 | { $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] | 10253 | $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10254 | if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10255 | $as_echo_n "(cached) " >&6 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10256 | else |
| 10257 | ac_check_lib_save_LIBS=$LIBS |
| 10258 | LIBS="-llcms $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10260 | /* end confdefs.h. */ |
| 10261 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10262 | /* Override any GCC internal prototype to avoid an error. |
| 10263 | Use char because int might match the return type of a GCC |
| 10264 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10265 | #ifdef __cplusplus |
| 10266 | extern "C" |
| 10267 | #endif |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10268 | char cmsOpenProfileFromFile (); |
| 10269 | int |
| 10270 | main () |
| 10271 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10272 | return cmsOpenProfileFromFile (); |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10273 | ; |
| 10274 | return 0; |
| 10275 | } |
| 10276 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10277 | if ac_fn_c_try_link "$LINENO"; then : |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10278 | ac_cv_lib_lcms_cmsOpenProfileFromFile=yes |
| 10279 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10280 | ac_cv_lib_lcms_cmsOpenProfileFromFile=no |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10281 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10282 | rm -f core conftest.err conftest.$ac_objext \ |
| 10283 | conftest$ac_exeext conftest.$ac_ext |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10284 | LIBS=$ac_check_lib_save_LIBS |
| 10285 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10286 | { $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] | 10287 | $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10288 | if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then : |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10289 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10290 | $as_echo "#define HAVE_LCMS 1" >>confdefs.h |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10291 | |
| 10292 | LCMSLIBS="-llcms" |
| 10293 | fi |
| 10294 | |
| 10295 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10296 | if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10297 | case "x$with_cms" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10298 | 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] | 10299 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10300 | *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10301 | This is an error since --with-cms was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10302 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10303 | fi |
| 10304 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10305 | if test "x$with_freetype" != "xno" |
| 10306 | then |
Nicolas Le Cam | a37f74f | 2012-04-07 22:46:58 +0200 | [diff] [blame] | 10307 | if test "$PKG_CONFIG" != "false" |
| 10308 | then |
| 10309 | ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`" |
| 10310 | ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`" |
| 10311 | else |
| 10312 | for ac_prog in freetype-config freetype2-config |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10313 | do |
| 10314 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10315 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10317 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10318 | if ${ac_cv_prog_ft_devel+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10319 | $as_echo_n "(cached) " >&6 |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10320 | else |
| 10321 | if test -n "$ft_devel"; then |
| 10322 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 10323 | else |
| 10324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10325 | for as_dir in $PATH |
| 10326 | do |
| 10327 | IFS=$as_save_IFS |
| 10328 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10329 | for ac_exec_ext in '' $ac_executable_extensions; do |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 10330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10331 | ac_cv_prog_ft_devel="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10332 | $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] | 10333 | break 2 |
| 10334 | fi |
| 10335 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10336 | done |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10337 | IFS=$as_save_IFS |
| 10338 | |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10339 | fi |
| 10340 | fi |
| 10341 | ft_devel=$ac_cv_prog_ft_devel |
| 10342 | if test -n "$ft_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10344 | $as_echo "$ft_devel" >&6; } |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10345 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10347 | $as_echo "no" >&6; } |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10348 | fi |
| 10349 | |
| 10350 | |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10351 | test -n "$ft_devel" && break |
| 10352 | done |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10353 | test -n "$ft_devel" || ft_devel="no" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10354 | |
Nicolas Le Cam | a37f74f | 2012-04-07 22:46:58 +0200 | [diff] [blame] | 10355 | if test "$ft_devel" != "no" |
| 10356 | then |
| 10357 | ac_freetype_incl=`$ft_devel --cflags` |
| 10358 | ac_freetype_libs=`$ft_devel --libs` |
| 10359 | fi |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10360 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 10361 | ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10363 | $as_echo_n "checking for -lfreetype... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10364 | if ${ac_cv_lib_soname_freetype+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10365 | $as_echo_n "(cached) " >&6 |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10366 | else |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10367 | ac_check_soname_save_LIBS=$LIBS |
| 10368 | LIBS="-lfreetype $ac_freetype_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10370 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10371 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10372 | /* Override any GCC internal prototype to avoid an error. |
| 10373 | Use char because int might match the return type of a GCC |
| 10374 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10375 | #ifdef __cplusplus |
| 10376 | extern "C" |
| 10377 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10378 | char FT_Init_FreeType (); |
| 10379 | int |
| 10380 | main () |
| 10381 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10382 | return FT_Init_FreeType (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10383 | ; |
| 10384 | return 0; |
| 10385 | } |
| 10386 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10387 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10388 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10389 | 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] | 10390 | 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'` ;; |
| 10391 | *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10392 | esac |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10393 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10394 | rm -f core conftest.err conftest.$ac_objext \ |
| 10395 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10396 | LIBS=$ac_check_soname_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10397 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10398 | if test "x$ac_cv_lib_soname_freetype" = "x"; then : |
| 10399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10400 | $as_echo "not found" >&6; } |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10401 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10402 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10403 | { $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] | 10404 | $as_echo "$ac_cv_lib_soname_freetype" >&6; } |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10405 | |
| 10406 | cat >>confdefs.h <<_ACEOF |
| 10407 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 10408 | _ACEOF |
| 10409 | |
| 10410 | ft_lib=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10411 | fi |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10412 | if test "$ft_lib" = "yes" |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10413 | then |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10414 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10415 | CPPFLAGS="$ac_freetype_incl $CPPFLAGS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10416 | for ac_header in ft2build.h \ |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 10417 | freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10418 | freetype/ftglyph.h \ |
Dmitry Timoshkov | b0d1590 | 2007-09-20 19:10:31 +0900 | [diff] [blame] | 10419 | freetype/fttypes.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10420 | freetype/tttables.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10421 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 10422 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10423 | freetype/ftoutln.h \ |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 10424 | freetype/ftwinfnt.h \ |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 10425 | freetype/ftmodapi.h \ |
Huw Davies | 6ee2eae | 2011-10-11 10:14:55 +0100 | [diff] [blame] | 10426 | freetype/ftlcdfil.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10427 | do : |
| 10428 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10429 | 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] | 10430 | # include <ft2build.h> |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10431 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10432 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10433 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10434 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10435 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10436 | _ACEOF |
| 10437 | |
| 10438 | fi |
| 10439 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10440 | done |
| 10441 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10443 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10444 | #include <ft2build.h> |
| 10445 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10446 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10447 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10448 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10449 | $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10450 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10451 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10452 | else |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10453 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10454 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10455 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10456 | ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h> |
| 10457 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10458 | if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then : |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 10459 | |
| 10460 | cat >>confdefs.h <<_ACEOF |
| 10461 | #define HAVE_FT_TRUETYPEENGINETYPE 1 |
| 10462 | _ACEOF |
| 10463 | |
| 10464 | |
| 10465 | fi |
| 10466 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10467 | 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] | 10468 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10469 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10470 | $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10471 | |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10472 | FREETYPELIBS="$ac_freetype_libs" |
| 10473 | |
| 10474 | FREETYPEINCL="$ac_freetype_incl" |
| 10475 | |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10476 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10477 | fi |
| 10478 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10479 | if test "x$FREETYPELIBS" = "x"; then : |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10480 | case "x$with_freetype" in |
| 10481 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10482 | *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10483 | Use the --without-freetype option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10484 | esac |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10485 | fi |
Alexandre Julliard | 6de0af1 | 2008-08-25 14:41:03 +0200 | [diff] [blame] | 10486 | test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no} |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10487 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10488 | { $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] | 10489 | $as_echo_n "checking for parport header/ppdev.h... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10490 | if ${ac_cv_c_ppdev+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10491 | $as_echo_n "(cached) " >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 10492 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10494 | /* end confdefs.h. */ |
Yann Droneaud | dd33ee9 | 2010-03-08 14:46:46 +0100 | [diff] [blame] | 10495 | #ifdef HAVE_SYS_IOCTL_H |
| 10496 | # include <sys/ioctl.h> |
| 10497 | #endif |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10498 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10499 | int |
| 10500 | main () |
| 10501 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10502 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10503 | ; |
| 10504 | return 0; |
| 10505 | } |
| 10506 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10507 | if ac_fn_c_try_compile "$LINENO"; then : |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10508 | ac_cv_c_ppdev="yes" |
| 10509 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10510 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10511 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10513 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10514 | { $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] | 10515 | $as_echo "$ac_cv_c_ppdev" >&6; } |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10516 | if test "$ac_cv_c_ppdev" = "yes" |
| 10517 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10518 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10519 | $as_echo "#define HAVE_PPDEV 1" >>confdefs.h |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10520 | |
| 10521 | fi |
| 10522 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10523 | ac_wine_check_funcs_save_LIBS="$LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10524 | LIBS="$LIBS $LIBPTHREAD" |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 10525 | for ac_func in \ |
Tijl Coosemans | fc8172f | 2006-08-05 23:31:07 +0200 | [diff] [blame] | 10526 | pthread_attr_get_np \ |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 10527 | pthread_getattr_np \ |
| 10528 | pthread_get_stackaddr_np \ |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10529 | pthread_get_stacksize_np |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10530 | do : |
| 10531 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10532 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10533 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10534 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10535 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10536 | _ACEOF |
| 10537 | |
| 10538 | fi |
| 10539 | done |
| 10540 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10541 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10542 | |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10543 | if test "$ac_cv_header_zlib_h" = "yes" |
| 10544 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10545 | { $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] | 10546 | $as_echo_n "checking for inflate in -lz... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10547 | if ${ac_cv_lib_z_inflate+:} false; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10548 | $as_echo_n "(cached) " >&6 |
| 10549 | else |
| 10550 | ac_check_lib_save_LIBS=$LIBS |
| 10551 | LIBS="-lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10553 | /* end confdefs.h. */ |
| 10554 | |
| 10555 | /* Override any GCC internal prototype to avoid an error. |
| 10556 | Use char because int might match the return type of a GCC |
| 10557 | builtin and then its argument prototype would still apply. */ |
| 10558 | #ifdef __cplusplus |
| 10559 | extern "C" |
| 10560 | #endif |
| 10561 | char inflate (); |
| 10562 | int |
| 10563 | main () |
| 10564 | { |
| 10565 | return inflate (); |
| 10566 | ; |
| 10567 | return 0; |
| 10568 | } |
| 10569 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10570 | if ac_fn_c_try_link "$LINENO"; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10571 | ac_cv_lib_z_inflate=yes |
| 10572 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10573 | ac_cv_lib_z_inflate=no |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10574 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10575 | rm -f core conftest.err conftest.$ac_objext \ |
| 10576 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10577 | LIBS=$ac_check_lib_save_LIBS |
| 10578 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10579 | { $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] | 10580 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10581 | if test "x$ac_cv_lib_z_inflate" = xyes; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10582 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10583 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10584 | |
| 10585 | ZLIB="-lz" |
| 10586 | |
| 10587 | fi |
| 10588 | |
| 10589 | fi |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 10590 | if test "x$ZLIB" = "x"; then : |
| 10591 | case "x$with_zlib" in |
| 10592 | x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;; |
| 10593 | xno) ;; |
| 10594 | *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10595 | This is an error since --with-zlib was requested." "$LINENO" 5 ;; |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 10596 | esac |
| 10597 | fi |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10598 | |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10599 | if test "x$enable_tools" != xno |
| 10600 | then |
| 10601 | if test "$ac_cv_header_gettext_po_h" = "yes" |
| 10602 | then |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5 |
| 10604 | $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10605 | if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then : |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10606 | $as_echo_n "(cached) " >&6 |
| 10607 | else |
| 10608 | ac_check_lib_save_LIBS=$LIBS |
| 10609 | LIBS="-lgettextpo $LIBS" |
| 10610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10611 | /* end confdefs.h. */ |
| 10612 | |
| 10613 | /* Override any GCC internal prototype to avoid an error. |
| 10614 | Use char because int might match the return type of a GCC |
| 10615 | builtin and then its argument prototype would still apply. */ |
| 10616 | #ifdef __cplusplus |
| 10617 | extern "C" |
| 10618 | #endif |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10619 | char po_message_msgctxt (); |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10620 | int |
| 10621 | main () |
| 10622 | { |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10623 | return po_message_msgctxt (); |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10624 | ; |
| 10625 | return 0; |
| 10626 | } |
| 10627 | _ACEOF |
| 10628 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10629 | ac_cv_lib_gettextpo_po_message_msgctxt=yes |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10630 | else |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10631 | ac_cv_lib_gettextpo_po_message_msgctxt=no |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10632 | fi |
| 10633 | rm -f core conftest.err conftest.$ac_objext \ |
| 10634 | conftest$ac_exeext conftest.$ac_ext |
| 10635 | LIBS=$ac_check_lib_save_LIBS |
| 10636 | fi |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5 |
| 10638 | $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10639 | if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then : |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10640 | |
| 10641 | $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h |
| 10642 | |
| 10643 | LIBGETTEXTPO="-lgettextpo" |
| 10644 | |
| 10645 | fi |
| 10646 | |
| 10647 | fi |
Alexandre Julliard | 9159cfe | 2011-10-22 20:46:36 +0200 | [diff] [blame] | 10648 | test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then : |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10649 | case "x$with_gettextpo" in |
Alexandre Julliard | 9159cfe | 2011-10-22 20:46:36 +0200 | [diff] [blame] | 10650 | x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;; |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10651 | xno) ;; |
Alexandre Julliard | 9159cfe | 2011-10-22 20:46:36 +0200 | [diff] [blame] | 10652 | *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10653 | This is an error since --with-gettextpo was requested." "$LINENO" 5 ;; |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10654 | esac |
| 10655 | fi |
| 10656 | fi |
| 10657 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10658 | if test "x$with_gstreamer" != "xno" |
| 10659 | then |
| 10660 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10661 | if test "$PKG_CONFIG" != "false"; then |
| 10662 | ac_gst_incl="" |
| 10663 | for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null` |
| 10664 | do |
| 10665 | case "$i" in |
| 10666 | -I*) ac_gst_incl="$ac_gst_incl $i";; |
| 10667 | esac |
| 10668 | done |
| 10669 | ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`" |
| 10670 | CPPFLAGS="$CPPFLAGS $ac_gst_incl" |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10671 | ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10672 | if test "x$ac_cv_header_gst_gstpad_h" = xyes; then : |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10673 | ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10674 | if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then : |
Octavian Voicu | b113af1 | 2011-08-03 01:38:43 +0300 | [diff] [blame] | 10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5 |
| 10676 | $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; } |
| 10677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10678 | /* end confdefs.h. */ |
| 10679 | #include <gst/app/gstappsink.h> |
| 10680 | int |
| 10681 | main () |
| 10682 | { |
Dan Kegel | 45725be | 2011-08-31 17:35:49 -0700 | [diff] [blame] | 10683 | static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0; |
Octavian Voicu | b113af1 | 2011-08-03 01:38:43 +0300 | [diff] [blame] | 10684 | ; |
| 10685 | return 0; |
| 10686 | } |
| 10687 | _ACEOF |
| 10688 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10690 | $as_echo "yes" >&6; } |
| 10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5 |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10692 | $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10693 | if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then : |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10694 | $as_echo_n "(cached) " >&6 |
| 10695 | else |
| 10696 | ac_check_lib_save_LIBS=$LIBS |
| 10697 | LIBS="-lgstreamer-0.10 $LIBS" |
| 10698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10699 | /* end confdefs.h. */ |
| 10700 | |
| 10701 | /* Override any GCC internal prototype to avoid an error. |
| 10702 | Use char because int might match the return type of a GCC |
| 10703 | builtin and then its argument prototype would still apply. */ |
| 10704 | #ifdef __cplusplus |
| 10705 | extern "C" |
| 10706 | #endif |
| 10707 | char gst_pad_get_caps_reffed (); |
| 10708 | int |
| 10709 | main () |
| 10710 | { |
| 10711 | return gst_pad_get_caps_reffed (); |
| 10712 | ; |
| 10713 | return 0; |
| 10714 | } |
| 10715 | _ACEOF |
| 10716 | if ac_fn_c_try_link "$LINENO"; then : |
| 10717 | ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes |
| 10718 | else |
| 10719 | ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no |
| 10720 | fi |
| 10721 | rm -f core conftest.err conftest.$ac_objext \ |
| 10722 | conftest$ac_exeext conftest.$ac_ext |
| 10723 | LIBS=$ac_check_lib_save_LIBS |
| 10724 | fi |
| 10725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5 |
| 10726 | $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10727 | if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then : |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5 |
| 10729 | $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10730 | if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then : |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10731 | $as_echo_n "(cached) " >&6 |
| 10732 | else |
| 10733 | ac_check_lib_save_LIBS=$LIBS |
| 10734 | LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS" |
| 10735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10736 | /* end confdefs.h. */ |
| 10737 | |
| 10738 | /* Override any GCC internal prototype to avoid an error. |
| 10739 | Use char because int might match the return type of a GCC |
| 10740 | builtin and then its argument prototype would still apply. */ |
| 10741 | #ifdef __cplusplus |
| 10742 | extern "C" |
| 10743 | #endif |
| 10744 | char gst_app_buffer_new (); |
| 10745 | int |
| 10746 | main () |
| 10747 | { |
| 10748 | return gst_app_buffer_new (); |
| 10749 | ; |
| 10750 | return 0; |
| 10751 | } |
| 10752 | _ACEOF |
| 10753 | if ac_fn_c_try_link "$LINENO"; then : |
| 10754 | ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes |
| 10755 | else |
| 10756 | ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no |
| 10757 | fi |
| 10758 | rm -f core conftest.err conftest.$ac_objext \ |
| 10759 | conftest$ac_exeext conftest.$ac_ext |
| 10760 | LIBS=$ac_check_lib_save_LIBS |
| 10761 | fi |
| 10762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5 |
| 10763 | $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10764 | if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then : |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10765 | GSTREAMER_LIBS="$ac_gst_libs" |
| 10766 | |
Octavian Voicu | b113af1 | 2011-08-03 01:38:43 +0300 | [diff] [blame] | 10767 | GSTREAMER_INCL="$ac_gst_incl" |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10768 | |
| 10769 | fi |
| 10770 | |
| 10771 | fi |
| 10772 | |
Octavian Voicu | b113af1 | 2011-08-03 01:38:43 +0300 | [diff] [blame] | 10773 | else |
| 10774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10775 | $as_echo "no" >&6; } |
| 10776 | fi |
| 10777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10778 | fi |
| 10779 | |
| 10780 | |
| 10781 | fi |
| 10782 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10783 | |
| 10784 | fi |
| 10785 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10786 | fi |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 10787 | 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] | 10788 | case "x$with_gstreamer" in |
Detlef Riekenberg | 654bb4a | 2010-12-12 22:48:56 +0100 | [diff] [blame] | 10789 | 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] | 10790 | xno) ;; |
Detlef Riekenberg | 654bb4a | 2010-12-12 22:48:56 +0100 | [diff] [blame] | 10791 | *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10792 | This is an error since --with-gstreamer was requested." "$LINENO" 5 ;; |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10793 | esac |
| 10794 | fi |
| 10795 | test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no} |
| 10796 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10797 | ALSALIBS="" |
| 10798 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10799 | 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] | 10800 | then |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5 |
| 10802 | $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10803 | if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10804 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10805 | else |
| 10806 | ac_check_lib_save_LIBS=$LIBS |
| 10807 | LIBS="-lasound $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10809 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10810 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10811 | /* Override any GCC internal prototype to avoid an error. |
| 10812 | Use char because int might match the return type of a GCC |
| 10813 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10814 | #ifdef __cplusplus |
| 10815 | extern "C" |
| 10816 | #endif |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10817 | char snd_pcm_hw_params_get_access_mask (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10818 | int |
| 10819 | main () |
| 10820 | { |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10821 | return snd_pcm_hw_params_get_access_mask (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10822 | ; |
| 10823 | return 0; |
| 10824 | } |
| 10825 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10826 | if ac_fn_c_try_link "$LINENO"; then : |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10827 | ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10828 | else |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10829 | ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10830 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10831 | rm -f core conftest.err conftest.$ac_objext \ |
| 10832 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10833 | LIBS=$ac_check_lib_save_LIBS |
| 10834 | fi |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5 |
| 10836 | $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10837 | if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10839 | /* end confdefs.h. */ |
| 10840 | #ifdef HAVE_ALSA_ASOUNDLIB_H |
| 10841 | #include <alsa/asoundlib.h> |
| 10842 | #elif defined(HAVE_SYS_ASOUNDLIB_H) |
| 10843 | #include <sys/asoundlib.h> |
| 10844 | #endif |
| 10845 | int |
| 10846 | main () |
| 10847 | { |
Austin English | 8521ebe | 2011-06-13 21:26:40 -0700 | [diff] [blame] | 10848 | snd_pcm_hw_params_get_access_mask(NULL, NULL) |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10849 | ; |
| 10850 | return 0; |
| 10851 | } |
| 10852 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10853 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 255cc21 | 2011-03-28 22:07:26 +0200 | [diff] [blame] | 10854 | ALSALIBS="-lasound" |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10855 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10857 | fi |
| 10858 | |
| 10859 | fi |
| 10860 | |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10861 | if test "x$with_oss" != xno |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10862 | then |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10863 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10864 | if test -f /etc/oss.conf |
| 10865 | then |
| 10866 | . /etc/oss.conf |
| 10867 | fi |
| 10868 | ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include" |
| 10869 | CPPFLAGS="$CPPFLAGS $ac_oss_incl" |
| 10870 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" |
| 10871 | if test "x$ac_cv_header_sys_soundcard_h" = xyes; then : |
| 10872 | ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h> |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10873 | " |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10874 | if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then : |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10875 | |
| 10876 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10877 | #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1 |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10878 | _ACEOF |
| 10879 | |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10880 | OSS4INCL="$ac_oss_incl" |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10881 | |
| 10882 | fi |
| 10883 | |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10884 | fi |
| 10885 | |
| 10886 | |
| 10887 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10888 | if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10889 | then |
| 10890 | as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported." |
| 10891 | fi |
| 10892 | fi |
| 10893 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10894 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 10895 | if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes" |
| 10896 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10898 | $as_echo_n "checking for -lcapi20... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10899 | if ${ac_cv_lib_soname_capi20+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10900 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10901 | else |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10902 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10903 | LIBS="-lcapi20 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10905 | /* end confdefs.h. */ |
| 10906 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10907 | /* Override any GCC internal prototype to avoid an error. |
| 10908 | Use char because int might match the return type of a GCC |
| 10909 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10910 | #ifdef __cplusplus |
| 10911 | extern "C" |
| 10912 | #endif |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10913 | char capi20_register (); |
| 10914 | int |
| 10915 | main () |
| 10916 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10917 | return capi20_register (); |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10918 | ; |
| 10919 | return 0; |
| 10920 | } |
| 10921 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10922 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10923 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10924 | 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] | 10925 | 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'` ;; |
| 10926 | *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10927 | esac |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10928 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10929 | rm -f core conftest.err conftest.$ac_objext \ |
| 10930 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10931 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10932 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10933 | if test "x$ac_cv_lib_soname_capi20" = "x"; then : |
| 10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10935 | $as_echo "not found" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10936 | |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10937 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10938 | { $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] | 10939 | $as_echo "$ac_cv_lib_soname_capi20" >&6; } |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10940 | |
| 10941 | cat >>confdefs.h <<_ACEOF |
| 10942 | #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20" |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10943 | _ACEOF |
| 10944 | |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10945 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10946 | fi |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10947 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10948 | if test "x$ac_cv_lib_soname_capi20" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10949 | case "x$with_capi" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10950 | 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] | 10951 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10952 | *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10953 | This is an error since --with-capi was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10954 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10955 | fi |
| 10956 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10957 | CUPSINCL="" |
| 10958 | |
| 10959 | if test "x$with_cups" != "xno" |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10960 | then |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10961 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10962 | ac_cups_cflags=`cups-config --cflags 2>/dev/null` |
Alexandre Julliard | a991a56 | 2008-07-28 12:04:46 +0200 | [diff] [blame] | 10963 | ac_cups_libs=`cups-config --ldflags 2>/dev/null` |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10964 | CPPFLAGS="$CPPFLAGS $ac_cups_cflags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10965 | for ac_header in cups/cups.h |
| 10966 | do : |
| 10967 | ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10968 | if test "x$ac_cv_header_cups_cups_h" = xyes; then : |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10969 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10970 | #define HAVE_CUPS_CUPS_H 1 |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10971 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10973 | $as_echo_n "checking for -lcups... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10974 | if ${ac_cv_lib_soname_cups+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10975 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10976 | else |
| 10977 | ac_check_soname_save_LIBS=$LIBS |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10978 | LIBS="-lcups $ac_cups_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10980 | /* end confdefs.h. */ |
| 10981 | |
| 10982 | /* Override any GCC internal prototype to avoid an error. |
| 10983 | Use char because int might match the return type of a GCC |
| 10984 | builtin and then its argument prototype would still apply. */ |
| 10985 | #ifdef __cplusplus |
| 10986 | extern "C" |
| 10987 | #endif |
| 10988 | char cupsGetDefault (); |
| 10989 | int |
| 10990 | main () |
| 10991 | { |
| 10992 | return cupsGetDefault (); |
| 10993 | ; |
| 10994 | return 0; |
| 10995 | } |
| 10996 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10997 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10998 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10999 | 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] | 11000 | 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'` ;; |
| 11001 | *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11002 | esac |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11003 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11004 | rm -f core conftest.err conftest.$ac_objext \ |
| 11005 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11006 | LIBS=$ac_check_soname_save_LIBS |
| 11007 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11008 | if test "x$ac_cv_lib_soname_cups" = "x"; then : |
| 11009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11010 | $as_echo "not found" >&6; } |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11011 | |
| 11012 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11013 | { $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] | 11014 | $as_echo "$ac_cv_lib_soname_cups" >&6; } |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11015 | |
| 11016 | cat >>confdefs.h <<_ACEOF |
| 11017 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 11018 | _ACEOF |
| 11019 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11020 | CUPSINCL="$ac_cups_cflags" |
| 11021 | fi |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11022 | fi |
| 11023 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11024 | done |
| 11025 | |
| 11026 | CPPFLAGS="$ac_save_CPPFLAGS" |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11027 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11028 | if test "x$ac_cv_lib_soname_cups" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11029 | case "x$with_cups" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11030 | 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] | 11031 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11032 | *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11033 | This is an error since --with-cups was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11034 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 11035 | fi |
| 11036 | |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11037 | if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes" |
| 11038 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11040 | $as_echo_n "checking for -lfontconfig... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11041 | if ${ac_cv_lib_soname_fontconfig+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11042 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11043 | else |
| 11044 | ac_check_soname_save_LIBS=$LIBS |
| 11045 | LIBS="-lfontconfig $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11047 | /* end confdefs.h. */ |
| 11048 | |
| 11049 | /* Override any GCC internal prototype to avoid an error. |
| 11050 | Use char because int might match the return type of a GCC |
| 11051 | builtin and then its argument prototype would still apply. */ |
| 11052 | #ifdef __cplusplus |
| 11053 | extern "C" |
| 11054 | #endif |
| 11055 | char FcInit (); |
| 11056 | int |
| 11057 | main () |
| 11058 | { |
| 11059 | return FcInit (); |
| 11060 | ; |
| 11061 | return 0; |
| 11062 | } |
| 11063 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11064 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11065 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11066 | 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] | 11067 | 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'` ;; |
| 11068 | *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11069 | esac |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11070 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11071 | rm -f core conftest.err conftest.$ac_objext \ |
| 11072 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11073 | LIBS=$ac_check_soname_save_LIBS |
| 11074 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11075 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
| 11076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11077 | $as_echo "not found" >&6; } |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11078 | |
| 11079 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11080 | { $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] | 11081 | $as_echo "$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11082 | |
| 11083 | cat >>confdefs.h <<_ACEOF |
| 11084 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 11085 | _ACEOF |
| 11086 | |
| 11087 | |
| 11088 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11089 | elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno" |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11090 | then |
| 11091 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11092 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11093 | $as_unset ac_cv_header_fontconfig_fontconfig_h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11094 | for ac_header in fontconfig/fontconfig.h |
| 11095 | do : |
| 11096 | ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11097 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11098 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11099 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11100 | _ACEOF |
| 11101 | |
| 11102 | fi |
| 11103 | |
| 11104 | done |
| 11105 | |
| 11106 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11107 | if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes" |
| 11108 | then |
| 11109 | FONTCONFIGINCL="$X_CFLAGS" |
| 11110 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11112 | $as_echo_n "checking for -lfontconfig... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11113 | if ${ac_cv_lib_soname_fontconfig+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11114 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11115 | else |
| 11116 | ac_check_soname_save_LIBS=$LIBS |
| 11117 | LIBS="-lfontconfig $X_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11119 | /* end confdefs.h. */ |
| 11120 | |
| 11121 | /* Override any GCC internal prototype to avoid an error. |
| 11122 | Use char because int might match the return type of a GCC |
| 11123 | builtin and then its argument prototype would still apply. */ |
| 11124 | #ifdef __cplusplus |
| 11125 | extern "C" |
| 11126 | #endif |
| 11127 | char FcInit (); |
| 11128 | int |
| 11129 | main () |
| 11130 | { |
| 11131 | return FcInit (); |
| 11132 | ; |
| 11133 | return 0; |
| 11134 | } |
| 11135 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11136 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11137 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11138 | 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] | 11139 | 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'` ;; |
| 11140 | *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11141 | esac |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11142 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11143 | rm -f core conftest.err conftest.$ac_objext \ |
| 11144 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11145 | LIBS=$ac_check_soname_save_LIBS |
| 11146 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11147 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
| 11148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11149 | $as_echo "not found" >&6; } |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11150 | |
| 11151 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11152 | { $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] | 11153 | $as_echo "$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11154 | |
| 11155 | cat >>confdefs.h <<_ACEOF |
| 11156 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 11157 | _ACEOF |
| 11158 | |
| 11159 | |
| 11160 | fi |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11161 | fi |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11162 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11163 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11164 | case "x$with_fontconfig" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11165 | 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] | 11166 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11167 | *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11168 | This is an error since --with-fontconfig was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11169 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11170 | fi |
| 11171 | |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11172 | if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes" |
| 11173 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11175 | $as_echo_n "checking for -lssl... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11176 | if ${ac_cv_lib_soname_ssl+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11177 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11178 | else |
| 11179 | ac_check_soname_save_LIBS=$LIBS |
| 11180 | LIBS="-lssl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11182 | /* end confdefs.h. */ |
| 11183 | |
| 11184 | /* Override any GCC internal prototype to avoid an error. |
| 11185 | Use char because int might match the return type of a GCC |
| 11186 | builtin and then its argument prototype would still apply. */ |
| 11187 | #ifdef __cplusplus |
| 11188 | extern "C" |
| 11189 | #endif |
| 11190 | char SSL_library_init (); |
| 11191 | int |
| 11192 | main () |
| 11193 | { |
| 11194 | return SSL_library_init (); |
| 11195 | ; |
| 11196 | return 0; |
| 11197 | } |
| 11198 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11199 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11200 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11201 | 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] | 11202 | 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'` ;; |
| 11203 | *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11204 | esac |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11205 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11206 | rm -f core conftest.err conftest.$ac_objext \ |
| 11207 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11208 | LIBS=$ac_check_soname_save_LIBS |
| 11209 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11210 | if test "x$ac_cv_lib_soname_ssl" = "x"; then : |
| 11211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11212 | $as_echo "not found" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11213 | |
| 11214 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11215 | { $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] | 11216 | $as_echo "$ac_cv_lib_soname_ssl" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11217 | |
| 11218 | cat >>confdefs.h <<_ACEOF |
| 11219 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 11220 | _ACEOF |
| 11221 | |
| 11222 | |
| 11223 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11225 | $as_echo_n "checking for -lcrypto... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11226 | if ${ac_cv_lib_soname_crypto+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11227 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11228 | else |
| 11229 | ac_check_soname_save_LIBS=$LIBS |
| 11230 | LIBS="-lcrypto $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11232 | /* end confdefs.h. */ |
| 11233 | |
| 11234 | /* Override any GCC internal prototype to avoid an error. |
| 11235 | Use char because int might match the return type of a GCC |
| 11236 | builtin and then its argument prototype would still apply. */ |
| 11237 | #ifdef __cplusplus |
| 11238 | extern "C" |
| 11239 | #endif |
| 11240 | char BIO_new_socket (); |
| 11241 | int |
| 11242 | main () |
| 11243 | { |
| 11244 | return BIO_new_socket (); |
| 11245 | ; |
| 11246 | return 0; |
| 11247 | } |
| 11248 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11249 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11250 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11251 | 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] | 11252 | 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'` ;; |
| 11253 | *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11254 | esac |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11255 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11256 | rm -f core conftest.err conftest.$ac_objext \ |
| 11257 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11258 | LIBS=$ac_check_soname_save_LIBS |
| 11259 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11260 | if test "x$ac_cv_lib_soname_crypto" = "x"; then : |
| 11261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11262 | $as_echo "not found" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11263 | |
| 11264 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11265 | { $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] | 11266 | $as_echo "$ac_cv_lib_soname_crypto" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11267 | |
| 11268 | cat >>confdefs.h <<_ACEOF |
| 11269 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 11270 | _ACEOF |
| 11271 | |
| 11272 | |
| 11273 | fi |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11274 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11275 | 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] | 11276 | case "x$with_openssl" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11277 | 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] | 11278 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11279 | *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11280 | This is an error since --with-openssl was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11281 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11282 | fi |
| 11283 | |
Maarten Lankhorst | c186d8a | 2009-08-05 11:35:50 +0200 | [diff] [blame] | 11284 | 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] | 11285 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5 |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11287 | $as_echo_n "checking for -lgsm... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11288 | if ${ac_cv_lib_soname_gsm+:} false; then : |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11289 | $as_echo_n "(cached) " >&6 |
| 11290 | else |
| 11291 | ac_check_soname_save_LIBS=$LIBS |
| 11292 | LIBS="-lgsm $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11294 | /* end confdefs.h. */ |
| 11295 | |
| 11296 | /* Override any GCC internal prototype to avoid an error. |
| 11297 | Use char because int might match the return type of a GCC |
| 11298 | builtin and then its argument prototype would still apply. */ |
| 11299 | #ifdef __cplusplus |
| 11300 | extern "C" |
| 11301 | #endif |
| 11302 | char gsm_create (); |
| 11303 | int |
| 11304 | main () |
| 11305 | { |
| 11306 | return gsm_create (); |
| 11307 | ; |
| 11308 | return 0; |
| 11309 | } |
| 11310 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11311 | if ac_fn_c_try_link "$LINENO"; then : |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11312 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11313 | 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] | 11314 | 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'` ;; |
| 11315 | *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11316 | esac |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11317 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11318 | rm -f core conftest.err conftest.$ac_objext \ |
| 11319 | conftest$ac_exeext conftest.$ac_ext |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11320 | LIBS=$ac_check_soname_save_LIBS |
| 11321 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11322 | if test "x$ac_cv_lib_soname_gsm" = "x"; then : |
| 11323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11324 | $as_echo "not found" >&6; } |
| 11325 | |
| 11326 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11327 | { $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] | 11328 | $as_echo "$ac_cv_lib_soname_gsm" >&6; } |
| 11329 | |
| 11330 | cat >>confdefs.h <<_ACEOF |
| 11331 | #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm" |
| 11332 | _ACEOF |
| 11333 | |
| 11334 | |
| 11335 | fi |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11336 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11337 | if test "x$ac_cv_lib_soname_gsm" = "x"; then : |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 11338 | case "x$with_gsm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11339 | 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] | 11340 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11341 | *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11342 | This is an error since --with-gsm was requested." "$LINENO" 5 ;; |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11343 | esac |
| 11344 | fi |
| 11345 | |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11346 | if test "$ac_cv_header_jpeglib_h" = "yes" |
| 11347 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11349 | $as_echo_n "checking for -ljpeg... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11350 | if ${ac_cv_lib_soname_jpeg+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11351 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11352 | else |
| 11353 | ac_check_soname_save_LIBS=$LIBS |
| 11354 | LIBS="-ljpeg $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11356 | /* end confdefs.h. */ |
| 11357 | |
| 11358 | /* Override any GCC internal prototype to avoid an error. |
| 11359 | Use char because int might match the return type of a GCC |
| 11360 | builtin and then its argument prototype would still apply. */ |
| 11361 | #ifdef __cplusplus |
| 11362 | extern "C" |
| 11363 | #endif |
| 11364 | char jpeg_start_decompress (); |
| 11365 | int |
| 11366 | main () |
| 11367 | { |
| 11368 | return jpeg_start_decompress (); |
| 11369 | ; |
| 11370 | return 0; |
| 11371 | } |
| 11372 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11373 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11374 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11375 | 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] | 11376 | 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'` ;; |
| 11377 | *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11378 | esac |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11379 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11380 | rm -f core conftest.err conftest.$ac_objext \ |
| 11381 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11382 | LIBS=$ac_check_soname_save_LIBS |
| 11383 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11384 | if test "x$ac_cv_lib_soname_jpeg" = "x"; then : |
| 11385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11386 | $as_echo "not found" >&6; } |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11387 | |
| 11388 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11389 | { $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] | 11390 | $as_echo "$ac_cv_lib_soname_jpeg" >&6; } |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11391 | |
| 11392 | cat >>confdefs.h <<_ACEOF |
| 11393 | #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg" |
| 11394 | _ACEOF |
| 11395 | |
| 11396 | |
| 11397 | fi |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11398 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11399 | if test "x$ac_cv_lib_soname_jpeg" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11400 | case "x$with_jpeg" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11401 | 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] | 11402 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11403 | *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11404 | This is an error since --with-jpeg was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11405 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11406 | fi |
| 11407 | |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11408 | if test "$ac_cv_header_png_h" = "yes" |
| 11409 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11411 | $as_echo_n "checking for -lpng... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11412 | if ${ac_cv_lib_soname_png+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11413 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11414 | else |
| 11415 | ac_check_soname_save_LIBS=$LIBS |
Austin English | fe8879e | 2008-12-28 19:10:19 -0600 | [diff] [blame] | 11416 | LIBS="-lpng -lm -lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11418 | /* end confdefs.h. */ |
| 11419 | |
| 11420 | /* Override any GCC internal prototype to avoid an error. |
| 11421 | Use char because int might match the return type of a GCC |
| 11422 | builtin and then its argument prototype would still apply. */ |
| 11423 | #ifdef __cplusplus |
| 11424 | extern "C" |
| 11425 | #endif |
| 11426 | char png_create_read_struct (); |
| 11427 | int |
| 11428 | main () |
| 11429 | { |
| 11430 | return png_create_read_struct (); |
| 11431 | ; |
| 11432 | return 0; |
| 11433 | } |
| 11434 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11435 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11436 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11437 | 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] | 11438 | 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'` ;; |
| 11439 | *) 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'` ;; |
| 11440 | esac |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11441 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11442 | rm -f core conftest.err conftest.$ac_objext \ |
| 11443 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11444 | LIBS=$ac_check_soname_save_LIBS |
| 11445 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11446 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
| 11447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11448 | $as_echo "not found" >&6; } |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11449 | |
| 11450 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11451 | { $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] | 11452 | $as_echo "$ac_cv_lib_soname_png" >&6; } |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11453 | |
| 11454 | cat >>confdefs.h <<_ACEOF |
| 11455 | #define SONAME_LIBPNG "$ac_cv_lib_soname_png" |
| 11456 | _ACEOF |
| 11457 | |
| 11458 | |
| 11459 | fi |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5 |
| 11461 | $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11462 | if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then : |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11463 | $as_echo_n "(cached) " >&6 |
| 11464 | else |
| 11465 | ac_check_lib_save_LIBS=$LIBS |
| 11466 | LIBS="-lpng -lm -lz $LIBS" |
| 11467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11468 | /* end confdefs.h. */ |
| 11469 | |
| 11470 | /* Override any GCC internal prototype to avoid an error. |
| 11471 | Use char because int might match the return type of a GCC |
| 11472 | builtin and then its argument prototype would still apply. */ |
| 11473 | #ifdef __cplusplus |
| 11474 | extern "C" |
| 11475 | #endif |
| 11476 | char png_set_expand_gray_1_2_4_to_8 (); |
| 11477 | int |
| 11478 | main () |
| 11479 | { |
| 11480 | return png_set_expand_gray_1_2_4_to_8 (); |
| 11481 | ; |
| 11482 | return 0; |
| 11483 | } |
| 11484 | _ACEOF |
| 11485 | if ac_fn_c_try_link "$LINENO"; then : |
| 11486 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes |
| 11487 | else |
| 11488 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no |
| 11489 | fi |
| 11490 | rm -f core conftest.err conftest.$ac_objext \ |
| 11491 | conftest$ac_exeext conftest.$ac_ext |
| 11492 | LIBS=$ac_check_lib_save_LIBS |
| 11493 | fi |
| 11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5 |
| 11495 | $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11496 | if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then : |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11497 | |
| 11498 | $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h |
| 11499 | |
| 11500 | |
| 11501 | fi |
| 11502 | |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11503 | elif test -n "$X_CFLAGS" -a "x$with_png" != "xno" |
| 11504 | then |
| 11505 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11506 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11507 | $as_unset ac_cv_header_png_h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11508 | for ac_header in png.h |
| 11509 | do : |
| 11510 | ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11511 | if test "x$ac_cv_header_png_h" = xyes; then : |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11512 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11513 | #define HAVE_PNG_H 1 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11514 | _ACEOF |
| 11515 | |
| 11516 | fi |
| 11517 | |
| 11518 | done |
| 11519 | |
| 11520 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11521 | if test "$ac_cv_header_png_h" = "yes" |
| 11522 | then |
| 11523 | PNGINCL="$X_CFLAGS" |
| 11524 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11525 | { $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] | 11526 | $as_echo_n "checking for -lpng... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11527 | if ${ac_cv_lib_soname_png+:} false; then : |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11528 | $as_echo_n "(cached) " >&6 |
| 11529 | else |
| 11530 | ac_check_soname_save_LIBS=$LIBS |
| 11531 | LIBS="-lpng $X_LIBS -lm -lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11533 | /* end confdefs.h. */ |
| 11534 | |
| 11535 | /* Override any GCC internal prototype to avoid an error. |
| 11536 | Use char because int might match the return type of a GCC |
| 11537 | builtin and then its argument prototype would still apply. */ |
| 11538 | #ifdef __cplusplus |
| 11539 | extern "C" |
| 11540 | #endif |
| 11541 | char png_create_read_struct (); |
| 11542 | int |
| 11543 | main () |
| 11544 | { |
| 11545 | return png_create_read_struct (); |
| 11546 | ; |
| 11547 | return 0; |
| 11548 | } |
| 11549 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11550 | if ac_fn_c_try_link "$LINENO"; then : |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11551 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11552 | 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] | 11553 | 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'` ;; |
| 11554 | *) 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'` ;; |
| 11555 | esac |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11556 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11557 | rm -f core conftest.err conftest.$ac_objext \ |
| 11558 | conftest$ac_exeext conftest.$ac_ext |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11559 | LIBS=$ac_check_soname_save_LIBS |
| 11560 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11561 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
| 11562 | { $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] | 11563 | $as_echo "not found" >&6; } |
| 11564 | |
| 11565 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11566 | { $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] | 11567 | $as_echo "$ac_cv_lib_soname_png" >&6; } |
| 11568 | |
| 11569 | cat >>confdefs.h <<_ACEOF |
| 11570 | #define SONAME_LIBPNG "$ac_cv_lib_soname_png" |
| 11571 | _ACEOF |
| 11572 | |
| 11573 | |
| 11574 | fi |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5 |
| 11576 | $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11577 | if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then : |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11578 | $as_echo_n "(cached) " >&6 |
| 11579 | else |
| 11580 | ac_check_lib_save_LIBS=$LIBS |
| 11581 | LIBS="-lpng $X_LIBS -lm -lz $LIBS" |
| 11582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11583 | /* end confdefs.h. */ |
| 11584 | |
| 11585 | /* Override any GCC internal prototype to avoid an error. |
| 11586 | Use char because int might match the return type of a GCC |
| 11587 | builtin and then its argument prototype would still apply. */ |
| 11588 | #ifdef __cplusplus |
| 11589 | extern "C" |
| 11590 | #endif |
| 11591 | char png_set_expand_gray_1_2_4_to_8 (); |
| 11592 | int |
| 11593 | main () |
| 11594 | { |
| 11595 | return png_set_expand_gray_1_2_4_to_8 (); |
| 11596 | ; |
| 11597 | return 0; |
| 11598 | } |
| 11599 | _ACEOF |
| 11600 | if ac_fn_c_try_link "$LINENO"; then : |
| 11601 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes |
| 11602 | else |
| 11603 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no |
| 11604 | fi |
| 11605 | rm -f core conftest.err conftest.$ac_objext \ |
| 11606 | conftest$ac_exeext conftest.$ac_ext |
| 11607 | LIBS=$ac_check_lib_save_LIBS |
| 11608 | fi |
| 11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5 |
| 11610 | $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11611 | if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then : |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11612 | $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h |
| 11613 | |
| 11614 | fi |
| 11615 | |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11616 | fi |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11617 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11618 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11619 | case "x$with_png" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11620 | 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] | 11621 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11622 | *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11623 | This is an error since --with-png was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11624 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11625 | fi |
| 11626 | |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11627 | if test "$ac_cv_header_tiffio_h" = "yes" |
| 11628 | then |
| 11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5 |
| 11630 | $as_echo_n "checking for -ltiff... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11631 | if ${ac_cv_lib_soname_tiff+:} false; then : |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11632 | $as_echo_n "(cached) " >&6 |
| 11633 | else |
| 11634 | ac_check_soname_save_LIBS=$LIBS |
| 11635 | LIBS="-ltiff $LIBS" |
| 11636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11637 | /* end confdefs.h. */ |
| 11638 | |
| 11639 | /* Override any GCC internal prototype to avoid an error. |
| 11640 | Use char because int might match the return type of a GCC |
| 11641 | builtin and then its argument prototype would still apply. */ |
| 11642 | #ifdef __cplusplus |
| 11643 | extern "C" |
| 11644 | #endif |
| 11645 | char TIFFClientOpen (); |
| 11646 | int |
| 11647 | main () |
| 11648 | { |
| 11649 | return TIFFClientOpen (); |
| 11650 | ; |
| 11651 | return 0; |
| 11652 | } |
| 11653 | _ACEOF |
| 11654 | if ac_fn_c_try_link "$LINENO"; then : |
| 11655 | case "$LIBEXT" in |
| 11656 | dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
| 11657 | 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'` ;; |
| 11658 | *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11659 | esac |
| 11660 | fi |
| 11661 | rm -f core conftest.err conftest.$ac_objext \ |
| 11662 | conftest$ac_exeext conftest.$ac_ext |
| 11663 | LIBS=$ac_check_soname_save_LIBS |
| 11664 | fi |
| 11665 | if test "x$ac_cv_lib_soname_tiff" = "x"; then : |
| 11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11667 | $as_echo "not found" >&6; } |
| 11668 | |
| 11669 | else |
| 11670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5 |
| 11671 | $as_echo "$ac_cv_lib_soname_tiff" >&6; } |
| 11672 | |
| 11673 | cat >>confdefs.h <<_ACEOF |
| 11674 | #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff" |
| 11675 | _ACEOF |
| 11676 | |
| 11677 | |
| 11678 | fi |
| 11679 | fi |
| 11680 | if test "x$ac_cv_lib_soname_tiff" = "x"; then : |
| 11681 | case "x$with_tiff" in |
| 11682 | x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;; |
| 11683 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11684 | *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11685 | This is an error since --with-tiff was requested." "$LINENO" 5 ;; |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11686 | esac |
| 11687 | fi |
| 11688 | |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11689 | if test "$ac_cv_header_mpg123_h" = "yes" |
| 11690 | then |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5 |
| 11692 | $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11693 | if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then : |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11694 | $as_echo_n "(cached) " >&6 |
| 11695 | else |
| 11696 | ac_check_lib_save_LIBS=$LIBS |
| 11697 | LIBS="-lmpg123 $LIBS" |
| 11698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11699 | /* end confdefs.h. */ |
| 11700 | |
| 11701 | /* Override any GCC internal prototype to avoid an error. |
| 11702 | Use char because int might match the return type of a GCC |
| 11703 | builtin and then its argument prototype would still apply. */ |
| 11704 | #ifdef __cplusplus |
| 11705 | extern "C" |
| 11706 | #endif |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11707 | char mpg123_feed (); |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11708 | int |
| 11709 | main () |
| 11710 | { |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11711 | return mpg123_feed (); |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11712 | ; |
| 11713 | return 0; |
| 11714 | } |
| 11715 | _ACEOF |
| 11716 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11717 | ac_cv_lib_mpg123_mpg123_feed=yes |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11718 | else |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11719 | ac_cv_lib_mpg123_mpg123_feed=no |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11720 | fi |
| 11721 | rm -f core conftest.err conftest.$ac_objext \ |
| 11722 | conftest$ac_exeext conftest.$ac_ext |
| 11723 | LIBS=$ac_check_lib_save_LIBS |
| 11724 | fi |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5 |
| 11726 | $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11727 | if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then : |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11728 | LIBMPG123="-lmpg123" |
| 11729 | |
| 11730 | fi |
| 11731 | |
| 11732 | fi |
Aric Stewart | 4430ab4 | 2010-03-17 10:58:32 -0500 | [diff] [blame] | 11733 | 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] | 11734 | case "x$with_mpg123" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11735 | 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] | 11736 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11737 | *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11738 | This is an error since --with-mpg123 was requested." "$LINENO" 5 ;; |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11739 | esac |
| 11740 | fi |
Kristofer Henriksson | c58eff6 | 2010-05-24 15:04:42 -0400 | [diff] [blame] | 11741 | 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] | 11742 | |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11743 | if test "$ac_cv_header_AL_al_h" = "yes" |
| 11744 | then |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5 |
| 11746 | $as_echo_n "checking for -lopenal... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11747 | if ${ac_cv_lib_soname_openal+:} false; then : |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11748 | $as_echo_n "(cached) " >&6 |
| 11749 | else |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11750 | ac_check_soname_save_LIBS=$LIBS |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11751 | LIBS="-lopenal $LIBS" |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11753 | /* end confdefs.h. */ |
| 11754 | |
| 11755 | /* Override any GCC internal prototype to avoid an error. |
| 11756 | Use char because int might match the return type of a GCC |
| 11757 | builtin and then its argument prototype would still apply. */ |
| 11758 | #ifdef __cplusplus |
| 11759 | extern "C" |
| 11760 | #endif |
| 11761 | char alGetSource3i (); |
| 11762 | int |
| 11763 | main () |
| 11764 | { |
| 11765 | return alGetSource3i (); |
| 11766 | ; |
| 11767 | return 0; |
| 11768 | } |
| 11769 | _ACEOF |
| 11770 | if ac_fn_c_try_link "$LINENO"; then : |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11771 | case "$LIBEXT" in |
| 11772 | dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
| 11773 | 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'` ;; |
| 11774 | *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11775 | esac |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11776 | fi |
| 11777 | rm -f core conftest.err conftest.$ac_objext \ |
| 11778 | conftest$ac_exeext conftest.$ac_ext |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11779 | LIBS=$ac_check_soname_save_LIBS |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11780 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11781 | if test "x$ac_cv_lib_soname_openal" = "x"; then : |
| 11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11783 | $as_echo "not found" >&6; } |
| 11784 | |
| 11785 | else |
| 11786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5 |
| 11787 | $as_echo "$ac_cv_lib_soname_openal" >&6; } |
| 11788 | |
| 11789 | cat >>confdefs.h <<_ACEOF |
| 11790 | #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal" |
| 11791 | _ACEOF |
| 11792 | |
| 11793 | LIBOPENAL="-lopenal" |
| 11794 | |
| 11795 | ac_cv_lib_openal=yes |
| 11796 | |
| 11797 | cat >>confdefs.h <<_ACEOF |
| 11798 | #define HAVE_OPENAL 1 |
| 11799 | _ACEOF |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11800 | |
| 11801 | fi |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11802 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11803 | if test "x$ac_cv_lib_openal" != xyes; then : |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11804 | case "x$with_openal" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11805 | 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] | 11806 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11807 | *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11808 | This is an error since --with-openal was requested." "$LINENO" 5 ;; |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11809 | esac |
| 11810 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11811 | test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no} |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11812 | |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11813 | if test "$ac_cv_header_kstat_h" = "yes" |
| 11814 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11815 | { $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] | 11816 | $as_echo_n "checking for kstat_open in -lkstat... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11817 | if ${ac_cv_lib_kstat_kstat_open+:} false; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11818 | $as_echo_n "(cached) " >&6 |
| 11819 | else |
| 11820 | ac_check_lib_save_LIBS=$LIBS |
| 11821 | LIBS="-lkstat $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11823 | /* end confdefs.h. */ |
| 11824 | |
| 11825 | /* Override any GCC internal prototype to avoid an error. |
| 11826 | Use char because int might match the return type of a GCC |
| 11827 | builtin and then its argument prototype would still apply. */ |
| 11828 | #ifdef __cplusplus |
| 11829 | extern "C" |
| 11830 | #endif |
| 11831 | char kstat_open (); |
| 11832 | int |
| 11833 | main () |
| 11834 | { |
| 11835 | return kstat_open (); |
| 11836 | ; |
| 11837 | return 0; |
| 11838 | } |
| 11839 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11840 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11841 | ac_cv_lib_kstat_kstat_open=yes |
| 11842 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11843 | ac_cv_lib_kstat_kstat_open=no |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11844 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11845 | rm -f core conftest.err conftest.$ac_objext \ |
| 11846 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11847 | LIBS=$ac_check_lib_save_LIBS |
| 11848 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11849 | { $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] | 11850 | $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11851 | if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11852 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11853 | $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11854 | |
| 11855 | LIBKSTAT="-lkstat" |
| 11856 | |
| 11857 | fi |
| 11858 | |
| 11859 | fi |
| 11860 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11862 | $as_echo_n "checking for -lodbc... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11863 | if ${ac_cv_lib_soname_odbc+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11864 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11865 | else |
| 11866 | ac_check_soname_save_LIBS=$LIBS |
| 11867 | LIBS="-lodbc $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11869 | /* end confdefs.h. */ |
| 11870 | |
| 11871 | /* Override any GCC internal prototype to avoid an error. |
| 11872 | Use char because int might match the return type of a GCC |
| 11873 | builtin and then its argument prototype would still apply. */ |
| 11874 | #ifdef __cplusplus |
| 11875 | extern "C" |
| 11876 | #endif |
| 11877 | char SQLConnect (); |
| 11878 | int |
| 11879 | main () |
| 11880 | { |
| 11881 | return SQLConnect (); |
| 11882 | ; |
| 11883 | return 0; |
| 11884 | } |
| 11885 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11886 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11887 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11888 | 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] | 11889 | 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'` ;; |
| 11890 | *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11891 | esac |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11892 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11893 | rm -f core conftest.err conftest.$ac_objext \ |
| 11894 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11895 | LIBS=$ac_check_soname_save_LIBS |
| 11896 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11897 | if test "x$ac_cv_lib_soname_odbc" = "x"; then : |
| 11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11899 | $as_echo "not found" >&6; } |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11900 | cat >>confdefs.h <<_ACEOF |
| 11901 | #define SONAME_LIBODBC "libodbc.$LIBEXT" |
| 11902 | _ACEOF |
| 11903 | |
| 11904 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11905 | { $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] | 11906 | $as_echo "$ac_cv_lib_soname_odbc" >&6; } |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11907 | |
| 11908 | cat >>confdefs.h <<_ACEOF |
| 11909 | #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc" |
| 11910 | _ACEOF |
| 11911 | |
| 11912 | |
| 11913 | fi |
| 11914 | |
Alexandre Julliard | 98cb21f | 2011-03-17 11:42:17 +0100 | [diff] [blame] | 11915 | test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no} |
| 11916 | test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no} |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 11917 | test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no} |
Alexandre Julliard | 98cb21f | 2011-03-17 11:42:17 +0100 | [diff] [blame] | 11918 | test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no} |
| 11919 | |
Austin English | eb17b8c | 2011-07-23 23:05:04 -0500 | [diff] [blame] | 11920 | if test "x$ALSALIBS$COREAUDIO" = "x" -a \ |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 11921 | "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \ |
Andrew Eikum | 55f9ac8 | 2011-07-13 14:20:47 -0500 | [diff] [blame] | 11922 | "x$with_alsa$with_coreaudio$with_oss" != xnonono |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11923 | then |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11924 | 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] | 11925 | fi |
| 11926 | |
| 11927 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 11928 | EXTRACFLAGS="" |
| 11929 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11930 | if test "x${GCC}" = "xyes" |
| 11931 | then |
Hans Leidekker | d17b232 | 2004-01-06 21:37:44 +0000 | [diff] [blame] | 11932 | EXTRACFLAGS="-Wall -pipe" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 11933 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11934 | { $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] | 11935 | $as_echo_n "checking for gcc strength-reduce bug... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11936 | if ${ac_cv_c_gcc_strength_bug+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11937 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11938 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11939 | if test "$cross_compiling" = yes; then : |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11940 | ac_cv_c_gcc_strength_bug="yes" |
| 11941 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11943 | /* end confdefs.h. */ |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 11944 | int L[4] = {0,1,2,3}; |
| 11945 | int |
| 11946 | main () |
| 11947 | { |
| 11948 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11949 | unsigned int B = 3; |
| 11950 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 11951 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 11952 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 11953 | L[i] = 4; |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 11954 | return (Array[1] != -2 || L[2] != 3) |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 11955 | ; |
| 11956 | return 0; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11957 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11958 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11959 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11960 | ac_cv_c_gcc_strength_bug="no" |
| 11961 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11962 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11963 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11964 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11965 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11966 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11967 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11968 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11969 | { $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] | 11970 | $as_echo "$ac_cv_c_gcc_strength_bug" >&6; } |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11971 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 11972 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 11973 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11974 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 11975 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11976 | { $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] | 11977 | $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11978 | if ${ac_cv_cflags__fno_builtin+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11979 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11980 | else |
| 11981 | ac_wine_try_cflags_saved=$CFLAGS |
| 11982 | CFLAGS="$CFLAGS -fno-builtin" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11984 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 11985 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11986 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11987 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11988 | ac_cv_cflags__fno_builtin=yes |
| 11989 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11990 | ac_cv_cflags__fno_builtin=no |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11991 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11992 | rm -f core conftest.err conftest.$ac_objext \ |
| 11993 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11994 | CFLAGS=$ac_wine_try_cflags_saved |
| 11995 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11996 | { $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] | 11997 | $as_echo "$ac_cv_cflags__fno_builtin" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11998 | if test $ac_cv_cflags__fno_builtin = yes; then : |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11999 | BUILTINFLAG="-fno-builtin" |
| 12000 | |
| 12001 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12002 | { $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] | 12003 | $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12004 | if ${ac_cv_cflags__fno_strict_aliasing+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12005 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12006 | else |
| 12007 | ac_wine_try_cflags_saved=$CFLAGS |
| 12008 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12010 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12011 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12012 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12013 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12014 | ac_cv_cflags__fno_strict_aliasing=yes |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12015 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12016 | ac_cv_cflags__fno_strict_aliasing=no |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12017 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12018 | rm -f core conftest.err conftest.$ac_objext \ |
| 12019 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12020 | CFLAGS=$ac_wine_try_cflags_saved |
| 12021 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12022 | { $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] | 12023 | $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12024 | if test $ac_cv_cflags__fno_strict_aliasing = yes; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12025 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 12026 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12027 | { $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] | 12028 | $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12029 | if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12030 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12031 | else |
| 12032 | ac_wine_try_cflags_saved=$CFLAGS |
| 12033 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12035 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12036 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12037 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12038 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12039 | ac_cv_cflags__Wdeclaration_after_statement=yes |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12040 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12041 | ac_cv_cflags__Wdeclaration_after_statement=no |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12042 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12043 | rm -f core conftest.err conftest.$ac_objext \ |
| 12044 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12045 | CFLAGS=$ac_wine_try_cflags_saved |
| 12046 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12047 | { $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] | 12048 | $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12049 | if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12050 | EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement" |
| 12051 | fi |
Gerald Pfeifer | 8213f54 | 2011-05-08 02:53:23 +0200 | [diff] [blame] | 12052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5 |
| 12053 | $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; } |
| 12054 | if ${ac_cv_cflags__Wempty_body+:} false; then : |
| 12055 | $as_echo_n "(cached) " >&6 |
| 12056 | else |
| 12057 | ac_wine_try_cflags_saved=$CFLAGS |
| 12058 | CFLAGS="$CFLAGS -Wempty-body" |
| 12059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12060 | /* end confdefs.h. */ |
| 12061 | int main(int argc, char **argv) { return 0; } |
| 12062 | _ACEOF |
| 12063 | if ac_fn_c_try_link "$LINENO"; then : |
| 12064 | ac_cv_cflags__Wempty_body=yes |
| 12065 | else |
| 12066 | ac_cv_cflags__Wempty_body=no |
| 12067 | fi |
| 12068 | rm -f core conftest.err conftest.$ac_objext \ |
| 12069 | conftest$ac_exeext conftest.$ac_ext |
| 12070 | CFLAGS=$ac_wine_try_cflags_saved |
| 12071 | fi |
| 12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5 |
| 12073 | $as_echo "$ac_cv_cflags__Wempty_body" >&6; } |
| 12074 | if test $ac_cv_cflags__Wempty_body = yes; then : |
| 12075 | EXTRACFLAGS="$EXTRACFLAGS -Wempty-body" |
| 12076 | fi |
Gerald Pfeifer | 2505dfc | 2012-01-23 21:58:35 +0100 | [diff] [blame] | 12077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5 |
| 12078 | $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; } |
| 12079 | if ${ac_cv_cflags__Wignored_qualifiers+:} false; then : |
| 12080 | $as_echo_n "(cached) " >&6 |
| 12081 | else |
| 12082 | ac_wine_try_cflags_saved=$CFLAGS |
| 12083 | CFLAGS="$CFLAGS -Wignored-qualifiers" |
| 12084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12085 | /* end confdefs.h. */ |
| 12086 | int main(int argc, char **argv) { return 0; } |
| 12087 | _ACEOF |
| 12088 | if ac_fn_c_try_link "$LINENO"; then : |
| 12089 | ac_cv_cflags__Wignored_qualifiers=yes |
| 12090 | else |
| 12091 | ac_cv_cflags__Wignored_qualifiers=no |
| 12092 | fi |
| 12093 | rm -f core conftest.err conftest.$ac_objext \ |
| 12094 | conftest$ac_exeext conftest.$ac_ext |
| 12095 | CFLAGS=$ac_wine_try_cflags_saved |
| 12096 | fi |
| 12097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5 |
| 12098 | $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; } |
| 12099 | if test $ac_cv_cflags__Wignored_qualifiers = yes; then : |
| 12100 | EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers" |
| 12101 | fi |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5 |
| 12103 | $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12104 | if ${ac_cv_cflags__Wstrict_prototypes+:} false; then : |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 12105 | $as_echo_n "(cached) " >&6 |
| 12106 | else |
| 12107 | ac_wine_try_cflags_saved=$CFLAGS |
| 12108 | CFLAGS="$CFLAGS -Wstrict-prototypes" |
| 12109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12110 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12111 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 12112 | _ACEOF |
| 12113 | if ac_fn_c_try_link "$LINENO"; then : |
| 12114 | ac_cv_cflags__Wstrict_prototypes=yes |
| 12115 | else |
| 12116 | ac_cv_cflags__Wstrict_prototypes=no |
| 12117 | fi |
| 12118 | rm -f core conftest.err conftest.$ac_objext \ |
| 12119 | conftest$ac_exeext conftest.$ac_ext |
| 12120 | CFLAGS=$ac_wine_try_cflags_saved |
| 12121 | fi |
| 12122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5 |
| 12123 | $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; } |
| 12124 | if test $ac_cv_cflags__Wstrict_prototypes = yes; then : |
| 12125 | EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes" |
| 12126 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12127 | { $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] | 12128 | $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12129 | if ${ac_cv_cflags__Wtype_limits+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12130 | $as_echo_n "(cached) " >&6 |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12131 | else |
| 12132 | ac_wine_try_cflags_saved=$CFLAGS |
| 12133 | CFLAGS="$CFLAGS -Wtype-limits" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12135 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12136 | int main(int argc, char **argv) { return 0; } |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12137 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12138 | if ac_fn_c_try_link "$LINENO"; then : |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12139 | ac_cv_cflags__Wtype_limits=yes |
| 12140 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12141 | ac_cv_cflags__Wtype_limits=no |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12142 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12143 | rm -f core conftest.err conftest.$ac_objext \ |
| 12144 | conftest$ac_exeext conftest.$ac_ext |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12145 | CFLAGS=$ac_wine_try_cflags_saved |
| 12146 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12147 | { $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] | 12148 | $as_echo "$ac_cv_cflags__Wtype_limits" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12149 | if test $ac_cv_cflags__Wtype_limits = yes; then : |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12150 | EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits" |
| 12151 | fi |
Gerald Pfeifer | 3ec82c5 | 2011-04-10 20:38:52 +0200 | [diff] [blame] | 12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5 |
| 12153 | $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12154 | if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then : |
Gerald Pfeifer | 3ec82c5 | 2011-04-10 20:38:52 +0200 | [diff] [blame] | 12155 | $as_echo_n "(cached) " >&6 |
| 12156 | else |
| 12157 | ac_wine_try_cflags_saved=$CFLAGS |
| 12158 | CFLAGS="$CFLAGS -Wunused-but-set-parameter" |
| 12159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12160 | /* end confdefs.h. */ |
| 12161 | int main(int argc, char **argv) { return 0; } |
| 12162 | _ACEOF |
| 12163 | if ac_fn_c_try_link "$LINENO"; then : |
| 12164 | ac_cv_cflags__Wunused_but_set_parameter=yes |
| 12165 | else |
| 12166 | ac_cv_cflags__Wunused_but_set_parameter=no |
| 12167 | fi |
| 12168 | rm -f core conftest.err conftest.$ac_objext \ |
| 12169 | conftest$ac_exeext conftest.$ac_ext |
| 12170 | CFLAGS=$ac_wine_try_cflags_saved |
| 12171 | fi |
| 12172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5 |
| 12173 | $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; } |
| 12174 | if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then : |
| 12175 | EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter" |
| 12176 | fi |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5 |
| 12178 | $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12179 | if ${ac_cv_cflags__Wwrite_strings+:} false; then : |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12180 | $as_echo_n "(cached) " >&6 |
| 12181 | else |
| 12182 | ac_wine_try_cflags_saved=$CFLAGS |
| 12183 | CFLAGS="$CFLAGS -Wwrite-strings" |
| 12184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12185 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12186 | int main(int argc, char **argv) { return 0; } |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12187 | _ACEOF |
| 12188 | if ac_fn_c_try_link "$LINENO"; then : |
| 12189 | ac_cv_cflags__Wwrite_strings=yes |
| 12190 | else |
| 12191 | ac_cv_cflags__Wwrite_strings=no |
| 12192 | fi |
| 12193 | rm -f core conftest.err conftest.$ac_objext \ |
| 12194 | conftest$ac_exeext conftest.$ac_ext |
| 12195 | CFLAGS=$ac_wine_try_cflags_saved |
| 12196 | fi |
| 12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5 |
| 12198 | $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; } |
| 12199 | if test $ac_cv_cflags__Wwrite_strings = yes; then : |
| 12200 | EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings" |
| 12201 | fi |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12202 | |
Austin English | 5cfe7db | 2011-10-18 12:17:37 -0700 | [diff] [blame] | 12203 | case $host_cpu in |
| 12204 | *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5 |
| 12205 | $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; } |
| 12206 | if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then : |
| 12207 | $as_echo_n "(cached) " >&6 |
| 12208 | else |
| 12209 | ac_wine_try_cflags_saved=$CFLAGS |
| 12210 | CFLAGS="$CFLAGS -fno-omit-frame-pointer" |
| 12211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12212 | /* end confdefs.h. */ |
| 12213 | int main(int argc, char **argv) { return 0; } |
| 12214 | _ACEOF |
| 12215 | if ac_fn_c_try_link "$LINENO"; then : |
| 12216 | ac_cv_cflags__fno_omit_frame_pointer=yes |
| 12217 | else |
| 12218 | ac_cv_cflags__fno_omit_frame_pointer=no |
| 12219 | fi |
| 12220 | rm -f core conftest.err conftest.$ac_objext \ |
| 12221 | conftest$ac_exeext conftest.$ac_ext |
| 12222 | CFLAGS=$ac_wine_try_cflags_saved |
| 12223 | fi |
| 12224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5 |
| 12225 | $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; } |
| 12226 | if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then : |
| 12227 | EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer" |
| 12228 | fi ;; |
| 12229 | esac |
| 12230 | |
Alexandre Julliard | b71f83b | 2012-01-16 16:31:11 +0100 | [diff] [blame] | 12231 | case $host in |
| 12232 | x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5 |
| 12233 | $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; } |
| 12234 | if ${ac_cv_cflags__Wno_format+:} false; then : |
| 12235 | $as_echo_n "(cached) " >&6 |
| 12236 | else |
| 12237 | ac_wine_try_cflags_saved=$CFLAGS |
| 12238 | CFLAGS="$CFLAGS -Wno-format" |
| 12239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12240 | /* end confdefs.h. */ |
| 12241 | int main(int argc, char **argv) { return 0; } |
| 12242 | _ACEOF |
| 12243 | if ac_fn_c_try_link "$LINENO"; then : |
| 12244 | ac_cv_cflags__Wno_format=yes |
| 12245 | else |
| 12246 | ac_cv_cflags__Wno_format=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__Wno_format" >&5 |
| 12253 | $as_echo "$ac_cv_cflags__Wno_format" >&6; } |
| 12254 | if test $ac_cv_cflags__Wno_format = yes; then : |
| 12255 | EXTRACFLAGS="$EXTRACFLAGS -Wno-format" |
| 12256 | fi ;; |
| 12257 | esac |
| 12258 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12259 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12260 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5 |
| 12262 | $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12263 | if ${ac_cv_c_string_h_warnings+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12264 | $as_echo_n "(cached) " >&6 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12265 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12267 | /* end confdefs.h. */ |
| 12268 | #include <string.h> |
| 12269 | int |
| 12270 | main () |
| 12271 | { |
| 12272 | |
| 12273 | ; |
| 12274 | return 0; |
| 12275 | } |
| 12276 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12277 | if ac_fn_c_try_compile "$LINENO"; then : |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12278 | ac_cv_c_string_h_warnings=no |
| 12279 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12280 | ac_cv_c_string_h_warnings=yes |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12281 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12283 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12284 | { $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] | 12285 | $as_echo "$ac_cv_c_string_h_warnings" >&6; } |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12286 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12287 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 12288 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12289 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12290 | fi |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12291 | |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12292 | saved_CFLAGS="$CFLAGS" |
| 12293 | CFLAGS="$CFLAGS -Wlogical-op -Werror" |
| 12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5 |
| 12295 | $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12296 | if ${ac_cv_c_logicalop_noisy+:} false; then : |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12297 | $as_echo_n "(cached) " >&6 |
| 12298 | else |
| 12299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12300 | /* end confdefs.h. */ |
| 12301 | #include <string.h> |
| 12302 | int |
| 12303 | main () |
| 12304 | { |
| 12305 | char*f(const char *h,char n) {return strchr(h,n);} |
| 12306 | ; |
| 12307 | return 0; |
| 12308 | } |
| 12309 | _ACEOF |
| 12310 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12311 | ac_cv_c_logicalop_noisy=no |
| 12312 | else |
| 12313 | ac_cv_c_logicalop_noisy=yes |
| 12314 | fi |
| 12315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12316 | fi |
| 12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5 |
| 12318 | $as_echo "$ac_cv_c_logicalop_noisy" >&6; } |
| 12319 | CFLAGS="$saved_CFLAGS" |
| 12320 | if test "$ac_cv_c_logicalop_noisy" = "no" |
| 12321 | then |
| 12322 | EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op" |
| 12323 | fi |
| 12324 | |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 12325 | if test "x$enable_maintainer_mode" = "xyes" |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12326 | then |
| 12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5 |
| 12328 | $as_echo_n "checking whether the compiler supports -Werror... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12329 | if ${ac_cv_cflags__Werror+:} false; then : |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12330 | $as_echo_n "(cached) " >&6 |
| 12331 | else |
| 12332 | ac_wine_try_cflags_saved=$CFLAGS |
| 12333 | CFLAGS="$CFLAGS -Werror" |
| 12334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12335 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12336 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12337 | _ACEOF |
| 12338 | if ac_fn_c_try_link "$LINENO"; then : |
| 12339 | ac_cv_cflags__Werror=yes |
| 12340 | else |
| 12341 | ac_cv_cflags__Werror=no |
| 12342 | fi |
| 12343 | rm -f core conftest.err conftest.$ac_objext \ |
| 12344 | conftest$ac_exeext conftest.$ac_ext |
| 12345 | CFLAGS=$ac_wine_try_cflags_saved |
| 12346 | fi |
| 12347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5 |
| 12348 | $as_echo "$ac_cv_cflags__Werror" >&6; } |
| 12349 | if test $ac_cv_cflags__Werror = yes; then : |
| 12350 | EXTRACFLAGS="$EXTRACFLAGS -Werror" |
| 12351 | fi |
| 12352 | fi |
Stefan Dösinger | fdac5e5 | 2009-09-12 14:08:53 +0200 | [diff] [blame] | 12353 | |
| 12354 | saved_CFLAGS="$CFLAGS" |
| 12355 | CFLAGS="$CFLAGS -Werror" |
| 12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5 |
| 12357 | $as_echo_n "checking for ms_hook_prologue attribute... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12358 | if ${ac_cv_have_ms_hook_prologue+:} false; then : |
Stefan Dösinger | fdac5e5 | 2009-09-12 14:08:53 +0200 | [diff] [blame] | 12359 | $as_echo_n "(cached) " >&6 |
| 12360 | else |
| 12361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12362 | /* end confdefs.h. */ |
| 12363 | int __attribute__((__ms_hook_prologue__)) test(void) { return 0; } |
| 12364 | int |
| 12365 | main () |
| 12366 | { |
| 12367 | |
| 12368 | ; |
| 12369 | return 0; |
| 12370 | } |
| 12371 | _ACEOF |
| 12372 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12373 | ac_cv_have_ms_hook_prologue="yes" |
| 12374 | else |
| 12375 | ac_cv_have_ms_hook_prologue="no" |
| 12376 | fi |
| 12377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12378 | fi |
| 12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5 |
| 12380 | $as_echo "$ac_cv_have_ms_hook_prologue" >&6; } |
| 12381 | CFLAGS="$saved_CFLAGS" |
| 12382 | if test "$ac_cv_have_ms_hook_prologue" = "yes" |
| 12383 | then |
| 12384 | |
| 12385 | $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h |
| 12386 | |
| 12387 | else |
| 12388 | $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h |
| 12389 | |
| 12390 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12391 | fi |
| 12392 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12393 | |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5 |
| 12395 | $as_echo_n "checking for the need to disable Fortify... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12396 | if ${ac_cv_c_fortify_enabled+:} false; then : |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12397 | $as_echo_n "(cached) " >&6 |
| 12398 | else |
| 12399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12400 | /* end confdefs.h. */ |
| 12401 | #include <string.h> |
| 12402 | int |
| 12403 | main () |
| 12404 | { |
| 12405 | #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0 |
| 12406 | #error Fortify enabled |
| 12407 | #endif |
| 12408 | ; |
| 12409 | return 0; |
| 12410 | } |
| 12411 | _ACEOF |
| 12412 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12413 | ac_cv_c_fortify_enabled=no |
| 12414 | else |
| 12415 | ac_cv_c_fortify_enabled=yes |
| 12416 | fi |
| 12417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12418 | fi |
| 12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5 |
| 12420 | $as_echo "$ac_cv_c_fortify_enabled" >&6; } |
| 12421 | if test "$ac_cv_c_fortify_enabled" = yes |
| 12422 | then |
Alexandre Julliard | b10fb86 | 2010-10-29 14:25:01 +0200 | [diff] [blame] | 12423 | CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0" |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12424 | fi |
| 12425 | |
| 12426 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12427 | { $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] | 12428 | $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12429 | if ${ac_cv_c_extern_prefix+:} false; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12430 | $as_echo_n "(cached) " >&6 |
| 12431 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12433 | /* end confdefs.h. */ |
| 12434 | extern int ac_test; |
| 12435 | int |
| 12436 | main () |
| 12437 | { |
| 12438 | asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1 |
| 12439 | ; |
| 12440 | return 0; |
| 12441 | } |
| 12442 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12443 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12444 | ac_cv_c_extern_prefix="yes" |
| 12445 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12446 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12447 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12448 | rm -f core conftest.err conftest.$ac_objext \ |
| 12449 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12450 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12451 | { $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] | 12452 | $as_echo "$ac_cv_c_extern_prefix" >&6; } |
| 12453 | |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12454 | case $host_cpu in |
| 12455 | *i[3456789]86*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12456 | { $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] | 12457 | $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12458 | if ${ac_cv_c_stdcall_suffix+:} false; then : |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12459 | $as_echo_n "(cached) " >&6 |
| 12460 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12462 | /* end confdefs.h. */ |
| 12463 | #ifndef _MSC_VER |
| 12464 | #define __stdcall __attribute__((__stdcall__)) |
| 12465 | #endif |
| 12466 | int __stdcall ac_test(int i) { return i; } |
| 12467 | int |
| 12468 | main () |
| 12469 | { |
| 12470 | asm("jmp _ac_test@4"); if (ac_test(1)) return 1 |
| 12471 | ; |
| 12472 | return 0; |
| 12473 | } |
| 12474 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12475 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12476 | ac_cv_c_stdcall_suffix="yes" |
| 12477 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12478 | ac_cv_c_stdcall_suffix="no" |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12479 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12480 | rm -f core conftest.err conftest.$ac_objext \ |
| 12481 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12482 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12483 | { $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] | 12484 | $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;; |
| 12485 | *) ac_cv_c_stdcall_suffix="no" ;; |
| 12486 | esac |
| 12487 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12488 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12489 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 12490 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12491 | $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12492 | |
| 12493 | asm_name_prefix="_" |
| 12494 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12495 | $as_echo "#define __ASM_NAME(name) name" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12496 | |
| 12497 | asm_name_prefix="" |
| 12498 | fi |
| 12499 | |
| 12500 | |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12501 | if test "$ac_cv_c_stdcall_suffix" = "yes" |
| 12502 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12503 | $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12504 | |
| 12505 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12506 | $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12507 | |
| 12508 | fi |
| 12509 | |
| 12510 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12511 | { $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] | 12512 | $as_echo_n "checking how to define a function in assembly code... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12513 | if ${ac_cv_asm_func_def+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12514 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12515 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12517 | /* end confdefs.h. */ |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12518 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12519 | int |
| 12520 | main () |
| 12521 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12522 | 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] | 12523 | ; |
| 12524 | return 0; |
| 12525 | } |
| 12526 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12527 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12528 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12529 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12531 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12532 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12533 | int |
| 12534 | main () |
| 12535 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12536 | 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] | 12537 | ; |
| 12538 | return 0; |
| 12539 | } |
| 12540 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12541 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12542 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12543 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12545 | /* end confdefs.h. */ |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12546 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12547 | int |
| 12548 | main () |
| 12549 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12550 | 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] | 12551 | ; |
| 12552 | return 0; |
| 12553 | } |
| 12554 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12555 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12556 | ac_cv_asm_func_def=".type 2" |
| 12557 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12558 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12559 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12560 | rm -f core conftest.err conftest.$ac_objext \ |
| 12561 | conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12562 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12563 | rm -f core conftest.err conftest.$ac_objext \ |
| 12564 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12565 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12566 | rm -f core conftest.err conftest.$ac_objext \ |
| 12567 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12568 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12569 | { $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] | 12570 | $as_echo "$ac_cv_asm_func_def" >&6; } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12571 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12572 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12573 | case "$ac_cv_asm_func_def" in |
| 12574 | ".def") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12575 | $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] | 12576 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12577 | 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] | 12578 | ".type @function") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12579 | $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] | 12580 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12581 | asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12582 | ".type 2") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12583 | $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] | 12584 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12585 | asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12586 | *) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12587 | $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12588 | |
| 12589 | asm_func_header="" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12590 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12591 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12592 | { $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] | 12593 | $as_echo_n "checking whether asm() works outside of functions... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12594 | if ${ac_cv_c_asm_outside_funcs+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12595 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12596 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12598 | /* end confdefs.h. */ |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12599 | asm(".text\n\t.long 0"); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12600 | int |
| 12601 | main () |
| 12602 | { |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12603 | |
| 12604 | ; |
| 12605 | return 0; |
| 12606 | } |
| 12607 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12608 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12609 | ac_cv_c_asm_outside_funcs="yes" |
| 12610 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12611 | ac_cv_c_asm_outside_funcs="no" |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12612 | fi |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12614 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12615 | { $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] | 12616 | $as_echo "$ac_cv_c_asm_outside_funcs" >&6; } |
| 12617 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12618 | { $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] | 12619 | $as_echo_n "checking whether .previous is supported in assembly code... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12620 | if ${ac_cv_c_dot_previous+:} false; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12621 | $as_echo_n "(cached) " >&6 |
| 12622 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12624 | /* end confdefs.h. */ |
| 12625 | |
| 12626 | int |
| 12627 | main () |
| 12628 | { |
| 12629 | asm(".text\nac_test:\t.long 0\n\t.previous"); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12630 | ; |
| 12631 | return 0; |
| 12632 | } |
| 12633 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12634 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12635 | ac_cv_c_dot_previous="yes" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12636 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12637 | ac_cv_c_dot_previous="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12638 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12639 | rm -f core conftest.err conftest.$ac_objext \ |
| 12640 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12641 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12642 | { $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] | 12643 | $as_echo "$ac_cv_c_dot_previous" >&6; } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12644 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12645 | { $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] | 12646 | $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12647 | if ${ac_cv_c_cfi_support+:} false; then : |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12648 | $as_echo_n "(cached) " >&6 |
| 12649 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12651 | /* end confdefs.h. */ |
| 12652 | asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc"); |
| 12653 | int |
| 12654 | main () |
| 12655 | { |
| 12656 | |
| 12657 | ; |
| 12658 | return 0; |
| 12659 | } |
| 12660 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12661 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12662 | ac_cv_c_cfi_support="yes" |
| 12663 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12664 | ac_cv_c_cfi_support="no" |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12665 | fi |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12667 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12668 | { $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] | 12669 | $as_echo "$ac_cv_c_cfi_support" >&6; } |
| 12670 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12671 | 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] | 12672 | asm_func_trailer="" |
| 12673 | if test "$ac_cv_c_dot_previous" = "yes" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12674 | then |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12675 | asm_func_trailer="\\n\\t.previous" |
| 12676 | fi |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12677 | if test "$ac_cv_c_cfi_support" = "yes" |
| 12678 | then |
| 12679 | asm_func_header="$asm_func_header.cfi_startproc\\n\\t" |
| 12680 | asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer" |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12681 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12682 | $as_echo "#define __ASM_CFI(str) str" >>confdefs.h |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12683 | |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 12684 | UNWINDFLAGS=-fasynchronous-unwind-tables |
| 12685 | |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12686 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12687 | $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12688 | |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12689 | fi |
| 12690 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12691 | asm_func_code="$asm_func_header\" code \"$asm_func_trailer" |
| 12692 | |
| 12693 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12694 | if test "$ac_cv_c_asm_outside_funcs" = "yes" |
| 12695 | then |
| 12696 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12697 | #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] | 12698 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12699 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12700 | else |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12701 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12702 | #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] | 12703 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12704 | |
| 12705 | fi |
| 12706 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12707 | $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] | 12708 | |
| 12709 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12710 | $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] | 12711 | |
| 12712 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12713 | |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12714 | LDPATH="" |
| 12715 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12716 | case $build_os in |
| 12717 | cygwin*|mingw32*) |
Alexandre Julliard | b860c4a | 2009-09-01 22:36:13 +0200 | [diff] [blame] | 12718 | TOOLSEXT=".exe" |
| 12719 | |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 12720 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\"" |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12721 | ;; |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 12722 | darwin*|macosx*) |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12723 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12724 | *) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 12725 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12726 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12727 | esac |
| 12728 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12729 | case $host_os in |
| 12730 | mingw32*) |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 12731 | CRTLIBS="-lmsvcrt" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 12732 | |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 12733 | SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 12734 | |
| 12735 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 12736 | esac |
| 12737 | |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 12738 | MAIN_BINARY="wine" |
| 12739 | |
Alexandre Julliard | f3831cf | 2010-05-16 17:01:52 +0200 | [diff] [blame] | 12740 | test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64" |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 12741 | |
Alexandre Julliard | 0a08620 | 2010-12-16 16:54:15 +0100 | [diff] [blame] | 12742 | case $host_os in |
| 12743 | linux*) |
| 12744 | case $host_cpu in |
| 12745 | *i[3456789]86*) EXTRA_BINARIES="wine-preloader" |
| 12746 | ;; |
| 12747 | x86_64*) EXTRA_BINARIES="wine64-preloader" |
Tijl Coosemans | 9f5c69c | 2007-08-24 15:46:36 +0200 | [diff] [blame] | 12748 | ;; |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 12749 | esac |
Emmanuel Maillard | 3bc8d2e | 2004-07-19 20:11:10 +0000 | [diff] [blame] | 12750 | ;; |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12751 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12752 | |
| 12753 | |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12754 | ac_save_CFLAGS="$CFLAGS" |
| 12755 | CFLAGS="$CFLAGS $BUILTINFLAG" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12756 | for ac_func in \ |
Stefan Dösinger | a774152 | 2011-05-24 21:05:28 +0200 | [diff] [blame] | 12757 | _finite \ |
| 12758 | _isnan \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12759 | _pclose \ |
| 12760 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12761 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 12762 | _spawnvp \ |
Bang Jun-young | ff96bd6 | 2007-10-15 17:09:12 +0900 | [diff] [blame] | 12763 | _strdup \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12764 | _stricmp \ |
| 12765 | _strnicmp \ |
Rob Shearman | e9f5bce | 2008-03-03 21:48:18 +0000 | [diff] [blame] | 12766 | _strtoi64 \ |
| 12767 | _strtoui64 \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 12768 | _vsnprintf \ |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 12769 | asctime_r \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12770 | chsize \ |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12771 | dlopen \ |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 12772 | epoll_create \ |
Hans Leidekker | c3de6ef | 2004-10-19 23:53:26 +0000 | [diff] [blame] | 12773 | ffs \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 12774 | finite \ |
Alexandre Julliard | 7d5e565 | 2009-06-01 12:51:54 +0200 | [diff] [blame] | 12775 | fnmatch \ |
Hans Leidekker | bed3842 | 2004-10-14 03:08:57 +0000 | [diff] [blame] | 12776 | fork \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 12777 | fpclass \ |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 12778 | fstatfs \ |
| 12779 | fstatvfs \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12780 | ftruncate \ |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 12781 | futimes \ |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 12782 | futimesat \ |
Charles Davis | 4e44e15 | 2011-01-18 13:09:44 -0700 | [diff] [blame] | 12783 | getattrlist \ |
Alexandre Julliard | a9f214c | 2006-11-13 15:42:48 +0100 | [diff] [blame] | 12784 | getdirentries \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 12785 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12786 | getpagesize \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 12787 | getpwuid \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 12788 | gettimeofday \ |
Steven Edwards | e7c3ab1 | 2004-10-04 20:45:49 +0000 | [diff] [blame] | 12789 | getuid \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 12790 | kqueue \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 12791 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12792 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 12793 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12794 | pclose \ |
Alexandre Julliard | 6f68b77 | 2009-07-01 12:13:34 +0200 | [diff] [blame] | 12795 | pipe2 \ |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12796 | poll \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12797 | popen \ |
Albert Lee | 01b972d | 2009-11-20 18:35:26 -0500 | [diff] [blame] | 12798 | port_create \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 12799 | prctl \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12800 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 12801 | pwrite \ |
Rob Shearman | 87175c6 | 2008-10-03 12:55:21 +0100 | [diff] [blame] | 12802 | readdir \ |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 12803 | readlink \ |
Jeremy White | 08c0f69 | 2004-10-09 02:26:29 +0000 | [diff] [blame] | 12804 | sched_yield \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12805 | select \ |
Gerald Pfeifer | 39f6727 | 2008-01-20 21:23:08 +0100 | [diff] [blame] | 12806 | setproctitle \ |
Paul Millar | df10b7d | 2006-07-16 15:06:28 +0100 | [diff] [blame] | 12807 | setrlimit \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12808 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12809 | sigaltstack \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 12810 | sigprocmask \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12811 | snprintf \ |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 12812 | spawnvp \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12813 | statfs \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 12814 | statvfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 12815 | strcasecmp \ |
Bang Jun-young | ff96bd6 | 2007-10-15 17:09:12 +0900 | [diff] [blame] | 12816 | strdup \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12817 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 12818 | strncasecmp \ |
Louis Lenders | 6c04a18 | 2006-12-17 17:56:50 +0000 | [diff] [blame] | 12819 | strtold \ |
Rob Shearman | e9f5bce | 2008-03-03 21:48:18 +0000 | [diff] [blame] | 12820 | strtoll \ |
| 12821 | strtoull \ |
Alexandre Julliard | 0fbd556 | 2008-12-22 10:47:16 +0100 | [diff] [blame] | 12822 | symlink \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12823 | tcgetattr \ |
Tijl Coosemans | 0c4f152 | 2007-08-23 14:12:37 +0200 | [diff] [blame] | 12824 | thr_kill2 \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12825 | timegm \ |
| 12826 | usleep \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 12827 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12828 | wait4 \ |
| 12829 | waitpid \ |
| 12830 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12831 | do : |
| 12832 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12833 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 12834 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12835 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12836 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12837 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 12838 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12839 | fi |
| 12840 | done |
| 12841 | |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12842 | CFLAGS="$ac_save_CFLAGS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12843 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12844 | if test "$ac_cv_func_dlopen" = no |
| 12845 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12846 | { $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] | 12847 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12848 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12849 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12850 | else |
| 12851 | ac_check_lib_save_LIBS=$LIBS |
| 12852 | LIBS="-ldl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12854 | /* end confdefs.h. */ |
| 12855 | |
| 12856 | /* Override any GCC internal prototype to avoid an error. |
| 12857 | Use char because int might match the return type of a GCC |
| 12858 | builtin and then its argument prototype would still apply. */ |
| 12859 | #ifdef __cplusplus |
| 12860 | extern "C" |
| 12861 | #endif |
| 12862 | char dlopen (); |
| 12863 | int |
| 12864 | main () |
| 12865 | { |
| 12866 | return dlopen (); |
| 12867 | ; |
| 12868 | return 0; |
| 12869 | } |
| 12870 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12871 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12872 | ac_cv_lib_dl_dlopen=yes |
| 12873 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12874 | ac_cv_lib_dl_dlopen=no |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12875 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12876 | rm -f core conftest.err conftest.$ac_objext \ |
| 12877 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12878 | LIBS=$ac_check_lib_save_LIBS |
| 12879 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12880 | { $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] | 12881 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12882 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12883 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12884 | LIBDL="-ldl" |
| 12885 | |
| 12886 | fi |
| 12887 | |
| 12888 | fi |
| 12889 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 12890 | LIBS="$LIBS $LIBDL" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12891 | for ac_func in dladdr |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12892 | do : |
| 12893 | ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12894 | if test "x$ac_cv_func_dladdr" = xyes; then : |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12895 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12896 | #define HAVE_DLADDR 1 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12897 | _ACEOF |
| 12898 | |
| 12899 | fi |
| 12900 | done |
| 12901 | |
| 12902 | LIBS="$ac_wine_check_funcs_save_LIBS" |
| 12903 | |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12904 | if test "$ac_cv_func_poll" = no |
| 12905 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12906 | { $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] | 12907 | $as_echo_n "checking for poll in -lpoll... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12908 | if ${ac_cv_lib_poll_poll+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12909 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12910 | else |
| 12911 | ac_check_lib_save_LIBS=$LIBS |
| 12912 | LIBS="-lpoll $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12914 | /* end confdefs.h. */ |
| 12915 | |
| 12916 | /* Override any GCC internal prototype to avoid an error. |
| 12917 | Use char because int might match the return type of a GCC |
| 12918 | builtin and then its argument prototype would still apply. */ |
| 12919 | #ifdef __cplusplus |
| 12920 | extern "C" |
| 12921 | #endif |
| 12922 | char poll (); |
| 12923 | int |
| 12924 | main () |
| 12925 | { |
| 12926 | return poll (); |
| 12927 | ; |
| 12928 | return 0; |
| 12929 | } |
| 12930 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12931 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12932 | ac_cv_lib_poll_poll=yes |
| 12933 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12934 | ac_cv_lib_poll_poll=no |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12935 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12936 | rm -f core conftest.err conftest.$ac_objext \ |
| 12937 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12938 | LIBS=$ac_check_lib_save_LIBS |
| 12939 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12940 | { $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] | 12941 | $as_echo "$ac_cv_lib_poll_poll" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12942 | if test "x$ac_cv_lib_poll_poll" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12943 | $as_echo "#define HAVE_POLL 1" >>confdefs.h |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12944 | LIBPOLL="-lpoll" |
| 12945 | |
| 12946 | fi |
| 12947 | |
| 12948 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12949 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12950 | { $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] | 12951 | $as_echo_n "checking for library containing gethostbyname... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12952 | if ${ac_cv_search_gethostbyname+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12953 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12954 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12955 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12957 | /* end confdefs.h. */ |
| 12958 | |
| 12959 | /* Override any GCC internal prototype to avoid an error. |
| 12960 | Use char because int might match the return type of a GCC |
| 12961 | builtin and then its argument prototype would still apply. */ |
| 12962 | #ifdef __cplusplus |
| 12963 | extern "C" |
| 12964 | #endif |
| 12965 | char gethostbyname (); |
| 12966 | int |
| 12967 | main () |
| 12968 | { |
| 12969 | return gethostbyname (); |
| 12970 | ; |
| 12971 | return 0; |
| 12972 | } |
| 12973 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12974 | for ac_lib in '' nsl; do |
| 12975 | if test -z "$ac_lib"; then |
| 12976 | ac_res="none required" |
| 12977 | else |
| 12978 | ac_res=-l$ac_lib |
| 12979 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12980 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12981 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12982 | ac_cv_search_gethostbyname=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12983 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12984 | rm -f core conftest.err conftest.$ac_objext \ |
| 12985 | conftest$ac_exeext |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12986 | if ${ac_cv_search_gethostbyname+:} false; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12987 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12988 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12989 | done |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12990 | if ${ac_cv_search_gethostbyname+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12991 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12992 | else |
| 12993 | ac_cv_search_gethostbyname=no |
| 12994 | fi |
| 12995 | rm conftest.$ac_ext |
| 12996 | LIBS=$ac_func_search_save_LIBS |
| 12997 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12998 | { $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] | 12999 | $as_echo "$ac_cv_search_gethostbyname" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13000 | ac_res=$ac_cv_search_gethostbyname |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13001 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13002 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13003 | |
| 13004 | fi |
| 13005 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13006 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13007 | { $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] | 13008 | $as_echo_n "checking for library containing connect... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13009 | if ${ac_cv_search_connect+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13010 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13011 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13012 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13014 | /* end confdefs.h. */ |
| 13015 | |
| 13016 | /* Override any GCC internal prototype to avoid an error. |
| 13017 | Use char because int might match the return type of a GCC |
| 13018 | builtin and then its argument prototype would still apply. */ |
| 13019 | #ifdef __cplusplus |
| 13020 | extern "C" |
| 13021 | #endif |
| 13022 | char connect (); |
| 13023 | int |
| 13024 | main () |
| 13025 | { |
| 13026 | return connect (); |
| 13027 | ; |
| 13028 | return 0; |
| 13029 | } |
| 13030 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13031 | for ac_lib in '' socket; do |
| 13032 | if test -z "$ac_lib"; then |
| 13033 | ac_res="none required" |
| 13034 | else |
| 13035 | ac_res=-l$ac_lib |
| 13036 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13037 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13038 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13039 | ac_cv_search_connect=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13040 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13041 | rm -f core conftest.err conftest.$ac_objext \ |
| 13042 | conftest$ac_exeext |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13043 | if ${ac_cv_search_connect+:} false; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13044 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13045 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13046 | done |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13047 | if ${ac_cv_search_connect+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13048 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13049 | else |
| 13050 | ac_cv_search_connect=no |
| 13051 | fi |
| 13052 | rm conftest.$ac_ext |
| 13053 | LIBS=$ac_func_search_save_LIBS |
| 13054 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13055 | { $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] | 13056 | $as_echo "$ac_cv_search_connect" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13057 | ac_res=$ac_cv_search_connect |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13058 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13059 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13060 | |
| 13061 | fi |
| 13062 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13063 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13064 | { $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] | 13065 | $as_echo_n "checking for library containing inet_aton... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13066 | if ${ac_cv_search_inet_aton+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13067 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13068 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13069 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13071 | /* end confdefs.h. */ |
| 13072 | |
| 13073 | /* Override any GCC internal prototype to avoid an error. |
| 13074 | Use char because int might match the return type of a GCC |
| 13075 | builtin and then its argument prototype would still apply. */ |
| 13076 | #ifdef __cplusplus |
| 13077 | extern "C" |
| 13078 | #endif |
| 13079 | char inet_aton (); |
| 13080 | int |
| 13081 | main () |
| 13082 | { |
| 13083 | return inet_aton (); |
| 13084 | ; |
| 13085 | return 0; |
| 13086 | } |
| 13087 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13088 | for ac_lib in '' resolv; do |
| 13089 | if test -z "$ac_lib"; then |
| 13090 | ac_res="none required" |
| 13091 | else |
| 13092 | ac_res=-l$ac_lib |
| 13093 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13094 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13095 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13096 | ac_cv_search_inet_aton=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13097 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13098 | rm -f core conftest.err conftest.$ac_objext \ |
| 13099 | conftest$ac_exeext |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13100 | if ${ac_cv_search_inet_aton+:} false; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13101 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13102 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13103 | done |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13104 | if ${ac_cv_search_inet_aton+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13105 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13106 | else |
| 13107 | ac_cv_search_inet_aton=no |
| 13108 | fi |
| 13109 | rm conftest.$ac_ext |
| 13110 | LIBS=$ac_func_search_save_LIBS |
| 13111 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13112 | { $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] | 13113 | $as_echo "$ac_cv_search_inet_aton" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13114 | ac_res=$ac_cv_search_inet_aton |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13115 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13116 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13117 | |
| 13118 | fi |
| 13119 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13120 | |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13121 | for ac_func in \ |
| 13122 | getaddrinfo \ |
| 13123 | getnameinfo \ |
| 13124 | getnetbyname \ |
| 13125 | getprotobyname \ |
| 13126 | getprotobynumber \ |
| 13127 | getservbyport \ |
| 13128 | inet_network \ |
Austin English | 0656691 | 2009-03-28 00:13:09 -0500 | [diff] [blame] | 13129 | inet_ntop \ |
| 13130 | inet_pton \ |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13131 | sendmsg \ |
Alexandre Julliard | 98bec05 | 2009-03-26 11:07:28 +0100 | [diff] [blame] | 13132 | socketpair \ |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13133 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13134 | do : |
| 13135 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13136 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13137 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13138 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13139 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13140 | _ACEOF |
| 13141 | |
| 13142 | fi |
| 13143 | done |
| 13144 | |
| 13145 | |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13146 | LDAPLIBS="" |
| 13147 | |
| 13148 | if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes" |
| 13149 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13150 | ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h> |
| 13151 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13152 | if test "x$ac_cv_type_LDAPSortKey" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13153 | { $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] | 13154 | $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13155 | if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13156 | $as_echo_n "(cached) " >&6 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13157 | else |
| 13158 | ac_check_lib_save_LIBS=$LIBS |
| 13159 | LIBS="-lldap_r $LIBPTHREAD $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13161 | /* end confdefs.h. */ |
| 13162 | |
| 13163 | /* Override any GCC internal prototype to avoid an error. |
| 13164 | Use char because int might match the return type of a GCC |
| 13165 | builtin and then its argument prototype would still apply. */ |
| 13166 | #ifdef __cplusplus |
| 13167 | extern "C" |
| 13168 | #endif |
| 13169 | char ldap_initialize (); |
| 13170 | int |
| 13171 | main () |
| 13172 | { |
| 13173 | return ldap_initialize (); |
| 13174 | ; |
| 13175 | return 0; |
| 13176 | } |
| 13177 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13178 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13179 | ac_cv_lib_ldap_r_ldap_initialize=yes |
| 13180 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13181 | ac_cv_lib_ldap_r_ldap_initialize=no |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13182 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13183 | rm -f core conftest.err conftest.$ac_objext \ |
| 13184 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13185 | LIBS=$ac_check_lib_save_LIBS |
| 13186 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13187 | { $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] | 13188 | $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13189 | if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13190 | { $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] | 13191 | $as_echo_n "checking for ber_init in -llber... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13192 | if ${ac_cv_lib_lber_ber_init+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13193 | $as_echo_n "(cached) " >&6 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13194 | else |
| 13195 | ac_check_lib_save_LIBS=$LIBS |
| 13196 | LIBS="-llber $LIBPTHREAD $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13198 | /* end confdefs.h. */ |
| 13199 | |
| 13200 | /* Override any GCC internal prototype to avoid an error. |
| 13201 | Use char because int might match the return type of a GCC |
| 13202 | builtin and then its argument prototype would still apply. */ |
| 13203 | #ifdef __cplusplus |
| 13204 | extern "C" |
| 13205 | #endif |
| 13206 | char ber_init (); |
| 13207 | int |
| 13208 | main () |
| 13209 | { |
| 13210 | return ber_init (); |
| 13211 | ; |
| 13212 | return 0; |
| 13213 | } |
| 13214 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13215 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13216 | ac_cv_lib_lber_ber_init=yes |
| 13217 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13218 | ac_cv_lib_lber_ber_init=no |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13219 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13220 | rm -f core conftest.err conftest.$ac_objext \ |
| 13221 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13222 | LIBS=$ac_check_lib_save_LIBS |
| 13223 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13224 | { $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] | 13225 | $as_echo "$ac_cv_lib_lber_ber_init" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13226 | if test "x$ac_cv_lib_lber_ber_init" = xyes; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13227 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13228 | $as_echo "#define HAVE_LDAP 1" >>confdefs.h |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13229 | |
| 13230 | LDAPLIBS="-lldap_r -llber" |
| 13231 | fi |
| 13232 | |
| 13233 | fi |
| 13234 | |
| 13235 | fi |
| 13236 | |
| 13237 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 13238 | LIBS="$LIBS $LDAPLIBS $LIBPTHREAD" |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13239 | for ac_func in \ |
| 13240 | ldap_count_references \ |
| 13241 | ldap_first_reference \ |
| 13242 | ldap_next_reference \ |
| 13243 | ldap_parse_reference \ |
| 13244 | ldap_parse_sort_control \ |
| 13245 | ldap_parse_sortresponse_control \ |
| 13246 | ldap_parse_vlv_control \ |
| 13247 | ldap_parse_vlvresponse_control |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13248 | do : |
| 13249 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13250 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13251 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13252 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13253 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13254 | _ACEOF |
| 13255 | |
| 13256 | fi |
| 13257 | done |
| 13258 | |
| 13259 | LIBS="$ac_wine_check_funcs_save_LIBS" |
| 13260 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13261 | if test "x$LDAPLIBS" = "x"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13262 | case "x$with_ldap" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 13263 | 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] | 13264 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13265 | *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13266 | This is an error since --with-ldap was requested." "$LINENO" 5 ;; |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13267 | esac |
| 13268 | fi |
| 13269 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13270 | { $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] | 13271 | $as_echo_n "checking whether mkdir takes only one argument... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13272 | if ${wine_cv_one_arg_mkdir+:} false; then : |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13273 | $as_echo_n "(cached) " >&6 |
| 13274 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13276 | /* end confdefs.h. */ |
| 13277 | #include <sys/stat.h> |
| 13278 | int |
| 13279 | main () |
| 13280 | { |
| 13281 | mkdir("foo"); |
| 13282 | ; |
| 13283 | return 0; |
| 13284 | } |
| 13285 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13286 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13287 | wine_cv_one_arg_mkdir=yes |
| 13288 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13289 | wine_cv_one_arg_mkdir=no |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13290 | fi |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13292 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13293 | { $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] | 13294 | $as_echo "$wine_cv_one_arg_mkdir" >&6; } |
| 13295 | if test "$wine_cv_one_arg_mkdir" = "yes" |
| 13296 | then |
| 13297 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13298 | $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13299 | |
| 13300 | fi |
| 13301 | |
Andrew Nguyen | 2f22a50 | 2011-02-22 07:10:22 -0600 | [diff] [blame] | 13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5 |
| 13303 | $as_echo_n "checking for sched_setaffinity... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13304 | if ${wine_cv_have_sched_setaffinity+:} false; then : |
Andrew Nguyen | 2f22a50 | 2011-02-22 07:10:22 -0600 | [diff] [blame] | 13305 | $as_echo_n "(cached) " >&6 |
| 13306 | else |
| 13307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13308 | /* end confdefs.h. */ |
| 13309 | #define _GNU_SOURCE |
| 13310 | #include <sched.h> |
| 13311 | int |
| 13312 | main () |
| 13313 | { |
| 13314 | sched_setaffinity(0, 0, 0); |
| 13315 | ; |
| 13316 | return 0; |
| 13317 | } |
| 13318 | _ACEOF |
| 13319 | if ac_fn_c_try_link "$LINENO"; then : |
| 13320 | wine_cv_have_sched_setaffinity=yes |
| 13321 | else |
| 13322 | wine_cv_have_sched_setaffinity=no |
| 13323 | fi |
| 13324 | rm -f core conftest.err conftest.$ac_objext \ |
| 13325 | conftest$ac_exeext conftest.$ac_ext |
| 13326 | fi |
| 13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5 |
| 13328 | $as_echo "$wine_cv_have_sched_setaffinity" >&6; } |
| 13329 | if test "$wine_cv_have_sched_setaffinity" = "yes" |
| 13330 | then |
| 13331 | |
| 13332 | $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h |
| 13333 | |
| 13334 | fi |
| 13335 | |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13336 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13338 | $as_echo_n "checking for inline... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13339 | if ${ac_cv_c_inline+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13340 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13341 | else |
| 13342 | ac_cv_c_inline=no |
| 13343 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13345 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13346 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13347 | typedef int foo_t; |
| 13348 | static $ac_kw foo_t static_foo () {return 0; } |
| 13349 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13350 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13351 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13352 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13353 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13354 | ac_cv_c_inline=$ac_kw |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13355 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13357 | test "$ac_cv_c_inline" != no && break |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13358 | done |
| 13359 | |
| 13360 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13361 | { $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] | 13362 | $as_echo "$ac_cv_c_inline" >&6; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13363 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13364 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13365 | inline | yes) ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13366 | *) |
| 13367 | case $ac_cv_c_inline in |
| 13368 | no) ac_val=;; |
| 13369 | *) ac_val=$ac_cv_c_inline;; |
| 13370 | esac |
| 13371 | cat >>confdefs.h <<_ACEOF |
| 13372 | #ifndef __cplusplus |
| 13373 | #define inline $ac_val |
| 13374 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13375 | _ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13376 | ;; |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13377 | esac |
| 13378 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13379 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13380 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13381 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13382 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13383 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13384 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13385 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13386 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13387 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13388 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13389 | if test "x$ac_cv_type_off_t" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13390 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13391 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13392 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13393 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13394 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13395 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13396 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13397 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13398 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13399 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13400 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13401 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13402 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13403 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13404 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13405 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13406 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13407 | if test "x$ac_cv_type_size_t" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13408 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13409 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13410 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13411 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13412 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13413 | |
| 13414 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13415 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13416 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13417 | |
| 13418 | cat >>confdefs.h <<_ACEOF |
| 13419 | #define HAVE_SSIZE_T 1 |
| 13420 | _ACEOF |
| 13421 | |
| 13422 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13423 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13424 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13425 | if test "x$ac_cv_type_long_long" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13426 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13427 | cat >>confdefs.h <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13428 | #define HAVE_LONG_LONG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13429 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13430 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13431 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13432 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13433 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13434 | if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13435 | |
| 13436 | cat >>confdefs.h <<_ACEOF |
| 13437 | #define HAVE_FSBLKCNT_T 1 |
| 13438 | _ACEOF |
| 13439 | |
| 13440 | |
| 13441 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13442 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13443 | if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13444 | |
| 13445 | cat >>confdefs.h <<_ACEOF |
| 13446 | #define HAVE_FSFILCNT_T 1 |
| 13447 | _ACEOF |
| 13448 | |
| 13449 | |
| 13450 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13451 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13452 | 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] | 13453 | #include <signal.h> |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13454 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13455 | if test "x$ac_cv_type_sigset_t" = xyes; then : |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13456 | |
| 13457 | cat >>confdefs.h <<_ACEOF |
| 13458 | #define HAVE_SIGSET_T 1 |
| 13459 | _ACEOF |
| 13460 | |
| 13461 | |
| 13462 | fi |
| 13463 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13464 | ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h> |
| 13465 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13466 | if test "x$ac_cv_type_request_sense" = xyes; then : |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 13467 | |
| 13468 | cat >>confdefs.h <<_ACEOF |
| 13469 | #define HAVE_REQUEST_SENSE 1 |
| 13470 | _ACEOF |
| 13471 | |
| 13472 | |
| 13473 | fi |
| 13474 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13475 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13476 | 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] | 13477 | #ifdef HAVE_SYS_SOCKET_H |
| 13478 | #include <sys/socket.h> |
| 13479 | #endif |
| 13480 | #ifdef HAVE_SYS_SOCKETVAR_H |
| 13481 | #include <sys/socketvar.h> |
| 13482 | #endif |
| 13483 | #ifdef HAVE_NET_ROUTE_H |
| 13484 | #include <net/route.h> |
| 13485 | #endif |
| 13486 | #ifdef HAVE_NETINET_IN_H |
| 13487 | #include <netinet/in.h> |
| 13488 | #endif |
| 13489 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 13490 | #include <netinet/in_systm.h> |
| 13491 | #endif |
| 13492 | #ifdef HAVE_NETINET_IP_H |
| 13493 | #include <netinet/ip.h> |
| 13494 | #endif |
| 13495 | #ifdef HAVE_NETINET_IN_PCB_H |
| 13496 | #include <netinet/in_pcb.h> |
| 13497 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13498 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13499 | if test "x$ac_cv_type_struct_xinpgen" = xyes; then : |
Austin English | 68f2db2 | 2009-01-29 08:28:37 -0600 | [diff] [blame] | 13500 | |
| 13501 | cat >>confdefs.h <<_ACEOF |
| 13502 | #define HAVE_STRUCT_XINPGEN 1 |
| 13503 | _ACEOF |
| 13504 | |
| 13505 | |
| 13506 | fi |
| 13507 | |
| 13508 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13509 | 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] | 13510 | #include <linux/input.h> |
| 13511 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13512 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13513 | if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then : |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 13514 | |
| 13515 | cat >>confdefs.h <<_ACEOF |
| 13516 | #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1 |
| 13517 | _ACEOF |
| 13518 | |
| 13519 | |
| 13520 | fi |
| 13521 | |
| 13522 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13524 | $as_echo_n "checking for sigaddset... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13525 | if ${wine_cv_have_sigaddset+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13526 | $as_echo_n "(cached) " >&6 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13527 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13529 | /* end confdefs.h. */ |
| 13530 | #include <signal.h> |
| 13531 | int |
| 13532 | main () |
| 13533 | { |
| 13534 | sigset_t set; sigaddset(&set,SIGTERM); |
| 13535 | ; |
| 13536 | return 0; |
| 13537 | } |
| 13538 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13539 | if ac_fn_c_try_link "$LINENO"; then : |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13540 | wine_cv_have_sigaddset=yes |
| 13541 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13542 | wine_cv_have_sigaddset=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13543 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13544 | rm -f core conftest.err conftest.$ac_objext \ |
| 13545 | conftest$ac_exeext conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13546 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13547 | { $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] | 13548 | $as_echo "$wine_cv_have_sigaddset" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13549 | if test "$wine_cv_have_sigaddset" = "yes" |
| 13550 | then |
| 13551 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13552 | $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13553 | |
| 13554 | fi |
| 13555 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13556 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13557 | { $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] | 13558 | $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13559 | if ${wine_cv_linux_gethostbyname_r_6+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13560 | $as_echo_n "(cached) " >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13561 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13563 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13564 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13565 | int |
| 13566 | main () |
| 13567 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13568 | |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13569 | char *name=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13570 | struct hostent he; |
| 13571 | struct hostent *result; |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13572 | char *buf=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13573 | int bufsize=0; |
Austin English | 8521ebe | 2011-06-13 21:26:40 -0700 | [diff] [blame] | 13574 | int errnr; |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13575 | char *addr=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13576 | int addrlen=0; |
| 13577 | int addrtype=0; |
Austin English | 8521ebe | 2011-06-13 21:26:40 -0700 | [diff] [blame] | 13578 | gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 13579 | gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13580 | |
| 13581 | ; |
| 13582 | return 0; |
| 13583 | } |
| 13584 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13585 | if ac_fn_c_try_link "$LINENO"; then : |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13586 | wine_cv_linux_gethostbyname_r_6=yes |
| 13587 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13588 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13589 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13590 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13591 | rm -f core conftest.err conftest.$ac_objext \ |
| 13592 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13593 | |
| 13594 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13595 | { $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] | 13596 | $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; } |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13597 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 13598 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13599 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13600 | $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13601 | |
| 13602 | fi |
| 13603 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13604 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13605 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13606 | { $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] | 13607 | $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13608 | if ${wine_cv_linux_joystick_22_api+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13609 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13610 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13612 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13613 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13614 | #include <sys/ioctl.h> |
Marcus Meissner | 7c43499 | 2007-04-12 12:12:05 +0200 | [diff] [blame] | 13615 | #include <sys/types.h> |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13616 | #include <linux/joystick.h> |
| 13617 | |
| 13618 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 13619 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 13620 | #error "no 2.2 header" |
| 13621 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13622 | |
| 13623 | int |
| 13624 | main () |
| 13625 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13626 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13627 | ; |
| 13628 | return 0; |
| 13629 | } |
| 13630 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13631 | if ac_fn_c_try_compile "$LINENO"; then : |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13632 | wine_cv_linux_joystick_22_api=yes |
| 13633 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13634 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13635 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13637 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 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_joystick_22_api" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13640 | $as_echo "$wine_cv_linux_joystick_22_api" >&6; } |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 13641 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 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_22_JOYSTICK_API 1" >>confdefs.h |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13645 | |
| 13646 | fi |
| 13647 | fi |
| 13648 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13649 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13650 | 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] | 13651 | #ifdef HAVE_SYS_PARAM_H |
| 13652 | # include <sys/param.h> |
| 13653 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13654 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13655 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13656 | #endif |
| 13657 | #ifdef HAVE_SYS_VFS_H |
| 13658 | # include <sys/vfs.h> |
| 13659 | #endif |
| 13660 | #ifdef HAVE_SYS_STATFS_H |
| 13661 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13662 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13663 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13664 | if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then : |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13665 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13666 | cat >>confdefs.h <<_ACEOF |
| 13667 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13668 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13669 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13670 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13671 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13672 | 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] | 13673 | #ifdef HAVE_SYS_PARAM_H |
| 13674 | # include <sys/param.h> |
| 13675 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13676 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13677 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13678 | #endif |
| 13679 | #ifdef HAVE_SYS_VFS_H |
| 13680 | # include <sys/vfs.h> |
| 13681 | #endif |
| 13682 | #ifdef HAVE_SYS_STATFS_H |
| 13683 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13684 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13685 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13686 | if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then : |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13687 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13688 | cat >>confdefs.h <<_ACEOF |
| 13689 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13690 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13691 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13692 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13693 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13694 | 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] | 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 | 13af489 | 2004-03-05 21:03:46 +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 | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13706 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13707 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13708 | if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13709 | |
| 13710 | cat >>confdefs.h <<_ACEOF |
| 13711 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 |
| 13712 | _ACEOF |
| 13713 | |
| 13714 | |
| 13715 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13716 | 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] | 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 | 13af489 | 2004-03-05 21:03:46 +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 | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13728 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13729 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13730 | if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13731 | |
| 13732 | cat >>confdefs.h <<_ACEOF |
| 13733 | #define HAVE_STRUCT_STATFS_F_FFREE 1 |
| 13734 | _ACEOF |
| 13735 | |
| 13736 | |
| 13737 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13738 | 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] | 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 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13752 | if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; 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_FAVAIL 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_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +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 | b859a68 | 2004-03-07 03:16:43 +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 | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13772 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13773 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13774 | if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then : |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13775 | |
| 13776 | cat >>confdefs.h <<_ACEOF |
| 13777 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 |
| 13778 | _ACEOF |
| 13779 | |
| 13780 | |
| 13781 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13782 | |
| 13783 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13784 | 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] | 13785 | #include <sys/statvfs.h> |
| 13786 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13787 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13788 | if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13789 | |
| 13790 | cat >>confdefs.h <<_ACEOF |
| 13791 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 |
| 13792 | _ACEOF |
| 13793 | |
| 13794 | |
| 13795 | fi |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13796 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13797 | |
André Hentschel | 54a9c0f | 2012-06-02 19:05:30 +0200 | [diff] [blame] | 13798 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H |
| 13799 | #include <dirent.h> |
| 13800 | #endif |
| 13801 | " |
| 13802 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then : |
| 13803 | |
| 13804 | cat >>confdefs.h <<_ACEOF |
| 13805 | #define HAVE_STRUCT_DIRENT_D_RECLEN 1 |
| 13806 | _ACEOF |
| 13807 | |
| 13808 | |
| 13809 | fi |
| 13810 | |
| 13811 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13812 | 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] | 13813 | #ifdef HAVE_SYS_SOCKET_H |
| 13814 | # include <sys/socket.h> |
| 13815 | #endif |
| 13816 | #ifdef HAVE_SYS_UN_H |
| 13817 | # include <sys/un.h> |
| 13818 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13819 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13820 | if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then : |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13821 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13822 | cat >>confdefs.h <<_ACEOF |
| 13823 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13824 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13825 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13826 | |
| 13827 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13828 | 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] | 13829 | #ifdef HAVE_SYS_SOCKET_H |
| 13830 | # include <sys/socket.h> |
| 13831 | #endif |
| 13832 | #ifdef HAVE_SYS_UN_H |
| 13833 | # include <sys/un.h> |
| 13834 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13835 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13836 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13837 | |
| 13838 | cat >>confdefs.h <<_ACEOF |
| 13839 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 13840 | _ACEOF |
| 13841 | |
| 13842 | |
| 13843 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13844 | 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] | 13845 | #ifdef HAVE_SYS_SOCKET_H |
| 13846 | # include <sys/socket.h> |
| 13847 | #endif |
| 13848 | #ifdef HAVE_SYS_UN_H |
| 13849 | # include <sys/un.h> |
| 13850 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13851 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13852 | if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13853 | |
| 13854 | cat >>confdefs.h <<_ACEOF |
| 13855 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 13856 | _ACEOF |
| 13857 | |
| 13858 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13859 | fi |
| 13860 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13861 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13862 | 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] | 13863 | #ifdef HAVE_SCSI_SG_H |
| 13864 | #include <scsi/sg.h> |
| 13865 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13866 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13867 | if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then : |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 13868 | |
| 13869 | cat >>confdefs.h <<_ACEOF |
| 13870 | #define HAVE_SCSIREQ_T_CMD 1 |
| 13871 | _ACEOF |
| 13872 | |
| 13873 | |
| 13874 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13875 | 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] | 13876 | #ifdef HAVE_SCSI_SG_H |
| 13877 | #include <scsi/sg.h> |
| 13878 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13879 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13880 | if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then : |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 13881 | |
| 13882 | cat >>confdefs.h <<_ACEOF |
| 13883 | #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1 |
| 13884 | _ACEOF |
| 13885 | |
| 13886 | |
| 13887 | fi |
| 13888 | |
| 13889 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13890 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h> |
| 13891 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13892 | if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then : |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13893 | |
| 13894 | cat >>confdefs.h <<_ACEOF |
| 13895 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 13896 | _ACEOF |
| 13897 | |
| 13898 | |
| 13899 | fi |
| 13900 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13901 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13902 | 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] | 13903 | #ifdef HAVE_SYS_MTIO_H |
| 13904 | #include <sys/mtio.h> |
| 13905 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13906 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13907 | if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then : |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 13908 | |
| 13909 | cat >>confdefs.h <<_ACEOF |
| 13910 | #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1 |
| 13911 | _ACEOF |
| 13912 | |
| 13913 | |
| 13914 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13915 | 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] | 13916 | #ifdef HAVE_SYS_MTIO_H |
| 13917 | #include <sys/mtio.h> |
| 13918 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13919 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13920 | if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then : |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 13921 | |
| 13922 | cat >>confdefs.h <<_ACEOF |
| 13923 | #define HAVE_STRUCT_MTGET_MT_GSTAT 1 |
| 13924 | _ACEOF |
| 13925 | |
| 13926 | |
| 13927 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13928 | 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] | 13929 | #ifdef HAVE_SYS_MTIO_H |
| 13930 | #include <sys/mtio.h> |
| 13931 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13932 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13933 | if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then : |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 13934 | |
| 13935 | cat >>confdefs.h <<_ACEOF |
| 13936 | #define HAVE_STRUCT_MTGET_MT_BLKNO 1 |
| 13937 | _ACEOF |
| 13938 | |
| 13939 | |
| 13940 | fi |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 13941 | |
| 13942 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13943 | 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] | 13944 | #include <getopt.h> |
| 13945 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13946 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13947 | if test "x$ac_cv_member_struct_option_name" = xyes; then : |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 13948 | |
| 13949 | cat >>confdefs.h <<_ACEOF |
| 13950 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 13951 | _ACEOF |
| 13952 | |
| 13953 | |
| 13954 | fi |
| 13955 | |
| 13956 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13957 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13958 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 13959 | |
| 13960 | cat >>confdefs.h <<_ACEOF |
| 13961 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13962 | _ACEOF |
| 13963 | |
| 13964 | |
| 13965 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13966 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13967 | if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : |
Michael Karcher | af2d274 | 2008-08-17 19:03:44 +0200 | [diff] [blame] | 13968 | |
| 13969 | cat >>confdefs.h <<_ACEOF |
| 13970 | #define HAVE_STRUCT_STAT_ST_MTIM 1 |
| 13971 | _ACEOF |
| 13972 | |
| 13973 | |
| 13974 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13975 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13976 | if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then : |
Michael Karcher | af2d274 | 2008-08-17 19:03:44 +0200 | [diff] [blame] | 13977 | |
| 13978 | cat >>confdefs.h <<_ACEOF |
| 13979 | #define HAVE_STRUCT_STAT_ST_CTIM 1 |
| 13980 | _ACEOF |
| 13981 | |
| 13982 | |
| 13983 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13984 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13985 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : |
Michael Karcher | af2d274 | 2008-08-17 19:03:44 +0200 | [diff] [blame] | 13986 | |
| 13987 | cat >>confdefs.h <<_ACEOF |
| 13988 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 13989 | _ACEOF |
| 13990 | |
| 13991 | |
| 13992 | fi |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 13993 | |
| 13994 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13995 | 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] | 13996 | #include <sys/types.h> |
| 13997 | #endif |
| 13998 | #ifdef HAVE_NETINET_IN_H |
| 13999 | #include <netinet/in.h> |
| 14000 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14001 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14002 | if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 14003 | |
| 14004 | cat >>confdefs.h <<_ACEOF |
| 14005 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 14006 | _ACEOF |
| 14007 | |
| 14008 | |
| 14009 | fi |
| 14010 | |
| 14011 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14012 | 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] | 14013 | #include <sys/types.h> |
| 14014 | #endif |
| 14015 | #ifdef HAVE_NETINET_IN_H |
| 14016 | # include <netinet/in.h> |
| 14017 | #endif |
| 14018 | #ifdef HAVE_ARPA_NAMESER_H |
| 14019 | # include <arpa/nameser.h> |
| 14020 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14021 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14022 | if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then : |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 14023 | |
| 14024 | cat >>confdefs.h <<_ACEOF |
| 14025 | #define HAVE_NS_MSG__MSG_PTR 1 |
| 14026 | _ACEOF |
| 14027 | |
| 14028 | |
| 14029 | fi |
| 14030 | |
| 14031 | |
André Hentschel | bc99d86 | 2012-06-07 17:19:59 +0200 | [diff] [blame] | 14032 | ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_NETINET_ICMP_VAR |
| 14033 | #include <netinet/icmp_var.h> |
| 14034 | #endif |
| 14035 | " |
| 14036 | if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then : |
| 14037 | |
| 14038 | cat >>confdefs.h <<_ACEOF |
| 14039 | #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1 |
| 14040 | _ACEOF |
| 14041 | |
| 14042 | |
| 14043 | fi |
| 14044 | |
| 14045 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14046 | 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] | 14047 | #include <sys/types.h> |
| 14048 | #endif |
| 14049 | #ifdef HAVE_ALIAS_H |
| 14050 | #include <alias.h> |
| 14051 | #endif |
| 14052 | #ifdef HAVE_SYS_SOCKET_H |
| 14053 | #include <sys/socket.h> |
| 14054 | #endif |
| 14055 | #ifdef HAVE_SYS_SOCKETVAR_H |
| 14056 | #include <sys/socketvar.h> |
| 14057 | #endif |
| 14058 | #ifdef HAVE_SYS_TIMEOUT_H |
| 14059 | #include <sys/timeout.h> |
| 14060 | #endif |
| 14061 | #ifdef HAVE_NETINET_IN_H |
| 14062 | #include <netinet/in.h> |
| 14063 | #endif |
| 14064 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 14065 | #include <netinet/in_systm.h> |
| 14066 | #endif |
| 14067 | #ifdef HAVE_NETINET_IP_H |
| 14068 | #include <netinet/ip.h> |
| 14069 | #endif |
| 14070 | #ifdef HAVE_NETINET_IP_VAR_H |
| 14071 | #include <netinet/ip_var.h> |
| 14072 | #endif |
| 14073 | #ifdef HAVE_NETINET_IP_ICMP_H |
| 14074 | #include <netinet/ip_icmp.h> |
| 14075 | #endif |
| 14076 | #ifdef HAVE_NETINET_ICMP_VAR |
| 14077 | #include <netinet/icmp_var.h> |
| 14078 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14079 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14080 | if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then : |
Austin English | ac0252d | 2009-01-30 10:18:10 -0600 | [diff] [blame] | 14081 | |
| 14082 | cat >>confdefs.h <<_ACEOF |
| 14083 | #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1 |
| 14084 | _ACEOF |
| 14085 | |
| 14086 | |
| 14087 | fi |
| 14088 | |
| 14089 | |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 14090 | ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H |
| 14091 | #include <netinet/ip_var.h> |
| 14092 | #endif |
| 14093 | " |
| 14094 | if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then : |
| 14095 | |
| 14096 | cat >>confdefs.h <<_ACEOF |
| 14097 | #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1 |
| 14098 | _ACEOF |
| 14099 | |
| 14100 | |
| 14101 | fi |
| 14102 | |
| 14103 | |
| 14104 | ac_fn_c_check_member "$LINENO" "struct ip_stats" "ips_total" "ac_cv_member_struct_ip_stats_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H |
| 14105 | #include <netinet/ip_var.h> |
| 14106 | #endif |
| 14107 | " |
| 14108 | if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then : |
| 14109 | |
| 14110 | cat >>confdefs.h <<_ACEOF |
| 14111 | #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1 |
| 14112 | _ACEOF |
| 14113 | |
| 14114 | |
| 14115 | fi |
| 14116 | |
| 14117 | |
André Hentschel | eaab7a8 | 2012-06-03 14:32:20 +0200 | [diff] [blame] | 14118 | ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H |
| 14119 | #include <netinet/tcp_var.h> |
| 14120 | #endif |
| 14121 | " |
| 14122 | if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then : |
| 14123 | |
| 14124 | cat >>confdefs.h <<_ACEOF |
| 14125 | #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1 |
| 14126 | _ACEOF |
| 14127 | |
| 14128 | |
| 14129 | fi |
| 14130 | |
| 14131 | |
| 14132 | ac_fn_c_check_member "$LINENO" "struct tcp_stats" "tcps_connattempt" "ac_cv_member_struct_tcp_stats_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H |
| 14133 | #include <netinet/tcp_var.h> |
| 14134 | #endif |
| 14135 | " |
| 14136 | if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then : |
| 14137 | |
| 14138 | cat >>confdefs.h <<_ACEOF |
| 14139 | #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1 |
| 14140 | _ACEOF |
| 14141 | |
| 14142 | |
| 14143 | fi |
| 14144 | |
| 14145 | |
André Hentschel | 20dbe91 | 2012-06-07 17:19:49 +0200 | [diff] [blame] | 14146 | ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_NETINET_UDP_VAR_H |
| 14147 | #include <netinet/udp_var.h> |
| 14148 | #endif |
| 14149 | " |
| 14150 | if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then : |
| 14151 | |
| 14152 | cat >>confdefs.h <<_ACEOF |
| 14153 | #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1 |
| 14154 | _ACEOF |
| 14155 | |
| 14156 | |
| 14157 | fi |
| 14158 | |
| 14159 | |
Juan Lang | 984c3b2 | 2010-03-12 10:38:46 -0800 | [diff] [blame] | 14160 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H |
| 14161 | #include <sys/types.h> |
| 14162 | #endif |
| 14163 | #ifdef HAVE_NET_IF_H |
| 14164 | # include <net/if.h> |
| 14165 | #endif |
| 14166 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14167 | if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then : |
Juan Lang | 984c3b2 | 2010-03-12 10:38:46 -0800 | [diff] [blame] | 14168 | |
| 14169 | cat >>confdefs.h <<_ACEOF |
| 14170 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 |
| 14171 | _ACEOF |
| 14172 | |
| 14173 | |
| 14174 | fi |
| 14175 | |
| 14176 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14178 | $as_echo_n "checking for timezone variable... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14179 | if ${ac_cv_have_timezone+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14180 | $as_echo_n "(cached) " >&6 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14181 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14183 | /* end confdefs.h. */ |
| 14184 | #include <time.h> |
| 14185 | int |
| 14186 | main () |
| 14187 | { |
Alexandre Julliard | ff2bd66 | 2006-08-25 13:23:29 +0200 | [diff] [blame] | 14188 | timezone = 1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14189 | ; |
| 14190 | return 0; |
| 14191 | } |
| 14192 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14193 | if ac_fn_c_try_link "$LINENO"; then : |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14194 | ac_cv_have_timezone="yes" |
| 14195 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14196 | ac_cv_have_timezone="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14197 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14198 | rm -f core conftest.err conftest.$ac_objext \ |
| 14199 | conftest$ac_exeext conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14200 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14201 | { $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] | 14202 | $as_echo "$ac_cv_have_timezone" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14203 | if test "$ac_cv_have_timezone" = "yes" |
| 14204 | then |
| 14205 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14206 | $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14207 | |
| 14208 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14210 | $as_echo_n "checking for daylight variable... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14211 | if ${ac_cv_have_daylight+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14212 | $as_echo_n "(cached) " >&6 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14213 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14215 | /* end confdefs.h. */ |
| 14216 | #include <time.h> |
| 14217 | int |
| 14218 | main () |
| 14219 | { |
Alexandre Julliard | ff2bd66 | 2006-08-25 13:23:29 +0200 | [diff] [blame] | 14220 | daylight = 1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14221 | ; |
| 14222 | return 0; |
| 14223 | } |
| 14224 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14225 | if ac_fn_c_try_link "$LINENO"; then : |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14226 | ac_cv_have_daylight="yes" |
| 14227 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14228 | ac_cv_have_daylight="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14229 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14230 | rm -f core conftest.err conftest.$ac_objext \ |
| 14231 | conftest$ac_exeext conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14232 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14233 | { $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] | 14234 | $as_echo "$ac_cv_have_daylight" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14235 | if test "$ac_cv_have_daylight" = "yes" |
| 14236 | then |
| 14237 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14238 | $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14239 | |
| 14240 | fi |
| 14241 | |
Natanael Copa | 3b11f79 | 2011-07-06 08:58:01 +0000 | [diff] [blame] | 14242 | ac_save_LIBS="$LIBS" |
| 14243 | LIBS="$LIBS -lm" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14245 | $as_echo_n "checking for isinf... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14246 | if ${ac_cv_have_isinf+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14247 | $as_echo_n "(cached) " >&6 |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14248 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14250 | /* end confdefs.h. */ |
| 14251 | #include <math.h> |
| 14252 | int |
| 14253 | main () |
| 14254 | { |
Austin English | 8521ebe | 2011-06-13 21:26:40 -0700 | [diff] [blame] | 14255 | float f = 0.0; return isinf(f) |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14256 | ; |
| 14257 | return 0; |
| 14258 | } |
| 14259 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14260 | if ac_fn_c_try_link "$LINENO"; then : |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14261 | ac_cv_have_isinf="yes" |
| 14262 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14263 | ac_cv_have_isinf="no" |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14264 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14265 | rm -f core conftest.err conftest.$ac_objext \ |
| 14266 | conftest$ac_exeext conftest.$ac_ext |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14267 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14268 | { $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] | 14269 | $as_echo "$ac_cv_have_isinf" >&6; } |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14270 | if test "$ac_cv_have_isinf" = "yes" |
| 14271 | then |
| 14272 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14273 | $as_echo "#define HAVE_ISINF 1" >>confdefs.h |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14274 | |
| 14275 | fi |
| 14276 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14278 | $as_echo_n "checking for isnan... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14279 | if ${ac_cv_have_isnan+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14280 | $as_echo_n "(cached) " >&6 |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14281 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14283 | /* end confdefs.h. */ |
| 14284 | #include <math.h> |
| 14285 | int |
| 14286 | main () |
| 14287 | { |
Austin English | 8521ebe | 2011-06-13 21:26:40 -0700 | [diff] [blame] | 14288 | float f = 0.0; return isnan(f) |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14289 | ; |
| 14290 | return 0; |
| 14291 | } |
| 14292 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14293 | if ac_fn_c_try_link "$LINENO"; then : |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14294 | ac_cv_have_isnan="yes" |
| 14295 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14296 | ac_cv_have_isnan="no" |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14297 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14298 | rm -f core conftest.err conftest.$ac_objext \ |
| 14299 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14300 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14301 | { $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] | 14302 | $as_echo "$ac_cv_have_isnan" >&6; } |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14303 | if test "$ac_cv_have_isnan" = "yes" |
| 14304 | then |
| 14305 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14306 | $as_echo "#define HAVE_ISNAN 1" >>confdefs.h |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14307 | |
| 14308 | fi |
Natanael Copa | 3b11f79 | 2011-07-06 08:58:01 +0000 | [diff] [blame] | 14309 | LIBS="$ac_save_LIBS" |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14310 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14311 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14312 | case $host_cpu in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14313 | *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] | 14314 | $as_echo_n "checking whether we need to define __i386__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14315 | if ${ac_cv_cpp_def___i386__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14316 | $as_echo_n "(cached) " >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 14317 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14319 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14320 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14321 | yes |
| 14322 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14323 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14324 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14325 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14326 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14327 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14328 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14329 | fi |
| 14330 | rm -f conftest* |
| 14331 | |
| 14332 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14333 | { $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] | 14334 | $as_echo "$ac_cv_cpp_def___i386__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14335 | if test $ac_cv_cpp_def___i386__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14336 | CFLAGS="$CFLAGS -D__i386__" |
| 14337 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14338 | fi ;; |
| 14339 | *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] | 14340 | $as_echo_n "checking whether we need to define __x86_64__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14341 | if ${ac_cv_cpp_def___x86_64__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14342 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14343 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14345 | /* end confdefs.h. */ |
| 14346 | #ifndef __x86_64__ |
| 14347 | yes |
| 14348 | #endif |
| 14349 | _ACEOF |
| 14350 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14351 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14352 | ac_cv_cpp_def___x86_64__=yes |
| 14353 | else |
| 14354 | ac_cv_cpp_def___x86_64__=no |
| 14355 | fi |
| 14356 | rm -f conftest* |
| 14357 | |
| 14358 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14359 | { $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] | 14360 | $as_echo "$ac_cv_cpp_def___x86_64__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14361 | if test $ac_cv_cpp_def___x86_64__ = yes; then : |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14362 | CFLAGS="$CFLAGS -D__x86_64__" |
| 14363 | LINTFLAGS="$LINTFLAGS -D__x86_64__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14364 | fi ;; |
André Hentschel | fca621f | 2011-11-30 01:07:33 +0100 | [diff] [blame] | 14365 | *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5 |
| 14366 | $as_echo_n "checking whether we need to define __sparc64__... " >&6; } |
| 14367 | if ${ac_cv_cpp_def___sparc64__+:} false; then : |
| 14368 | $as_echo_n "(cached) " >&6 |
| 14369 | else |
| 14370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14371 | /* end confdefs.h. */ |
| 14372 | #ifndef __sparc64__ |
| 14373 | yes |
| 14374 | #endif |
| 14375 | _ACEOF |
| 14376 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14377 | $EGREP "yes" >/dev/null 2>&1; then : |
| 14378 | ac_cv_cpp_def___sparc64__=yes |
| 14379 | else |
| 14380 | ac_cv_cpp_def___sparc64__=no |
| 14381 | fi |
| 14382 | rm -f conftest* |
| 14383 | |
| 14384 | fi |
| 14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5 |
| 14386 | $as_echo "$ac_cv_cpp_def___sparc64__" >&6; } |
| 14387 | if test $ac_cv_cpp_def___sparc64__ = yes; then : |
| 14388 | CFLAGS="$CFLAGS -D__sparc64__" |
| 14389 | LINTFLAGS="$LINTFLAGS -D__sparc64__" |
| 14390 | fi ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14391 | *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] | 14392 | $as_echo_n "checking whether we need to define __sparc__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14393 | if ${ac_cv_cpp_def___sparc__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14394 | $as_echo_n "(cached) " >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14395 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14397 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14398 | #ifndef __sparc__ |
| 14399 | yes |
| 14400 | #endif |
| 14401 | _ACEOF |
| 14402 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14403 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14404 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14405 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14406 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14407 | fi |
| 14408 | rm -f conftest* |
| 14409 | |
| 14410 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14411 | { $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] | 14412 | $as_echo "$ac_cv_cpp_def___sparc__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14413 | if test $ac_cv_cpp_def___sparc__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14414 | CFLAGS="$CFLAGS -D__sparc__" |
| 14415 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14416 | fi ;; |
André Hentschel | fca621f | 2011-11-30 01:07:33 +0100 | [diff] [blame] | 14417 | *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5 |
| 14418 | $as_echo_n "checking whether we need to define __powerpc64__... " >&6; } |
| 14419 | if ${ac_cv_cpp_def___powerpc64__+:} false; then : |
| 14420 | $as_echo_n "(cached) " >&6 |
| 14421 | else |
| 14422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14423 | /* end confdefs.h. */ |
| 14424 | #ifndef __powerpc64__ |
| 14425 | yes |
| 14426 | #endif |
| 14427 | _ACEOF |
| 14428 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14429 | $EGREP "yes" >/dev/null 2>&1; then : |
| 14430 | ac_cv_cpp_def___powerpc64__=yes |
| 14431 | else |
| 14432 | ac_cv_cpp_def___powerpc64__=no |
| 14433 | fi |
| 14434 | rm -f conftest* |
| 14435 | |
| 14436 | fi |
| 14437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5 |
| 14438 | $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; } |
| 14439 | if test $ac_cv_cpp_def___powerpc64__ = yes; then : |
| 14440 | CFLAGS="$CFLAGS -D__powerpc64__" |
| 14441 | LINTFLAGS="$LINTFLAGS -D__powerpc64__" |
| 14442 | fi ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14443 | *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] | 14444 | $as_echo_n "checking whether we need to define __powerpc__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14445 | if ${ac_cv_cpp_def___powerpc__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14446 | $as_echo_n "(cached) " >&6 |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14447 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14449 | /* end confdefs.h. */ |
| 14450 | #ifndef __powerpc__ |
| 14451 | yes |
| 14452 | #endif |
| 14453 | _ACEOF |
| 14454 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14455 | $EGREP "yes" >/dev/null 2>&1; then : |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14456 | ac_cv_cpp_def___powerpc__=yes |
| 14457 | else |
| 14458 | ac_cv_cpp_def___powerpc__=no |
| 14459 | fi |
| 14460 | rm -f conftest* |
| 14461 | |
| 14462 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14463 | { $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] | 14464 | $as_echo "$ac_cv_cpp_def___powerpc__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14465 | if test $ac_cv_cpp_def___powerpc__ = yes; then : |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14466 | CFLAGS="$CFLAGS -D__powerpc__" |
| 14467 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14468 | fi ;; |
André Hentschel | 50ada0f | 2011-04-19 19:37:05 +0200 | [diff] [blame] | 14469 | *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5 |
| 14470 | $as_echo_n "checking whether we need to define __arm__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14471 | if ${ac_cv_cpp_def___arm__+:} false; then : |
André Hentschel | 50ada0f | 2011-04-19 19:37:05 +0200 | [diff] [blame] | 14472 | $as_echo_n "(cached) " >&6 |
| 14473 | else |
| 14474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14475 | /* end confdefs.h. */ |
| 14476 | #ifndef __arm__ |
| 14477 | yes |
| 14478 | #endif |
| 14479 | _ACEOF |
| 14480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14481 | $EGREP "yes" >/dev/null 2>&1; then : |
| 14482 | ac_cv_cpp_def___arm__=yes |
| 14483 | else |
| 14484 | ac_cv_cpp_def___arm__=no |
| 14485 | fi |
| 14486 | rm -f conftest* |
| 14487 | |
| 14488 | fi |
| 14489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5 |
| 14490 | $as_echo "$ac_cv_cpp_def___arm__" >&6; } |
| 14491 | if test $ac_cv_cpp_def___arm__ = yes; then : |
| 14492 | CFLAGS="$CFLAGS -D__arm__" |
| 14493 | LINTFLAGS="$LINTFLAGS -D__arm__" |
| 14494 | fi ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14495 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14496 | |
| 14497 | case $host_vendor in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14498 | *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] | 14499 | $as_echo_n "checking whether we need to define __sun__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14500 | if ${ac_cv_cpp_def___sun__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14501 | $as_echo_n "(cached) " >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14502 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14504 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14505 | #ifndef __sun__ |
| 14506 | yes |
| 14507 | #endif |
| 14508 | _ACEOF |
| 14509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14510 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14511 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14512 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14513 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14514 | fi |
| 14515 | rm -f conftest* |
| 14516 | |
| 14517 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14518 | { $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] | 14519 | $as_echo "$ac_cv_cpp_def___sun__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14520 | if test $ac_cv_cpp_def___sun__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14521 | CFLAGS="$CFLAGS -D__sun__" |
| 14522 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14523 | fi ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14524 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14525 | |
| 14526 | |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14527 | |
Alexandre Julliard | 7d83115 | 2010-03-20 15:07:45 +0100 | [diff] [blame] | 14528 | |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 14529 | |
Alexandre Julliard | 7d83115 | 2010-03-20 15:07:45 +0100 | [diff] [blame] | 14530 | ac_config_commands="$ac_config_commands include/stamp-h" |
| 14531 | |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14532 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14533 | ALL_MAKEFILE_DEPENDS=" |
| 14534 | # Rules automatically generated by configure |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14535 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14536 | .INIT: Makefile |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14537 | .MAKEFILEDEPS: |
Alexandre Julliard | bd3110d | 2010-05-23 10:34:36 +0200 | [diff] [blame] | 14538 | all: Makefile |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 14539 | Makefile: Makefile.in Make.vars.in Make.rules config.status |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14540 | @./config.status Make.tmp Makefile" |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14541 | |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14542 | ALL_POT_FILES="" |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 14543 | ALL_TEST_RESOURCES="" |
Alexandre Julliard | 454fb3c | 2010-02-08 21:29:13 +0100 | [diff] [blame] | 14544 | |
Alexandre Julliard | 49163da | 2008-08-25 12:02:27 +0200 | [diff] [blame] | 14545 | |
Alexandre Julliard | 2de10c4 | 2010-02-11 23:23:45 +0100 | [diff] [blame] | 14546 | wine_fn_append_file () |
| 14547 | { |
| 14548 | as_fn_append $1 " \\$as_nl $2" |
| 14549 | } |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14550 | |
Alexandre Julliard | 2de10c4 | 2010-02-11 23:23:45 +0100 | [diff] [blame] | 14551 | wine_fn_append_rule () |
| 14552 | { |
| 14553 | as_fn_append $1 "$as_nl$2" |
| 14554 | } |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14555 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14556 | wine_fn_has_flag () |
| 14557 | { |
| 14558 | expr ",$2," : ".*,$1,.*" >/dev/null |
| 14559 | } |
| 14560 | |
Alexandre Julliard | 943cd73 | 2010-03-25 21:52:56 +0100 | [diff] [blame] | 14561 | wine_fn_all_dir_rules () |
| 14562 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14563 | ac_dir=$1 |
| 14564 | ac_alldeps=$2 |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14565 | ac_makedep="\$(MAKEDEP)" |
| 14566 | ac_input=Make.vars.in:$ac_dir/Makefile.in |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14567 | if test $ac_dir != tools |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14568 | then |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14569 | ac_alldeps="$2 $ac_makedep" |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14570 | fi |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14571 | case $2 in |
| 14572 | *.in) ac_input=$ac_input:$2 ;; |
| 14573 | *) ac_makedep="$2 $ac_makedep" ;; |
| 14574 | esac |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14575 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14576 | wine_fn_append_file ALL_DIRS $ac_dir |
Alexandre Julliard | 943cd73 | 2010-03-25 21:52:56 +0100 | [diff] [blame] | 14577 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14578 | "__clean__: $ac_dir/__clean__ |
| 14579 | .PHONY: $ac_dir/__clean__ |
| 14580 | $ac_dir/__clean__: $ac_dir/Makefile |
| 14581 | @cd $ac_dir && \$(MAKE) clean |
| 14582 | \$(RM) $ac_dir/Makefile |
| 14583 | $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] | 14584 | @./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] | 14585 | depend: $ac_dir/__depend__ |
| 14586 | .PHONY: $ac_dir/__depend__ |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14587 | $ac_dir/__depend__: $ac_makedep dummy |
| 14588 | @./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] | 14589 | } |
| 14590 | |
Alexandre Julliard | 9c98f69 | 2011-10-22 14:54:03 +0200 | [diff] [blame] | 14591 | wine_fn_pot_rules () |
| 14592 | { |
| 14593 | ac_dir=$1 |
| 14594 | ac_flags=$2 |
| 14595 | |
Alexandre Julliard | 9159cfe | 2011-10-22 20:46:36 +0200 | [diff] [blame] | 14596 | test "x$with_gettextpo" = xyes || return |
Alexandre Julliard | 9c98f69 | 2011-10-22 14:54:03 +0200 | [diff] [blame] | 14597 | |
| 14598 | if wine_fn_has_flag mc $ac_flags |
| 14599 | then |
| 14600 | wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot |
| 14601 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14602 | "$ac_dir/msg.pot: $ac_dir/Makefile dummy |
| 14603 | @cd $ac_dir && \$(MAKE) msg.pot |
| 14604 | $ac_dir/msg.pot: tools/wmc include" |
| 14605 | fi |
| 14606 | if wine_fn_has_flag po $ac_flags |
| 14607 | then |
| 14608 | wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot |
| 14609 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14610 | "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy |
| 14611 | @cd $ac_dir && \$(MAKE) rsrc.pot |
Rafał Mużyło | 78f717b | 2011-11-04 23:20:30 +0100 | [diff] [blame] | 14612 | $ac_dir/rsrc.pot: tools/wrc include" |
Alexandre Julliard | 9c98f69 | 2011-10-22 14:54:03 +0200 | [diff] [blame] | 14613 | fi |
| 14614 | } |
| 14615 | |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14616 | wine_fn_config_makefile () |
| 14617 | { |
| 14618 | ac_dir=$1 |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14619 | ac_enable=$2 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14620 | ac_flags=$3 |
Alexandre Julliard | a0b8fa9 | 2011-06-12 12:44:03 +0200 | [diff] [blame] | 14621 | ac_rules=$4 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14622 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | 9bdd027 | 2010-06-30 17:34:20 +0200 | [diff] [blame] | 14623 | return 0 |
| 14624 | fi |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14625 | |
Alexandre Julliard | a0b8fa9 | 2011-06-12 12:44:03 +0200 | [diff] [blame] | 14626 | wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules} |
Alexandre Julliard | 9bdd027 | 2010-06-30 17:34:20 +0200 | [diff] [blame] | 14627 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14628 | "all: $ac_dir |
| 14629 | .PHONY: $ac_dir |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14630 | $ac_dir: $ac_dir/Makefile dummy |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 14631 | @cd $ac_dir && \$(MAKE)" |
| 14632 | |
| 14633 | wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return |
| 14634 | |
| 14635 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14636 | ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__ |
| 14637 | $ac_dir/__install__:: $ac_dir |
Alexandre Julliard | e84063b | 2010-03-25 21:46:41 +0100 | [diff] [blame] | 14638 | @cd $ac_dir && \$(MAKE) install |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14639 | $ac_dir/__uninstall__:: $ac_dir/Makefile |
| 14640 | @cd $ac_dir && \$(MAKE) uninstall |
| 14641 | install:: $ac_dir/__install__ |
| 14642 | __uninstall__: $ac_dir/__uninstall__" |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 14643 | |
| 14644 | if wine_fn_has_flag install-lib $ac_flags |
| 14645 | then |
| 14646 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14647 | ".PHONY: $ac_dir/__install-lib__ |
| 14648 | $ac_dir/__install-lib__:: $ac_dir |
| 14649 | @cd $ac_dir && \$(MAKE) install-lib |
| 14650 | install-lib:: $ac_dir/__install-lib__" |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 14651 | fi |
| 14652 | |
| 14653 | if wine_fn_has_flag install-dev $ac_flags |
| 14654 | then |
| 14655 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14656 | ".PHONY: $ac_dir/__install-dev |
| 14657 | $ac_dir/__install-dev__:: $ac_dir |
| 14658 | @cd $ac_dir && \$(MAKE) install-dev |
| 14659 | install-dev:: $ac_dir/__install-dev__" |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 14660 | fi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14661 | } |
| 14662 | |
| 14663 | wine_fn_config_lib () |
| 14664 | { |
| 14665 | ac_name=$1 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14666 | ac_flags=$2 |
Alexandre Julliard | b8fb1d5 | 2010-03-20 14:50:53 +0100 | [diff] [blame] | 14667 | ac_dir=dlls/$ac_name |
Alexandre Julliard | f64a675 | 2011-07-09 17:58:47 +0200 | [diff] [blame] | 14668 | wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules |
| 14669 | |
| 14670 | if wine_fn_has_flag install-dev $ac_flags |
| 14671 | then : |
| 14672 | else |
| 14673 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14674 | ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__ |
| 14675 | $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) |
| 14676 | \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a |
| 14677 | $ac_dir/__uninstall__:: |
| 14678 | \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a |
| 14679 | install install-dev:: $ac_dir/__install__ |
| 14680 | __uninstall__: $ac_dir/__uninstall__" |
| 14681 | fi |
| 14682 | |
Alexandre Julliard | a0b8fa9 | 2011-06-12 12:44:03 +0200 | [diff] [blame] | 14683 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir" |
| 14684 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include" |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14685 | } |
| 14686 | |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14687 | wine_fn_config_dll () |
| 14688 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14689 | ac_name=$1 |
| 14690 | ac_dir=dlls/$ac_name |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14691 | ac_enable=$2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14692 | ac_flags=$3 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14693 | ac_implib=${4:-$ac_name} |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14694 | ac_file=$ac_dir/lib$ac_implib |
Alexandre Julliard | bf8f435 | 2011-07-25 11:39:42 +0200 | [diff] [blame] | 14695 | ac_dll=$ac_name |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14696 | ac_deps="tools/widl tools/winebuild tools/winegcc include" |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14697 | ac_implibflags="" |
| 14698 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14699 | case $ac_name in |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14700 | *16) ac_implibflags=" -m16" ;; |
Alexandre Julliard | bf8f435 | 2011-07-25 11:39:42 +0200 | [diff] [blame] | 14701 | *.*) ;; |
| 14702 | *) ac_dll=$ac_dll.dll ;; |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14703 | esac |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14704 | |
Alexandre Julliard | bf8f435 | 2011-07-25 11:39:42 +0200 | [diff] [blame] | 14705 | wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules |
Alexandre Julliard | 82b743f | 2010-03-25 11:15:32 +0100 | [diff] [blame] | 14706 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14707 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14708 | test "$ac_enable" != enable_win16 || return 0 |
Alexandre Julliard | 2844991 | 2011-07-25 22:05:51 +0200 | [diff] [blame] | 14709 | wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14710 | else |
Alexandre Julliard | 60a05ad | 2010-03-25 12:05:44 +0100 | [diff] [blame] | 14711 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | bf8f435 | 2011-07-25 11:39:42 +0200 | [diff] [blame] | 14712 | "$ac_dir: __builddeps__ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14713 | manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14714 | @cd $ac_dir && \$(MAKE) \$@" |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14715 | |
Alexandre Julliard | bf8f435 | 2011-07-25 11:39:42 +0200 | [diff] [blame] | 14716 | if wine_fn_has_flag install-lib $ac_flags |
| 14717 | then : |
| 14718 | else |
| 14719 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14720 | ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__ |
| 14721 | install install-lib:: $ac_dir/__install-lib__ |
| 14722 | __uninstall__: $ac_dir/__uninstall__" |
| 14723 | if test -n "$DLLEXT" |
| 14724 | then |
| 14725 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14726 | "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir) |
| 14727 | \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT |
| 14728 | \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll |
| 14729 | $ac_dir/__uninstall__:: |
| 14730 | \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll" |
| 14731 | else |
| 14732 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14733 | "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) |
| 14734 | \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll |
| 14735 | $ac_dir/__uninstall__:: |
| 14736 | \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll" |
| 14737 | fi |
| 14738 | fi |
| 14739 | |
Alexandre Julliard | 9c98f69 | 2011-10-22 14:54:03 +0200 | [diff] [blame] | 14740 | wine_fn_pot_rules $ac_dir $ac_flags |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14741 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14742 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14743 | if wine_fn_has_flag staticimplib $ac_flags |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14744 | then |
| 14745 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14746 | "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14747 | $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] | 14748 | $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile |
| 14749 | @cd $ac_dir && \$(MAKE) lib$ac_implib.def |
| 14750 | $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy |
| 14751 | @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT |
Alexandre Julliard | 6cba5c4 | 2011-07-09 18:01:42 +0200 | [diff] [blame] | 14752 | .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__ |
| 14753 | $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir) |
| 14754 | \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT |
| 14755 | $ac_dir/__uninstall__:: |
| 14756 | \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT |
| 14757 | install install-dev:: $ac_dir/__install-dev__ |
| 14758 | __uninstall__: $ac_dir/__uninstall__" |
| 14759 | |
| 14760 | if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT" |
| 14761 | then |
| 14762 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14763 | "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__ |
| 14764 | \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT |
| 14765 | $ac_dir/__uninstall__:: |
| 14766 | \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT" |
| 14767 | fi |
| 14768 | |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14769 | if test "x$CROSSTEST_DISABLE" = x |
| 14770 | then |
| 14771 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14772 | "__builddeps__: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14773 | $ac_file.cross.a: $ac_dir/Makefile dummy |
| 14774 | @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14775 | fi |
| 14776 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14777 | elif wine_fn_has_flag implib $ac_flags |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14778 | then |
| 14779 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14780 | "__builddeps__: $ac_file.$IMPLIBEXT |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14781 | $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14782 | \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec |
| 14783 | $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14784 | \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec |
Alexandre Julliard | 6cba5c4 | 2011-07-09 18:01:42 +0200 | [diff] [blame] | 14785 | .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__ |
| 14786 | $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir) |
| 14787 | \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT |
| 14788 | $ac_dir/__uninstall__:: |
| 14789 | \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT |
| 14790 | install install-dev:: $ac_dir/__install-dev__ |
| 14791 | __uninstall__: $ac_dir/__uninstall__" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14792 | if test "x$CROSSTEST_DISABLE" = x |
| 14793 | then |
| 14794 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14795 | "__builddeps__: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14796 | $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14797 | \$(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] | 14798 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14799 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14800 | if test "$ac_name" != "$ac_implib" |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14801 | then |
| 14802 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14803 | "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14804 | dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14805 | \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@ |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14806 | clean:: |
| 14807 | \$(RM) dlls/lib$ac_implib.$IMPLIBEXT" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14808 | if test "x$CROSSTEST_DISABLE" = x |
| 14809 | then |
| 14810 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14811 | "__builddeps__: dlls/lib$ac_implib.cross.a |
| 14812 | dlls/lib$ac_implib.cross.a: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14813 | \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14814 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14815 | fi |
| 14816 | fi |
| 14817 | } |
| 14818 | |
| 14819 | wine_fn_config_program () |
| 14820 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14821 | ac_name=$1 |
| 14822 | ac_dir=programs/$ac_name |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14823 | ac_enable=$2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14824 | ac_flags=$3 |
Alexandre Julliard | fda8b65 | 2011-07-09 21:04:23 +0200 | [diff] [blame] | 14825 | ac_program=$ac_name |
| 14826 | |
| 14827 | case $ac_name in |
| 14828 | *.*) ;; |
| 14829 | *) ac_program=$ac_program.exe ;; |
| 14830 | esac |
| 14831 | |
| 14832 | wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14833 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14834 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14835 | |
| 14836 | else |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14837 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | fda8b65 | 2011-07-09 21:04:23 +0200 | [diff] [blame] | 14838 | "$ac_dir: __builddeps__" |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14839 | |
Alexandre Julliard | 9c98f69 | 2011-10-22 14:54:03 +0200 | [diff] [blame] | 14840 | wine_fn_pot_rules $ac_dir $ac_flags |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14841 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14842 | wine_fn_has_flag install $ac_flags || return |
Alexandre Julliard | 2fb3021 | 2010-03-26 09:24:33 +0100 | [diff] [blame] | 14843 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14844 | ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14845 | install install-lib:: $ac_dir/__install__ |
| 14846 | __uninstall__: $ac_dir/__uninstall__" |
Alexandre Julliard | fda8b65 | 2011-07-09 21:04:23 +0200 | [diff] [blame] | 14847 | |
| 14848 | if test -n "$DLLEXT" |
Alexandre Julliard | 2fb3021 | 2010-03-26 09:24:33 +0100 | [diff] [blame] | 14849 | then |
| 14850 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | fda8b65 | 2011-07-09 21:04:23 +0200 | [diff] [blame] | 14851 | "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir) |
| 14852 | \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT |
| 14853 | \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program |
| 14854 | $ac_dir/__uninstall__:: |
| 14855 | \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program" |
| 14856 | |
| 14857 | if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags |
| 14858 | then |
| 14859 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14860 | "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir) |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14861 | \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14862 | $ac_dir/__uninstall__:: |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14863 | \$(RM) \$(DESTDIR)\$(bindir)/$ac_name" |
Alexandre Julliard | fda8b65 | 2011-07-09 21:04:23 +0200 | [diff] [blame] | 14864 | fi |
| 14865 | else |
| 14866 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14867 | "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) |
| 14868 | \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program |
| 14869 | $ac_dir/__uninstall__:: |
| 14870 | \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program" |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14871 | fi |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 14872 | |
| 14873 | if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags |
| 14874 | then |
| 14875 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14876 | "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext) |
| 14877 | \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext) |
| 14878 | $ac_dir/__uninstall__:: |
| 14879 | \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)" |
| 14880 | fi |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14881 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14882 | } |
| 14883 | |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14884 | wine_fn_config_test () |
| 14885 | { |
| 14886 | ac_dir=$1 |
| 14887 | ac_name=$2 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14888 | ac_flags=$3 |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 14889 | wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14890 | wine_fn_all_dir_rules $ac_dir Maketest.rules |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14891 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14892 | if test "x$enable_tests" = xno; then : |
Alexandre Julliard | dc3afa1 | 2010-03-20 14:51:52 +0100 | [diff] [blame] | 14893 | |
| 14894 | else |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14895 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 14896 | "all: $ac_dir |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14897 | .PHONY: $ac_dir |
Alexandre Julliard | dbbed38 | 2011-05-26 12:04:45 +0200 | [diff] [blame] | 14898 | $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14899 | @cd $ac_dir && \$(MAKE) |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 14900 | programs/winetest: $ac_dir |
Alexandre Julliard | e4eff85 | 2011-05-22 13:15:03 +0200 | [diff] [blame] | 14901 | check test: $ac_dir/__test__ |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14902 | .PHONY: $ac_dir/__test__ |
Alexandre Julliard | eab7efd | 2010-03-25 21:42:54 +0100 | [diff] [blame] | 14903 | $ac_dir/__test__: dummy |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14904 | @cd $ac_dir && \$(MAKE) test |
| 14905 | testclean:: |
| 14906 | \$(RM) $ac_dir/*.ok" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14907 | |
| 14908 | if test "x$CROSSTEST_DISABLE" = x |
| 14909 | then |
| 14910 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14911 | "crosstest: $ac_dir/__crosstest__ |
| 14912 | .PHONY: $ac_dir/__crosstest__ |
| 14913 | $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy |
| 14914 | @cd $ac_dir && \$(MAKE) crosstest" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14915 | fi |
Alexandre Julliard | dc3afa1 | 2010-03-20 14:51:52 +0100 | [diff] [blame] | 14916 | fi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14917 | } |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 14918 | |
| 14919 | wine_fn_config_tool () |
| 14920 | { |
| 14921 | ac_dir=$1 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14922 | ac_flags=$2 |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 14923 | if test "x$enable_tools" = xno; then : |
| 14924 | return 0 |
| 14925 | fi |
| 14926 | |
Alexandre Julliard | 49c31e3 | 2011-06-12 12:13:17 +0200 | [diff] [blame] | 14927 | wine_fn_config_makefile $ac_dir enable_tools $ac_flags |
Alexandre Julliard | 6dbe7a0 | 2010-03-25 11:51:24 +0100 | [diff] [blame] | 14928 | |
Alexandre Julliard | 49c31e3 | 2011-06-12 12:13:17 +0200 | [diff] [blame] | 14929 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir" |
| 14930 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port" |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 14931 | case $ac_dir in |
| 14932 | tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;; |
| 14933 | esac |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 14934 | } |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14935 | |
| 14936 | wine_fn_config_makerules () |
| 14937 | { |
| 14938 | ac_rules=$1 |
| 14939 | ac_deps=$2 |
| 14940 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14941 | "$ac_rules: $ac_rules.in $ac_deps config.status |
| 14942 | @./config.status $ac_rules |
| 14943 | distclean:: |
| 14944 | \$(RM) $ac_rules" |
| 14945 | } |
| 14946 | |
| 14947 | wine_fn_config_symlink () |
| 14948 | { |
| 14949 | ac_link=$1 |
| 14950 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14951 | "$ac_link: |
| 14952 | @./config.status $ac_link |
| 14953 | distclean:: |
| 14954 | \$(RM) $ac_link" |
| 14955 | } |
Alexandre Julliard | a070f9b | 2010-07-26 20:53:12 +0200 | [diff] [blame] | 14956 | |
| 14957 | if test "x$CROSSTEST_DISABLE" != x |
| 14958 | then |
| 14959 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14960 | "crosstest: |
| 14961 | @echo \"crosstest is not supported (mingw not installed?)\" && false" |
| 14962 | fi |
Alexandre Julliard | 40977bf | 2010-11-11 12:24:46 +0100 | [diff] [blame] | 14963 | ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS" |
| 14964 | wine_fn_config_symlink dlls/shell32/AUTHORS |
Alexandre Julliard | a632052 | 2010-02-03 13:14:03 +0100 | [diff] [blame] | 14965 | 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] | 14966 | test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14967 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14968 | ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14969 | test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14970 | fi |
| 14971 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14972 | ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14973 | test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14974 | fi |
| 14975 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14976 | ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14977 | test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14978 | fi |
| 14979 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14980 | ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14981 | test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14982 | fi |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 14983 | ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS" |
| 14984 | test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 14985 | if test "x$enable_tools" != xno; then |
Alexandre Julliard | 321d388 | 2010-05-06 20:51:53 +0200 | [diff] [blame] | 14986 | ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls" |
| 14987 | test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 14988 | fi |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 14989 | ac_config_links="$ac_config_links wine:tools/winewrapper" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14990 | wine_fn_config_symlink wine |
Alexandre Julliard | 4422d22 | 2011-05-10 13:26:28 +0200 | [diff] [blame] | 14991 | if test "x$enable_win64" != xno; then |
| 14992 | ac_config_links="$ac_config_links wine64:tools/winewrapper" |
| 14993 | wine_fn_config_symlink wine64 |
| 14994 | fi |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 14995 | |
Huw Davies | 4cffb2d | 2011-04-01 15:27:48 +0100 | [diff] [blame] | 14996 | ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv" |
| 14997 | |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 14998 | ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 14999 | |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 15000 | ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 15001 | |
Alexandre Julliard | 1c60e3b | 2006-09-12 16:10:51 +0200 | [diff] [blame] | 15002 | ac_config_commands="$ac_config_commands dlls/kernel32/nls" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15003 | |
Alexandre Julliard | b8a2e3b | 2006-11-16 14:49:25 +0100 | [diff] [blame] | 15004 | ac_config_commands="$ac_config_commands dlls/user32/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15005 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15006 | ac_config_commands="$ac_config_commands dlls/wineps.drv/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15007 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15008 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15009 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 15010 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 15011 | wine_fn_config_makerules Make.rules |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 15012 | MAKE_RULES=Make.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 15013 | ac_config_files="$ac_config_files Make.rules" |
| 15014 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 15015 | wine_fn_config_makerules Maketest.rules Make.rules |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 15016 | MAKE_TEST_RULES=Maketest.rules |
| 15017 | ac_config_files="$ac_config_files Maketest.rules" |
| 15018 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 15019 | wine_fn_config_makerules dlls/Makedll.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 15020 | MAKE_DLL_RULES=dlls/Makedll.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 15021 | ac_config_files="$ac_config_files dlls/Makedll.rules" |
| 15022 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 15023 | wine_fn_config_makerules dlls/Makeimplib.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 15024 | MAKE_IMPLIB_RULES=dlls/Makeimplib.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 15025 | ac_config_files="$ac_config_files dlls/Makeimplib.rules" |
| 15026 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 15027 | wine_fn_config_makerules programs/Makeprog.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 15028 | MAKE_PROG_RULES=programs/Makeprog.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 15029 | ac_config_files="$ac_config_files programs/Makeprog.rules" |
| 15030 | |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 15031 | |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15032 | wine_fn_config_dll acledit enable_acledit |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15033 | wine_fn_config_dll aclui enable_aclui implib |
| 15034 | wine_fn_config_dll activeds enable_activeds implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15035 | wine_fn_config_dll actxprxy enable_actxprxy |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15036 | wine_fn_config_lib adsiid |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15037 | wine_fn_config_dll advapi32 enable_advapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15038 | wine_fn_config_test dlls/advapi32/tests advapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15039 | wine_fn_config_dll advpack enable_advpack implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15040 | wine_fn_config_test dlls/advpack/tests advpack_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15041 | wine_fn_config_dll amstream enable_amstream |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15042 | wine_fn_config_test dlls/amstream/tests amstream_test |
André Hentschel | e14e838 | 2011-10-31 20:05:49 +0100 | [diff] [blame] | 15043 | wine_fn_config_dll apphelp enable_apphelp |
Alexandre Julliard | 902f10c | 2011-01-13 15:16:02 +0100 | [diff] [blame] | 15044 | wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15045 | wine_fn_config_dll atl enable_atl implib |
Marcus Meissner | b3f0425 | 2010-06-15 11:04:33 +0200 | [diff] [blame] | 15046 | wine_fn_config_test dlls/atl/tests atl_test |
Stefan Leichter | 887f009 | 2012-04-04 22:31:02 +0200 | [diff] [blame] | 15047 | wine_fn_config_dll atl80 enable_atl80 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15048 | wine_fn_config_dll authz enable_authz |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15049 | wine_fn_config_dll avicap32 enable_avicap32 implib |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15050 | wine_fn_config_dll avifil32 enable_avifil32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15051 | wine_fn_config_test dlls/avifil32/tests avifil32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15052 | wine_fn_config_dll avifile.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15053 | wine_fn_config_dll avrt enable_avrt implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15054 | wine_fn_config_dll bcrypt enable_bcrypt |
Alexandre Julliard | 4447900 | 2011-01-11 12:56:17 +0100 | [diff] [blame] | 15055 | wine_fn_config_dll browseui enable_browseui po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15056 | wine_fn_config_test dlls/browseui/tests browseui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15057 | wine_fn_config_dll cabinet enable_cabinet implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15058 | wine_fn_config_test dlls/cabinet/tests cabinet_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15059 | wine_fn_config_dll capi2032 enable_capi2032 implib |
| 15060 | wine_fn_config_dll cards enable_cards implib |
| 15061 | wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib |
| 15062 | wine_fn_config_dll clusapi enable_clusapi implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15063 | wine_fn_config_dll comcat enable_comcat |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15064 | wine_fn_config_test dlls/comcat/tests comcat_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15065 | wine_fn_config_dll comctl32 enable_comctl32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15066 | wine_fn_config_test dlls/comctl32/tests comctl32_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15067 | wine_fn_config_dll comdlg32 enable_comdlg32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15068 | wine_fn_config_test dlls/comdlg32/tests comdlg32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15069 | wine_fn_config_dll comm.drv16 enable_win16 |
| 15070 | wine_fn_config_dll commdlg.dll16 enable_win16 |
| 15071 | wine_fn_config_dll compobj.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15072 | wine_fn_config_dll compstui enable_compstui implib |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15073 | wine_fn_config_dll credui enable_credui implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15074 | wine_fn_config_test dlls/credui/tests credui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15075 | wine_fn_config_dll crtdll enable_crtdll implib |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15076 | wine_fn_config_dll crypt32 enable_crypt32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15077 | wine_fn_config_test dlls/crypt32/tests crypt32_test |
Alexandre Julliard | 8484e96 | 2011-01-06 12:28:26 +0100 | [diff] [blame] | 15078 | wine_fn_config_dll cryptdlg enable_cryptdlg po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15079 | wine_fn_config_dll cryptdll enable_cryptdll implib |
| 15080 | wine_fn_config_dll cryptnet enable_cryptnet implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15081 | wine_fn_config_test dlls/cryptnet/tests cryptnet_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15082 | wine_fn_config_dll cryptui enable_cryptui implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15083 | wine_fn_config_test dlls/cryptui/tests cryptui_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15084 | wine_fn_config_dll ctapi32 enable_ctapi32 |
| 15085 | wine_fn_config_dll ctl3d.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15086 | wine_fn_config_dll ctl3d32 enable_ctl3d32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15087 | wine_fn_config_dll ctl3dv2.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15088 | wine_fn_config_dll d3d10 enable_d3d10 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15089 | wine_fn_config_test dlls/d3d10/tests d3d10_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15090 | wine_fn_config_dll d3d10core enable_d3d10core implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15091 | wine_fn_config_test dlls/d3d10core/tests d3d10core_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15092 | wine_fn_config_dll d3d8 enable_d3d8 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15093 | wine_fn_config_test dlls/d3d8/tests d3d8_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15094 | wine_fn_config_dll d3d9 enable_d3d9 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15095 | wine_fn_config_test dlls/d3d9/tests d3d9_test |
Matteo Bruni | 0ac336f | 2010-07-29 01:53:54 +0200 | [diff] [blame] | 15096 | wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33 |
Matteo Bruni | 66d4499 | 2010-07-29 01:47:13 +0200 | [diff] [blame] | 15097 | wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34 |
Matteo Bruni | 8ea7583 | 2010-07-28 16:44:37 +0200 | [diff] [blame] | 15098 | wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35 |
Matteo Bruni | 458eb08 | 2010-07-28 16:37:28 +0200 | [diff] [blame] | 15099 | wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36 |
Matteo Bruni | 3c59b9c | 2010-07-28 16:22:11 +0200 | [diff] [blame] | 15100 | wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37 |
Matteo Bruni | fbf1e83 | 2010-07-28 16:13:40 +0200 | [diff] [blame] | 15101 | wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38 |
Matteo Bruni | 9949146 | 2010-07-28 04:31:18 +0200 | [diff] [blame] | 15102 | wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39 |
Matteo Bruni | fd4efcd | 2010-07-28 04:09:13 +0200 | [diff] [blame] | 15103 | wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40 |
Matteo Bruni | 79c1bc4 | 2010-08-03 18:44:25 +0200 | [diff] [blame] | 15104 | wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41 |
Matteo Bruni | fe05070 | 2010-08-03 18:44:25 +0200 | [diff] [blame] | 15105 | wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15106 | wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler |
Rico Schüller | 5ad7f7b | 2010-08-19 21:33:43 +0200 | [diff] [blame] | 15107 | wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15108 | wine_fn_config_dll d3dim enable_d3dim implib |
| 15109 | wine_fn_config_dll d3drm enable_d3drm implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15110 | wine_fn_config_test dlls/d3drm/tests d3drm_test |
Owen Rudge | 9870c04 | 2010-08-18 16:02:22 -0500 | [diff] [blame] | 15111 | wine_fn_config_dll d3dx10_33 enable_d3dx10_33 |
Owen Rudge | 49dbdc1 | 2010-08-18 16:02:20 -0500 | [diff] [blame] | 15112 | wine_fn_config_dll d3dx10_34 enable_d3dx10_34 |
Owen Rudge | 955b844 | 2010-08-18 16:02:18 -0500 | [diff] [blame] | 15113 | wine_fn_config_dll d3dx10_35 enable_d3dx10_35 |
Owen Rudge | f44830e | 2010-08-18 16:02:16 -0500 | [diff] [blame] | 15114 | wine_fn_config_dll d3dx10_36 enable_d3dx10_36 |
Owen Rudge | 4196ba2 | 2010-08-18 16:02:10 -0500 | [diff] [blame] | 15115 | wine_fn_config_dll d3dx10_37 enable_d3dx10_37 |
Owen Rudge | 199ff9b | 2010-08-18 16:02:08 -0500 | [diff] [blame] | 15116 | wine_fn_config_dll d3dx10_38 enable_d3dx10_38 |
Owen Rudge | fb8d7cd | 2010-08-18 16:02:06 -0500 | [diff] [blame] | 15117 | wine_fn_config_dll d3dx10_39 enable_d3dx10_39 |
Owen Rudge | 662cbb1 | 2010-08-18 16:02:03 -0500 | [diff] [blame] | 15118 | wine_fn_config_dll d3dx10_40 enable_d3dx10_40 |
Owen Rudge | 17591cc | 2010-08-18 16:01:59 -0500 | [diff] [blame] | 15119 | wine_fn_config_dll d3dx10_41 enable_d3dx10_41 |
Owen Rudge | e5d9e12 | 2010-08-18 16:01:57 -0500 | [diff] [blame] | 15120 | wine_fn_config_dll d3dx10_42 enable_d3dx10_42 |
Owen Rudge | 3c5b2e6 | 2010-08-18 16:01:53 -0500 | [diff] [blame] | 15121 | wine_fn_config_dll d3dx10_43 enable_d3dx10_43 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15122 | wine_fn_config_dll d3dx9_24 enable_d3dx9_24 |
| 15123 | wine_fn_config_dll d3dx9_25 enable_d3dx9_25 |
| 15124 | wine_fn_config_dll d3dx9_26 enable_d3dx9_26 |
| 15125 | wine_fn_config_dll d3dx9_27 enable_d3dx9_27 |
| 15126 | wine_fn_config_dll d3dx9_28 enable_d3dx9_28 |
| 15127 | wine_fn_config_dll d3dx9_29 enable_d3dx9_29 |
| 15128 | wine_fn_config_dll d3dx9_30 enable_d3dx9_30 |
| 15129 | wine_fn_config_dll d3dx9_31 enable_d3dx9_31 |
| 15130 | wine_fn_config_dll d3dx9_32 enable_d3dx9_32 |
| 15131 | wine_fn_config_dll d3dx9_33 enable_d3dx9_33 |
| 15132 | wine_fn_config_dll d3dx9_34 enable_d3dx9_34 |
| 15133 | wine_fn_config_dll d3dx9_35 enable_d3dx9_35 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15134 | wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15135 | wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15136 | wine_fn_config_dll d3dx9_37 enable_d3dx9_37 |
| 15137 | wine_fn_config_dll d3dx9_38 enable_d3dx9_38 |
| 15138 | wine_fn_config_dll d3dx9_39 enable_d3dx9_39 |
| 15139 | wine_fn_config_dll d3dx9_40 enable_d3dx9_40 |
| 15140 | wine_fn_config_dll d3dx9_41 enable_d3dx9_41 |
| 15141 | wine_fn_config_dll d3dx9_42 enable_d3dx9_42 |
Matteo Bruni | 90c615a | 2010-08-25 17:12:51 +0200 | [diff] [blame] | 15142 | wine_fn_config_dll d3dx9_43 enable_d3dx9_43 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15143 | wine_fn_config_dll d3dxof enable_d3dxof implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15144 | wine_fn_config_test dlls/d3dxof/tests d3dxof_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15145 | wine_fn_config_dll dbgeng enable_dbgeng implib |
| 15146 | wine_fn_config_dll dbghelp enable_dbghelp implib |
| 15147 | wine_fn_config_dll dciman32 enable_dciman32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15148 | wine_fn_config_dll ddeml.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15149 | wine_fn_config_dll ddraw enable_ddraw implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15150 | wine_fn_config_test dlls/ddraw/tests ddraw_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15151 | wine_fn_config_dll ddrawex enable_ddrawex |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15152 | wine_fn_config_test dlls/ddrawex/tests ddrawex_test |
Alexandre Julliard | 0cdd147 | 2011-01-06 12:37:11 +0100 | [diff] [blame] | 15153 | wine_fn_config_dll devenum enable_devenum po |
Christian Costa | c1b92ca | 2012-03-28 00:38:39 +0200 | [diff] [blame] | 15154 | wine_fn_config_test dlls/devenum/tests devenum_test |
Stefan Leichter | 9aeda0d | 2011-12-22 00:04:05 +0100 | [diff] [blame] | 15155 | wine_fn_config_dll dhcpcsvc enable_dhcpcsvc |
Lucas Fialho Zawacki | 0ae4710 | 2011-09-01 15:34:35 -0300 | [diff] [blame] | 15156 | wine_fn_config_dll dinput enable_dinput implib,po,staticimplib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15157 | wine_fn_config_test dlls/dinput/tests dinput_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15158 | wine_fn_config_dll dinput8 enable_dinput8 implib |
Lucas Fialho Zawacki | 1fbf857 | 2011-04-29 19:29:19 -0300 | [diff] [blame] | 15159 | wine_fn_config_test dlls/dinput8/tests dinput8_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15160 | wine_fn_config_dll dispdib.dll16 enable_win16 |
| 15161 | wine_fn_config_dll dispex enable_dispex |
Huw Davies | df07561 | 2010-03-19 13:34:53 +0000 | [diff] [blame] | 15162 | wine_fn_config_test dlls/dispex/tests dispex_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15163 | wine_fn_config_dll display.drv16 enable_win16 |
| 15164 | wine_fn_config_dll dmband enable_dmband |
Christian Costa | 54168bd | 2012-04-12 08:28:35 +0200 | [diff] [blame] | 15165 | wine_fn_config_test dlls/dmband/tests dmband_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15166 | wine_fn_config_dll dmcompos enable_dmcompos |
| 15167 | wine_fn_config_dll dmime enable_dmime |
Austin Lund | 203272e | 2010-08-06 17:50:49 +1000 | [diff] [blame] | 15168 | wine_fn_config_test dlls/dmime/tests dmime_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15169 | wine_fn_config_dll dmloader enable_dmloader |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15170 | wine_fn_config_test dlls/dmloader/tests dmloader_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15171 | wine_fn_config_dll dmscript enable_dmscript |
| 15172 | wine_fn_config_dll dmstyle enable_dmstyle |
| 15173 | wine_fn_config_dll dmsynth enable_dmsynth |
Christian Costa | d2d5d0e | 2012-04-06 13:39:02 +0200 | [diff] [blame] | 15174 | wine_fn_config_test dlls/dmsynth/tests dmsynth_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15175 | wine_fn_config_dll dmusic enable_dmusic |
Christian Costa | 997be9c | 2012-03-29 09:09:31 +0200 | [diff] [blame] | 15176 | wine_fn_config_test dlls/dmusic/tests dmusic_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15177 | wine_fn_config_dll dmusic32 enable_dmusic32 implib |
| 15178 | wine_fn_config_dll dnsapi enable_dnsapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15179 | wine_fn_config_test dlls/dnsapi/tests dnsapi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15180 | wine_fn_config_dll dplay enable_dplay implib |
| 15181 | wine_fn_config_dll dplayx enable_dplayx implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15182 | wine_fn_config_test dlls/dplayx/tests dplayx_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15183 | wine_fn_config_dll dpnaddr enable_dpnaddr |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15184 | wine_fn_config_dll dpnet enable_dpnet implib |
Louis Lenders | 7844535 | 2011-08-29 22:56:35 +0200 | [diff] [blame] | 15185 | wine_fn_config_test dlls/dpnet/tests dpnet_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15186 | wine_fn_config_dll dpnhpast enable_dpnhpast |
| 15187 | wine_fn_config_dll dpnlobby enable_dpnlobby |
| 15188 | wine_fn_config_dll dpwsockx enable_dpwsockx |
| 15189 | wine_fn_config_dll drmclien enable_drmclien |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15190 | wine_fn_config_dll dsound enable_dsound implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15191 | wine_fn_config_test dlls/dsound/tests dsound_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15192 | wine_fn_config_dll dssenh enable_dssenh |
| 15193 | wine_fn_config_dll dswave enable_dswave |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15194 | wine_fn_config_dll dwmapi enable_dwmapi implib |
Andrew Nguyen | f9c8e46 | 2011-04-03 20:55:32 -0500 | [diff] [blame] | 15195 | wine_fn_config_dll dxdiagn enable_dxdiagn po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15196 | wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15197 | wine_fn_config_lib dxerr8 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15198 | wine_fn_config_lib dxerr9 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15199 | wine_fn_config_dll dxgi enable_dxgi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15200 | wine_fn_config_test dlls/dxgi/tests dxgi_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15201 | wine_fn_config_lib dxguid |
David Hedberg | e2cf9ad | 2010-07-31 20:02:45 +0200 | [diff] [blame] | 15202 | wine_fn_config_dll explorerframe enable_explorerframe |
David Hedberg | 87212d5 | 2010-07-31 20:02:49 +0200 | [diff] [blame] | 15203 | wine_fn_config_test dlls/explorerframe/tests explorerframe_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15204 | wine_fn_config_dll faultrep enable_faultrep implib |
Detlef Riekenberg | 53fca11 | 2010-10-26 10:11:13 +0200 | [diff] [blame] | 15205 | wine_fn_config_test dlls/faultrep/tests faultrep_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15206 | wine_fn_config_dll fltlib enable_fltlib |
| 15207 | wine_fn_config_dll fusion enable_fusion |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15208 | wine_fn_config_test dlls/fusion/tests fusion_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15209 | wine_fn_config_dll fwpuclnt enable_fwpuclnt |
Mariusz Pluciński | b3a9ce4 | 2010-07-22 23:59:34 +0200 | [diff] [blame] | 15210 | wine_fn_config_dll gameux enable_gameux |
Mariusz Pluciński | cb886f4 | 2010-08-03 11:58:01 +0200 | [diff] [blame] | 15211 | wine_fn_config_test dlls/gameux/tests gameux_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15212 | wine_fn_config_dll gdi.exe16 enable_win16 |
Akihiro Sagawa | b5db70f | 2011-11-03 22:11:33 +0900 | [diff] [blame] | 15213 | wine_fn_config_dll gdi32 enable_gdi32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15214 | wine_fn_config_test dlls/gdi32/tests gdi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15215 | wine_fn_config_dll gdiplus enable_gdiplus implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15216 | wine_fn_config_test dlls/gdiplus/tests gdiplus_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15217 | wine_fn_config_dll glu32 enable_glu32 implib |
Alexandre Julliard | 479857c | 2011-11-22 13:51:09 +0100 | [diff] [blame] | 15218 | wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15219 | wine_fn_config_dll gpkcsp enable_gpkcsp |
| 15220 | wine_fn_config_dll hal enable_hal |
Alexandre Julliard | c9b52d2 | 2011-01-06 13:19:58 +0100 | [diff] [blame] | 15221 | wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15222 | wine_fn_config_dll hid enable_hid implib |
| 15223 | wine_fn_config_dll hlink enable_hlink implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15224 | wine_fn_config_test dlls/hlink/tests hlink_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15225 | wine_fn_config_dll hnetcfg enable_hnetcfg |
| 15226 | wine_fn_config_dll httpapi enable_httpapi |
Alexandre Julliard | 9c6444c | 2011-01-06 13:31:16 +0100 | [diff] [blame] | 15227 | wine_fn_config_dll iccvid enable_iccvid po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15228 | wine_fn_config_dll icmp enable_icmp |
Jacek Caban | c685f8c | 2011-07-27 14:45:47 +0200 | [diff] [blame] | 15229 | wine_fn_config_dll ieframe enable_ieframe implib,po |
Jacek Caban | f42d9e2 | 2011-07-28 13:32:01 +0200 | [diff] [blame] | 15230 | wine_fn_config_test dlls/ieframe/tests ieframe_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15231 | wine_fn_config_dll ifsmgr.vxd enable_win16 |
| 15232 | wine_fn_config_dll imaadp32.acm enable_imaadp32_acm |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15233 | wine_fn_config_dll imagehlp enable_imagehlp implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15234 | wine_fn_config_test dlls/imagehlp/tests imagehlp_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15235 | wine_fn_config_dll imm.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15236 | wine_fn_config_dll imm32 enable_imm32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15237 | wine_fn_config_test dlls/imm32/tests imm32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15238 | wine_fn_config_dll inetcomm enable_inetcomm implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15239 | wine_fn_config_test dlls/inetcomm/tests inetcomm_test |
Alexandre Julliard | be52106 | 2011-01-12 15:49:32 +0100 | [diff] [blame] | 15240 | wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15241 | wine_fn_config_dll inetmib1 enable_inetmib1 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15242 | wine_fn_config_test dlls/inetmib1/tests inetmib1_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15243 | wine_fn_config_dll infosoft enable_infosoft |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15244 | wine_fn_config_test dlls/infosoft/tests infosoft_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15245 | wine_fn_config_dll initpki enable_initpki |
| 15246 | wine_fn_config_dll inkobj enable_inkobj |
| 15247 | wine_fn_config_dll inseng enable_inseng |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15248 | wine_fn_config_dll iphlpapi enable_iphlpapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15249 | wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15250 | wine_fn_config_dll itircl enable_itircl |
| 15251 | wine_fn_config_dll itss enable_itss |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15252 | wine_fn_config_test dlls/itss/tests itss_test |
Lucas Zawacki | 033f4ae | 2012-06-05 12:01:37 -0300 | [diff] [blame] | 15253 | wine_fn_config_dll joy.cpl enable_joy_cpl po |
Alexandre Julliard | 0ccf1d8 | 2011-01-06 13:38:57 +0100 | [diff] [blame] | 15254 | wine_fn_config_dll jscript enable_jscript po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15255 | wine_fn_config_test dlls/jscript/tests jscript_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15256 | wine_fn_config_dll kernel32 enable_kernel32 implib,mc |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15257 | wine_fn_config_test dlls/kernel32/tests kernel32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15258 | wine_fn_config_dll keyboard.drv16 enable_win16 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15259 | wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel |
Vincent Povirk | 8f87459 | 2010-09-26 16:38:44 -0500 | [diff] [blame] | 15260 | wine_fn_config_dll ktmw32 enable_ktmw32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15261 | wine_fn_config_dll loadperf enable_loadperf implib |
Alexandre Julliard | 7df87f3 | 2011-01-06 14:24:05 +0100 | [diff] [blame] | 15262 | wine_fn_config_dll localspl enable_localspl po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15263 | wine_fn_config_test dlls/localspl/tests localspl_test |
Alexandre Julliard | 0546dd5 | 2011-01-12 16:11:26 +0100 | [diff] [blame] | 15264 | wine_fn_config_dll localui enable_localui po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15265 | wine_fn_config_test dlls/localui/tests localui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15266 | wine_fn_config_dll lz32 enable_lz32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15267 | wine_fn_config_test dlls/lz32/tests lz32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15268 | wine_fn_config_dll lzexpand.dll16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15269 | wine_fn_config_dll mapi32 enable_mapi32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15270 | wine_fn_config_test dlls/mapi32/tests mapi32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15271 | wine_fn_config_dll mapistub enable_mapistub |
| 15272 | wine_fn_config_dll mciavi32 enable_mciavi32 |
| 15273 | wine_fn_config_dll mcicda enable_mcicda |
| 15274 | wine_fn_config_dll mciqtz32 enable_mciqtz32 |
| 15275 | wine_fn_config_dll mciseq enable_mciseq |
| 15276 | wine_fn_config_dll mciwave enable_mciwave |
Stefan Leichter | f91c9cc | 2012-03-09 00:31:49 +0100 | [diff] [blame] | 15277 | wine_fn_config_dll mgmtapi enable_mgmtapi |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15278 | wine_fn_config_dll midimap enable_midimap |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15279 | wine_fn_config_dll mlang enable_mlang implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15280 | wine_fn_config_test dlls/mlang/tests mlang_test |
Alistair Leslie-Hughes | dbefe8c | 2011-10-06 21:45:02 +1100 | [diff] [blame] | 15281 | wine_fn_config_dll mmcndmgr enable_mmcndmgr |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15282 | wine_fn_config_dll mmdevapi enable_mmdevapi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15283 | wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15284 | wine_fn_config_dll mmdevldr.vxd enable_win16 |
| 15285 | wine_fn_config_dll mmsystem.dll16 enable_win16 |
| 15286 | wine_fn_config_dll monodebg.vxd enable_win16 |
| 15287 | wine_fn_config_dll mountmgr.sys enable_mountmgr_sys |
| 15288 | wine_fn_config_dll mouse.drv16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15289 | wine_fn_config_dll mpr enable_mpr implib,po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15290 | wine_fn_config_dll mprapi enable_mprapi implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15291 | wine_fn_config_dll msacm.dll16 enable_win16 |
| 15292 | wine_fn_config_dll msacm32.drv enable_msacm32_drv |
Alexandre Julliard | 855d32d | 2011-11-24 20:50:11 +0100 | [diff] [blame] | 15293 | wine_fn_config_dll msacm32 enable_msacm32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15294 | wine_fn_config_test dlls/msacm32/tests msacm32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15295 | wine_fn_config_dll msadp32.acm enable_msadp32_acm |
| 15296 | wine_fn_config_dll mscat32 enable_mscat32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15297 | wine_fn_config_dll mscms enable_mscms implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15298 | wine_fn_config_test dlls/mscms/tests mscms_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15299 | wine_fn_config_dll mscoree enable_mscoree |
Louis Lenders | a852870 | 2010-08-24 11:48:01 +0200 | [diff] [blame] | 15300 | wine_fn_config_test dlls/mscoree/tests mscoree_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15301 | wine_fn_config_dll msctf enable_msctf |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15302 | wine_fn_config_test dlls/msctf/tests msctf_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15303 | wine_fn_config_dll msdaps enable_msdaps |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15304 | wine_fn_config_dll msdmo enable_msdmo implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15305 | wine_fn_config_dll msftedit enable_msftedit |
| 15306 | wine_fn_config_dll msg711.acm enable_msg711_acm |
| 15307 | wine_fn_config_dll msgsm32.acm enable_msgsm32_acm |
| 15308 | wine_fn_config_dll mshtml.tlb enable_mshtml_tlb |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15309 | wine_fn_config_dll mshtml enable_mshtml implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15310 | wine_fn_config_test dlls/mshtml/tests mshtml_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15311 | wine_fn_config_dll msi enable_msi implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15312 | wine_fn_config_test dlls/msi/tests msi_test |
Jacek Caban | aadc5cb | 2012-03-09 11:12:25 +0100 | [diff] [blame] | 15313 | wine_fn_config_dll msident enable_msident |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15314 | wine_fn_config_dll msimg32 enable_msimg32 implib |
Hans Leidekker | 530e947 | 2011-03-10 10:59:44 +0100 | [diff] [blame] | 15315 | wine_fn_config_dll msimsg enable_msimsg |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15316 | wine_fn_config_dll msimtf enable_msimtf |
| 15317 | wine_fn_config_dll msisip enable_msisip |
| 15318 | wine_fn_config_dll msisys.ocx enable_msisys_ocx |
| 15319 | wine_fn_config_dll msnet32 enable_msnet32 |
David Hedberg | 21085ed | 2011-03-22 04:16:56 +0100 | [diff] [blame] | 15320 | wine_fn_config_dll mspatcha enable_mspatcha |
Alexandre Julliard | ad5605b | 2011-01-06 16:36:14 +0100 | [diff] [blame] | 15321 | wine_fn_config_dll msrle32 enable_msrle32 po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15322 | wine_fn_config_dll mssign32 enable_mssign32 |
| 15323 | wine_fn_config_dll mssip32 enable_mssip32 |
| 15324 | wine_fn_config_dll mstask enable_mstask |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15325 | wine_fn_config_test dlls/mstask/tests mstask_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15326 | wine_fn_config_dll msvcirt enable_msvcirt |
Vincent Povirk | 7e8ce7b | 2012-05-02 14:15:32 -0500 | [diff] [blame] | 15327 | wine_fn_config_dll msvcm80 enable_msvcm80 |
Vincent Povirk | 94f0da9 | 2012-05-07 10:31:31 -0500 | [diff] [blame] | 15328 | wine_fn_config_dll msvcm90 enable_msvcm90 |
Austin English | dfbf47b | 2011-04-05 12:47:46 -0700 | [diff] [blame] | 15329 | wine_fn_config_dll msvcp100 enable_msvcp100 |
Alexandre Julliard | a3172a5 | 2011-04-28 23:30:07 +0200 | [diff] [blame] | 15330 | wine_fn_config_dll msvcp60 enable_msvcp60 |
Alexandre Julliard | 2f9c02e | 2011-05-03 11:09:58 +0200 | [diff] [blame] | 15331 | wine_fn_config_dll msvcp70 enable_msvcp70 |
Alexandre Julliard | 4be2026 | 2011-05-02 17:32:22 +0200 | [diff] [blame] | 15332 | wine_fn_config_dll msvcp71 enable_msvcp71 |
Piotr Caban | 71a49eb | 2010-08-23 16:36:24 +0200 | [diff] [blame] | 15333 | wine_fn_config_dll msvcp80 enable_msvcp80 |
Piotr Caban | 9ae9d26 | 2010-07-20 23:22:16 +0200 | [diff] [blame] | 15334 | wine_fn_config_dll msvcp90 enable_msvcp90 |
Piotr Caban | d589d95 | 2010-07-20 23:24:32 +0200 | [diff] [blame] | 15335 | wine_fn_config_test dlls/msvcp90/tests msvcp90_test |
Detlef Riekenberg | 1434ef4 | 2010-04-30 14:07:34 +0200 | [diff] [blame] | 15336 | wine_fn_config_dll msvcr100 enable_msvcr100 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15337 | wine_fn_config_dll msvcr70 enable_msvcr70 implib |
| 15338 | wine_fn_config_dll msvcr71 enable_msvcr71 implib |
Piotr Caban | c452249 | 2010-03-25 11:06:29 +0100 | [diff] [blame] | 15339 | wine_fn_config_dll msvcr80 enable_msvcr80 |
| 15340 | wine_fn_config_dll msvcr90 enable_msvcr90 |
Detlef Riekenberg | 73e669c | 2010-03-20 00:32:17 +0100 | [diff] [blame] | 15341 | wine_fn_config_test dlls/msvcr90/tests msvcr90_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15342 | wine_fn_config_dll msvcrt enable_msvcrt implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15343 | wine_fn_config_test dlls/msvcrt/tests msvcrt_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15344 | wine_fn_config_dll msvcrt20 enable_msvcrt20 implib |
| 15345 | wine_fn_config_dll msvcrt40 enable_msvcrt40 implib |
| 15346 | wine_fn_config_dll msvcrtd enable_msvcrtd implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15347 | wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15348 | wine_fn_config_dll msvfw32 enable_msvfw32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15349 | wine_fn_config_test dlls/msvfw32/tests msvfw32_test |
Alexandre Julliard | 958ecd6 | 2011-01-06 17:07:23 +0100 | [diff] [blame] | 15350 | wine_fn_config_dll msvidc32 enable_msvidc32 po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15351 | wine_fn_config_dll msvideo.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15352 | wine_fn_config_dll mswsock enable_mswsock implib |
Alexandre Julliard | 25ccc90 | 2010-12-21 12:03:14 +0100 | [diff] [blame] | 15353 | wine_fn_config_dll msxml enable_msxml |
Alexandre Julliard | 41d6a92 | 2010-12-21 13:27:20 +0100 | [diff] [blame] | 15354 | wine_fn_config_dll msxml2 enable_msxml2 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15355 | wine_fn_config_dll msxml3 enable_msxml3 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15356 | wine_fn_config_test dlls/msxml3/tests msxml3_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15357 | wine_fn_config_dll msxml4 enable_msxml4 |
Nikolay Sivov | 25bce45 | 2010-08-30 01:31:07 +0400 | [diff] [blame] | 15358 | wine_fn_config_dll msxml6 enable_msxml6 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15359 | wine_fn_config_dll nddeapi enable_nddeapi implib |
| 15360 | wine_fn_config_dll netapi32 enable_netapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15361 | wine_fn_config_test dlls/netapi32/tests netapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15362 | wine_fn_config_dll newdev enable_newdev implib |
Thomas Mullaly | 858ccff | 2011-01-02 17:13:43 -0500 | [diff] [blame] | 15363 | wine_fn_config_dll normaliz enable_normaliz implib |
Jacek Caban | 4a91265 | 2010-12-02 19:15:28 +0100 | [diff] [blame] | 15364 | wine_fn_config_dll npmshtml enable_npmshtml |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15365 | wine_fn_config_dll ntdll enable_ntdll implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15366 | wine_fn_config_test dlls/ntdll/tests ntdll_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15367 | wine_fn_config_dll ntdsapi enable_ntdsapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15368 | wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15369 | wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15370 | wine_fn_config_dll ntprint enable_ntprint |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15371 | wine_fn_config_test dlls/ntprint/tests ntprint_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15372 | wine_fn_config_dll objsel enable_objsel |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15373 | wine_fn_config_dll odbc32 enable_odbc32 implib |
| 15374 | wine_fn_config_dll odbccp32 enable_odbccp32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15375 | wine_fn_config_test dlls/odbccp32/tests odbccp32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15376 | wine_fn_config_dll ole2.dll16 enable_win16 |
| 15377 | wine_fn_config_dll ole2conv.dll16 enable_win16 |
| 15378 | wine_fn_config_dll ole2disp.dll16 enable_win16 |
| 15379 | wine_fn_config_dll ole2nls.dll16 enable_win16 |
| 15380 | wine_fn_config_dll ole2prox.dll16 enable_win16 |
| 15381 | wine_fn_config_dll ole2thk.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15382 | wine_fn_config_dll ole32 enable_ole32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15383 | wine_fn_config_test dlls/ole32/tests ole32_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15384 | wine_fn_config_dll oleacc enable_oleacc implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15385 | wine_fn_config_test dlls/oleacc/tests oleacc_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15386 | wine_fn_config_dll oleaut32 enable_oleaut32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15387 | wine_fn_config_test dlls/oleaut32/tests oleaut32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15388 | wine_fn_config_dll olecli.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15389 | wine_fn_config_dll olecli32 enable_olecli32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15390 | wine_fn_config_dll oledb32 enable_oledb32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15391 | wine_fn_config_test dlls/oledb32/tests oledb32_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15392 | wine_fn_config_dll oledlg enable_oledlg implib,po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15393 | wine_fn_config_dll olepro32 enable_olepro32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15394 | wine_fn_config_dll olesvr.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15395 | wine_fn_config_dll olesvr32 enable_olesvr32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15396 | wine_fn_config_dll olethk32 enable_olethk32 |
| 15397 | wine_fn_config_dll openal32 enable_openal32 |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 15398 | wine_fn_config_dll opencl enable_opencl |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15399 | wine_fn_config_dll opengl32 enable_opengl32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15400 | wine_fn_config_test dlls/opengl32/tests opengl32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15401 | wine_fn_config_dll pdh enable_pdh implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15402 | wine_fn_config_test dlls/pdh/tests pdh_test |
Austin English | e3fb078 | 2012-01-11 11:12:41 -0800 | [diff] [blame] | 15403 | wine_fn_config_dll photometadatahandler enable_photometadatahandler |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15404 | wine_fn_config_dll pidgen enable_pidgen |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15405 | wine_fn_config_dll powrprof enable_powrprof implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15406 | wine_fn_config_dll printui enable_printui |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15407 | wine_fn_config_dll propsys enable_propsys implib |
Andrew Nguyen | c20908b | 2010-07-25 21:57:59 -0500 | [diff] [blame] | 15408 | wine_fn_config_test dlls/propsys/tests propsys_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15409 | wine_fn_config_dll psapi enable_psapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15410 | wine_fn_config_test dlls/psapi/tests psapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15411 | wine_fn_config_dll pstorec enable_pstorec |
| 15412 | wine_fn_config_dll qcap enable_qcap |
| 15413 | wine_fn_config_dll qedit enable_qedit |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15414 | wine_fn_config_test dlls/qedit/tests qedit_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15415 | wine_fn_config_dll qmgr enable_qmgr |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15416 | wine_fn_config_test dlls/qmgr/tests qmgr_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15417 | wine_fn_config_dll qmgrprxy enable_qmgrprxy |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15418 | wine_fn_config_dll quartz enable_quartz implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15419 | wine_fn_config_test dlls/quartz/tests quartz_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15420 | wine_fn_config_dll query enable_query |
| 15421 | wine_fn_config_dll rasapi16.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15422 | wine_fn_config_dll rasapi32 enable_rasapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15423 | wine_fn_config_test dlls/rasapi32/tests rasapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15424 | wine_fn_config_dll rasdlg enable_rasdlg implib |
Austin English | d8d7780 | 2011-05-21 20:17:07 -0500 | [diff] [blame] | 15425 | wine_fn_config_dll regapi enable_regapi |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15426 | wine_fn_config_dll resutils enable_resutils implib |
| 15427 | wine_fn_config_dll riched20 enable_riched20 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15428 | wine_fn_config_test dlls/riched20/tests riched20_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15429 | wine_fn_config_dll riched32 enable_riched32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15430 | wine_fn_config_test dlls/riched32/tests riched32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15431 | wine_fn_config_dll rpcrt4 enable_rpcrt4 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15432 | wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15433 | wine_fn_config_dll rsabase enable_rsabase |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15434 | wine_fn_config_dll rsaenh enable_rsaenh implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15435 | wine_fn_config_test dlls/rsaenh/tests rsaenh_test |
Louis Lenders | 85b3f29 | 2010-08-27 11:45:11 +0200 | [diff] [blame] | 15436 | wine_fn_config_dll rstrtmgr enable_rstrtmgr |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15437 | wine_fn_config_dll rtutils enable_rtutils implib |
Louis Lenders | 1ae673f | 2010-05-11 22:59:22 +0200 | [diff] [blame] | 15438 | wine_fn_config_dll samlib enable_samlib |
Alexandre Julliard | 036fe88 | 2011-01-14 12:48:59 +0100 | [diff] [blame] | 15439 | wine_fn_config_dll sane.ds enable_sane_ds po |
Stefan Leichter | 81f3d68 | 2011-04-03 23:50:40 +0200 | [diff] [blame] | 15440 | wine_fn_config_dll scarddlg enable_scarddlg |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15441 | wine_fn_config_dll sccbase enable_sccbase |
| 15442 | wine_fn_config_dll schannel enable_schannel |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15443 | wine_fn_config_test dlls/schannel/tests schannel_test |
Hans Leidekker | 8e74ee5 | 2011-11-09 15:03:53 +0100 | [diff] [blame] | 15444 | wine_fn_config_dll scrrun enable_scrrun |
Alistair Leslie-Hughes | 1c62c9f | 2012-03-22 16:24:24 +1100 | [diff] [blame] | 15445 | wine_fn_config_test dlls/scrrun/tests scrrun_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15446 | wine_fn_config_dll secur32 enable_secur32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15447 | wine_fn_config_test dlls/secur32/tests secur32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15448 | wine_fn_config_dll security enable_security |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15449 | wine_fn_config_dll sensapi enable_sensapi implib |
Alexandre Julliard | c994db7 | 2011-11-30 17:51:45 +0100 | [diff] [blame] | 15450 | wine_fn_config_dll serialui enable_serialui implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15451 | wine_fn_config_test dlls/serialui/tests serialui_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15452 | wine_fn_config_dll setupapi enable_setupapi implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15453 | wine_fn_config_test dlls/setupapi/tests setupapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15454 | wine_fn_config_dll setupx.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15455 | wine_fn_config_dll sfc enable_sfc implib |
| 15456 | wine_fn_config_dll sfc_os enable_sfc_os implib |
Alexandre Julliard | b31d231 | 2011-01-06 17:42:05 +0100 | [diff] [blame] | 15457 | wine_fn_config_dll shdoclc enable_shdoclc po |
Jacek Caban | c685f8c | 2011-07-27 14:45:47 +0200 | [diff] [blame] | 15458 | wine_fn_config_dll shdocvw enable_shdocvw implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15459 | wine_fn_config_test dlls/shdocvw/tests shdocvw_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15460 | wine_fn_config_dll shell.dll16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15461 | wine_fn_config_dll shell32 enable_shell32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15462 | wine_fn_config_test dlls/shell32/tests shell32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15463 | wine_fn_config_dll shfolder enable_shfolder implib |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15464 | wine_fn_config_dll shlwapi enable_shlwapi implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15465 | wine_fn_config_test dlls/shlwapi/tests shlwapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15466 | wine_fn_config_dll slbcsp enable_slbcsp |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15467 | wine_fn_config_dll slc enable_slc implib |
| 15468 | wine_fn_config_dll snmpapi enable_snmpapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15469 | wine_fn_config_test dlls/snmpapi/tests snmpapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15470 | wine_fn_config_dll softpub enable_softpub |
| 15471 | wine_fn_config_dll sound.drv16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15472 | wine_fn_config_dll spoolss enable_spoolss implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15473 | wine_fn_config_test dlls/spoolss/tests spoolss_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15474 | wine_fn_config_dll stdole2.tlb enable_stdole2_tlb |
| 15475 | wine_fn_config_dll stdole32.tlb enable_stdole32_tlb |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15476 | wine_fn_config_dll sti enable_sti implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15477 | wine_fn_config_test dlls/sti/tests sti_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15478 | wine_fn_config_dll storage.dll16 enable_win16 |
| 15479 | wine_fn_config_dll stress.dll16 enable_win16 |
Aric Stewart | 9619210 | 2010-10-04 09:48:25 -0500 | [diff] [blame] | 15480 | wine_fn_config_lib strmbase |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15481 | wine_fn_config_lib strmiids |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15482 | wine_fn_config_dll svrapi enable_svrapi |
Hans Leidekker | 4569615 | 2012-03-28 15:33:44 +0200 | [diff] [blame] | 15483 | wine_fn_config_dll sxs enable_sxs implib |
| 15484 | wine_fn_config_test dlls/sxs/tests sxs_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15485 | wine_fn_config_dll system.drv16 enable_win16 |
| 15486 | wine_fn_config_dll t2embed enable_t2embed |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15487 | wine_fn_config_dll tapi32 enable_tapi32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15488 | wine_fn_config_dll toolhelp.dll16 enable_win16 |
| 15489 | wine_fn_config_dll traffic enable_traffic |
| 15490 | wine_fn_config_dll twain.dll16 enable_win16 |
| 15491 | wine_fn_config_dll twain_32 enable_twain_32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15492 | wine_fn_config_test dlls/twain_32/tests twain_32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15493 | wine_fn_config_dll typelib.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15494 | wine_fn_config_dll unicows enable_unicows implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15495 | wine_fn_config_dll updspapi enable_updspapi |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15496 | wine_fn_config_dll url enable_url implib |
| 15497 | wine_fn_config_dll urlmon enable_urlmon implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15498 | wine_fn_config_test dlls/urlmon/tests urlmon_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15499 | wine_fn_config_dll usbd.sys enable_usbd_sys implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15500 | wine_fn_config_dll user.exe16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15501 | wine_fn_config_dll user32 enable_user32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15502 | wine_fn_config_test dlls/user32/tests user32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15503 | wine_fn_config_dll userenv enable_userenv implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15504 | wine_fn_config_test dlls/userenv/tests userenv_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15505 | wine_fn_config_dll usp10 enable_usp10 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15506 | wine_fn_config_test dlls/usp10/tests usp10_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15507 | wine_fn_config_lib uuid |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15508 | wine_fn_config_dll uxtheme enable_uxtheme implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15509 | wine_fn_config_test dlls/uxtheme/tests uxtheme_test |
Jacek Caban | c35aa01 | 2011-06-21 16:14:04 +0200 | [diff] [blame] | 15510 | wine_fn_config_dll vbscript enable_vbscript |
Jacek Caban | 68c6f58 | 2011-07-19 13:46:50 +0200 | [diff] [blame] | 15511 | wine_fn_config_test dlls/vbscript/tests vbscript_test |
Austin English | dd2159c | 2011-04-08 18:03:47 +0000 | [diff] [blame] | 15512 | wine_fn_config_dll vcomp enable_vcomp |
André Hentschel | 4078b0f | 2012-03-18 19:29:23 +0100 | [diff] [blame] | 15513 | wine_fn_config_dll vcomp100 enable_vcomp100 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15514 | wine_fn_config_dll vdhcp.vxd enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15515 | wine_fn_config_dll vdmdbg enable_vdmdbg implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15516 | wine_fn_config_dll ver.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15517 | wine_fn_config_dll version enable_version implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15518 | wine_fn_config_test dlls/version/tests version_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15519 | wine_fn_config_dll vmm.vxd enable_win16 |
| 15520 | wine_fn_config_dll vnbt.vxd enable_win16 |
| 15521 | wine_fn_config_dll vnetbios.vxd enable_win16 |
| 15522 | wine_fn_config_dll vtdapi.vxd enable_win16 |
| 15523 | wine_fn_config_dll vwin32.vxd enable_win16 |
| 15524 | wine_fn_config_dll w32skrnl enable_win16 |
| 15525 | wine_fn_config_dll w32sys.dll16 enable_win16 |
| 15526 | wine_fn_config_dll wbemprox enable_wbemprox |
Hans Leidekker | 9614ddb | 2012-06-18 09:32:22 +0200 | [diff] [blame] | 15527 | wine_fn_config_test dlls/wbemprox/tests wbemprox_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15528 | wine_fn_config_dll wer enable_wer implib |
Detlef Riekenberg | d8a5bc9 | 2010-10-26 11:37:17 +0200 | [diff] [blame] | 15529 | wine_fn_config_test dlls/wer/tests wer_test |
Austin English | 9381e93 | 2012-03-04 16:08:21 -0800 | [diff] [blame] | 15530 | wine_fn_config_dll wevtapi enable_wevtapi |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15531 | wine_fn_config_dll wiaservc enable_wiaservc |
| 15532 | wine_fn_config_dll win32s16.dll16 enable_win16 |
| 15533 | wine_fn_config_dll win87em.dll16 enable_win16 |
| 15534 | wine_fn_config_dll winaspi.dll16 enable_win16 |
| 15535 | wine_fn_config_dll windebug.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15536 | wine_fn_config_dll windowscodecs enable_windowscodecs implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15537 | wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15538 | wine_fn_config_dll winealsa.drv enable_winealsa_drv |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15539 | wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15540 | wine_fn_config_lib winecrt0 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15541 | wine_fn_config_dll wined3d enable_wined3d implib |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 15542 | wine_fn_config_dll winegstreamer enable_winegstreamer |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15543 | wine_fn_config_dll winejoystick.drv enable_winejoystick_drv |
| 15544 | wine_fn_config_dll winemapi enable_winemapi |
| 15545 | wine_fn_config_dll winemp3.acm enable_winemp3_acm |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15546 | wine_fn_config_dll wineoss.drv enable_wineoss_drv |
Alexandre Julliard | 6b5cfe2c | 2011-11-17 22:44:29 +0100 | [diff] [blame] | 15547 | wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15548 | wine_fn_config_dll wineps16.drv16 enable_win16 |
Aric Stewart | eefe6f6 | 2010-12-03 07:33:08 -0600 | [diff] [blame] | 15549 | wine_fn_config_dll wineqtdecoder enable_wineqtdecoder |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15550 | wine_fn_config_dll winequartz.drv enable_winequartz_drv |
| 15551 | wine_fn_config_dll winex11.drv enable_winex11_drv |
| 15552 | wine_fn_config_dll wing.dll16 enable_win16 |
| 15553 | wine_fn_config_dll wing32 enable_wing32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15554 | wine_fn_config_dll winhttp enable_winhttp implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15555 | wine_fn_config_test dlls/winhttp/tests winhttp_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15556 | wine_fn_config_dll wininet enable_wininet implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15557 | wine_fn_config_test dlls/wininet/tests wininet_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15558 | wine_fn_config_dll winmm enable_winmm implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15559 | wine_fn_config_test dlls/winmm/tests winmm_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15560 | wine_fn_config_dll winnls.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15561 | wine_fn_config_dll winnls32 enable_winnls32 implib |
| 15562 | wine_fn_config_dll winscard enable_winscard implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15563 | wine_fn_config_dll winsock.dll16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15564 | wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15565 | wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test |
Austin English | 14067ac | 2011-05-21 20:14:37 -0500 | [diff] [blame] | 15566 | wine_fn_config_dll winsta enable_winsta |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15567 | wine_fn_config_dll wintab.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15568 | wine_fn_config_dll wintab32 enable_wintab32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15569 | wine_fn_config_test dlls/wintab32/tests wintab32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15570 | wine_fn_config_dll wintrust enable_wintrust implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15571 | wine_fn_config_test dlls/wintrust/tests wintrust_test |
Ričardas Barkauskas | 303079f | 2010-10-20 11:21:15 +0300 | [diff] [blame] | 15572 | wine_fn_config_dll wlanapi enable_wlanapi |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15573 | wine_fn_config_dll wldap32 enable_wldap32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15574 | wine_fn_config_test dlls/wldap32/tests wldap32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15575 | wine_fn_config_dll wmi enable_wmi |
| 15576 | wine_fn_config_dll wmiutils enable_wmiutils |
Austin English | d1cfbbb | 2012-05-03 12:41:30 -0500 | [diff] [blame] | 15577 | wine_fn_config_dll wmvcore enable_wmvcore |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15578 | wine_fn_config_dll wnaspi32 enable_wnaspi32 implib |
| 15579 | wine_fn_config_dll wow32 enable_win16 implib |
| 15580 | wine_fn_config_dll ws2_32 enable_ws2_32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15581 | wine_fn_config_test dlls/ws2_32/tests ws2_32_test |
Jacek Caban | 1c2f066 | 2011-08-03 13:22:54 +0200 | [diff] [blame] | 15582 | wine_fn_config_dll wshom.ocx enable_wshom_ocx |
Jacek Caban | 13fef51 | 2011-09-20 11:55:52 +0200 | [diff] [blame] | 15583 | wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test |
Stefan Leichter | 0c1bd48 | 2012-05-01 08:07:57 +0200 | [diff] [blame] | 15584 | wine_fn_config_dll wsnmp32 enable_wsnmp32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15585 | wine_fn_config_dll wsock32 enable_wsock32 implib |
| 15586 | wine_fn_config_dll wtsapi32 enable_wtsapi32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15587 | wine_fn_config_dll wuapi enable_wuapi |
| 15588 | wine_fn_config_dll wuaueng enable_wuaueng |
Louis Lenders | 934d676 | 2010-11-12 11:23:37 +0100 | [diff] [blame] | 15589 | wine_fn_config_dll xapofx1_1 enable_xapofx1_1 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15590 | wine_fn_config_dll xinput1_1 enable_xinput1_1 |
| 15591 | wine_fn_config_dll xinput1_2 enable_xinput1_2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15592 | wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15593 | wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15594 | wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0 |
| 15595 | wine_fn_config_dll xmllite enable_xmllite |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15596 | wine_fn_config_test dlls/xmllite/tests xmllite_test |
Hans Leidekker | 1edf2d4 | 2011-09-05 11:44:51 +0200 | [diff] [blame] | 15597 | wine_fn_config_dll xolehlp enable_xolehlp |
Austin English | 1c92d20 | 2012-01-11 11:13:08 -0800 | [diff] [blame] | 15598 | wine_fn_config_dll xpsprint enable_xpsprint |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 15599 | wine_fn_config_makefile documentation enable_documentation |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 15600 | wine_fn_config_makefile fonts enable_fonts install-lib |
| 15601 | wine_fn_config_makefile include enable_include install-dev |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 15602 | wine_fn_config_makefile libs/port enable_libs_port |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 15603 | wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 15604 | wine_fn_config_makefile libs/wpp enable_libs_wpp |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15605 | wine_fn_config_makefile loader enable_loader install-lib,manpage |
Hans Leidekker | ab789c6 | 2010-10-13 14:23:09 +0200 | [diff] [blame] | 15606 | wine_fn_config_program aspnet_regiis enable_aspnet_regiis install |
Christian Costa | 7b41ffb | 2011-09-06 09:35:02 +0200 | [diff] [blame] | 15607 | wine_fn_config_program attrib enable_attrib install,po |
Alexandre Julliard | 30bdbed | 2011-02-02 22:44:47 +0100 | [diff] [blame] | 15608 | wine_fn_config_program cabarc enable_cabarc install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15609 | wine_fn_config_program cacls enable_cacls install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15610 | wine_fn_config_program clock enable_clock install,po |
| 15611 | wine_fn_config_program cmd enable_cmd install,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15612 | wine_fn_config_test programs/cmd/tests cmd.exe_test |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15613 | wine_fn_config_program control enable_control install |
André Hentschel | 07ed25c | 2011-12-28 16:08:26 +0100 | [diff] [blame] | 15614 | wine_fn_config_program cscript enable_cscript install |
Andrew Nguyen | 4122cf2 | 2011-06-14 08:01:45 -0500 | [diff] [blame] | 15615 | wine_fn_config_program dxdiag enable_dxdiag install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15616 | wine_fn_config_program eject enable_eject install |
| 15617 | wine_fn_config_program expand enable_expand install |
Jay Yang | f2ac486 | 2011-06-11 17:42:17 -0400 | [diff] [blame] | 15618 | wine_fn_config_program explorer enable_explorer install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15619 | wine_fn_config_program extrac32 enable_extrac32 install |
| 15620 | wine_fn_config_program hh enable_hh install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15621 | wine_fn_config_program hostname enable_hostname install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15622 | wine_fn_config_program icinfo enable_icinfo install |
| 15623 | wine_fn_config_program iexplore enable_iexplore install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15624 | wine_fn_config_program ipconfig enable_ipconfig install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15625 | wine_fn_config_program lodctr enable_lodctr install |
Hans Leidekker | f15aea2 | 2010-09-29 09:57:34 +0200 | [diff] [blame] | 15626 | wine_fn_config_program mofcomp enable_mofcomp install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15627 | wine_fn_config_program mshta enable_mshta install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15628 | wine_fn_config_program msiexec enable_msiexec install,installbin,manpage |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15629 | wine_fn_config_program net enable_net install,po |
Hans Leidekker | 8ad7d2e | 2010-12-06 13:19:41 +0100 | [diff] [blame] | 15630 | wine_fn_config_program netsh enable_netsh install |
Vincent Povirk | 4d3e6f4 | 2010-04-02 10:19:18 -0500 | [diff] [blame] | 15631 | wine_fn_config_program ngen enable_ngen install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15632 | wine_fn_config_program notepad enable_notepad install,installbin,manpage,po |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15633 | wine_fn_config_program oleview enable_oleview install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15634 | wine_fn_config_program ping enable_ping install |
Hans Leidekker | 2133b6c | 2011-01-31 15:26:17 +0100 | [diff] [blame] | 15635 | wine_fn_config_program plugplay enable_plugplay install |
Hans Leidekker | 8959961 | 2011-08-24 10:23:57 +0200 | [diff] [blame] | 15636 | wine_fn_config_program presentationfontcache enable_presentationfontcache install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15637 | wine_fn_config_program progman enable_progman install,po |
| 15638 | wine_fn_config_program reg enable_reg install,po |
Hans Leidekker | 29a072e | 2011-09-05 11:44:17 +0200 | [diff] [blame] | 15639 | wine_fn_config_program regasm enable_regasm install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15640 | wine_fn_config_program regedit enable_regedit install,installbin,manpage,po |
Andrew Eikum | f3c6c62 | 2010-07-30 16:02:34 -0500 | [diff] [blame] | 15641 | wine_fn_config_test programs/regedit/tests regedit.exe_test |
Hans Leidekker | ab5fbeb | 2010-11-12 13:07:40 +0100 | [diff] [blame] | 15642 | wine_fn_config_program regsvcs enable_regsvcs install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15643 | wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15644 | wine_fn_config_program rpcss enable_rpcss install |
Detlef Riekenberg | df898ea | 2010-07-18 19:15:57 +0200 | [diff] [blame] | 15645 | wine_fn_config_program rundll.exe16 enable_win16 install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15646 | wine_fn_config_program rundll32 enable_rundll32 install |
Hans Leidekker | 544da28 | 2010-05-03 12:56:58 +0200 | [diff] [blame] | 15647 | wine_fn_config_program sc enable_sc install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15648 | wine_fn_config_program secedit enable_secedit install |
Hans Leidekker | 1885c3d | 2010-11-18 12:09:11 +0100 | [diff] [blame] | 15649 | wine_fn_config_program servicemodelreg enable_servicemodelreg install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15650 | wine_fn_config_program services enable_services install |
Jacek Caban | d0244d7 | 2012-06-15 15:35:19 +0200 | [diff] [blame] | 15651 | wine_fn_config_test programs/services/tests services.exe_test |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15652 | wine_fn_config_program spoolsv enable_spoolsv install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15653 | wine_fn_config_program start enable_start install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15654 | wine_fn_config_program svchost enable_svchost install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15655 | wine_fn_config_program taskkill enable_taskkill install,po |
| 15656 | wine_fn_config_program taskmgr enable_taskmgr install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15657 | wine_fn_config_program termsv enable_termsv install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15658 | wine_fn_config_program uninstaller enable_uninstaller install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15659 | wine_fn_config_program unlodctr enable_unlodctr install |
André Hentschel | 31f0f09 | 2011-09-01 21:04:14 +0200 | [diff] [blame] | 15660 | wine_fn_config_program view enable_view install,po |
Alexandre Julliard | 393a125 | 2011-10-31 13:29:58 +0100 | [diff] [blame] | 15661 | wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15662 | wine_fn_config_program winebrowser enable_winebrowser install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15663 | wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po |
| 15664 | wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po |
| 15665 | wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15666 | wine_fn_config_program winedevice enable_winedevice install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15667 | wine_fn_config_program winefile enable_winefile install,installbin,manpage,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15668 | wine_fn_config_program winemenubuilder enable_winemenubuilder install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15669 | wine_fn_config_program winemine enable_winemine install,installbin,manpage,po |
Hans Leidekker | 1370072 | 2011-02-01 14:01:42 +0100 | [diff] [blame] | 15670 | wine_fn_config_program winemsibuilder enable_winemsibuilder install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15671 | wine_fn_config_program winepath enable_winepath install,installbin,manpage |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15672 | wine_fn_config_program winetest enable_winetest |
| 15673 | wine_fn_config_program winevdm enable_win16 install |
| 15674 | wine_fn_config_program winhelp.exe16 enable_win16 install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15675 | wine_fn_config_program winhlp32 enable_winhlp32 install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15676 | wine_fn_config_program winoldap.mod16 enable_win16 install |
| 15677 | wine_fn_config_program winver enable_winver install |
Hans Leidekker | ae9697f | 2012-06-19 10:19:59 +0200 | [diff] [blame] | 15678 | wine_fn_config_program wmic enable_wmic install,po |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15679 | wine_fn_config_program wordpad enable_wordpad install,po |
| 15680 | wine_fn_config_program write enable_write install,po |
Jacek Caban | 16bad58 | 2010-07-27 15:51:18 +0200 | [diff] [blame] | 15681 | wine_fn_config_program wscript enable_wscript install |
Jacek Caban | f5eb15a | 2011-02-22 19:48:37 +0100 | [diff] [blame] | 15682 | wine_fn_config_test programs/wscript/tests wscript.exe_test |
Austin English | bec293f | 2012-03-04 14:34:36 -0800 | [diff] [blame] | 15683 | wine_fn_config_program wusa enable_wusa install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15684 | wine_fn_config_program xcopy enable_xcopy install,po |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15685 | wine_fn_config_makefile server enable_server install-lib,manpage |
| 15686 | wine_fn_config_tool tools install-dev,install-lib,manpage |
| 15687 | wine_fn_config_tool tools/widl install-dev,manpage |
| 15688 | wine_fn_config_tool tools/winebuild install-dev,manpage |
| 15689 | wine_fn_config_tool tools/winedump install-dev,manpage |
| 15690 | wine_fn_config_tool tools/winegcc install-dev,manpage |
| 15691 | wine_fn_config_tool tools/wmc install-dev,manpage |
| 15692 | wine_fn_config_tool tools/wrc install-dev,manpage |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 15693 | |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15694 | LINGUAS="\ |
Alexandre Julliard | ff71d91 | 2011-01-08 12:53:31 +0100 | [diff] [blame] | 15695 | ar \ |
Alexandre Julliard | 4bca334 | 2011-01-04 19:38:45 +0100 | [diff] [blame] | 15696 | bg \ |
Alexandre Julliard | 39558f8 | 2011-01-13 17:24:15 +0100 | [diff] [blame] | 15697 | ca \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15698 | cs \ |
| 15699 | da \ |
| 15700 | de \ |
Alexandre Julliard | c9b52d2 | 2011-01-06 13:19:58 +0100 | [diff] [blame] | 15701 | el \ |
| 15702 | en \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15703 | en_US \ |
| 15704 | eo \ |
| 15705 | es \ |
Alexandre Julliard | ff71d91 | 2011-01-08 12:53:31 +0100 | [diff] [blame] | 15706 | fa \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15707 | fi \ |
| 15708 | fr \ |
| 15709 | he \ |
| 15710 | hi \ |
| 15711 | hu \ |
| 15712 | it \ |
| 15713 | ja \ |
| 15714 | ko \ |
| 15715 | lt \ |
| 15716 | ml \ |
| 15717 | nb_NO \ |
| 15718 | nl \ |
| 15719 | or \ |
| 15720 | pa \ |
| 15721 | pl \ |
| 15722 | pt_BR \ |
| 15723 | pt_PT \ |
Alexandre Julliard | 433e240 | 2011-01-10 20:30:14 +0100 | [diff] [blame] | 15724 | rm \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15725 | ro \ |
| 15726 | ru \ |
| 15727 | sk \ |
| 15728 | sl \ |
Alexandre Julliard | c0b813f | 2011-01-07 12:11:41 +0100 | [diff] [blame] | 15729 | sr_RS@cyrillic \ |
| 15730 | sr_RS@latin \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15731 | sv \ |
| 15732 | te \ |
| 15733 | th \ |
| 15734 | tr \ |
| 15735 | uk \ |
| 15736 | wa \ |
| 15737 | zh_CN \ |
| 15738 | zh_TW" |
| 15739 | |
| 15740 | |
| 15741 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 15742 | ac_config_commands="$ac_config_commands Makefile" |
| 15743 | |
| 15744 | |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 15745 | 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] | 15746 | |
| 15747 | |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15748 | |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15749 | if test "x$enable_maintainer_mode" = xyes |
| 15750 | then |
| 15751 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4 |
| 15752 | cd \$(srcdir) && autoconf --warnings=all |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15753 | \$(srcdir)/include/config.h.in: include/stamp-h.in |
| 15754 | \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4 |
| 15755 | cd \$(srcdir) && autoheader --warnings=all |
Alexandre Julliard | 9159cfe | 2011-10-22 20:46:36 +0200 | [diff] [blame] | 15756 | @echo timestamp > \$@" |
| 15757 | fi |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 15758 | |
Alexandre Julliard | 9159cfe | 2011-10-22 20:46:36 +0200 | [diff] [blame] | 15759 | if test "x$with_gettextpo" = xyes |
| 15760 | then |
| 15761 | test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5 |
| 15762 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES |
| 15763 | \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot |
Jaka Kranjc | 08e7491 | 2012-02-21 22:51:28 +0100 | [diff] [blame] | 15764 | msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@ |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 15765 | \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES) |
| 15766 | msgcat -o \$@ \$(ALL_POT_FILES)" |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15767 | fi |
| 15768 | |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 15769 | if test "$MSGFMT" != false |
| 15770 | then |
Alexandre Julliard | f4ec097 | 2011-10-22 18:21:04 +0200 | [diff] [blame] | 15771 | PORCFLAGS="--po-dir=\$(top_builddir)/po" |
| 15772 | |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 15773 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)" |
Alexandre Julliard | f4ec097 | 2011-10-22 18:21:04 +0200 | [diff] [blame] | 15774 | else |
| 15775 | LINGUAS= |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 15776 | fi |
| 15777 | |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 15778 | if test "x$enable_tools" != xno |
| 15779 | then |
| 15780 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile |
| 15781 | clean:: __clean__ |
| 15782 | \$(RM) tools/makedep\$(EXEEXT)" |
| 15783 | fi |
| 15784 | |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15785 | if test -n "$with_wine64" |
| 15786 | then |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 15787 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader |
| 15788 | fonts server tools: |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15789 | \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@ |
Alexandre Julliard | f3831cf | 2010-05-16 17:01:52 +0200 | [diff] [blame] | 15790 | $with_wine64/loader/wine: |
| 15791 | \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@ |
Alexandre Julliard | 3c42b62 | 2010-12-27 14:37:57 +0100 | [diff] [blame] | 15792 | $with_wine64/loader/wine-preloader: |
| 15793 | \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@ |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15794 | clean:: |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 15795 | \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader" |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15796 | fi |
| 15797 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15798 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15799 | # This file is a shell script that caches the results of configure |
| 15800 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15801 | # scripts and configure runs, see configure's option --config-cache. |
| 15802 | # It is not useful on other systems. If it contains results you don't |
| 15803 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15804 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15805 | # config.status only pays attention to the cache file if you give it |
| 15806 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15807 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15808 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15809 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15810 | # following values. |
| 15811 | |
| 15812 | _ACEOF |
| 15813 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 15814 | # The following way of writing the cache mishandles newlines in values, |
| 15815 | # but we know of no workaround that is simple, portable, and efficient. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15816 | # So, we kill variables containing newlines. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15817 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15818 | # 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] | 15819 | ( |
| 15820 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15821 | eval ac_val=\$$ac_var |
| 15822 | case $ac_val in #( |
| 15823 | *${as_nl}*) |
| 15824 | case $ac_var in #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15825 | *_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] | 15826 | $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] | 15827 | esac |
| 15828 | case $ac_var in #( |
| 15829 | _ | IFS | as_nl) ;; #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15830 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15831 | *) { eval $ac_var=; unset $ac_var;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15832 | esac ;; |
| 15833 | esac |
| 15834 | done |
| 15835 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15836 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15837 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15838 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15839 | # `set' does not quote correctly, so add quotes: double-quote |
| 15840 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15841 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15842 | "s/'/'\\\\''/g; |
| 15843 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15844 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15845 | *) |
| 15846 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15847 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15848 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15849 | esac | |
| 15850 | sort |
| 15851 | ) | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15852 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15853 | /^ac_cv_env_/b end |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15854 | t clear |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15855 | :clear |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15856 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15857 | t end |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15858 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15859 | :end' >>confcache |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15860 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15861 | if test -w "$cache_file"; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 15862 | if test "x$cache_file" != "x/dev/null"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15863 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15864 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 15865 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 15866 | cat confcache >"$cache_file" |
| 15867 | else |
| 15868 | case $cache_file in #( |
| 15869 | */* | ?:*) |
| 15870 | mv -f confcache "$cache_file"$$ && |
| 15871 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 15872 | *) |
| 15873 | mv -f confcache "$cache_file" ;; |
| 15874 | esac |
| 15875 | fi |
| 15876 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15877 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15878 | { $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] | 15879 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15880 | fi |
| 15881 | fi |
| 15882 | rm -f confcache |
| 15883 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15884 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15885 | # Let make expand exec_prefix. |
| 15886 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15887 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15888 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15889 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15890 | ac_libobjs= |
| 15891 | ac_ltlibobjs= |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15892 | U= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15893 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15894 | # 1. Remove the extension, and $U if already installed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15895 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15896 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15897 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15898 | # will be set to the directory where LIBOBJS objects are built. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15899 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15900 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15901 | done |
| 15902 | LIBOBJS=$ac_libobjs |
| 15903 | |
| 15904 | LTLIBOBJS=$ac_ltlibobjs |
| 15905 | |
| 15906 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15907 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 15908 | : "${CONFIG_STATUS=./config.status}" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15909 | ac_write_fail=0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15910 | ac_clean_files_save=$ac_clean_files |
| 15911 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15912 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15913 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15914 | as_write_fail=0 |
| 15915 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15916 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15917 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15918 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15919 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15920 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15921 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15922 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15923 | ac_cs_recheck=false |
| 15924 | ac_cs_silent=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15925 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15926 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15927 | export SHELL |
| 15928 | _ASEOF |
| 15929 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 15930 | ## -------------------- ## |
| 15931 | ## M4sh Initialization. ## |
| 15932 | ## -------------------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15933 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15934 | # Be more Bourne compatible |
| 15935 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15936 | 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] | 15937 | emulate sh |
| 15938 | NULLCMD=: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15939 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15940 | # is contrary to our usage. Disable this feature. |
| 15941 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15942 | setopt NO_GLOB_SUBST |
| 15943 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15944 | case `(set -o) 2>/dev/null` in #( |
| 15945 | *posix*) : |
| 15946 | set -o posix ;; #( |
| 15947 | *) : |
| 15948 | ;; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15949 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 15950 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15951 | |
| 15952 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15953 | as_nl=' |
| 15954 | ' |
| 15955 | export as_nl |
| 15956 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 15957 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 15958 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15959 | 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] | 15960 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 15961 | # but without wasting forks for bash or zsh. |
| 15962 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 15963 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15964 | as_echo='print -r --' |
| 15965 | as_echo_n='print -rn --' |
| 15966 | 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] | 15967 | as_echo='printf %s\n' |
| 15968 | as_echo_n='printf %s' |
| 15969 | else |
| 15970 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 15971 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 15972 | as_echo_n='/usr/ucb/echo -n' |
| 15973 | else |
| 15974 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 15975 | as_echo_n_body='eval |
| 15976 | arg=$1; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15977 | case $arg in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15978 | *"$as_nl"*) |
| 15979 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 15980 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 15981 | esac; |
| 15982 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 15983 | ' |
| 15984 | export as_echo_n_body |
| 15985 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 15986 | fi |
| 15987 | export as_echo_body |
| 15988 | as_echo='sh -c $as_echo_body as_echo' |
| 15989 | fi |
| 15990 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15991 | # The user is always right. |
| 15992 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15993 | PATH_SEPARATOR=: |
| 15994 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 15995 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 15996 | PATH_SEPARATOR=';' |
| 15997 | } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15998 | fi |
| 15999 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16000 | |
| 16001 | # IFS |
| 16002 | # We need space, tab and new line, in precisely that order. Quoting is |
| 16003 | # there to prevent editors from complaining about space-tab. |
| 16004 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 16005 | # splitting by setting IFS to empty value.) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16006 | IFS=" "" $as_nl" |
| 16007 | |
| 16008 | # Find who we are. Look in the path if we contain no directory separator. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16009 | as_myself= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16010 | case $0 in #(( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16011 | *[\\/]* ) as_myself=$0 ;; |
| 16012 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16013 | for as_dir in $PATH |
| 16014 | do |
| 16015 | IFS=$as_save_IFS |
| 16016 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16017 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16018 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16019 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16020 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16021 | ;; |
| 16022 | esac |
| 16023 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16024 | # in which case we are not to be found in the path. |
| 16025 | if test "x$as_myself" = x; then |
| 16026 | as_myself=$0 |
| 16027 | fi |
| 16028 | if test ! -f "$as_myself"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16029 | $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] | 16030 | exit 1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16031 | fi |
| 16032 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16033 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 16034 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 16035 | # suppresses any "Segmentation fault" message there. '((' could |
| 16036 | # trigger a bug in pdksh 5.2.14. |
| 16037 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 16038 | do eval test x\${$as_var+set} = xset \ |
| 16039 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16040 | done |
| 16041 | PS1='$ ' |
| 16042 | PS2='> ' |
| 16043 | PS4='+ ' |
| 16044 | |
| 16045 | # NLS nuisances. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16046 | LC_ALL=C |
| 16047 | export LC_ALL |
| 16048 | LANGUAGE=C |
| 16049 | export LANGUAGE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16050 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16051 | # CDPATH. |
| 16052 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 16053 | |
| 16054 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16055 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 16056 | # ---------------------------------------- |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16057 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 16058 | # 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] | 16059 | # script with STATUS, using 1 if that was 0. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16060 | as_fn_error () |
| 16061 | { |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16062 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 16063 | if test "$4"; then |
| 16064 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 16065 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16066 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16067 | $as_echo "$as_me: error: $2" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16068 | as_fn_exit $as_status |
| 16069 | } # as_fn_error |
| 16070 | |
| 16071 | |
| 16072 | # as_fn_set_status STATUS |
| 16073 | # ----------------------- |
| 16074 | # Set $? to STATUS, without forking. |
| 16075 | as_fn_set_status () |
| 16076 | { |
| 16077 | return $1 |
| 16078 | } # as_fn_set_status |
| 16079 | |
| 16080 | # as_fn_exit STATUS |
| 16081 | # ----------------- |
| 16082 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 16083 | as_fn_exit () |
| 16084 | { |
| 16085 | set +e |
| 16086 | as_fn_set_status $1 |
| 16087 | exit $1 |
| 16088 | } # as_fn_exit |
| 16089 | |
| 16090 | # as_fn_unset VAR |
| 16091 | # --------------- |
| 16092 | # Portably unset VAR. |
| 16093 | as_fn_unset () |
| 16094 | { |
| 16095 | { eval $1=; unset $1;} |
| 16096 | } |
| 16097 | as_unset=as_fn_unset |
| 16098 | # as_fn_append VAR VALUE |
| 16099 | # ---------------------- |
| 16100 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 16101 | # advantage of any shell optimizations that allow amortized linear growth over |
| 16102 | # repeated appends, instead of the typical quadratic growth present in naive |
| 16103 | # implementations. |
| 16104 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 16105 | eval 'as_fn_append () |
| 16106 | { |
| 16107 | eval $1+=\$2 |
| 16108 | }' |
| 16109 | else |
| 16110 | as_fn_append () |
| 16111 | { |
| 16112 | eval $1=\$$1\$2 |
| 16113 | } |
| 16114 | fi # as_fn_append |
| 16115 | |
| 16116 | # as_fn_arith ARG... |
| 16117 | # ------------------ |
| 16118 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 16119 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 16120 | # must be portable across $(()) and expr. |
| 16121 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 16122 | eval 'as_fn_arith () |
| 16123 | { |
| 16124 | as_val=$(( $* )) |
| 16125 | }' |
| 16126 | else |
| 16127 | as_fn_arith () |
| 16128 | { |
| 16129 | as_val=`expr "$@" || test $? -eq 1` |
| 16130 | } |
| 16131 | fi # as_fn_arith |
| 16132 | |
| 16133 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16134 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16135 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 16136 | as_expr=expr |
| 16137 | else |
| 16138 | as_expr=false |
| 16139 | fi |
| 16140 | |
| 16141 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 16142 | as_basename=basename |
| 16143 | else |
| 16144 | as_basename=false |
| 16145 | fi |
| 16146 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16147 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 16148 | as_dirname=dirname |
| 16149 | else |
| 16150 | as_dirname=false |
| 16151 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16152 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16153 | as_me=`$as_basename -- "$0" || |
| 16154 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16155 | X"$0" : 'X\(//\)$' \| \ |
| 16156 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16157 | $as_echo X/"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16158 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 16159 | s//\1/ |
| 16160 | q |
| 16161 | } |
| 16162 | /^X\/\(\/\/\)$/{ |
| 16163 | s//\1/ |
| 16164 | q |
| 16165 | } |
| 16166 | /^X\/\(\/\).*/{ |
| 16167 | s//\1/ |
| 16168 | q |
| 16169 | } |
| 16170 | s/.*/./; q'` |
| 16171 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16172 | # Avoid depending upon Character Ranges. |
| 16173 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16174 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16175 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16176 | as_cr_digits='0123456789' |
| 16177 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16178 | |
| 16179 | ECHO_C= ECHO_N= ECHO_T= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16180 | case `echo -n x` in #((((( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16181 | -n*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16182 | case `echo 'xy\c'` in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16183 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16184 | xy) ECHO_C='\c';; |
| 16185 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 16186 | ECHO_T=' ';; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16187 | esac;; |
| 16188 | *) |
| 16189 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16190 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16191 | |
| 16192 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16193 | if test -d conf$$.dir; then |
| 16194 | rm -f conf$$.dir/conf$$.file |
| 16195 | else |
| 16196 | rm -f conf$$.dir |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16197 | mkdir conf$$.dir 2>/dev/null |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16198 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16199 | if (echo >conf$$.file) 2>/dev/null; then |
| 16200 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16201 | as_ln_s='ln -s' |
| 16202 | # ... but there are two gotchas: |
| 16203 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 16204 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 16205 | # In both cases, we have to default to `cp -pR'. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16206 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 16207 | as_ln_s='cp -pR' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16208 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16209 | as_ln_s=ln |
| 16210 | else |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 16211 | as_ln_s='cp -pR' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16212 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16213 | else |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 16214 | as_ln_s='cp -pR' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16215 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16216 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 16217 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16218 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16219 | |
| 16220 | # as_fn_mkdir_p |
| 16221 | # ------------- |
| 16222 | # Create "$as_dir" as a directory, including parents if necessary. |
| 16223 | as_fn_mkdir_p () |
| 16224 | { |
| 16225 | |
| 16226 | case $as_dir in #( |
| 16227 | -*) as_dir=./$as_dir;; |
| 16228 | esac |
| 16229 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 16230 | as_dirs= |
| 16231 | while :; do |
| 16232 | case $as_dir in #( |
| 16233 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 16234 | *) as_qdir=$as_dir;; |
| 16235 | esac |
| 16236 | as_dirs="'$as_qdir' $as_dirs" |
| 16237 | as_dir=`$as_dirname -- "$as_dir" || |
| 16238 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16239 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16240 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16241 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 16242 | $as_echo X"$as_dir" | |
| 16243 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16244 | s//\1/ |
| 16245 | q |
| 16246 | } |
| 16247 | /^X\(\/\/\)[^/].*/{ |
| 16248 | s//\1/ |
| 16249 | q |
| 16250 | } |
| 16251 | /^X\(\/\/\)$/{ |
| 16252 | s//\1/ |
| 16253 | q |
| 16254 | } |
| 16255 | /^X\(\/\).*/{ |
| 16256 | s//\1/ |
| 16257 | q |
| 16258 | } |
| 16259 | s/.*/./; q'` |
| 16260 | test -d "$as_dir" && break |
| 16261 | done |
| 16262 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16263 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16264 | |
| 16265 | |
| 16266 | } # as_fn_mkdir_p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16267 | if mkdir -p . 2>/dev/null; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16268 | as_mkdir_p='mkdir -p "$as_dir"' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16269 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16270 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16271 | as_mkdir_p=false |
| 16272 | fi |
| 16273 | |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 16274 | |
| 16275 | # as_fn_executable_p FILE |
| 16276 | # ----------------------- |
| 16277 | # Test if FILE is an executable regular file. |
| 16278 | as_fn_executable_p () |
| 16279 | { |
| 16280 | test -f "$1" && test -x "$1" |
| 16281 | } # as_fn_executable_p |
| 16282 | as_test_x='test -x' |
| 16283 | as_executable_p=as_fn_executable_p |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16284 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16285 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16286 | 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] | 16287 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16288 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16289 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16290 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16291 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16292 | exec 6>&1 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16293 | ## ----------------------------------- ## |
| 16294 | ## Main body of $CONFIG_STATUS script. ## |
| 16295 | ## ----------------------------------- ## |
| 16296 | _ASEOF |
| 16297 | 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] | 16298 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16299 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16300 | # 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] | 16301 | # report actual input values of CONFIG_FILES etc. instead of their |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16302 | # values after options handling. |
| 16303 | ac_log=" |
Alexandre Julliard | d35cb81 | 2012-06-22 20:16:32 +0200 | [diff] [blame] | 16304 | This file was extended by Wine $as_me 1.5.7, which was |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 16305 | generated by GNU Autoconf 2.69. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16306 | |
| 16307 | CONFIG_FILES = $CONFIG_FILES |
| 16308 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16309 | CONFIG_LINKS = $CONFIG_LINKS |
| 16310 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16311 | $ $0 $@ |
| 16312 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16313 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 16314 | " |
| 16315 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16316 | _ACEOF |
| 16317 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16318 | case $ac_config_files in *" |
| 16319 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 16320 | esac |
| 16321 | |
| 16322 | case $ac_config_headers in *" |
| 16323 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 16324 | esac |
| 16325 | |
| 16326 | |
| 16327 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16328 | # Files that config.status was made for. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16329 | config_files="$ac_config_files" |
| 16330 | config_headers="$ac_config_headers" |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16331 | config_links="$ac_config_links" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16332 | config_commands="$ac_config_commands" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16333 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16334 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16335 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16336 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16337 | ac_cs_usage="\ |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16338 | \`$as_me' instantiates files and other configuration actions |
| 16339 | from templates according to the current configuration. Unless the files |
| 16340 | and actions are specified as TAGs, all are instantiated by default. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16341 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16342 | Usage: $0 [OPTION]... [TAG]... |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16343 | |
| 16344 | -h, --help print this help, then exit |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 16345 | -V, --version print version number and configuration settings, then exit |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16346 | --config print configuration, then exit |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16347 | -q, --quiet, --silent |
| 16348 | do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16349 | -d, --debug don't remove temporary files |
| 16350 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16351 | --file=FILE[:TEMPLATE] |
| 16352 | instantiate the configuration file FILE |
| 16353 | --header=FILE[:TEMPLATE] |
| 16354 | instantiate the configuration header FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16355 | |
| 16356 | Configuration files: |
| 16357 | $config_files |
| 16358 | |
| 16359 | Configuration headers: |
| 16360 | $config_headers |
| 16361 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16362 | Configuration links: |
| 16363 | $config_links |
| 16364 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16365 | Configuration commands: |
| 16366 | $config_commands |
| 16367 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16368 | Report bugs to <wine-devel@winehq.org>. |
| 16369 | Wine home page: <http://www.winehq.org>." |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 16370 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16371 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16372 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16373 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16374 | ac_cs_version="\\ |
Alexandre Julliard | d35cb81 | 2012-06-22 20:16:32 +0200 | [diff] [blame] | 16375 | Wine config.status 1.5.7 |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 16376 | configured by $0, generated by GNU Autoconf 2.69, |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16377 | with options \\"\$ac_cs_config\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16378 | |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 16379 | Copyright (C) 2012 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16380 | This config.status script is free software; the Free Software Foundation |
| 16381 | gives unlimited permission to copy, distribute and modify it." |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16382 | |
| 16383 | ac_pwd='$ac_pwd' |
| 16384 | srcdir='$srcdir' |
| 16385 | INSTALL='$INSTALL' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16386 | test -n "\$AWK" || AWK=awk |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16387 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [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 | # The default lists apply if the user does not specify any file. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16391 | ac_need_defaults=: |
| 16392 | while test $# != 0 |
| 16393 | do |
| 16394 | case $1 in |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16395 | --*=?*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16396 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16397 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16398 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16399 | ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16400 | --*=) |
| 16401 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16402 | ac_optarg= |
| 16403 | ac_shift=: |
| 16404 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16405 | *) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16406 | ac_option=$1 |
| 16407 | ac_optarg=$2 |
| 16408 | ac_shift=shift |
| 16409 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16410 | esac |
| 16411 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16412 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16413 | # Handling of the options. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16414 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16415 | ac_cs_recheck=: ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16416 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16417 | $as_echo "$ac_cs_version"; exit ;; |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16418 | --config | --confi | --conf | --con | --co | --c ) |
| 16419 | $as_echo "$ac_cs_config"; exit ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16420 | --debug | --debu | --deb | --de | --d | -d ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16421 | debug=: ;; |
| 16422 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16423 | $ac_shift |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16424 | case $ac_optarg in |
| 16425 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16426 | '') as_fn_error $? "missing file argument" ;; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16427 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16428 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16429 | ac_need_defaults=false;; |
| 16430 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16431 | $ac_shift |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16432 | case $ac_optarg in |
| 16433 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 16434 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16435 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16436 | ac_need_defaults=false;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16437 | --he | --h) |
| 16438 | # Conflict between --help and --header |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16439 | as_fn_error $? "ambiguous option: \`$1' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16440 | Try \`$0 --help' for more information.";; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16441 | --help | --hel | -h ) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16442 | $as_echo "$ac_cs_usage"; exit ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16443 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16444 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16445 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16446 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16447 | # This is an error. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16448 | -*) as_fn_error $? "unrecognized option: \`$1' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16449 | Try \`$0 --help' for more information." ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16450 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16451 | *) as_fn_append ac_config_targets " $1" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16452 | ac_need_defaults=false ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16453 | |
| 16454 | esac |
| 16455 | shift |
| 16456 | done |
| 16457 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16458 | ac_configure_extra_args= |
| 16459 | |
| 16460 | if $ac_cs_silent; then |
| 16461 | exec 6>/dev/null |
| 16462 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16463 | fi |
| 16464 | |
| 16465 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16466 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16467 | if \$ac_cs_recheck; then |
André Hentschel | cecf105 | 2012-06-02 18:58:39 +0200 | [diff] [blame] | 16468 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16469 | shift |
| 16470 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 16471 | CONFIG_SHELL='$SHELL' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16472 | export CONFIG_SHELL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16473 | exec "\$@" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16474 | fi |
| 16475 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16476 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16477 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16478 | exec 5>>config.log |
| 16479 | { |
| 16480 | echo |
| 16481 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16482 | ## Running $as_me. ## |
| 16483 | _ASBOX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16484 | $as_echo "$ac_log" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16485 | } >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16486 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16487 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16488 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16489 | # |
| 16490 | # INIT-COMMANDS |
| 16491 | # |
| 16492 | wine_fn_output_makefile () |
| 16493 | { |
| 16494 | cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return |
| 16495 | $ALL_MAKEFILE_DEPENDS |
| 16496 | _WINE_EOF |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16497 | as_fn_error $? "could not create Makefile" "$LINENO" 5 |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16498 | } |
| 16499 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16500 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16501 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16502 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16503 | |
| 16504 | # Handling of arguments. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16505 | for ac_config_target in $ac_config_targets |
| 16506 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16507 | case $ac_config_target in |
| 16508 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | c4704c2 | 2006-09-22 09:33:00 +0200 | [diff] [blame] | 16509 | "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;; |
Alexandre Julliard | 40977bf | 2010-11-11 12:24:46 +0100 | [diff] [blame] | 16510 | "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;; |
Alexandre Julliard | a632052 | 2010-02-03 13:14:03 +0100 | [diff] [blame] | 16511 | "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] | 16512 | "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;; |
| 16513 | "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;; |
| 16514 | "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;; |
| 16515 | "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;; |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 16516 | "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;; |
Alexandre Julliard | 321d388 | 2010-05-06 20:51:53 +0200 | [diff] [blame] | 16517 | "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] | 16518 | "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;; |
Alexandre Julliard | 4422d22 | 2011-05-10 13:26:28 +0200 | [diff] [blame] | 16519 | "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;; |
Huw Davies | 4cffb2d | 2011-04-01 15:27:48 +0100 | [diff] [blame] | 16520 | "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;; |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 16521 | "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;; |
| 16522 | "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;; |
Alexandre Julliard | 1c60e3b | 2006-09-12 16:10:51 +0200 | [diff] [blame] | 16523 | "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;; |
Alexandre Julliard | b8a2e3b | 2006-11-16 14:49:25 +0100 | [diff] [blame] | 16524 | "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16525 | "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;; |
| 16526 | "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
| 16527 | "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 16528 | "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16529 | "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
| 16530 | "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16531 | "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16532 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 16533 | "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] | 16534 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16535 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16536 | esac |
| 16537 | done |
| 16538 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16539 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16540 | # If the user did not use the arguments to specify the items to instantiate, |
| 16541 | # then the envvar interface is used. Set only those that are not. |
| 16542 | # We use the long form for the default assignment because of an extremely |
| 16543 | # bizarre bug on SunOS 4.1.3. |
| 16544 | if $ac_need_defaults; then |
| 16545 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16546 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16547 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16548 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 16549 | fi |
| 16550 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16551 | # Have a temporary directory for convenience. Make it in the build tree |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16552 | # 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] | 16553 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16554 | # Hook for its removal unless debugging. |
| 16555 | # Note that there is a small window in which the directory will not be cleaned: |
| 16556 | # after its creation but before its name has been assigned to `$tmp'. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16557 | $debug || |
| 16558 | { |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16559 | tmp= ac_tmp= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16560 | trap 'exit_status=$? |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16561 | : "${ac_tmp:=$tmp}" |
| 16562 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16563 | ' 0 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16564 | trap 'as_fn_exit 1' 1 2 13 15 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16565 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16566 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16567 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16568 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16569 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16570 | test -d "$tmp" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16571 | } || |
| 16572 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16573 | tmp=./conf$$-$RANDOM |
| 16574 | (umask 077 && mkdir "$tmp") |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16575 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16576 | ac_tmp=$tmp |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16577 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16578 | # Set up the scripts for CONFIG_FILES section. |
| 16579 | # No need to generate them if there are no CONFIG_FILES. |
| 16580 | # This happens for instance with `./config.status config.h'. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16581 | if test -n "$CONFIG_FILES"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16582 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16583 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 16584 | ac_cs_awk_getline=: |
| 16585 | ac_cs_awk_pipe_init= |
| 16586 | ac_cs_awk_read_file=' |
| 16587 | while ((getline aline < (F[key])) > 0) |
| 16588 | print(aline) |
| 16589 | close(F[key])' |
| 16590 | ac_cs_awk_pipe_fini= |
| 16591 | else |
| 16592 | ac_cs_awk_getline=false |
| 16593 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 16594 | ac_cs_awk_read_file=' |
| 16595 | print "|#_!!_#|" |
| 16596 | print "cat " F[key] " &&" |
| 16597 | '$ac_cs_awk_pipe_init |
| 16598 | # The final `:' finishes the AND list. |
| 16599 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 16600 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16601 | ac_cr=`echo X | tr X '\015'` |
| 16602 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16603 | # But we know of no other shell where ac_cr would be empty at this |
| 16604 | # point, so we can use a bashism as a fallback. |
| 16605 | if test "x$ac_cr" = x; then |
| 16606 | eval ac_cr=\$\'\\r\' |
| 16607 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16608 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16609 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16610 | ac_cs_awk_cr='\\r' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16611 | else |
| 16612 | ac_cs_awk_cr=$ac_cr |
| 16613 | fi |
| 16614 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16615 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16616 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16617 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16618 | # Create commands to substitute file output variables. |
| 16619 | { |
| 16620 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16621 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16622 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 16623 | echo "_ACAWK" && |
| 16624 | echo "_ACEOF" |
| 16625 | } >conf$$files.sh && |
| 16626 | . ./conf$$files.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16627 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16628 | rm -f conf$$files.sh |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16629 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16630 | { |
| 16631 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16632 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16633 | echo "_ACEOF" |
| 16634 | } >conf$$subs.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16635 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16636 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16637 | ac_delim='%!_!# ' |
| 16638 | for ac_last_try in false false false false false :; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16639 | . ./conf$$subs.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16640 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16641 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16642 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16643 | if test $ac_delim_n = $ac_delim_num; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16644 | break |
| 16645 | elif $ac_last_try; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16646 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16647 | else |
| 16648 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16649 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16650 | done |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16651 | rm -f conf$$subs.sh |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16652 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16653 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16654 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16655 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16656 | sed -n ' |
| 16657 | h |
| 16658 | s/^/S["/; s/!.*/"]=/ |
| 16659 | p |
| 16660 | g |
| 16661 | s/^[^!]*!// |
| 16662 | :repl |
| 16663 | t repl |
| 16664 | s/'"$ac_delim"'$// |
| 16665 | t delim |
| 16666 | :nl |
| 16667 | h |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16668 | s/\(.\{148\}\)..*/\1/ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16669 | t more1 |
| 16670 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16671 | p |
| 16672 | n |
| 16673 | b repl |
| 16674 | :more1 |
| 16675 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16676 | p |
| 16677 | g |
| 16678 | s/.\{148\}// |
| 16679 | t nl |
| 16680 | :delim |
| 16681 | h |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16682 | s/\(.\{148\}\)..*/\1/ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16683 | t more2 |
| 16684 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 16685 | p |
| 16686 | b |
| 16687 | :more2 |
| 16688 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16689 | p |
| 16690 | g |
| 16691 | s/.\{148\}// |
| 16692 | t delim |
| 16693 | ' <conf$$subs.awk | sed ' |
| 16694 | /^[^""]/{ |
| 16695 | N |
| 16696 | s/\n// |
| 16697 | } |
| 16698 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16699 | rm -f conf$$subs.awk |
| 16700 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16701 | _ACAWK |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16702 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16703 | for (key in S) S_is_set[key] = 1 |
| 16704 | FS = "" |
| 16705 | \$ac_cs_awk_pipe_init |
| 16706 | } |
| 16707 | { |
| 16708 | line = $ 0 |
| 16709 | nfields = split(line, field, "@") |
| 16710 | substed = 0 |
| 16711 | len = length(field[1]) |
| 16712 | for (i = 2; i < nfields; i++) { |
| 16713 | key = field[i] |
| 16714 | keylen = length(key) |
| 16715 | if (S_is_set[key]) { |
| 16716 | value = S[key] |
| 16717 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 16718 | len += length(value) + length(field[++i]) |
| 16719 | substed = 1 |
| 16720 | } else |
| 16721 | len += 1 + keylen |
| 16722 | } |
| 16723 | if (nfields == 3 && !substed) { |
| 16724 | key = field[2] |
| 16725 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 16726 | \$ac_cs_awk_read_file |
| 16727 | next |
| 16728 | } |
| 16729 | } |
| 16730 | print line |
| 16731 | } |
| 16732 | \$ac_cs_awk_pipe_fini |
| 16733 | _ACAWK |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16734 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16735 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16736 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 16737 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 16738 | else |
| 16739 | cat |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16740 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16741 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16742 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16743 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16744 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 16745 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16746 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16747 | # (actually we leave an empty line to preserve line numbers). |
| 16748 | if test "x$srcdir" = x.; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16749 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 16750 | h |
| 16751 | s/// |
| 16752 | s/^/:/ |
| 16753 | s/[ ]*$/:/ |
| 16754 | s/:\$(srcdir):/:/g |
| 16755 | s/:\${srcdir}:/:/g |
| 16756 | s/:@srcdir@:/:/g |
| 16757 | s/^:*// |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16758 | s/:*$// |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16759 | x |
| 16760 | s/\(=[ ]*\).*/\1/ |
| 16761 | G |
| 16762 | s/\n// |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16763 | s/^[^=]*=[ ]*$// |
| 16764 | }' |
| 16765 | fi |
| 16766 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16767 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16768 | fi # test -n "$CONFIG_FILES" |
| 16769 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16770 | # Set up the scripts for CONFIG_HEADERS section. |
| 16771 | # No need to generate them if there are no CONFIG_HEADERS. |
| 16772 | # This happens for instance with `./config.status Makefile'. |
| 16773 | if test -n "$CONFIG_HEADERS"; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16774 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16775 | BEGIN { |
| 16776 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16777 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16778 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 16779 | # here-document in config.status, that substitutes the proper values into |
| 16780 | # config.h.in to produce config.h. |
| 16781 | |
| 16782 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 16783 | # handling of long lines. |
| 16784 | ac_delim='%!_!# ' |
| 16785 | for ac_last_try in false false :; do |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16786 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 16787 | if test -z "$ac_tt"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16788 | break |
| 16789 | elif $ac_last_try; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16790 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16791 | else |
| 16792 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16793 | fi |
| 16794 | done |
| 16795 | |
| 16796 | # For the awk script, D is an array of macro values keyed by name, |
| 16797 | # likewise P contains macro parameters if any. Preserve backslash |
| 16798 | # newline sequences. |
| 16799 | |
| 16800 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 16801 | sed -n ' |
| 16802 | s/.\{148\}/&'"$ac_delim"'/g |
| 16803 | t rset |
| 16804 | :rset |
| 16805 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 16806 | t def |
| 16807 | d |
| 16808 | :def |
| 16809 | s/\\$// |
| 16810 | t bsnl |
| 16811 | s/["\\]/\\&/g |
| 16812 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16813 | D["\1"]=" \3"/p |
| 16814 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 16815 | d |
| 16816 | :bsnl |
| 16817 | s/["\\]/\\&/g |
| 16818 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16819 | D["\1"]=" \3\\\\\\n"\\/p |
| 16820 | t cont |
| 16821 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 16822 | t cont |
| 16823 | d |
| 16824 | :cont |
| 16825 | n |
| 16826 | s/.\{148\}/&'"$ac_delim"'/g |
| 16827 | t clear |
| 16828 | :clear |
| 16829 | s/\\$// |
| 16830 | t bsnlc |
| 16831 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 16832 | d |
| 16833 | :bsnlc |
| 16834 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 16835 | b cont |
| 16836 | ' <confdefs.h | sed ' |
| 16837 | s/'"$ac_delim"'/"\\\ |
| 16838 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16839 | |
| 16840 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16841 | for (key in D) D_is_set[key] = 1 |
| 16842 | FS = "" |
| 16843 | } |
| 16844 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 16845 | line = \$ 0 |
| 16846 | split(line, arg, " ") |
| 16847 | if (arg[1] == "#") { |
| 16848 | defundef = arg[2] |
| 16849 | mac1 = arg[3] |
| 16850 | } else { |
| 16851 | defundef = substr(arg[1], 2) |
| 16852 | mac1 = arg[2] |
| 16853 | } |
| 16854 | split(mac1, mac2, "(") #) |
| 16855 | macro = mac2[1] |
| 16856 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 16857 | if (D_is_set[macro]) { |
| 16858 | # Preserve the white space surrounding the "#". |
| 16859 | print prefix "define", macro P[macro] D[macro] |
| 16860 | next |
| 16861 | } else { |
| 16862 | # Replace #undef with comments. This is necessary, for example, |
| 16863 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 16864 | # on some systems where configure will not decide to define it. |
| 16865 | if (defundef == "undef") { |
| 16866 | print "/*", prefix defundef, macro, "*/" |
| 16867 | next |
| 16868 | } |
| 16869 | } |
| 16870 | } |
| 16871 | { print } |
| 16872 | _ACAWK |
| 16873 | _ACEOF |
| 16874 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16875 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16876 | fi # test -n "$CONFIG_HEADERS" |
| 16877 | |
| 16878 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16879 | 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] | 16880 | shift |
| 16881 | for ac_tag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16882 | do |
| 16883 | case $ac_tag in |
| 16884 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16885 | esac |
| 16886 | case $ac_mode$ac_tag in |
| 16887 | :[FHL]*:*);; |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16888 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16889 | :[FH]-) ac_tag=-:-;; |
| 16890 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16891 | esac |
| 16892 | ac_save_IFS=$IFS |
| 16893 | IFS=: |
| 16894 | set x $ac_tag |
| 16895 | IFS=$ac_save_IFS |
| 16896 | shift |
| 16897 | ac_file=$1 |
| 16898 | shift |
| 16899 | |
| 16900 | case $ac_mode in |
| 16901 | :L) ac_source=$1;; |
| 16902 | :[FH]) |
| 16903 | ac_file_inputs= |
| 16904 | for ac_f |
| 16905 | do |
| 16906 | case $ac_f in |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16907 | -) ac_f="$ac_tmp/stdin";; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16908 | *) # Look for the file first in the build tree, then in the source tree |
| 16909 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16910 | # because $ac_f cannot contain `:'. |
| 16911 | test -f "$ac_f" || |
| 16912 | case $ac_f in |
| 16913 | [\\/$]*) false;; |
| 16914 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16915 | esac || |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16916 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16917 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16918 | 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] | 16919 | as_fn_append ac_file_inputs " '$ac_f'" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16920 | done |
| 16921 | |
| 16922 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16923 | # use $as_me), people would be surprised to read: |
| 16924 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16925 | configure_input='Generated from '` |
| 16926 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 16927 | `' by configure.' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16928 | if test x"$ac_file" != x-; then |
| 16929 | configure_input="$ac_file. $configure_input" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16930 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16931 | $as_echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16932 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16933 | # Neutralize special characters interpreted by sed in replacement strings. |
| 16934 | case $configure_input in #( |
| 16935 | *\&* | *\|* | *\\* ) |
| 16936 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 16937 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 16938 | *) ac_sed_conf_input=$configure_input;; |
| 16939 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16940 | |
| 16941 | case $ac_tag in |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16942 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 16943 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16944 | esac |
| 16945 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16946 | esac |
| 16947 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16948 | ac_dir=`$as_dirname -- "$ac_file" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16949 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16950 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16951 | X"$ac_file" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16952 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16953 | $as_echo X"$ac_file" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16954 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16955 | s//\1/ |
| 16956 | q |
| 16957 | } |
| 16958 | /^X\(\/\/\)[^/].*/{ |
| 16959 | s//\1/ |
| 16960 | q |
| 16961 | } |
| 16962 | /^X\(\/\/\)$/{ |
| 16963 | s//\1/ |
| 16964 | q |
| 16965 | } |
| 16966 | /^X\(\/\).*/{ |
| 16967 | s//\1/ |
| 16968 | q |
| 16969 | } |
| 16970 | s/.*/./; q'` |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16971 | as_dir="$ac_dir"; as_fn_mkdir_p |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16972 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16973 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16974 | case "$ac_dir" in |
| 16975 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16976 | *) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16977 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16978 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16979 | 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] | 16980 | case $ac_top_builddir_sub in |
| 16981 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16982 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16983 | esac ;; |
| 16984 | esac |
| 16985 | ac_abs_top_builddir=$ac_pwd |
| 16986 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16987 | # for backward compatibility: |
| 16988 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16989 | |
| 16990 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16991 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16992 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16993 | ac_top_srcdir=$ac_top_builddir_sub |
| 16994 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16995 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16996 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16997 | ac_top_srcdir=$srcdir |
| 16998 | ac_abs_top_srcdir=$srcdir ;; |
| 16999 | *) # Relative name. |
| 17000 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17001 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17002 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17003 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17004 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17005 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17006 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17007 | case $ac_mode in |
| 17008 | :F) |
| 17009 | # |
| 17010 | # CONFIG_FILE |
| 17011 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17012 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17013 | case $INSTALL in |
| 17014 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17015 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 17016 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17017 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17018 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17019 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17020 | # If the template does not know about datarootdir, expand it. |
| 17021 | # FIXME: This hack should be removed a few years after 2.60. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17022 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17023 | ac_sed_dataroot=' |
| 17024 | /datarootdir/ { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17025 | p |
| 17026 | q |
| 17027 | } |
| 17028 | /@datadir@/p |
| 17029 | /@docdir@/p |
| 17030 | /@infodir@/p |
| 17031 | /@localedir@/p |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17032 | /@mandir@/p' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17033 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17034 | *datarootdir*) ac_datarootdir_seen=yes;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17035 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17036 | { $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] | 17037 | $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] | 17038 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17039 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17040 | ac_datarootdir_hack=' |
| 17041 | s&@datadir@&$datadir&g |
| 17042 | s&@docdir@&$docdir&g |
| 17043 | s&@infodir@&$infodir&g |
| 17044 | s&@localedir@&$localedir&g |
| 17045 | s&@mandir@&$mandir&g |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17046 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17047 | esac |
| 17048 | _ACEOF |
| 17049 | |
| 17050 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17051 | # Shell code in configure.ac might set extrasub. |
| 17052 | # FIXME: do we really want to maintain this feature? |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17053 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17054 | ac_sed_extra="$ac_vpsub |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17055 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17056 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17057 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17058 | :t |
| 17059 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17060 | s|@configure_input@|$ac_sed_conf_input|;t t |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17061 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17062 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17063 | s&@srcdir@&$ac_srcdir&;t t |
| 17064 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17065 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17066 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17067 | s&@builddir@&$ac_builddir&;t t |
| 17068 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17069 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17070 | s&@INSTALL@&$ac_INSTALL&;t t |
| 17071 | $ac_datarootdir_hack |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17072 | " |
| 17073 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 17074 | if $ac_cs_awk_getline; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 17075 | $AWK -f "$ac_tmp/subs.awk" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17076 | else |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 17077 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 17078 | fi \ |
| 17079 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17080 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17081 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 17082 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 17083 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 17084 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17085 | { $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] | 17086 | which seems to be undefined. Please make sure it is defined" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17087 | $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] | 17088 | which seems to be undefined. Please make sure it is defined" >&2;} |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17089 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 17090 | rm -f "$ac_tmp/stdin" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17091 | case $ac_file in |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 17092 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 17093 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17094 | esac \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17095 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17096 | ;; |
| 17097 | :H) |
| 17098 | # |
| 17099 | # CONFIG_HEADER |
| 17100 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17101 | if test x"$ac_file" != x-; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17102 | { |
| 17103 | $as_echo "/* $configure_input */" \ |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 17104 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 17105 | } >"$ac_tmp/config.h" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17106 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 17107 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17108 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17109 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17110 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17111 | rm -f "$ac_file" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 17112 | mv "$ac_tmp/config.h" "$ac_file" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17113 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17114 | fi |
| 17115 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17116 | $as_echo "/* $configure_input */" \ |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 17117 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17118 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17119 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17120 | ;; |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 17121 | :L) |
| 17122 | # |
| 17123 | # CONFIG_LINK |
| 17124 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17125 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 17126 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then |
| 17127 | : |
| 17128 | else |
| 17129 | # Prefer the file from the source tree if names are identical. |
| 17130 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then |
| 17131 | ac_source=$srcdir/$ac_source |
| 17132 | fi |
| 17133 | |
| 17134 | { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 |
| 17135 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} |
| 17136 | |
| 17137 | if test ! -r "$ac_source"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17138 | as_fn_error $? "$ac_source: file not found" "$LINENO" 5 |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 17139 | fi |
| 17140 | rm -f "$ac_file" |
| 17141 | |
| 17142 | # Try a relative symlink, then a hard link, then a copy. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17143 | case $ac_source in |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 17144 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; |
| 17145 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; |
| 17146 | esac |
| 17147 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || |
| 17148 | ln "$ac_source" "$ac_file" 2>/dev/null || |
| 17149 | cp -p "$ac_source" "$ac_file" || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17150 | 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] | 17151 | fi |
| 17152 | ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17153 | :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] | 17154 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17155 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17156 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17157 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17158 | |
| 17159 | case $ac_file$ac_mode in |
Alexandre Julliard | c4704c2 | 2006-09-22 09:33:00 +0200 | [diff] [blame] | 17160 | "include/stamp-h":C) echo timestamp > include/stamp-h ;; |
Huw Davies | 4cffb2d | 2011-04-01 15:27:48 +0100 | [diff] [blame] | 17161 | "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5 |
| 17162 | $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;; |
Alexandre Julliard | a1c253e | 2010-02-11 20:26:35 +0100 | [diff] [blame] | 17163 | "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5 |
| 17164 | $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;; |
| 17165 | "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5 |
| 17166 | $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;; |
| 17167 | "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5 |
| 17168 | $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;; |
| 17169 | "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5 |
| 17170 | $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;; |
| 17171 | "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5 |
| 17172 | $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;; |
| 17173 | "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5 |
| 17174 | $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] | 17175 | "Makefile":C) wine_fn_output_makefile Makefile ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17176 | |
| 17177 | esac |
| 17178 | done # for ac_tag |
| 17179 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 17180 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17181 | as_fn_exit 0 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17182 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17183 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17184 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17185 | test $ac_write_fail = 0 || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17186 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17187 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17188 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17189 | # configure is writing to config.log, and then calls config.status. |
| 17190 | # config.status does its own redirection, appending to config.log. |
| 17191 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17192 | # by configure, so config.status won't be able to write to it; its |
| 17193 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17194 | # effectively closing config.log, so it can be properly (re)opened and |
| 17195 | # appended to by config.status. When coming back to configure, we |
| 17196 | # need to make the FD available again. |
| 17197 | if test "$no_create" != yes; then |
| 17198 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17199 | ac_config_status_args= |
| 17200 | test "$silent" = yes && |
| 17201 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17202 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17203 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17204 | exec 5>>config.log |
| 17205 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17206 | # would make configure fail if this is the last instruction. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17207 | $ac_cs_success || as_fn_exit 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17208 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17209 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17210 | { $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] | 17211 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 17212 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17213 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17214 | |
Alexandre Julliard | e3bd111 | 2006-09-21 11:14:38 +0200 | [diff] [blame] | 17215 | if test "$no_create" = "yes" |
| 17216 | then |
| 17217 | exit 0 |
| 17218 | fi |
| 17219 | |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17220 | ac_save_IFS="$IFS" |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 17221 | if test "x$wine_notices != "x; then |
| 17222 | echo >&6 |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 17223 | IFS="|" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17224 | for msg in $wine_notices; do |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 17225 | IFS="$ac_save_IFS" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17226 | if test -n "$msg"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17227 | { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17228 | $as_echo "$as_me: $msg" >&6;} |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17229 | fi |
| 17230 | done |
| 17231 | fi |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 17232 | IFS="|" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17233 | for msg in $wine_warnings; do |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 17234 | IFS="$ac_save_IFS" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17235 | if test -n "$msg"; then |
| 17236 | echo >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17238 | $as_echo "$as_me: WARNING: $msg" >&2;} |
Detlef Riekenberg | e84a382 | 2006-08-21 05:28:17 +0200 | [diff] [blame] | 17239 | fi |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17240 | done |
| 17241 | IFS="$ac_save_IFS" |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 17242 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 17243 | echo " |
Alexandre Julliard | 64362ac | 2010-02-23 13:33:52 +0100 | [diff] [blame] | 17244 | $as_me: Finished. Do '${ac_make}' to compile Wine. |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 17245 | " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17246 | |