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 | 8c00ee0 | 2011-08-05 19:24:22 +0200 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.68 for Wine 1.3.26. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4 | # |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5 | # Report bugs to <wine-devel@winehq.org>. |
| 6 | # |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 7 | # |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
| 10 | # Foundation, Inc. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 11 | # |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15 | ## -------------------- ## |
| 16 | ## M4sh Initialization. ## |
| 17 | ## -------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 19 | # Be more Bourne compatible |
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22 | emulate sh |
| 23 | NULLCMD=: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 27 | setopt NO_GLOB_SUBST |
| 28 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 29 | case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 34 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 35 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 36 | |
| 37 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 38 | as_nl=' |
| 39 | ' |
| 40 | export as_nl |
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 46 | # but without wasting forks for bash or zsh. |
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 49 | as_echo='print -r --' |
| 50 | as_echo_n='print -rn --' |
| 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 62 | case $arg in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
| 75 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 83 | fi |
| 84 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 85 | |
| 86 | # IFS |
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
| 88 | # there to prevent editors from complaining about space-tab. |
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 90 | # splitting by setting IFS to empty value.) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 91 | IFS=" "" $as_nl" |
| 92 | |
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 94 | as_myself= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 95 | case $0 in #(( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 96 | *[\\/]* ) as_myself=$0 ;; |
| 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 98 | for as_dir in $PATH |
| 99 | do |
| 100 | IFS=$as_save_IFS |
| 101 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 103 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 104 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 105 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 106 | ;; |
| 107 | esac |
| 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 109 | # in which case we are not to be found in the path. |
| 110 | if test "x$as_myself" = x; then |
| 111 | as_myself=$0 |
| 112 | fi |
| 113 | if test ! -f "$as_myself"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 114 | $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] | 115 | exit 1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 116 | fi |
| 117 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 118 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 120 | # suppresses any "Segmentation fault" message there. '((' could |
| 121 | # trigger a bug in pdksh 5.2.14. |
| 122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 123 | do eval test x\${$as_var+set} = xset \ |
| 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 125 | done |
| 126 | PS1='$ ' |
| 127 | PS2='> ' |
| 128 | PS4='+ ' |
| 129 | |
| 130 | # NLS nuisances. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 131 | LC_ALL=C |
| 132 | export LC_ALL |
| 133 | LANGUAGE=C |
| 134 | export LANGUAGE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 135 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 136 | # CDPATH. |
| 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 138 | |
| 139 | if test "x$CONFIG_SHELL" = x; then |
| 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 141 | emulate sh |
| 142 | NULLCMD=: |
| 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 144 | # is contrary to our usage. Disable this feature. |
| 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 146 | setopt NO_GLOB_SUBST |
| 147 | else |
| 148 | case \`(set -o) 2>/dev/null\` in #( |
| 149 | *posix*) : |
| 150 | set -o posix ;; #( |
| 151 | *) : |
| 152 | ;; |
| 153 | esac |
| 154 | fi |
| 155 | " |
| 156 | as_required="as_fn_return () { (exit \$1); } |
| 157 | as_fn_success () { as_fn_return 0; } |
| 158 | as_fn_failure () { as_fn_return 1; } |
| 159 | as_fn_ret_success () { return 0; } |
| 160 | as_fn_ret_failure () { return 1; } |
| 161 | |
| 162 | exitcode=0 |
| 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 168 | |
| 169 | else |
| 170 | exitcode=1; echo positional parameters were not saved. |
| 171 | fi |
| 172 | test x\$exitcode = x0 || exit 1" |
| 173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 177 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 178 | if (eval "$as_required") 2>/dev/null; then : |
| 179 | as_have_required=yes |
| 180 | else |
| 181 | as_have_required=no |
| 182 | fi |
| 183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 184 | |
| 185 | else |
| 186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 187 | as_found=false |
| 188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 189 | do |
| 190 | IFS=$as_save_IFS |
| 191 | test -z "$as_dir" && as_dir=. |
| 192 | as_found=: |
| 193 | case $as_dir in #( |
| 194 | /*) |
| 195 | for as_base in sh bash ksh sh5; do |
| 196 | # Try only shells that exist, to save several forks. |
| 197 | as_shell=$as_dir/$as_base |
| 198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 200 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 202 | break 2 |
| 203 | fi |
| 204 | fi |
| 205 | done;; |
| 206 | esac |
| 207 | as_found=false |
| 208 | done |
| 209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 211 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 212 | fi; } |
| 213 | IFS=$as_save_IFS |
| 214 | |
| 215 | |
| 216 | if test "x$CONFIG_SHELL" != x; then : |
| 217 | # We cannot yet assume a decent shell, so we have to provide a |
| 218 | # neutralization value for shells without unset; and this also |
| 219 | # works around shells that cannot unset nonexistent variables. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 220 | # Preserve -v and -x to the replacement shell. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 221 | BASH_ENV=/dev/null |
| 222 | ENV=/dev/null |
| 223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 224 | export CONFIG_SHELL |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 225 | case $- in # (((( |
| 226 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 227 | *v* ) as_opts=-v ;; |
| 228 | *x* ) as_opts=-x ;; |
| 229 | * ) as_opts= ;; |
| 230 | esac |
| 231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 232 | fi |
| 233 | |
| 234 | if test x$as_have_required = xno; then : |
| 235 | $as_echo "$0: This script requires a shell more modern than all" |
| 236 | $as_echo "$0: the shells that I found on your system." |
| 237 | if test x${ZSH_VERSION+set} = xset ; then |
| 238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 240 | else |
| 241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 242 | $0: wine-devel@winehq.org about your system, including any |
| 243 | $0: error possibly output before this message. Then install |
| 244 | $0: a modern shell, or manually run the script under such a |
| 245 | $0: shell if you do have one." |
| 246 | fi |
| 247 | exit 1 |
| 248 | fi |
| 249 | fi |
| 250 | fi |
| 251 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 252 | export SHELL |
| 253 | # Unset more variables known to interfere with behavior of common tools. |
| 254 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 255 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 256 | |
| 257 | ## --------------------- ## |
| 258 | ## M4sh Shell Functions. ## |
| 259 | ## --------------------- ## |
| 260 | # as_fn_unset VAR |
| 261 | # --------------- |
| 262 | # Portably unset VAR. |
| 263 | as_fn_unset () |
| 264 | { |
| 265 | { eval $1=; unset $1;} |
| 266 | } |
| 267 | as_unset=as_fn_unset |
| 268 | |
| 269 | # as_fn_set_status STATUS |
| 270 | # ----------------------- |
| 271 | # Set $? to STATUS, without forking. |
| 272 | as_fn_set_status () |
| 273 | { |
| 274 | return $1 |
| 275 | } # as_fn_set_status |
| 276 | |
| 277 | # as_fn_exit STATUS |
| 278 | # ----------------- |
| 279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 280 | as_fn_exit () |
| 281 | { |
| 282 | set +e |
| 283 | as_fn_set_status $1 |
| 284 | exit $1 |
| 285 | } # as_fn_exit |
| 286 | |
| 287 | # as_fn_mkdir_p |
| 288 | # ------------- |
| 289 | # Create "$as_dir" as a directory, including parents if necessary. |
| 290 | as_fn_mkdir_p () |
| 291 | { |
| 292 | |
| 293 | case $as_dir in #( |
| 294 | -*) as_dir=./$as_dir;; |
| 295 | esac |
| 296 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 297 | as_dirs= |
| 298 | while :; do |
| 299 | case $as_dir in #( |
| 300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 301 | *) as_qdir=$as_dir;; |
| 302 | esac |
| 303 | as_dirs="'$as_qdir' $as_dirs" |
| 304 | as_dir=`$as_dirname -- "$as_dir" || |
| 305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 306 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 307 | X"$as_dir" : 'X\(//\)$' \| \ |
| 308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 309 | $as_echo X"$as_dir" | |
| 310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 311 | s//\1/ |
| 312 | q |
| 313 | } |
| 314 | /^X\(\/\/\)[^/].*/{ |
| 315 | s//\1/ |
| 316 | q |
| 317 | } |
| 318 | /^X\(\/\/\)$/{ |
| 319 | s//\1/ |
| 320 | q |
| 321 | } |
| 322 | /^X\(\/\).*/{ |
| 323 | s//\1/ |
| 324 | q |
| 325 | } |
| 326 | s/.*/./; q'` |
| 327 | test -d "$as_dir" && break |
| 328 | done |
| 329 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 331 | |
| 332 | |
| 333 | } # as_fn_mkdir_p |
| 334 | # as_fn_append VAR VALUE |
| 335 | # ---------------------- |
| 336 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 337 | # advantage of any shell optimizations that allow amortized linear growth over |
| 338 | # repeated appends, instead of the typical quadratic growth present in naive |
| 339 | # implementations. |
| 340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 341 | eval 'as_fn_append () |
| 342 | { |
| 343 | eval $1+=\$2 |
| 344 | }' |
| 345 | else |
| 346 | as_fn_append () |
| 347 | { |
| 348 | eval $1=\$$1\$2 |
| 349 | } |
| 350 | fi # as_fn_append |
| 351 | |
| 352 | # as_fn_arith ARG... |
| 353 | # ------------------ |
| 354 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 356 | # must be portable across $(()) and expr. |
| 357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 358 | eval 'as_fn_arith () |
| 359 | { |
| 360 | as_val=$(( $* )) |
| 361 | }' |
| 362 | else |
| 363 | as_fn_arith () |
| 364 | { |
| 365 | as_val=`expr "$@" || test $? -eq 1` |
| 366 | } |
| 367 | fi # as_fn_arith |
| 368 | |
| 369 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 371 | # ---------------------------------------- |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 373 | # 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] | 374 | # script with STATUS, using 1 if that was 0. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 375 | as_fn_error () |
| 376 | { |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 377 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 378 | if test "$4"; then |
| 379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 381 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 382 | $as_echo "$as_me: error: $2" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 383 | as_fn_exit $as_status |
| 384 | } # as_fn_error |
| 385 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 388 | as_expr=expr |
| 389 | else |
| 390 | as_expr=false |
| 391 | fi |
| 392 | |
| 393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 394 | as_basename=basename |
| 395 | else |
| 396 | as_basename=false |
| 397 | fi |
| 398 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 400 | as_dirname=dirname |
| 401 | else |
| 402 | as_dirname=false |
| 403 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 404 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 405 | as_me=`$as_basename -- "$0" || |
| 406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 407 | X"$0" : 'X\(//\)$' \| \ |
| 408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 409 | $as_echo X/"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 411 | s//\1/ |
| 412 | q |
| 413 | } |
| 414 | /^X\/\(\/\/\)$/{ |
| 415 | s//\1/ |
| 416 | q |
| 417 | } |
| 418 | /^X\/\(\/\).*/{ |
| 419 | s//\1/ |
| 420 | q |
| 421 | } |
| 422 | s/.*/./; q'` |
| 423 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 424 | # Avoid depending upon Character Ranges. |
| 425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 428 | as_cr_digits='0123456789' |
| 429 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 430 | |
| 431 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 437 | sed -n ' |
| 438 | p |
| 439 | /[$]LINENO/= |
| 440 | ' <$as_myself | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 441 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 442 | s/[$]LINENO.*/&-/ |
| 443 | t lineno |
| 444 | b |
| 445 | :lineno |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 446 | N |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 447 | :loop |
| 448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 449 | t loop |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 450 | s/-\n.*// |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 451 | ' >$as_me.lineno && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 452 | chmod +x "$as_me.lineno" || |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 453 | { $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] | 454 | |
| 455 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 456 | # (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] | 457 | # original and so on. Autoconf is especially sensitive to this). |
| 458 | . "./$as_me.lineno" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 459 | # Exit status is that of the last command. |
| 460 | exit |
| 461 | } |
| 462 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 463 | ECHO_C= ECHO_N= ECHO_T= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 464 | case `echo -n x` in #((((( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 465 | -n*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 466 | case `echo 'xy\c'` in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 468 | xy) ECHO_C='\c';; |
| 469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 470 | ECHO_T=' ';; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 471 | esac;; |
| 472 | *) |
| 473 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 474 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 475 | |
| 476 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 477 | if test -d conf$$.dir; then |
| 478 | rm -f conf$$.dir/conf$$.file |
| 479 | else |
| 480 | rm -f conf$$.dir |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 481 | mkdir conf$$.dir 2>/dev/null |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 482 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 483 | if (echo >conf$$.file) 2>/dev/null; then |
| 484 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 485 | as_ln_s='ln -s' |
| 486 | # ... but there are two gotchas: |
| 487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 489 | # In both cases, we have to default to `cp -p'. |
| 490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 491 | as_ln_s='cp -p' |
| 492 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 493 | as_ln_s=ln |
| 494 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 495 | as_ln_s='cp -p' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 496 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 497 | else |
| 498 | as_ln_s='cp -p' |
| 499 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 501 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 502 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 503 | if mkdir -p . 2>/dev/null; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 504 | as_mkdir_p='mkdir -p "$as_dir"' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 505 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 506 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 507 | as_mkdir_p=false |
| 508 | fi |
| 509 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 510 | if test -x / >/dev/null 2>&1; then |
| 511 | as_test_x='test -x' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 512 | else |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 513 | if ls -dL / >/dev/null 2>&1; then |
| 514 | as_ls_L_option=L |
| 515 | else |
| 516 | as_ls_L_option= |
| 517 | fi |
| 518 | as_test_x=' |
| 519 | eval sh -c '\'' |
| 520 | if test -d "$1"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 521 | test -d "$1/."; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 522 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 523 | case $1 in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 524 | -*)set "./$1";; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 525 | esac; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 527 | ???[sx]*):;;*)false;;esac;fi |
| 528 | '\'' sh |
| 529 | ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 530 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 531 | as_executable_p=$as_test_x |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 532 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 533 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 534 | 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] | 535 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 536 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 538 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 539 | |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 540 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 541 | exec 6>&1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 542 | |
| 543 | # Name of the host. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 544 | # 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] | 545 | # so uname gets run too. |
| 546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 547 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 548 | # |
| 549 | # Initializations. |
| 550 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 551 | ac_default_prefix=/usr/local |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 552 | ac_clean_files= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 553 | ac_config_libobj_dir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 554 | LIBOBJS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 555 | cross_compiling=no |
| 556 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 557 | MFLAGS= |
| 558 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 559 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 560 | # Identity of this package. |
| 561 | PACKAGE_NAME='Wine' |
| 562 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | 8c00ee0 | 2011-08-05 19:24:22 +0200 | [diff] [blame] | 563 | PACKAGE_VERSION='1.3.26' |
| 564 | PACKAGE_STRING='Wine 1.3.26' |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 565 | PACKAGE_BUGREPORT='wine-devel@winehq.org' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 566 | PACKAGE_URL='http://www.winehq.org' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 567 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 568 | ac_unique_file="server/atom.c" |
| 569 | # Factoring default headers for most tests. |
| 570 | ac_includes_default="\ |
| 571 | #include <stdio.h> |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 572 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 573 | # include <sys/types.h> |
| 574 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 575 | #ifdef HAVE_SYS_STAT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 576 | # include <sys/stat.h> |
| 577 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 578 | #ifdef STDC_HEADERS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 579 | # include <stdlib.h> |
| 580 | # include <stddef.h> |
| 581 | #else |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 582 | # ifdef HAVE_STDLIB_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 583 | # include <stdlib.h> |
| 584 | # endif |
| 585 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 586 | #ifdef HAVE_STRING_H |
| 587 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 588 | # include <memory.h> |
| 589 | # endif |
| 590 | # include <string.h> |
| 591 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 592 | #ifdef HAVE_STRINGS_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 593 | # include <strings.h> |
| 594 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 595 | #ifdef HAVE_INTTYPES_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 596 | # include <inttypes.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 597 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 598 | #ifdef HAVE_STDINT_H |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 599 | # include <stdint.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 600 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 601 | #ifdef HAVE_UNISTD_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 602 | # include <unistd.h> |
| 603 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 604 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 605 | ac_subst_vars='LTLIBOBJS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 606 | LIBOBJS |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 607 | LINGUAS |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 608 | ALL_TEST_RESOURCES |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 609 | LDAPLIBS |
| 610 | LIBPOLL |
| 611 | LIBDL |
| 612 | EXTRA_BINARIES |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 613 | MAIN_BINARY |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 614 | SOCKETLIBS |
| 615 | CRTLIBS |
Alexandre Julliard | b860c4a | 2009-09-01 22:36:13 +0200 | [diff] [blame] | 616 | TOOLSEXT |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 617 | LDPATH |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 618 | UNWINDFLAGS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 619 | BUILTINFLAG |
| 620 | EXTRACFLAGS |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 621 | LIBKSTAT |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 622 | LIBOPENAL |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 623 | LIBMPG123 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 624 | PNGINCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 625 | FONTCONFIGINCL |
| 626 | CUPSINCL |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 627 | OSS4INCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 628 | ALSALIBS |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 629 | GSTREAMER_INCL |
| 630 | GSTREAMER_LIBS |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 631 | LIBGETTEXTPO |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 632 | ZLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 633 | FREETYPEINCL |
| 634 | FREETYPELIBS |
| 635 | ft_devel |
| 636 | LCMSLIBS |
| 637 | RESOLVLIBS |
| 638 | GPHOTO2INCL |
| 639 | GPHOTO2LIBS |
| 640 | gphoto2port_devel |
| 641 | gphoto2_devel |
| 642 | SANEINCL |
| 643 | sane_devel |
| 644 | GNUTLSINCL |
| 645 | HALINCL |
| 646 | XSLTINCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 647 | XML2INCL |
| 648 | XML2LIBS |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 649 | X_EXTRA_LIBS |
| 650 | X_LIBS |
| 651 | X_PRE_LIBS |
| 652 | X_CFLAGS |
| 653 | XMKMF |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 654 | LIBPTHREAD |
Alexandre Julliard | 1f25421 | 2010-01-23 20:26:49 +0100 | [diff] [blame] | 655 | CROSSTARGET |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 656 | CROSSCC |
Alexandre Julliard | 7d2e772 | 2010-07-26 12:13:47 +0200 | [diff] [blame] | 657 | CROSSTEST_DISABLE |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 658 | PRELINK |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 659 | CARBONLIB |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 660 | QUICKTIMELIB |
Alexandre Julliard | fac6741 | 2010-12-03 14:16:55 +0100 | [diff] [blame] | 661 | LIBOPENCL |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 662 | FRAMEWORK_OPENAL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 663 | COREAUDIO |
Alexandre Julliard | 45db348 | 2011-03-14 14:25:45 +0100 | [diff] [blame] | 664 | SECURITYLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 665 | DISKARBITRATIONLIB |
| 666 | LDEXECFLAGS |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 667 | APPLICATIONSERVICESLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 668 | IOKITLIB |
| 669 | COREFOUNDATIONLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 670 | DLLWRAP |
| 671 | DLLTOOL |
| 672 | LDD |
| 673 | LDRPATH_LOCAL |
| 674 | LDRPATH_INSTALL |
| 675 | IMPLIBEXT |
| 676 | LIBEXT |
| 677 | LDDLLFLAGS |
| 678 | LDSHARED |
| 679 | DLLFLAGS |
| 680 | DLLEXT |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 681 | CPP |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 682 | OPENGL_LIBS |
| 683 | XLIB |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 684 | MAINTAINER_MODE |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 685 | ICOTOOL |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 686 | CONVERT |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 687 | RSVG |
| 688 | PKG_CONFIG |
| 689 | FONTFORGE |
| 690 | LINTFLAGS |
| 691 | LINT |
| 692 | INSTALL_DATA |
| 693 | INSTALL_SCRIPT |
| 694 | INSTALL_PROGRAM |
| 695 | LDCONFIG |
| 696 | EGREP |
| 697 | GREP |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 698 | LN_S |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 699 | RANLIB |
| 700 | ARFLAGS |
| 701 | ac_ct_AR |
| 702 | AR |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 703 | BISON |
| 704 | FLEX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 705 | TOOLSDIR |
Alexandre Julliard | 9064777 | 2009-08-13 19:48:42 +0200 | [diff] [blame] | 706 | WOW64_DISABLE |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 707 | TARGETFLAGS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 708 | CPPBIN |
| 709 | ac_ct_CXX |
| 710 | CXXFLAGS |
| 711 | CXX |
| 712 | OBJEXT |
| 713 | EXEEXT |
| 714 | ac_ct_CC |
| 715 | CPPFLAGS |
| 716 | LDFLAGS |
| 717 | CFLAGS |
| 718 | CC |
| 719 | SET_MAKE |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 720 | host_os |
| 721 | host_vendor |
| 722 | host_cpu |
| 723 | host |
| 724 | build_os |
| 725 | build_vendor |
| 726 | build_cpu |
| 727 | build |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 728 | target_alias |
| 729 | host_alias |
| 730 | build_alias |
| 731 | LIBS |
| 732 | ECHO_T |
| 733 | ECHO_N |
| 734 | ECHO_C |
| 735 | DEFS |
| 736 | mandir |
| 737 | localedir |
| 738 | libdir |
| 739 | psdir |
| 740 | pdfdir |
| 741 | dvidir |
| 742 | htmldir |
| 743 | infodir |
| 744 | docdir |
| 745 | oldincludedir |
| 746 | includedir |
| 747 | localstatedir |
| 748 | sharedstatedir |
| 749 | sysconfdir |
| 750 | datadir |
| 751 | datarootdir |
| 752 | libexecdir |
| 753 | sbindir |
| 754 | bindir |
| 755 | program_transform_name |
| 756 | prefix |
| 757 | exec_prefix |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 758 | PACKAGE_URL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 759 | PACKAGE_BUGREPORT |
| 760 | PACKAGE_STRING |
| 761 | PACKAGE_VERSION |
| 762 | PACKAGE_TARNAME |
| 763 | PACKAGE_NAME |
| 764 | PATH_SEPARATOR |
| 765 | SHELL' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 766 | ac_subst_files='MAKE_RULES |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 767 | MAKE_TEST_RULES |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 768 | MAKE_DLL_RULES |
| 769 | MAKE_IMPLIB_RULES |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 770 | MAKE_PROG_RULES' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 771 | ac_user_opts=' |
| 772 | enable_option_checking |
| 773 | enable_win16 |
| 774 | enable_win64 |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 775 | enable_tests |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 776 | enable_maintainer_mode |
| 777 | with_alsa |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 778 | with_capi |
| 779 | with_cms |
| 780 | with_coreaudio |
| 781 | with_cups |
| 782 | with_curses |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 783 | with_fontconfig |
| 784 | with_freetype |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 785 | with_gettextpo |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 786 | with_gphoto |
| 787 | with_glu |
| 788 | with_gnutls |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 789 | with_gsm |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 790 | with_gstreamer |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 791 | with_hal |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 792 | with_jpeg |
| 793 | with_ldap |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 794 | with_mpg123 |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 795 | with_openal |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 796 | with_opencl |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 797 | with_opengl |
| 798 | with_openssl |
| 799 | with_oss |
| 800 | with_png |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 801 | with_pthread |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 802 | with_sane |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 803 | with_tiff |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 804 | with_v4l |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 805 | with_xcomposite |
| 806 | with_xcursor |
| 807 | with_xinerama |
| 808 | with_xinput |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 809 | with_xinput2 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 810 | with_xml |
| 811 | with_xrandr |
| 812 | with_xrender |
| 813 | with_xshape |
| 814 | with_xshm |
| 815 | with_xslt |
| 816 | with_xxf86vm |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 817 | with_zlib |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 818 | with_wine_tools |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 819 | with_wine64 |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 820 | enable_largefile |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 821 | with_x |
| 822 | ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 823 | ac_precious_vars='build_alias |
| 824 | host_alias |
| 825 | target_alias |
| 826 | CC |
| 827 | CFLAGS |
| 828 | LDFLAGS |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 829 | LIBS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 830 | CPPFLAGS |
| 831 | CXX |
| 832 | CXXFLAGS |
| 833 | CCC |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 834 | CPP |
| 835 | XMKMF' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 836 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 837 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 838 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 839 | ac_init_help= |
| 840 | ac_init_version=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 841 | ac_unrecognized_opts= |
| 842 | ac_unrecognized_sep= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 843 | # The variables have the same names as the options, with |
| 844 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 845 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 846 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 847 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 848 | no_recursion= |
| 849 | prefix=NONE |
| 850 | program_prefix=NONE |
| 851 | program_suffix=NONE |
| 852 | program_transform_name=s,x,x, |
| 853 | silent= |
| 854 | site= |
| 855 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 856 | verbose= |
| 857 | x_includes=NONE |
| 858 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 859 | |
| 860 | # Installation directory options. |
| 861 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 862 | # and all the variables that are supposed to be based on exec_prefix |
| 863 | # by default will actually change. |
| 864 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 865 | # (The list follows the same order as the GNU Coding Standards.) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 866 | bindir='${exec_prefix}/bin' |
| 867 | sbindir='${exec_prefix}/sbin' |
| 868 | libexecdir='${exec_prefix}/libexec' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 869 | datarootdir='${prefix}/share' |
| 870 | datadir='${datarootdir}' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 871 | sysconfdir='${prefix}/etc' |
| 872 | sharedstatedir='${prefix}/com' |
| 873 | localstatedir='${prefix}/var' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 874 | includedir='${prefix}/include' |
| 875 | oldincludedir='/usr/include' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 876 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 877 | infodir='${datarootdir}/info' |
| 878 | htmldir='${docdir}' |
| 879 | dvidir='${docdir}' |
| 880 | pdfdir='${docdir}' |
| 881 | psdir='${docdir}' |
| 882 | libdir='${exec_prefix}/lib' |
| 883 | localedir='${datarootdir}/locale' |
| 884 | mandir='${datarootdir}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 885 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 886 | ac_prev= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 887 | ac_dashdash= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 888 | for ac_option |
| 889 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 890 | # If the previous option needs an argument, assign it. |
| 891 | if test -n "$ac_prev"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 892 | eval $ac_prev=\$ac_option |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 893 | ac_prev= |
| 894 | continue |
| 895 | fi |
| 896 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 897 | case $ac_option in |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 898 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 899 | *=) ac_optarg= ;; |
| 900 | *) ac_optarg=yes ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 901 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 902 | |
| 903 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 904 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 905 | case $ac_dashdash$ac_option in |
| 906 | --) |
| 907 | ac_dashdash=yes ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 908 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 909 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 910 | ac_prev=bindir ;; |
| 911 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 912 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 913 | |
| 914 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 915 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 916 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 917 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 918 | |
| 919 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 920 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 921 | ac_prev=cache_file ;; |
| 922 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 923 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 924 | cache_file=$ac_optarg ;; |
| 925 | |
| 926 | --config-cache | -C) |
| 927 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 928 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 929 | -datadir | --datadir | --datadi | --datad) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 930 | ac_prev=datadir ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 931 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 932 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 933 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 934 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 935 | | --dataroo | --dataro | --datar) |
| 936 | ac_prev=datarootdir ;; |
| 937 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 938 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 939 | datarootdir=$ac_optarg ;; |
| 940 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 941 | -disable-* | --disable-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 942 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 943 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 944 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 945 | as_fn_error $? "invalid feature name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 946 | ac_useropt_orig=$ac_useropt |
| 947 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 948 | case $ac_user_opts in |
| 949 | *" |
| 950 | "enable_$ac_useropt" |
| 951 | "*) ;; |
| 952 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 953 | ac_unrecognized_sep=', ';; |
| 954 | esac |
| 955 | eval enable_$ac_useropt=no ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 956 | |
| 957 | -docdir | --docdir | --docdi | --doc | --do) |
| 958 | ac_prev=docdir ;; |
| 959 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 960 | docdir=$ac_optarg ;; |
| 961 | |
| 962 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 963 | ac_prev=dvidir ;; |
| 964 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 965 | dvidir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 966 | |
| 967 | -enable-* | --enable-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 968 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 969 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 970 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 971 | as_fn_error $? "invalid feature name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 972 | ac_useropt_orig=$ac_useropt |
| 973 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 974 | case $ac_user_opts in |
| 975 | *" |
| 976 | "enable_$ac_useropt" |
| 977 | "*) ;; |
| 978 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 979 | ac_unrecognized_sep=', ';; |
| 980 | esac |
| 981 | eval enable_$ac_useropt=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 982 | |
| 983 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 984 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 985 | | --exec | --exe | --ex) |
| 986 | ac_prev=exec_prefix ;; |
| 987 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 988 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 989 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 990 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 991 | |
| 992 | -gas | --gas | --ga | --g) |
| 993 | # Obsolete; use --with-gas. |
| 994 | with_gas=yes ;; |
| 995 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 996 | -help | --help | --hel | --he | -h) |
| 997 | ac_init_help=long ;; |
| 998 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 999 | ac_init_help=recursive ;; |
| 1000 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1001 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1002 | |
| 1003 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1004 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1005 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1006 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1007 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1008 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1009 | ac_prev=htmldir ;; |
| 1010 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1011 | | --ht=*) |
| 1012 | htmldir=$ac_optarg ;; |
| 1013 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1014 | -includedir | --includedir | --includedi | --included | --include \ |
| 1015 | | --includ | --inclu | --incl | --inc) |
| 1016 | ac_prev=includedir ;; |
| 1017 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1018 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1019 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1020 | |
| 1021 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1022 | ac_prev=infodir ;; |
| 1023 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1024 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1025 | |
| 1026 | -libdir | --libdir | --libdi | --libd) |
| 1027 | ac_prev=libdir ;; |
| 1028 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1029 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1030 | |
| 1031 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1032 | | --libexe | --libex | --libe) |
| 1033 | ac_prev=libexecdir ;; |
| 1034 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1035 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1036 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1037 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1038 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1039 | ac_prev=localedir ;; |
| 1040 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1041 | localedir=$ac_optarg ;; |
| 1042 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1043 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1044 | | --localstate | --localstat | --localsta | --localst | --locals) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1045 | ac_prev=localstatedir ;; |
| 1046 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1047 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1048 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1049 | |
| 1050 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1051 | ac_prev=mandir ;; |
| 1052 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1053 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1054 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1055 | -nfp | --nfp | --nf) |
| 1056 | # Obsolete; use --without-fp. |
| 1057 | with_fp=no ;; |
| 1058 | |
| 1059 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1060 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1061 | no_create=yes ;; |
| 1062 | |
| 1063 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1064 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1065 | no_recursion=yes ;; |
| 1066 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1067 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1068 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1069 | | --oldin | --oldi | --old | --ol | --o) |
| 1070 | ac_prev=oldincludedir ;; |
| 1071 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1072 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1073 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1074 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1075 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1076 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1077 | ac_prev=prefix ;; |
| 1078 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1079 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1080 | |
| 1081 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1082 | | --program-pre | --program-pr | --program-p) |
| 1083 | ac_prev=program_prefix ;; |
| 1084 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1085 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1086 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1087 | |
| 1088 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1089 | | --program-suf | --program-su | --program-s) |
| 1090 | ac_prev=program_suffix ;; |
| 1091 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1092 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1093 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1094 | |
| 1095 | -program-transform-name | --program-transform-name \ |
| 1096 | | --program-transform-nam | --program-transform-na \ |
| 1097 | | --program-transform-n | --program-transform- \ |
| 1098 | | --program-transform | --program-transfor \ |
| 1099 | | --program-transfo | --program-transf \ |
| 1100 | | --program-trans | --program-tran \ |
| 1101 | | --progr-tra | --program-tr | --program-t) |
| 1102 | ac_prev=program_transform_name ;; |
| 1103 | -program-transform-name=* | --program-transform-name=* \ |
| 1104 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1105 | | --program-transform-n=* | --program-transform-=* \ |
| 1106 | | --program-transform=* | --program-transfor=* \ |
| 1107 | | --program-transfo=* | --program-transf=* \ |
| 1108 | | --program-trans=* | --program-tran=* \ |
| 1109 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1110 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1111 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1112 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1113 | ac_prev=pdfdir ;; |
| 1114 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1115 | pdfdir=$ac_optarg ;; |
| 1116 | |
| 1117 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1118 | ac_prev=psdir ;; |
| 1119 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1120 | psdir=$ac_optarg ;; |
| 1121 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1122 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1123 | | -silent | --silent | --silen | --sile | --sil) |
| 1124 | silent=yes ;; |
| 1125 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1126 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1127 | ac_prev=sbindir ;; |
| 1128 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1129 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1130 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1131 | |
| 1132 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1133 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1134 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1135 | | --sha | --sh) |
| 1136 | ac_prev=sharedstatedir ;; |
| 1137 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1138 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1139 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1140 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1141 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1142 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1143 | -site | --site | --sit) |
| 1144 | ac_prev=site ;; |
| 1145 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1146 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1147 | |
| 1148 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1149 | ac_prev=srcdir ;; |
| 1150 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1151 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1152 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1153 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1154 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1155 | ac_prev=sysconfdir ;; |
| 1156 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1157 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1158 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1159 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1160 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1161 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1162 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1163 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1164 | |
| 1165 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1166 | verbose=yes ;; |
| 1167 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1168 | -version | --version | --versio | --versi | --vers | -V) |
| 1169 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1170 | |
| 1171 | -with-* | --with-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1172 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1173 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1174 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1175 | as_fn_error $? "invalid package name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1176 | ac_useropt_orig=$ac_useropt |
| 1177 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1178 | case $ac_user_opts in |
| 1179 | *" |
| 1180 | "with_$ac_useropt" |
| 1181 | "*) ;; |
| 1182 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1183 | ac_unrecognized_sep=', ';; |
| 1184 | esac |
| 1185 | eval with_$ac_useropt=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1186 | |
| 1187 | -without-* | --without-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1188 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1189 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1190 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1191 | as_fn_error $? "invalid package name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1192 | ac_useropt_orig=$ac_useropt |
| 1193 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1194 | case $ac_user_opts in |
| 1195 | *" |
| 1196 | "with_$ac_useropt" |
| 1197 | "*) ;; |
| 1198 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1199 | ac_unrecognized_sep=', ';; |
| 1200 | esac |
| 1201 | eval with_$ac_useropt=no ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1202 | |
| 1203 | --x) |
| 1204 | # Obsolete; use --with-x. |
| 1205 | with_x=yes ;; |
| 1206 | |
| 1207 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1208 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1209 | ac_prev=x_includes ;; |
| 1210 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1211 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1212 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1213 | |
| 1214 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1215 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1216 | ac_prev=x_libraries ;; |
| 1217 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1218 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1219 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1220 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1221 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1222 | Try \`$0 --help' for more information" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1223 | ;; |
| 1224 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1225 | *=*) |
| 1226 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1227 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1228 | case $ac_envvar in #( |
| 1229 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1230 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1231 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1232 | eval $ac_envvar=\$ac_optarg |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1233 | export $ac_envvar ;; |
| 1234 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1235 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1236 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1237 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1238 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1239 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1240 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1241 | ;; |
| 1242 | |
| 1243 | esac |
| 1244 | done |
| 1245 | |
| 1246 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1247 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1248 | as_fn_error $? "missing argument to $ac_option" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1249 | fi |
| 1250 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1251 | if test -n "$ac_unrecognized_opts"; then |
| 1252 | case $enable_option_checking in |
| 1253 | no) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1254 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1255 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1256 | esac |
| 1257 | fi |
| 1258 | |
| 1259 | # Check all directory arguments for consistency. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1260 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1261 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1262 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1263 | libdir localedir mandir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1264 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1265 | eval ac_val=\$$ac_var |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1266 | # Remove trailing slashes. |
| 1267 | case $ac_val in |
| 1268 | */ ) |
| 1269 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1270 | eval $ac_var=\$ac_val;; |
| 1271 | esac |
| 1272 | # Be sure to have absolute directory names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1273 | case $ac_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1274 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1275 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1276 | esac |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1277 | 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] | 1278 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1279 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1280 | # There might be people who depend on the old broken behavior: `$host' |
| 1281 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1282 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1283 | build=$build_alias |
| 1284 | host=$host_alias |
| 1285 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1286 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1287 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1288 | if test "x$host_alias" != x; then |
| 1289 | if test "x$build_alias" = x; then |
| 1290 | cross_compiling=maybe |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1291 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1292 | If a cross compiler is detected then cross compile mode will be used" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1293 | elif test "x$build_alias" != "x$host_alias"; then |
| 1294 | cross_compiling=yes |
| 1295 | fi |
| 1296 | fi |
| 1297 | |
| 1298 | ac_tool_prefix= |
| 1299 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1300 | |
| 1301 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1302 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1303 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1304 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1305 | ac_ls_di=`ls -di .` && |
| 1306 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1307 | as_fn_error $? "working directory cannot be determined" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1308 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1309 | as_fn_error $? "pwd does not report name of working directory" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1310 | |
| 1311 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1312 | # Find the source files, if location was not specified. |
| 1313 | if test -z "$srcdir"; then |
| 1314 | ac_srcdir_defaulted=yes |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1315 | # Try the directory containing this script, then the parent directory. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1316 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1317 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1318 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1319 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1320 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1321 | $as_echo X"$as_myself" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1322 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1323 | s//\1/ |
| 1324 | q |
| 1325 | } |
| 1326 | /^X\(\/\/\)[^/].*/{ |
| 1327 | s//\1/ |
| 1328 | q |
| 1329 | } |
| 1330 | /^X\(\/\/\)$/{ |
| 1331 | s//\1/ |
| 1332 | q |
| 1333 | } |
| 1334 | /^X\(\/\).*/{ |
| 1335 | s//\1/ |
| 1336 | q |
| 1337 | } |
| 1338 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1339 | srcdir=$ac_confdir |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1340 | if test ! -r "$srcdir/$ac_unique_file"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1341 | srcdir=.. |
| 1342 | fi |
| 1343 | else |
| 1344 | ac_srcdir_defaulted=no |
| 1345 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1346 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1347 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1348 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1349 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1350 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1351 | ac_abs_confdir=`( |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1352 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1353 | pwd)` |
| 1354 | # When building in place, set srcdir=. |
| 1355 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1356 | srcdir=. |
| 1357 | fi |
| 1358 | # Remove unnecessary trailing slashes from srcdir. |
| 1359 | # Double slashes in file names in object file debugging info |
| 1360 | # mess up M-x gdb in Emacs. |
| 1361 | case $srcdir in |
| 1362 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1363 | esac |
| 1364 | for ac_var in $ac_precious_vars; do |
| 1365 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1366 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1367 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1368 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1369 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1370 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1371 | # |
| 1372 | # Report the --help message. |
| 1373 | # |
| 1374 | if test "$ac_init_help" = "long"; then |
| 1375 | # Omit some internal or obsolete options to make the list less imposing. |
| 1376 | # 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] | 1377 | cat <<_ACEOF |
Alexandre Julliard | 8c00ee0 | 2011-08-05 19:24:22 +0200 | [diff] [blame] | 1378 | \`configure' configures Wine 1.3.26 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1379 | |
| 1380 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1381 | |
| 1382 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1383 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1384 | |
| 1385 | Defaults for the options are specified in brackets. |
| 1386 | |
| 1387 | Configuration: |
| 1388 | -h, --help display this help and exit |
| 1389 | --help=short display options specific to this package |
| 1390 | --help=recursive display the short help of all the included packages |
| 1391 | -V, --version display version information and exit |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1392 | -q, --quiet, --silent do not print \`checking ...' messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1393 | --cache-file=FILE cache test results in FILE [disabled] |
| 1394 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1395 | -n, --no-create do not create output files |
| 1396 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1397 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1398 | Installation directories: |
| 1399 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1400 | [$ac_default_prefix] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1401 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1402 | [PREFIX] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1403 | |
| 1404 | By default, \`make install' will install all the files in |
| 1405 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1406 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1407 | for instance \`--prefix=\$HOME'. |
| 1408 | |
| 1409 | For better control, use the options below. |
| 1410 | |
| 1411 | Fine tuning of the installation directories: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1412 | --bindir=DIR user executables [EPREFIX/bin] |
| 1413 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1414 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1415 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1416 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1417 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1418 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1419 | --includedir=DIR C header files [PREFIX/include] |
| 1420 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1421 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1422 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1423 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1424 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1425 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1426 | --docdir=DIR documentation root [DATAROOTDIR/doc/wine] |
| 1427 | --htmldir=DIR html documentation [DOCDIR] |
| 1428 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1429 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1430 | --psdir=DIR ps documentation [DOCDIR] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1431 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1432 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1433 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1434 | |
| 1435 | X features: |
| 1436 | --x-includes=DIR X include files are in DIR |
| 1437 | --x-libraries=DIR X library files are in DIR |
| 1438 | |
| 1439 | System types: |
| 1440 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1441 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1442 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1443 | fi |
| 1444 | |
| 1445 | if test -n "$ac_init_help"; then |
| 1446 | case $ac_init_help in |
Alexandre Julliard | 8c00ee0 | 2011-08-05 19:24:22 +0200 | [diff] [blame] | 1447 | short | recursive ) echo "Configuration of Wine 1.3.26:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1448 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1449 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1450 | |
| 1451 | Optional Features: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1452 | --disable-option-checking ignore unrecognized --enable/--with options |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1453 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1454 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1455 | --disable-win16 do not include Win16 support |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1456 | --enable-win64 build a Win64 emulator on AMD64 (won't run Win32 |
| 1457 | binaries) |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 1458 | --disable-tests do not build the regression tests |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 1459 | --enable-maintainer-mode |
| 1460 | enable maintainer-specific build rules |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 1461 | --disable-largefile omit support for large files |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1462 | |
| 1463 | Optional Packages: |
| 1464 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1465 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1466 | --without-alsa do not use the Alsa sound support |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1467 | --without-capi do not use CAPI (ISDN support) |
| 1468 | --without-cms do not use CMS (color management support) |
| 1469 | --without-coreaudio do not use the CoreAudio sound support |
| 1470 | --without-cups do not use CUPS |
| 1471 | --without-curses do not use (n)curses |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1472 | --without-fontconfig do not use fontconfig |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 1473 | --without-freetype do not use the FreeType library |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 1474 | --without-gettextpo do not use the GetTextPO library |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1475 | --without-gphoto do not use gphoto (Digital Camera support) |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 1476 | --without-glu do not use the GLU library |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 1477 | --without-gnutls do not use GnuTLS (schannel support) |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 1478 | --without-gsm do not use libgsm (GSM 06.10 codec support) |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 1479 | --without-gstreamer do not use GStreamer (codecs support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1480 | --without-hal do not use HAL (dynamic device support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1481 | --without-jpeg do not use JPEG |
| 1482 | --without-ldap do not use LDAP |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 1483 | --without-mpg123 do not use the mpg123 library |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 1484 | --without-openal do not use OpenAL |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 1485 | --without-opencl do not use OpenCL |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1486 | --without-opengl do not use OpenGL |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1487 | --without-openssl do not use OpenSSL |
| 1488 | --without-oss do not use the OSS sound support |
| 1489 | --without-png do not use PNG |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 1490 | --without-pthread do not use the pthread library |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1491 | --without-sane do not use SANE (scanner support) |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 1492 | --without-tiff do not use TIFF |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 1493 | --without-v4l do not use v4l1 (v4l support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1494 | --without-xcomposite do not use the Xcomposite extension |
| 1495 | --without-xcursor do not use the Xcursor extension |
| 1496 | --without-xinerama do not use Xinerama (multi-monitor support) |
| 1497 | --without-xinput do not use the Xinput extension |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 1498 | --without-xinput2 do not use the Xinput 2 extension |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1499 | --without-xml do not use XML |
| 1500 | --without-xrandr do not use Xrandr (resolution changes) |
| 1501 | --without-xrender do not use the Xrender extension |
| 1502 | --without-xshape do not use the Xshape extension |
| 1503 | --without-xshm do not use XShm (shared memory extension) |
| 1504 | --without-xslt do not use XSLT |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 1505 | --without-xxf86vm do not use XFree video mode extension |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 1506 | --without-zlib do not use Zlib (data compression) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1507 | --with-wine-tools=DIR use Wine tools from directory DIR |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 1508 | --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] | 1509 | --with-x use the X Window System |
| 1510 | |
| 1511 | Some influential environment variables: |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1512 | CC C compiler command |
| 1513 | CFLAGS C compiler flags |
| 1514 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1515 | nonstandard directory <lib dir> |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 1516 | LIBS libraries to pass to the linker, e.g. -l<library> |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1517 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1518 | you have headers in a nonstandard directory <include dir> |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 1519 | CXX C++ compiler command |
| 1520 | CXXFLAGS C++ compiler flags |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1521 | CPP C preprocessor |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 1522 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1523 | |
| 1524 | Use these variables to override the choices made by `configure' or to help |
| 1525 | it to find libraries and programs with nonstandard names/locations. |
| 1526 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1527 | Report bugs to <wine-devel@winehq.org>. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1528 | Wine home page: <http://www.winehq.org>. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1529 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1530 | ac_status=$? |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1531 | fi |
| 1532 | |
| 1533 | if test "$ac_init_help" = "recursive"; then |
| 1534 | # If there are subdirs, report their specific --help. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1535 | 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] | 1536 | test -d "$ac_dir" || |
| 1537 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1538 | continue |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1539 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1540 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1541 | case "$ac_dir" in |
| 1542 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1543 | *) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1544 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1545 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1546 | 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] | 1547 | case $ac_top_builddir_sub in |
| 1548 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1549 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1550 | esac ;; |
| 1551 | esac |
| 1552 | ac_abs_top_builddir=$ac_pwd |
| 1553 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1554 | # for backward compatibility: |
| 1555 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1556 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1557 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1558 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1559 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1560 | ac_top_srcdir=$ac_top_builddir_sub |
| 1561 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1562 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1563 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1564 | ac_top_srcdir=$srcdir |
| 1565 | ac_abs_top_srcdir=$srcdir ;; |
| 1566 | *) # Relative name. |
| 1567 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1568 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1569 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1570 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1571 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1572 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1573 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1574 | # Check for guested configure. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1575 | if test -f "$ac_srcdir/configure.gnu"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1576 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1577 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1578 | elif test -f "$ac_srcdir/configure"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1579 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1580 | $SHELL "$ac_srcdir/configure" --help=recursive |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1581 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1582 | $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] | 1583 | fi || ac_status=$? |
| 1584 | cd "$ac_pwd" || { ac_status=$?; break; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1585 | done |
| 1586 | fi |
| 1587 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1588 | test -n "$ac_init_help" && exit $ac_status |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1589 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1590 | cat <<\_ACEOF |
Alexandre Julliard | 8c00ee0 | 2011-08-05 19:24:22 +0200 | [diff] [blame] | 1591 | Wine configure 1.3.26 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1592 | generated by GNU Autoconf 2.68 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1593 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1594 | Copyright (C) 2010 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1595 | This configure script is free software; the Free Software Foundation |
| 1596 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1597 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1598 | exit |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1599 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1600 | |
| 1601 | ## ------------------------ ## |
| 1602 | ## Autoconf initialization. ## |
| 1603 | ## ------------------------ ## |
| 1604 | |
| 1605 | # ac_fn_c_try_compile LINENO |
| 1606 | # -------------------------- |
| 1607 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1608 | ac_fn_c_try_compile () |
| 1609 | { |
| 1610 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1611 | rm -f conftest.$ac_objext |
| 1612 | if { { ac_try="$ac_compile" |
| 1613 | case "(($ac_try" in |
| 1614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1615 | *) ac_try_echo=$ac_try;; |
| 1616 | esac |
| 1617 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1618 | $as_echo "$ac_try_echo"; } >&5 |
| 1619 | (eval "$ac_compile") 2>conftest.err |
| 1620 | ac_status=$? |
| 1621 | if test -s conftest.err; then |
| 1622 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1623 | cat conftest.er1 >&5 |
| 1624 | mv -f conftest.er1 conftest.err |
| 1625 | fi |
| 1626 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1627 | test $ac_status = 0; } && { |
| 1628 | test -z "$ac_c_werror_flag" || |
| 1629 | test ! -s conftest.err |
| 1630 | } && test -s conftest.$ac_objext; then : |
| 1631 | ac_retval=0 |
| 1632 | else |
| 1633 | $as_echo "$as_me: failed program was:" >&5 |
| 1634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1635 | |
| 1636 | ac_retval=1 |
| 1637 | fi |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1638 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1639 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1640 | |
| 1641 | } # ac_fn_c_try_compile |
| 1642 | |
| 1643 | # ac_fn_cxx_try_compile LINENO |
| 1644 | # ---------------------------- |
| 1645 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1646 | ac_fn_cxx_try_compile () |
| 1647 | { |
| 1648 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1649 | rm -f conftest.$ac_objext |
| 1650 | if { { ac_try="$ac_compile" |
| 1651 | case "(($ac_try" in |
| 1652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1653 | *) ac_try_echo=$ac_try;; |
| 1654 | esac |
| 1655 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1656 | $as_echo "$ac_try_echo"; } >&5 |
| 1657 | (eval "$ac_compile") 2>conftest.err |
| 1658 | ac_status=$? |
| 1659 | if test -s conftest.err; then |
| 1660 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1661 | cat conftest.er1 >&5 |
| 1662 | mv -f conftest.er1 conftest.err |
| 1663 | fi |
| 1664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1665 | test $ac_status = 0; } && { |
| 1666 | test -z "$ac_cxx_werror_flag" || |
| 1667 | test ! -s conftest.err |
| 1668 | } && test -s conftest.$ac_objext; then : |
| 1669 | ac_retval=0 |
| 1670 | else |
| 1671 | $as_echo "$as_me: failed program was:" >&5 |
| 1672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1673 | |
| 1674 | ac_retval=1 |
| 1675 | fi |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1676 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1677 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1678 | |
| 1679 | } # ac_fn_cxx_try_compile |
| 1680 | |
| 1681 | # ac_fn_c_try_link LINENO |
| 1682 | # ----------------------- |
| 1683 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1684 | ac_fn_c_try_link () |
| 1685 | { |
| 1686 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1687 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1688 | if { { ac_try="$ac_link" |
| 1689 | case "(($ac_try" in |
| 1690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1691 | *) ac_try_echo=$ac_try;; |
| 1692 | esac |
| 1693 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1694 | $as_echo "$ac_try_echo"; } >&5 |
| 1695 | (eval "$ac_link") 2>conftest.err |
| 1696 | ac_status=$? |
| 1697 | if test -s conftest.err; then |
| 1698 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1699 | cat conftest.er1 >&5 |
| 1700 | mv -f conftest.er1 conftest.err |
| 1701 | fi |
| 1702 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1703 | test $ac_status = 0; } && { |
| 1704 | test -z "$ac_c_werror_flag" || |
| 1705 | test ! -s conftest.err |
| 1706 | } && test -s conftest$ac_exeext && { |
| 1707 | test "$cross_compiling" = yes || |
| 1708 | $as_test_x conftest$ac_exeext |
| 1709 | }; then : |
| 1710 | ac_retval=0 |
| 1711 | else |
| 1712 | $as_echo "$as_me: failed program was:" >&5 |
| 1713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1714 | |
| 1715 | ac_retval=1 |
| 1716 | fi |
| 1717 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1718 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1719 | # interfere with the next link command; also delete a directory that is |
| 1720 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1721 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1722 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1723 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1724 | |
| 1725 | } # ac_fn_c_try_link |
| 1726 | |
| 1727 | # ac_fn_c_try_cpp LINENO |
| 1728 | # ---------------------- |
| 1729 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1730 | ac_fn_c_try_cpp () |
| 1731 | { |
| 1732 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1733 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1734 | case "(($ac_try" in |
| 1735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1736 | *) ac_try_echo=$ac_try;; |
| 1737 | esac |
| 1738 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1739 | $as_echo "$ac_try_echo"; } >&5 |
| 1740 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1741 | ac_status=$? |
| 1742 | if test -s conftest.err; then |
| 1743 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1744 | cat conftest.er1 >&5 |
| 1745 | mv -f conftest.er1 conftest.err |
| 1746 | fi |
| 1747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1748 | test $ac_status = 0; } > conftest.i && { |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1749 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1750 | test ! -s conftest.err |
| 1751 | }; then : |
| 1752 | ac_retval=0 |
| 1753 | else |
| 1754 | $as_echo "$as_me: failed program was:" >&5 |
| 1755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1756 | |
| 1757 | ac_retval=1 |
| 1758 | fi |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1759 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1760 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1761 | |
| 1762 | } # ac_fn_c_try_cpp |
| 1763 | |
| 1764 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1765 | # ------------------------------------------------------- |
| 1766 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1767 | # the include files in INCLUDES and setting the cache variable VAR |
| 1768 | # accordingly. |
| 1769 | ac_fn_c_check_header_mongrel () |
| 1770 | { |
| 1771 | 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] | 1772 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1774 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1775 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1776 | $as_echo_n "(cached) " >&6 |
| 1777 | fi |
| 1778 | eval ac_res=\$$3 |
| 1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1780 | $as_echo "$ac_res" >&6; } |
| 1781 | else |
| 1782 | # Is the header compilable? |
| 1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1784 | $as_echo_n "checking $2 usability... " >&6; } |
| 1785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1786 | /* end confdefs.h. */ |
| 1787 | $4 |
| 1788 | #include <$2> |
| 1789 | _ACEOF |
| 1790 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1791 | ac_header_compiler=yes |
| 1792 | else |
| 1793 | ac_header_compiler=no |
| 1794 | fi |
| 1795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1797 | $as_echo "$ac_header_compiler" >&6; } |
| 1798 | |
| 1799 | # Is the header present? |
| 1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1801 | $as_echo_n "checking $2 presence... " >&6; } |
| 1802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1803 | /* end confdefs.h. */ |
| 1804 | #include <$2> |
| 1805 | _ACEOF |
| 1806 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1807 | ac_header_preproc=yes |
| 1808 | else |
| 1809 | ac_header_preproc=no |
| 1810 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1811 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1813 | $as_echo "$ac_header_preproc" >&6; } |
| 1814 | |
| 1815 | # So? What about this header? |
| 1816 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1817 | yes:no: ) |
| 1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1819 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1821 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1822 | ;; |
| 1823 | no:yes:* ) |
| 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1825 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1827 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1829 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1831 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1833 | $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] | 1834 | ( $as_echo "## ------------------------------------ ## |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1835 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1836 | ## ------------------------------------ ##" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1837 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1838 | ;; |
| 1839 | esac |
| 1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1841 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1842 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1843 | $as_echo_n "(cached) " >&6 |
| 1844 | else |
| 1845 | eval "$3=\$ac_header_compiler" |
| 1846 | fi |
| 1847 | eval ac_res=\$$3 |
| 1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1849 | $as_echo "$ac_res" >&6; } |
| 1850 | fi |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1851 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1852 | |
| 1853 | } # ac_fn_c_check_header_mongrel |
| 1854 | |
| 1855 | # ac_fn_c_try_run LINENO |
| 1856 | # ---------------------- |
| 1857 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1858 | # that executables *can* be run. |
| 1859 | ac_fn_c_try_run () |
| 1860 | { |
| 1861 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1862 | if { { ac_try="$ac_link" |
| 1863 | case "(($ac_try" in |
| 1864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1865 | *) ac_try_echo=$ac_try;; |
| 1866 | esac |
| 1867 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1868 | $as_echo "$ac_try_echo"; } >&5 |
| 1869 | (eval "$ac_link") 2>&5 |
| 1870 | ac_status=$? |
| 1871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1872 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1873 | { { case "(($ac_try" in |
| 1874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1875 | *) ac_try_echo=$ac_try;; |
| 1876 | esac |
| 1877 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1878 | $as_echo "$ac_try_echo"; } >&5 |
| 1879 | (eval "$ac_try") 2>&5 |
| 1880 | ac_status=$? |
| 1881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1882 | test $ac_status = 0; }; }; then : |
| 1883 | ac_retval=0 |
| 1884 | else |
| 1885 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1886 | $as_echo "$as_me: failed program was:" >&5 |
| 1887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1888 | |
| 1889 | ac_retval=$ac_status |
| 1890 | fi |
| 1891 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1892 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1893 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1894 | |
| 1895 | } # ac_fn_c_try_run |
| 1896 | |
| 1897 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1898 | # ------------------------------------------------------- |
| 1899 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1900 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1901 | ac_fn_c_check_header_compile () |
| 1902 | { |
| 1903 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1905 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1906 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1907 | $as_echo_n "(cached) " >&6 |
| 1908 | else |
| 1909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1910 | /* end confdefs.h. */ |
| 1911 | $4 |
| 1912 | #include <$2> |
| 1913 | _ACEOF |
| 1914 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1915 | eval "$3=yes" |
| 1916 | else |
| 1917 | eval "$3=no" |
| 1918 | fi |
| 1919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1920 | fi |
| 1921 | eval ac_res=\$$3 |
| 1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1923 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1924 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1925 | |
| 1926 | } # ac_fn_c_check_header_compile |
| 1927 | |
| 1928 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1929 | # ---------------------------------- |
| 1930 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1931 | ac_fn_c_check_func () |
| 1932 | { |
| 1933 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1935 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1936 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1937 | $as_echo_n "(cached) " >&6 |
| 1938 | else |
| 1939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1940 | /* end confdefs.h. */ |
| 1941 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1942 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1943 | #define $2 innocuous_$2 |
| 1944 | |
| 1945 | /* System header to define __stub macros and hopefully few prototypes, |
| 1946 | which can conflict with char $2 (); below. |
| 1947 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1948 | <limits.h> exists even on freestanding compilers. */ |
| 1949 | |
| 1950 | #ifdef __STDC__ |
| 1951 | # include <limits.h> |
| 1952 | #else |
| 1953 | # include <assert.h> |
| 1954 | #endif |
| 1955 | |
| 1956 | #undef $2 |
| 1957 | |
| 1958 | /* Override any GCC internal prototype to avoid an error. |
| 1959 | Use char because int might match the return type of a GCC |
| 1960 | builtin and then its argument prototype would still apply. */ |
| 1961 | #ifdef __cplusplus |
| 1962 | extern "C" |
| 1963 | #endif |
| 1964 | char $2 (); |
| 1965 | /* The GNU C library defines this for functions which it implements |
| 1966 | to always fail with ENOSYS. Some functions are actually named |
| 1967 | something starting with __ and the normal name is an alias. */ |
| 1968 | #if defined __stub_$2 || defined __stub___$2 |
| 1969 | choke me |
| 1970 | #endif |
| 1971 | |
| 1972 | int |
| 1973 | main () |
| 1974 | { |
| 1975 | return $2 (); |
| 1976 | ; |
| 1977 | return 0; |
| 1978 | } |
| 1979 | _ACEOF |
| 1980 | if ac_fn_c_try_link "$LINENO"; then : |
| 1981 | eval "$3=yes" |
| 1982 | else |
| 1983 | eval "$3=no" |
| 1984 | fi |
| 1985 | rm -f core conftest.err conftest.$ac_objext \ |
| 1986 | conftest$ac_exeext conftest.$ac_ext |
| 1987 | fi |
| 1988 | eval ac_res=\$$3 |
| 1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1990 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1991 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1992 | |
| 1993 | } # ac_fn_c_check_func |
| 1994 | |
| 1995 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 1996 | # ---------------------------------------------------- |
| 1997 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 1998 | # INCLUDES, setting cache variable VAR accordingly. |
| 1999 | ac_fn_c_check_member () |
| 2000 | { |
| 2001 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2003 | $as_echo_n "checking for $2.$3... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2004 | if eval \${$4+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2005 | $as_echo_n "(cached) " >&6 |
| 2006 | else |
| 2007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2008 | /* end confdefs.h. */ |
| 2009 | $5 |
| 2010 | int |
| 2011 | main () |
| 2012 | { |
| 2013 | static $2 ac_aggr; |
| 2014 | if (ac_aggr.$3) |
| 2015 | return 0; |
| 2016 | ; |
| 2017 | return 0; |
| 2018 | } |
| 2019 | _ACEOF |
| 2020 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2021 | eval "$4=yes" |
| 2022 | else |
| 2023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2024 | /* end confdefs.h. */ |
| 2025 | $5 |
| 2026 | int |
| 2027 | main () |
| 2028 | { |
| 2029 | static $2 ac_aggr; |
| 2030 | if (sizeof ac_aggr.$3) |
| 2031 | return 0; |
| 2032 | ; |
| 2033 | return 0; |
| 2034 | } |
| 2035 | _ACEOF |
| 2036 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2037 | eval "$4=yes" |
| 2038 | else |
| 2039 | eval "$4=no" |
| 2040 | fi |
| 2041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2042 | fi |
| 2043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2044 | fi |
| 2045 | eval ac_res=\$$4 |
| 2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2047 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2048 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2049 | |
| 2050 | } # ac_fn_c_check_member |
| 2051 | |
| 2052 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2053 | # ------------------------------------------- |
| 2054 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2055 | # variable VAR accordingly. |
| 2056 | ac_fn_c_check_type () |
| 2057 | { |
| 2058 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2060 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2061 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2062 | $as_echo_n "(cached) " >&6 |
| 2063 | else |
| 2064 | eval "$3=no" |
| 2065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2066 | /* end confdefs.h. */ |
| 2067 | $4 |
| 2068 | int |
| 2069 | main () |
| 2070 | { |
| 2071 | if (sizeof ($2)) |
| 2072 | return 0; |
| 2073 | ; |
| 2074 | return 0; |
| 2075 | } |
| 2076 | _ACEOF |
| 2077 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2079 | /* end confdefs.h. */ |
| 2080 | $4 |
| 2081 | int |
| 2082 | main () |
| 2083 | { |
| 2084 | if (sizeof (($2))) |
| 2085 | return 0; |
| 2086 | ; |
| 2087 | return 0; |
| 2088 | } |
| 2089 | _ACEOF |
| 2090 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2091 | |
| 2092 | else |
| 2093 | eval "$3=yes" |
| 2094 | fi |
| 2095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2096 | fi |
| 2097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2098 | fi |
| 2099 | eval ac_res=\$$3 |
| 2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2101 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2102 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2103 | |
| 2104 | } # ac_fn_c_check_type |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2105 | cat >config.log <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2106 | This file contains any messages produced by compilers while |
| 2107 | running configure, to aid debugging if configure makes a mistake. |
| 2108 | |
Alexandre Julliard | 8c00ee0 | 2011-08-05 19:24:22 +0200 | [diff] [blame] | 2109 | It was created by Wine $as_me 1.3.26, which was |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2110 | generated by GNU Autoconf 2.68. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2111 | |
| 2112 | $ $0 $@ |
| 2113 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2114 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2115 | exec 5>>config.log |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2116 | { |
| 2117 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2118 | ## --------- ## |
| 2119 | ## Platform. ## |
| 2120 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2121 | |
| 2122 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2123 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2124 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2125 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2126 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2127 | |
| 2128 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2129 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2130 | |
| 2131 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2132 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2133 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2134 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2135 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2136 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2137 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2138 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2139 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2140 | |
| 2141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2142 | for as_dir in $PATH |
| 2143 | do |
| 2144 | IFS=$as_save_IFS |
| 2145 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2146 | $as_echo "PATH: $as_dir" |
| 2147 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2148 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2149 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2150 | } >&5 |
| 2151 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2152 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2153 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2154 | |
| 2155 | ## ----------- ## |
| 2156 | ## Core tests. ## |
| 2157 | ## ----------- ## |
| 2158 | |
| 2159 | _ACEOF |
| 2160 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2161 | |
| 2162 | # Keep a trace of the command line. |
| 2163 | # 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] | 2164 | # 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] | 2165 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2166 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2167 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2168 | ac_configure_args0= |
| 2169 | ac_configure_args1= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2170 | ac_must_keep_next=false |
| 2171 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2172 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2173 | for ac_arg |
| 2174 | do |
| 2175 | case $ac_arg in |
| 2176 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2177 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2178 | | -silent | --silent | --silen | --sile | --sil) |
| 2179 | continue ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2180 | *\'*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2181 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2182 | esac |
| 2183 | case $ac_pass in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2184 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2185 | 2) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2186 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2187 | if test $ac_must_keep_next = true; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2188 | ac_must_keep_next=false # Got value, back to normal. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2189 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2190 | case $ac_arg in |
| 2191 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2192 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2193 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2194 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2195 | case "$ac_configure_args0 " in |
| 2196 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2197 | esac |
| 2198 | ;; |
| 2199 | -* ) ac_must_keep_next=true ;; |
| 2200 | esac |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2201 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2202 | as_fn_append ac_configure_args " '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2203 | ;; |
| 2204 | esac |
| 2205 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2206 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2207 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2208 | { ac_configure_args1=; unset ac_configure_args1;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2209 | |
| 2210 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2211 | # config.log. We remove comments because anyway the quotes in there |
| 2212 | # would cause problems or look ugly. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2213 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2214 | # 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] | 2215 | trap 'exit_status=$? |
| 2216 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2217 | { |
| 2218 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2219 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2220 | $as_echo "## ---------------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2221 | ## Cache variables. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2222 | ## ---------------- ##" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2223 | echo |
| 2224 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2225 | ( |
| 2226 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2227 | eval ac_val=\$$ac_var |
| 2228 | case $ac_val in #( |
| 2229 | *${as_nl}*) |
| 2230 | case $ac_var in #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2231 | *_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] | 2232 | $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] | 2233 | esac |
| 2234 | case $ac_var in #( |
| 2235 | _ | IFS | as_nl) ;; #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2236 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2237 | *) { eval $ac_var=; unset $ac_var;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2238 | esac ;; |
| 2239 | esac |
| 2240 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2241 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2242 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2243 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2244 | sed -n \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2245 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2246 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2247 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2248 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2249 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2250 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2251 | esac | |
| 2252 | sort |
| 2253 | ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2254 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2255 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2256 | $as_echo "## ----------------- ## |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2257 | ## Output variables. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2258 | ## ----------------- ##" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2259 | echo |
| 2260 | for ac_var in $ac_subst_vars |
| 2261 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2262 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2263 | case $ac_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2264 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2265 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2266 | $as_echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2267 | done | sort |
| 2268 | echo |
| 2269 | |
| 2270 | if test -n "$ac_subst_files"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2271 | $as_echo "## ------------------- ## |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2272 | ## File substitutions. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2273 | ## ------------------- ##" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2274 | echo |
| 2275 | for ac_var in $ac_subst_files |
| 2276 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2277 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2278 | case $ac_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2279 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2280 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2281 | $as_echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2282 | done | sort |
| 2283 | echo |
| 2284 | fi |
| 2285 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2286 | if test -s confdefs.h; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2287 | $as_echo "## ----------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2288 | ## confdefs.h. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2289 | ## ----------- ##" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2290 | echo |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2291 | cat confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2292 | echo |
| 2293 | fi |
| 2294 | test "$ac_signal" != 0 && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2295 | $as_echo "$as_me: caught signal $ac_signal" |
| 2296 | $as_echo "$as_me: exit $exit_status" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2297 | } >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2298 | rm -f core *.core core.conftest.* && |
| 2299 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2300 | exit $exit_status |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2301 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2302 | for ac_signal in 1 2 13 15; do |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2303 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2304 | done |
| 2305 | ac_signal=0 |
| 2306 | |
| 2307 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2308 | rm -f -r conftest* confdefs.h |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2309 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2310 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2311 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2312 | # Predefined preprocessor variables. |
| 2313 | |
| 2314 | cat >>confdefs.h <<_ACEOF |
| 2315 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2316 | _ACEOF |
| 2317 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2318 | cat >>confdefs.h <<_ACEOF |
| 2319 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2320 | _ACEOF |
| 2321 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2322 | cat >>confdefs.h <<_ACEOF |
| 2323 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2324 | _ACEOF |
| 2325 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2326 | cat >>confdefs.h <<_ACEOF |
| 2327 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2328 | _ACEOF |
| 2329 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2330 | cat >>confdefs.h <<_ACEOF |
| 2331 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2332 | _ACEOF |
| 2333 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2334 | cat >>confdefs.h <<_ACEOF |
| 2335 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2336 | _ACEOF |
| 2337 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2338 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2339 | # 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] | 2340 | # Prefer an explicitly selected file to automatically selected ones. |
| 2341 | ac_site_file1=NONE |
| 2342 | ac_site_file2=NONE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2343 | if test -n "$CONFIG_SITE"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2344 | # We do not want a PATH search for config.site. |
| 2345 | case $CONFIG_SITE in #(( |
| 2346 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2347 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2348 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2349 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2350 | elif test "x$prefix" != xNONE; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2351 | ac_site_file1=$prefix/share/config.site |
| 2352 | ac_site_file2=$prefix/etc/config.site |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2353 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2354 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2355 | ac_site_file2=$ac_default_prefix/etc/config.site |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2356 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2357 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2358 | do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2359 | test "x$ac_site_file" = xNONE && continue |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 2360 | 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] | 2361 | { $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] | 2362 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2363 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2364 | . "$ac_site_file" \ |
| 2365 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2366 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2367 | as_fn_error $? "failed to load site script $ac_site_file |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2368 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2369 | fi |
| 2370 | done |
| 2371 | |
| 2372 | if test -r "$cache_file"; then |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 2373 | # Some versions of bash will fail to source /dev/null (special files |
| 2374 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2375 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2377 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2378 | case $cache_file in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2379 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2380 | *) . "./$cache_file";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2381 | esac |
| 2382 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2383 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2385 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2386 | >$cache_file |
| 2387 | fi |
| 2388 | |
| 2389 | # Check that the precious variables saved in the cache have kept the same |
| 2390 | # value. |
| 2391 | ac_cache_corrupted=false |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2392 | for ac_var in $ac_precious_vars; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2393 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2394 | eval ac_new_set=\$ac_env_${ac_var}_set |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2395 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2396 | eval ac_new_val=\$ac_env_${ac_var}_value |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2397 | case $ac_old_set,$ac_new_set in |
| 2398 | set,) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2399 | { $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] | 2400 | $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] | 2401 | ac_cache_corrupted=: ;; |
| 2402 | ,set) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2403 | { $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] | 2404 | $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] | 2405 | ac_cache_corrupted=: ;; |
| 2406 | ,);; |
| 2407 | *) |
| 2408 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2409 | # differences in whitespace do not lead to failure. |
| 2410 | ac_old_val_w=`echo x $ac_old_val` |
| 2411 | ac_new_val_w=`echo x $ac_new_val` |
| 2412 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2413 | { $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] | 2414 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2415 | ac_cache_corrupted=: |
| 2416 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2417 | { $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] | 2418 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2419 | eval $ac_var=\$ac_old_val |
| 2420 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2421 | { $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] | 2422 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2423 | { $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] | 2424 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2425 | fi;; |
| 2426 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2427 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2428 | if test "$ac_new_set" = set; then |
| 2429 | case $ac_new_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2430 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2431 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2432 | esac |
| 2433 | case " $ac_configure_args " in |
| 2434 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2435 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2436 | esac |
| 2437 | fi |
| 2438 | done |
| 2439 | if $ac_cache_corrupted; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2442 | { $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] | 2443 | $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] | 2444 | 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] | 2445 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2446 | ## -------------------- ## |
| 2447 | ## Main body of script. ## |
| 2448 | ## -------------------- ## |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2449 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2450 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2451 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2455 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2456 | |
| 2457 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2458 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 2459 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2460 | ac_aux_dir= |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2461 | for ac_dir in tools "$srcdir"/tools; do |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2462 | if test -f "$ac_dir/install-sh"; then |
| 2463 | ac_aux_dir=$ac_dir |
| 2464 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2465 | break |
| 2466 | elif test -f "$ac_dir/install.sh"; then |
| 2467 | ac_aux_dir=$ac_dir |
| 2468 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2469 | break |
| 2470 | elif test -f "$ac_dir/shtool"; then |
| 2471 | ac_aux_dir=$ac_dir |
| 2472 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2473 | break |
| 2474 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2475 | done |
| 2476 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2477 | 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] | 2478 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2479 | |
| 2480 | # These three variables are undocumented and unsupported, |
| 2481 | # and are intended to be withdrawn in a future Autoconf release. |
| 2482 | # They can cause serious problems if a builder's source tree is in a directory |
| 2483 | # whose full name contains unusual characters. |
| 2484 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2485 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2486 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2487 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 2488 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2489 | |
| 2490 | |
Alexandre Julliard | d59227e | 2010-02-20 12:36:04 +0100 | [diff] [blame] | 2491 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2492 | # Check whether --enable-win16 was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2493 | if test "${enable_win16+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2494 | enableval=$enable_win16; |
| 2495 | fi |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 2496 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2497 | # Check whether --enable-win64 was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2498 | if test "${enable_win64+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2499 | enableval=$enable_win64; |
| 2500 | fi |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 2501 | |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 2502 | # Check whether --enable-tests was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2503 | if test "${enable_tests+set}" = set; then : |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 2504 | enableval=$enable_tests; |
| 2505 | fi |
| 2506 | |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2507 | # Check whether --enable-maintainer-mode was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2508 | if test "${enable_maintainer_mode+set}" = set; then : |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2509 | enableval=$enable_maintainer_mode; |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2510 | fi |
| 2511 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 2512 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2513 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2514 | # Check whether --with-alsa was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2515 | if test "${with_alsa+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2516 | withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi |
| 2517 | fi |
| 2518 | |
| 2519 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2520 | # Check whether --with-capi was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2521 | if test "${with_capi+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2522 | withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi |
| 2523 | fi |
| 2524 | |
| 2525 | |
| 2526 | # Check whether --with-cms was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2527 | if test "${with_cms+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2528 | withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi |
| 2529 | fi |
| 2530 | |
| 2531 | |
| 2532 | # Check whether --with-coreaudio was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2533 | if test "${with_coreaudio+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2534 | withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi |
| 2535 | fi |
| 2536 | |
| 2537 | |
| 2538 | # Check whether --with-cups was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2539 | if test "${with_cups+set}" = set; then : |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 2540 | withval=$with_cups; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2541 | fi |
| 2542 | |
| 2543 | |
| 2544 | # Check whether --with-curses was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2545 | if test "${with_curses+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2546 | withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi |
| 2547 | fi |
| 2548 | |
| 2549 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2550 | # Check whether --with-fontconfig was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2551 | if test "${with_fontconfig+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2552 | withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi |
| 2553 | fi |
| 2554 | |
| 2555 | |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 2556 | # Check whether --with-freetype was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2557 | if test "${with_freetype+set}" = set; then : |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 2558 | withval=$with_freetype; |
| 2559 | fi |
| 2560 | |
| 2561 | |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 2562 | # Check whether --with-gettextpo was given. |
| 2563 | if test "${with_gettextpo+set}" = set; then : |
| 2564 | withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi |
| 2565 | fi |
| 2566 | |
| 2567 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2568 | # Check whether --with-gphoto was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2569 | if test "${with_gphoto+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2570 | withval=$with_gphoto; |
| 2571 | fi |
| 2572 | |
| 2573 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 2574 | # Check whether --with-glu was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2575 | if test "${with_glu+set}" = set; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 2576 | withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi |
| 2577 | fi |
| 2578 | |
| 2579 | |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 2580 | # Check whether --with-gnutls was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2581 | if test "${with_gnutls+set}" = set; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 2582 | withval=$with_gnutls; |
| 2583 | fi |
| 2584 | |
| 2585 | |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 2586 | # Check whether --with-gsm was given. |
| 2587 | if test "${with_gsm+set}" = set; then : |
| 2588 | 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] | 2589 | fi |
| 2590 | |
| 2591 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 2592 | # Check whether --with-gstreamer was given. |
| 2593 | if test "${with_gstreamer+set}" = set; then : |
| 2594 | withval=$with_gstreamer; |
| 2595 | fi |
| 2596 | |
| 2597 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2598 | # Check whether --with-hal was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2599 | if test "${with_hal+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2600 | withval=$with_hal; |
| 2601 | fi |
| 2602 | |
| 2603 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2604 | # Check whether --with-jpeg was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2605 | if test "${with_jpeg+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2606 | withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi |
| 2607 | fi |
| 2608 | |
| 2609 | |
| 2610 | # Check whether --with-ldap was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2611 | if test "${with_ldap+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2612 | withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi |
| 2613 | fi |
| 2614 | |
| 2615 | |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 2616 | # Check whether --with-mpg123 was given. |
| 2617 | if test "${with_mpg123+set}" = set; then : |
| 2618 | withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi |
| 2619 | fi |
| 2620 | |
| 2621 | |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 2622 | # Check whether --with-openal was given. |
| 2623 | if test "${with_openal+set}" = set; then : |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 2624 | 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] | 2625 | fi |
| 2626 | |
| 2627 | |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 2628 | # Check whether --with-opencl was given. |
| 2629 | if test "${with_opencl+set}" = set; then : |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 2630 | 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] | 2631 | fi |
| 2632 | |
| 2633 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2634 | # Check whether --with-opengl was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2635 | if test "${with_opengl+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2636 | withval=$with_opengl; |
| 2637 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2638 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 2639 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2640 | # Check whether --with-openssl was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2641 | if test "${with_openssl+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2642 | withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi |
| 2643 | fi |
| 2644 | |
| 2645 | |
| 2646 | # Check whether --with-oss was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2647 | if test "${with_oss+set}" = set; then : |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 2648 | withval=$with_oss; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2649 | fi |
| 2650 | |
| 2651 | |
| 2652 | # Check whether --with-png was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2653 | if test "${with_png+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2654 | withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi |
| 2655 | fi |
| 2656 | |
| 2657 | |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 2658 | # Check whether --with-pthread was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2659 | if test "${with_pthread+set}" = set; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 2660 | withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi |
| 2661 | fi |
| 2662 | |
| 2663 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2664 | # Check whether --with-sane was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2665 | if test "${with_sane+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2666 | withval=$with_sane; |
| 2667 | fi |
| 2668 | |
| 2669 | |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 2670 | # Check whether --with-tiff was given. |
| 2671 | if test "${with_tiff+set}" = set; then : |
| 2672 | withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi |
| 2673 | fi |
| 2674 | |
| 2675 | |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 2676 | # Check whether --with-v4l was given. |
| 2677 | if test "${with_v4l+set}" = set; then : |
| 2678 | withval=$with_v4l; |
| 2679 | fi |
| 2680 | |
| 2681 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2682 | # Check whether --with-xcomposite was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2683 | if test "${with_xcomposite+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2684 | withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi |
| 2685 | fi |
| 2686 | |
| 2687 | |
| 2688 | # Check whether --with-xcursor was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2689 | if test "${with_xcursor+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2690 | withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi |
| 2691 | fi |
| 2692 | |
| 2693 | |
| 2694 | # Check whether --with-xinerama was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2695 | if test "${with_xinerama+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2696 | withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi |
| 2697 | fi |
| 2698 | |
| 2699 | |
| 2700 | # Check whether --with-xinput was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2701 | if test "${with_xinput+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2702 | withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi |
| 2703 | fi |
| 2704 | |
| 2705 | |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 2706 | # Check whether --with-xinput2 was given. |
| 2707 | if test "${with_xinput2+set}" = set; then : |
| 2708 | withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi |
| 2709 | fi |
| 2710 | |
| 2711 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2712 | # Check whether --with-xml was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2713 | if test "${with_xml+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2714 | withval=$with_xml; |
| 2715 | fi |
| 2716 | |
| 2717 | |
| 2718 | # Check whether --with-xrandr was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2719 | if test "${with_xrandr+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2720 | withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi |
| 2721 | fi |
| 2722 | |
| 2723 | |
| 2724 | # Check whether --with-xrender was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2725 | if test "${with_xrender+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2726 | withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi |
| 2727 | fi |
| 2728 | |
| 2729 | |
| 2730 | # Check whether --with-xshape was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2731 | if test "${with_xshape+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2732 | withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi |
| 2733 | fi |
| 2734 | |
| 2735 | |
| 2736 | # Check whether --with-xshm was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2737 | if test "${with_xshm+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2738 | withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi |
| 2739 | fi |
| 2740 | |
| 2741 | |
| 2742 | # Check whether --with-xslt was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2743 | if test "${with_xslt+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2744 | withval=$with_xslt; |
| 2745 | fi |
| 2746 | |
| 2747 | |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 2748 | # Check whether --with-xxf86vm was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2749 | if test "${with_xxf86vm+set}" = set; then : |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 2750 | 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] | 2751 | fi |
| 2752 | |
| 2753 | |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 2754 | # Check whether --with-zlib was given. |
| 2755 | if test "${with_zlib+set}" = set; then : |
| 2756 | withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi |
| 2757 | fi |
| 2758 | |
| 2759 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2760 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2761 | # Check whether --with-wine-tools was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2762 | if test "${with_wine_tools+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2763 | withval=$with_wine_tools; |
| 2764 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2765 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2766 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 2767 | # Check whether --with-wine64 was given. |
| 2768 | if test "${with_wine64+set}" = set; then : |
| 2769 | withval=$with_wine64; |
| 2770 | fi |
| 2771 | |
| 2772 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2773 | # Make sure we can run config.sub. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2774 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2775 | 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] | 2776 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2778 | $as_echo_n "checking build system type... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2779 | if ${ac_cv_build+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2780 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2781 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2782 | ac_build_alias=$build_alias |
| 2783 | test "x$ac_build_alias" = x && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2784 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2785 | test "x$ac_build_alias" = x && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2786 | 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] | 2787 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2788 | 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] | 2789 | |
| 2790 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2792 | $as_echo "$ac_cv_build" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2793 | case $ac_cv_build in |
| 2794 | *-*-*) ;; |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2795 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2796 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2797 | build=$ac_cv_build |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2798 | ac_save_IFS=$IFS; IFS='-' |
| 2799 | set x $ac_cv_build |
| 2800 | shift |
| 2801 | build_cpu=$1 |
| 2802 | build_vendor=$2 |
| 2803 | shift; shift |
| 2804 | # Remember, the first character of IFS is used to create $*, |
| 2805 | # except with old shells: |
| 2806 | build_os=$* |
| 2807 | IFS=$ac_save_IFS |
| 2808 | 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] | 2809 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2810 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2812 | $as_echo_n "checking host system type... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2813 | if ${ac_cv_host+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2814 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2815 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2816 | if test "x$host_alias" = x; then |
| 2817 | ac_cv_host=$ac_cv_build |
| 2818 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2819 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2820 | 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] | 2821 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2822 | |
| 2823 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2825 | $as_echo "$ac_cv_host" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2826 | case $ac_cv_host in |
| 2827 | *-*-*) ;; |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2828 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2829 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2830 | host=$ac_cv_host |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2831 | ac_save_IFS=$IFS; IFS='-' |
| 2832 | set x $ac_cv_host |
| 2833 | shift |
| 2834 | host_cpu=$1 |
| 2835 | host_vendor=$2 |
| 2836 | shift; shift |
| 2837 | # Remember, the first character of IFS is used to create $*, |
| 2838 | # except with old shells: |
| 2839 | host_os=$* |
| 2840 | IFS=$ac_save_IFS |
| 2841 | 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] | 2842 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2843 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 2844 | |
Alexandre Julliard | 73b724e | 2006-12-28 11:40:19 +0100 | [diff] [blame] | 2845 | case "$srcdir" in |
| 2846 | .) ;; |
| 2847 | *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2848 | 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] | 2849 | 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] | 2850 | fi ;; |
| 2851 | esac |
| 2852 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 2853 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2854 | { $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] | 2855 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2856 | set x ${MAKE-make} |
| 2857 | 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] | 2858 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2859 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2860 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2861 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2862 | SHELL = /bin/sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2863 | all: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2864 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2865 | _ACEOF |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2866 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2867 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2868 | *@@@%%%=?*=@@@%%%*) |
| 2869 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2870 | *) |
| 2871 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2872 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2873 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2874 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2875 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2877 | $as_echo "yes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2878 | SET_MAKE= |
| 2879 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2881 | $as_echo "no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2882 | SET_MAKE="MAKE=${MAKE-make}" |
| 2883 | fi |
| 2884 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2885 | ac_ext=c |
| 2886 | ac_cpp='$CPP $CPPFLAGS' |
| 2887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2890 | if test -n "$ac_tool_prefix"; then |
| 2891 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2892 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2894 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2895 | if ${ac_cv_prog_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2896 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2897 | else |
| 2898 | if test -n "$CC"; then |
| 2899 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2900 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2902 | for as_dir in $PATH |
| 2903 | do |
| 2904 | IFS=$as_save_IFS |
| 2905 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2906 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 2907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2908 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2909 | $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] | 2910 | break 2 |
| 2911 | fi |
| 2912 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2913 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2914 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2915 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2916 | fi |
| 2917 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2918 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2919 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2921 | $as_echo "$CC" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2922 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2924 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2925 | fi |
| 2926 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2927 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2928 | fi |
| 2929 | if test -z "$ac_cv_prog_CC"; then |
| 2930 | ac_ct_CC=$CC |
| 2931 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2932 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2934 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2935 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2936 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2937 | else |
| 2938 | if test -n "$ac_ct_CC"; then |
| 2939 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2940 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2942 | for as_dir in $PATH |
| 2943 | do |
| 2944 | IFS=$as_save_IFS |
| 2945 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2946 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 2947 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2948 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2949 | $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] | 2950 | break 2 |
| 2951 | fi |
| 2952 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2953 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2954 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2955 | |
| 2956 | fi |
| 2957 | fi |
| 2958 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2959 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2961 | $as_echo "$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2962 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2964 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2965 | fi |
| 2966 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2967 | if test "x$ac_ct_CC" = x; then |
| 2968 | CC="" |
| 2969 | else |
| 2970 | case $cross_compiling:$ac_tool_warned in |
| 2971 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2972 | { $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] | 2973 | $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] | 2974 | ac_tool_warned=yes ;; |
| 2975 | esac |
| 2976 | CC=$ac_ct_CC |
| 2977 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2978 | else |
| 2979 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2980 | fi |
| 2981 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2982 | if test -z "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2983 | if test -n "$ac_tool_prefix"; then |
| 2984 | # 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] | 2985 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2987 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2988 | if ${ac_cv_prog_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2989 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2990 | else |
| 2991 | if test -n "$CC"; then |
| 2992 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2993 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2995 | for as_dir in $PATH |
| 2996 | do |
| 2997 | IFS=$as_save_IFS |
| 2998 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2999 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3001 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3002 | $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] | 3003 | break 2 |
| 3004 | fi |
| 3005 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3006 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3007 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3008 | |
| 3009 | fi |
| 3010 | fi |
| 3011 | CC=$ac_cv_prog_CC |
| 3012 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3014 | $as_echo "$CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3015 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3017 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3018 | fi |
| 3019 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3020 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3021 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3022 | fi |
| 3023 | if test -z "$CC"; then |
| 3024 | # Extract the first word of "cc", so it can be a program name with args. |
| 3025 | set dummy cc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3027 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3028 | if ${ac_cv_prog_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3029 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3030 | else |
| 3031 | if test -n "$CC"; then |
| 3032 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3033 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3034 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3036 | for as_dir in $PATH |
| 3037 | do |
| 3038 | IFS=$as_save_IFS |
| 3039 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3040 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3042 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3043 | ac_prog_rejected=yes |
| 3044 | continue |
| 3045 | fi |
| 3046 | ac_cv_prog_CC="cc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3047 | $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] | 3048 | break 2 |
| 3049 | fi |
| 3050 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3051 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3052 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3053 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3054 | if test $ac_prog_rejected = yes; then |
| 3055 | # We found a bogon in the path, so make sure we never use it. |
| 3056 | set dummy $ac_cv_prog_CC |
| 3057 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3058 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3059 | # We chose a different compiler from the bogus one. |
| 3060 | # However, it has the same basename, so the bogon will be chosen |
| 3061 | # first if we set CC to just the basename; use the full file name. |
| 3062 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3063 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3064 | fi |
| 3065 | fi |
| 3066 | fi |
| 3067 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3068 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3069 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3071 | $as_echo "$CC" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3072 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3074 | $as_echo "no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3075 | fi |
| 3076 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3077 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3078 | fi |
| 3079 | if test -z "$CC"; then |
| 3080 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3081 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3082 | do |
| 3083 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3084 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3086 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3087 | if ${ac_cv_prog_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3088 | $as_echo_n "(cached) " >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3089 | else |
| 3090 | if test -n "$CC"; then |
| 3091 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3092 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3094 | for as_dir in $PATH |
| 3095 | do |
| 3096 | IFS=$as_save_IFS |
| 3097 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3098 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3100 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3101 | $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] | 3102 | break 2 |
| 3103 | fi |
| 3104 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3105 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3106 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3107 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3108 | fi |
| 3109 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3110 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3111 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3113 | $as_echo "$CC" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3114 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3116 | $as_echo "no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3117 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3118 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3119 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3120 | test -n "$CC" && break |
| 3121 | done |
| 3122 | fi |
| 3123 | if test -z "$CC"; then |
| 3124 | ac_ct_CC=$CC |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3125 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3126 | do |
| 3127 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3128 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3130 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3131 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3132 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3133 | else |
| 3134 | if test -n "$ac_ct_CC"; then |
| 3135 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3136 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3138 | for as_dir in $PATH |
| 3139 | do |
| 3140 | IFS=$as_save_IFS |
| 3141 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3142 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3144 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3145 | $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] | 3146 | break 2 |
| 3147 | fi |
| 3148 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3149 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3150 | IFS=$as_save_IFS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3151 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3152 | fi |
| 3153 | fi |
| 3154 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3155 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3157 | $as_echo "$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3158 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3160 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3161 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3162 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3163 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3164 | test -n "$ac_ct_CC" && break |
| 3165 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3166 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3167 | if test "x$ac_ct_CC" = x; then |
| 3168 | CC="" |
| 3169 | else |
| 3170 | case $cross_compiling:$ac_tool_warned in |
| 3171 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3172 | { $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] | 3173 | $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] | 3174 | ac_tool_warned=yes ;; |
| 3175 | esac |
| 3176 | CC=$ac_ct_CC |
| 3177 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3178 | fi |
| 3179 | |
| 3180 | fi |
| 3181 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3182 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3183 | 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] | 3184 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3185 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3186 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3187 | |
| 3188 | # Provide some information about the compiler. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3189 | $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] | 3190 | set X $ac_compile |
| 3191 | ac_compiler=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3192 | for ac_option in --version -v -V -qversion; do |
| 3193 | { { ac_try="$ac_compiler $ac_option >&5" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3194 | case "(($ac_try" in |
| 3195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3196 | *) ac_try_echo=$ac_try;; |
| 3197 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3198 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3199 | $as_echo "$ac_try_echo"; } >&5 |
| 3200 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3201 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3202 | if test -s conftest.err; then |
| 3203 | sed '10a\ |
| 3204 | ... rest of stderr output deleted ... |
| 3205 | 10q' conftest.err >conftest.er1 |
| 3206 | cat conftest.er1 >&5 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3207 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3208 | rm -f conftest.er1 conftest.err |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3210 | test $ac_status = 0; } |
| 3211 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3212 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3214 | /* end confdefs.h. */ |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3215 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3216 | int |
| 3217 | main () |
| 3218 | { |
| 3219 | |
| 3220 | ; |
| 3221 | return 0; |
| 3222 | } |
| 3223 | _ACEOF |
| 3224 | ac_clean_files_save=$ac_clean_files |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3225 | 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] | 3226 | # Try to create an executable without -o first, disregard a.out. |
| 3227 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3228 | # of exeext. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3230 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3231 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3232 | |
| 3233 | # The possible output files: |
| 3234 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3235 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3236 | ac_rmfiles= |
| 3237 | for ac_file in $ac_files |
| 3238 | do |
| 3239 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3240 | *.$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] | 3241 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3242 | esac |
| 3243 | done |
| 3244 | rm -f $ac_rmfiles |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3245 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3246 | if { { ac_try="$ac_link_default" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3247 | case "(($ac_try" in |
| 3248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3249 | *) ac_try_echo=$ac_try;; |
| 3250 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3251 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3252 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3253 | (eval "$ac_link_default") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3254 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3255 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3256 | test $ac_status = 0; }; then : |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3257 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3258 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3259 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3260 | # so that the user can short-circuit this test for compilers unknown to |
| 3261 | # Autoconf. |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 3262 | for ac_file in $ac_files '' |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3263 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3264 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3265 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3266 | *.$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] | 3267 | ;; |
| 3268 | [ab].out ) |
| 3269 | # We found the default executable, but exeext='' is most |
| 3270 | # certainly right. |
| 3271 | break;; |
| 3272 | *.* ) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3273 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3274 | then :; else |
| 3275 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3276 | fi |
| 3277 | # We set ac_cv_exeext here because the later test for it is not |
| 3278 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3279 | # argument, so we may need to know it at that point already. |
| 3280 | # Even if this section looks crufty: it has the advantage of |
| 3281 | # actually working. |
| 3282 | break;; |
| 3283 | * ) |
| 3284 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3285 | esac |
| 3286 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3287 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3288 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3289 | else |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 3290 | ac_file='' |
| 3291 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3292 | if test -z "$ac_file"; then : |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3294 | $as_echo "no" >&6; } |
| 3295 | $as_echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3297 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3298 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3299 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3300 | as_fn_error 77 "C compiler cannot create executables |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3301 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3302 | else |
| 3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3304 | $as_echo "yes" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3305 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3307 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3309 | $as_echo "$ac_file" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3310 | ac_exeext=$ac_cv_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3311 | |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3312 | 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] | 3313 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3314 | { $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] | 3315 | $as_echo_n "checking for suffix of executables... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3316 | if { { ac_try="$ac_link" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3317 | case "(($ac_try" in |
| 3318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3319 | *) ac_try_echo=$ac_try;; |
| 3320 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3321 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3322 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3323 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3324 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3326 | test $ac_status = 0; }; then : |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3327 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3328 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3329 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3330 | # `rm'. |
| 3331 | for ac_file in conftest.exe conftest conftest.*; do |
| 3332 | test -f "$ac_file" || continue |
| 3333 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3334 | *.$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] | 3335 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3336 | break;; |
| 3337 | * ) break;; |
| 3338 | esac |
| 3339 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3340 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3341 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3342 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3343 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3344 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3345 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3346 | rm -f conftest conftest$ac_cv_exeext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3348 | $as_echo "$ac_cv_exeext" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3349 | |
| 3350 | rm -f conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3351 | EXEEXT=$ac_cv_exeext |
| 3352 | ac_exeext=$EXEEXT |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3354 | /* end confdefs.h. */ |
| 3355 | #include <stdio.h> |
| 3356 | int |
| 3357 | main () |
| 3358 | { |
| 3359 | FILE *f = fopen ("conftest.out", "w"); |
| 3360 | return ferror (f) || fclose (f) != 0; |
| 3361 | |
| 3362 | ; |
| 3363 | return 0; |
| 3364 | } |
| 3365 | _ACEOF |
| 3366 | ac_clean_files="$ac_clean_files conftest.out" |
| 3367 | # Check that the compiler produces executables we can run. If not, either |
| 3368 | # the compiler is broken, or we cross compile. |
| 3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3370 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3371 | if test "$cross_compiling" != yes; then |
| 3372 | { { ac_try="$ac_link" |
| 3373 | case "(($ac_try" in |
| 3374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3375 | *) ac_try_echo=$ac_try;; |
| 3376 | esac |
| 3377 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3378 | $as_echo "$ac_try_echo"; } >&5 |
| 3379 | (eval "$ac_link") 2>&5 |
| 3380 | ac_status=$? |
| 3381 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3382 | test $ac_status = 0; } |
| 3383 | if { ac_try='./conftest$ac_cv_exeext' |
| 3384 | { { case "(($ac_try" in |
| 3385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3386 | *) ac_try_echo=$ac_try;; |
| 3387 | esac |
| 3388 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3389 | $as_echo "$ac_try_echo"; } >&5 |
| 3390 | (eval "$ac_try") 2>&5 |
| 3391 | ac_status=$? |
| 3392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3393 | test $ac_status = 0; }; }; then |
| 3394 | cross_compiling=no |
| 3395 | else |
| 3396 | if test "$cross_compiling" = maybe; then |
| 3397 | cross_compiling=yes |
| 3398 | else |
| 3399 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3400 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3401 | as_fn_error $? "cannot run C compiled programs. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3402 | If you meant to cross compile, use \`--host'. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3403 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3404 | fi |
| 3405 | fi |
| 3406 | fi |
| 3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3408 | $as_echo "$cross_compiling" >&6; } |
| 3409 | |
| 3410 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3411 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3412 | { $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] | 3413 | $as_echo_n "checking for suffix of object files... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3414 | if ${ac_cv_objext+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3415 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3416 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3418 | /* end confdefs.h. */ |
| 3419 | |
| 3420 | int |
| 3421 | main () |
| 3422 | { |
| 3423 | |
| 3424 | ; |
| 3425 | return 0; |
| 3426 | } |
| 3427 | _ACEOF |
| 3428 | rm -f conftest.o conftest.obj |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3429 | if { { ac_try="$ac_compile" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3430 | case "(($ac_try" in |
| 3431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3432 | *) ac_try_echo=$ac_try;; |
| 3433 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3434 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3435 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3436 | (eval "$ac_compile") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3437 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3438 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3439 | test $ac_status = 0; }; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3440 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3441 | test -f "$ac_file" || continue; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3442 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3443 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3444 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3445 | break;; |
| 3446 | esac |
| 3447 | done |
| 3448 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3449 | $as_echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3451 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3452 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3453 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3454 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3455 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3456 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3457 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3458 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3460 | $as_echo "$ac_cv_objext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3461 | OBJEXT=$ac_cv_objext |
| 3462 | ac_objext=$OBJEXT |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3463 | { $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] | 3464 | $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] | 3465 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3466 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3467 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3469 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3470 | |
| 3471 | int |
| 3472 | main () |
| 3473 | { |
| 3474 | #ifndef __GNUC__ |
| 3475 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3476 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3477 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3478 | ; |
| 3479 | return 0; |
| 3480 | } |
| 3481 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3482 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3483 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3484 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3485 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3486 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3488 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3489 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3490 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3491 | { $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] | 3492 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3493 | if test $ac_compiler_gnu = yes; then |
| 3494 | GCC=yes |
| 3495 | else |
| 3496 | GCC= |
| 3497 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3498 | ac_test_CFLAGS=${CFLAGS+set} |
| 3499 | ac_save_CFLAGS=$CFLAGS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3500 | { $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] | 3501 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3502 | if ${ac_cv_prog_cc_g+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3503 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3504 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3505 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3506 | ac_c_werror_flag=yes |
| 3507 | ac_cv_prog_cc_g=no |
| 3508 | CFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3510 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3511 | |
| 3512 | int |
| 3513 | main () |
| 3514 | { |
| 3515 | |
| 3516 | ; |
| 3517 | return 0; |
| 3518 | } |
| 3519 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3520 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3521 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3522 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3523 | CFLAGS="" |
| 3524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3525 | /* end confdefs.h. */ |
| 3526 | |
| 3527 | int |
| 3528 | main () |
| 3529 | { |
| 3530 | |
| 3531 | ; |
| 3532 | return 0; |
| 3533 | } |
| 3534 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3535 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3536 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3537 | else |
| 3538 | ac_c_werror_flag=$ac_save_c_werror_flag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3539 | CFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3541 | /* end confdefs.h. */ |
| 3542 | |
| 3543 | int |
| 3544 | main () |
| 3545 | { |
| 3546 | |
| 3547 | ; |
| 3548 | return 0; |
| 3549 | } |
| 3550 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3551 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3552 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3553 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3555 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3557 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3559 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3560 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3561 | { $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] | 3562 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3563 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3564 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3565 | elif test $ac_cv_prog_cc_g = yes; then |
| 3566 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3567 | CFLAGS="-g -O2" |
| 3568 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3569 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3570 | fi |
| 3571 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3572 | if test "$GCC" = yes; then |
| 3573 | CFLAGS="-O2" |
| 3574 | else |
| 3575 | CFLAGS= |
| 3576 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3577 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3578 | { $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] | 3579 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3580 | if ${ac_cv_prog_cc_c89+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3581 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3582 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3583 | ac_cv_prog_cc_c89=no |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3584 | ac_save_CC=$CC |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3586 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3587 | #include <stdarg.h> |
| 3588 | #include <stdio.h> |
| 3589 | #include <sys/types.h> |
| 3590 | #include <sys/stat.h> |
| 3591 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3592 | struct buf { int x; }; |
| 3593 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3594 | static char *e (p, i) |
| 3595 | char **p; |
| 3596 | int i; |
| 3597 | { |
| 3598 | return p[i]; |
| 3599 | } |
| 3600 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3601 | { |
| 3602 | char *s; |
| 3603 | va_list v; |
| 3604 | va_start (v,p); |
| 3605 | s = g (p, va_arg (v,int)); |
| 3606 | va_end (v); |
| 3607 | return s; |
| 3608 | } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3609 | |
| 3610 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3611 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3612 | These don't provoke an error unfortunately, instead are silently treated |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3613 | 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] | 3614 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3615 | 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] | 3616 | that's true only with -std. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3617 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3618 | |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 3619 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3620 | inside strings and character constants. */ |
| 3621 | #define FOO(x) 'x' |
| 3622 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3623 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3624 | int test (int i, double x); |
| 3625 | struct s1 {int (*f) (int a);}; |
| 3626 | struct s2 {int (*f) (double a);}; |
| 3627 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3628 | int argc; |
| 3629 | char **argv; |
| 3630 | int |
| 3631 | main () |
| 3632 | { |
| 3633 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3634 | ; |
| 3635 | return 0; |
| 3636 | } |
| 3637 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3638 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3639 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3640 | do |
| 3641 | CC="$ac_save_CC $ac_arg" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3642 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3643 | ac_cv_prog_cc_c89=$ac_arg |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3644 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3645 | rm -f core conftest.err conftest.$ac_objext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3646 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3647 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3648 | rm -f conftest.$ac_ext |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3649 | CC=$ac_save_CC |
| 3650 | |
| 3651 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3652 | # AC_CACHE_VAL |
| 3653 | case "x$ac_cv_prog_cc_c89" in |
| 3654 | x) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3656 | $as_echo "none needed" >&6; } ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3657 | xno) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3659 | $as_echo "unsupported" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3660 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3661 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3662 | { $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] | 3663 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3664 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3665 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3666 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3667 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3668 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3669 | ac_ext=c |
| 3670 | ac_cpp='$CPP $CPPFLAGS' |
| 3671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3674 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3675 | ac_ext=cpp |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3676 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3677 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3678 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3679 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3680 | if test -z "$CXX"; then |
| 3681 | if test -n "$CCC"; then |
| 3682 | CXX=$CCC |
| 3683 | else |
| 3684 | if test -n "$ac_tool_prefix"; then |
| 3685 | 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] | 3686 | do |
| 3687 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3688 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3690 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3691 | if ${ac_cv_prog_CXX+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3692 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3693 | else |
| 3694 | if test -n "$CXX"; then |
| 3695 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3696 | else |
| 3697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3698 | for as_dir in $PATH |
| 3699 | do |
| 3700 | IFS=$as_save_IFS |
| 3701 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3702 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3703 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3704 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3705 | $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] | 3706 | break 2 |
| 3707 | fi |
| 3708 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3709 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3710 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3711 | |
| 3712 | fi |
| 3713 | fi |
| 3714 | CXX=$ac_cv_prog_CXX |
| 3715 | if test -n "$CXX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3717 | $as_echo "$CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3718 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3720 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3721 | fi |
| 3722 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3723 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3724 | test -n "$CXX" && break |
| 3725 | done |
| 3726 | fi |
| 3727 | if test -z "$CXX"; then |
| 3728 | ac_ct_CXX=$CXX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3729 | 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] | 3730 | do |
| 3731 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3732 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3734 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3735 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3736 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3737 | else |
| 3738 | if test -n "$ac_ct_CXX"; then |
| 3739 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3740 | else |
| 3741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3742 | for as_dir in $PATH |
| 3743 | do |
| 3744 | IFS=$as_save_IFS |
| 3745 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3746 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3747 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3748 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3749 | $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] | 3750 | break 2 |
| 3751 | fi |
| 3752 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3753 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3754 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3755 | |
| 3756 | fi |
| 3757 | fi |
| 3758 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3759 | if test -n "$ac_ct_CXX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3761 | $as_echo "$ac_ct_CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3762 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3764 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3765 | fi |
| 3766 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3767 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3768 | test -n "$ac_ct_CXX" && break |
| 3769 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3770 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3771 | if test "x$ac_ct_CXX" = x; then |
| 3772 | CXX="g++" |
| 3773 | else |
| 3774 | case $cross_compiling:$ac_tool_warned in |
| 3775 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3776 | { $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] | 3777 | $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] | 3778 | ac_tool_warned=yes ;; |
| 3779 | esac |
| 3780 | CXX=$ac_ct_CXX |
| 3781 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3782 | fi |
| 3783 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3784 | fi |
| 3785 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3786 | # Provide some information about the compiler. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3787 | $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] | 3788 | set X $ac_compile |
| 3789 | ac_compiler=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3790 | for ac_option in --version -v -V -qversion; do |
| 3791 | { { ac_try="$ac_compiler $ac_option >&5" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3792 | case "(($ac_try" in |
| 3793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3794 | *) ac_try_echo=$ac_try;; |
| 3795 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3797 | $as_echo "$ac_try_echo"; } >&5 |
| 3798 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3799 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3800 | if test -s conftest.err; then |
| 3801 | sed '10a\ |
| 3802 | ... rest of stderr output deleted ... |
| 3803 | 10q' conftest.err >conftest.er1 |
| 3804 | cat conftest.er1 >&5 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3805 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3806 | rm -f conftest.er1 conftest.err |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3808 | test $ac_status = 0; } |
| 3809 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3810 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3811 | { $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] | 3812 | $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] | 3813 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3814 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3815 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3817 | /* end confdefs.h. */ |
| 3818 | |
| 3819 | int |
| 3820 | main () |
| 3821 | { |
| 3822 | #ifndef __GNUC__ |
| 3823 | choke me |
| 3824 | #endif |
| 3825 | |
| 3826 | ; |
| 3827 | return 0; |
| 3828 | } |
| 3829 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3830 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3831 | ac_compiler_gnu=yes |
| 3832 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3833 | ac_compiler_gnu=no |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3834 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3836 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3837 | |
| 3838 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3839 | { $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] | 3840 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3841 | if test $ac_compiler_gnu = yes; then |
| 3842 | GXX=yes |
| 3843 | else |
| 3844 | GXX= |
| 3845 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3846 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3847 | ac_save_CXXFLAGS=$CXXFLAGS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3848 | { $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] | 3849 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3850 | if ${ac_cv_prog_cxx_g+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3851 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3852 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3853 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3854 | ac_cxx_werror_flag=yes |
| 3855 | ac_cv_prog_cxx_g=no |
| 3856 | CXXFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3858 | /* end confdefs.h. */ |
| 3859 | |
| 3860 | int |
| 3861 | main () |
| 3862 | { |
| 3863 | |
| 3864 | ; |
| 3865 | return 0; |
| 3866 | } |
| 3867 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3868 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3869 | ac_cv_prog_cxx_g=yes |
| 3870 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3871 | CXXFLAGS="" |
| 3872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3873 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3874 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3875 | int |
| 3876 | main () |
| 3877 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3878 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3879 | ; |
| 3880 | return 0; |
| 3881 | } |
| 3882 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3883 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3884 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3885 | else |
| 3886 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3887 | CXXFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3889 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3890 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3891 | int |
| 3892 | main () |
| 3893 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3894 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3895 | ; |
| 3896 | return 0; |
| 3897 | } |
| 3898 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3899 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3900 | ac_cv_prog_cxx_g=yes |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3901 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3903 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3905 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3907 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3908 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3909 | { $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] | 3910 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3911 | if test "$ac_test_CXXFLAGS" = set; then |
| 3912 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3913 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3914 | if test "$GXX" = yes; then |
| 3915 | CXXFLAGS="-g -O2" |
| 3916 | else |
| 3917 | CXXFLAGS="-g" |
| 3918 | fi |
| 3919 | else |
| 3920 | if test "$GXX" = yes; then |
| 3921 | CXXFLAGS="-O2" |
| 3922 | else |
| 3923 | CXXFLAGS= |
| 3924 | fi |
| 3925 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3926 | ac_ext=c |
| 3927 | ac_cpp='$CPP $CPPFLAGS' |
| 3928 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3929 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3930 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3931 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3932 | if test -n "$ac_tool_prefix"; then |
| 3933 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. |
| 3934 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3936 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3937 | if ${ac_cv_prog_CPPBIN+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3938 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3939 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3940 | if test -n "$CPPBIN"; then |
| 3941 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3942 | else |
| 3943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3944 | for as_dir in $PATH |
| 3945 | do |
| 3946 | IFS=$as_save_IFS |
| 3947 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3948 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3949 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3950 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3951 | $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] | 3952 | break 2 |
| 3953 | fi |
| 3954 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3955 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3956 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3957 | |
| 3958 | fi |
| 3959 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3960 | CPPBIN=$ac_cv_prog_CPPBIN |
| 3961 | if test -n "$CPPBIN"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3963 | $as_echo "$CPPBIN" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3964 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3966 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3967 | fi |
| 3968 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3969 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3970 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3971 | if test -z "$ac_cv_prog_CPPBIN"; then |
| 3972 | ac_ct_CPPBIN=$CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3973 | # Extract the first word of "cpp", so it can be a program name with args. |
| 3974 | set dummy cpp; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3976 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3977 | if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3978 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3979 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3980 | if test -n "$ac_ct_CPPBIN"; then |
| 3981 | 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] | 3982 | else |
| 3983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3984 | for as_dir in $PATH |
| 3985 | do |
| 3986 | IFS=$as_save_IFS |
| 3987 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3988 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3989 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3990 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3991 | $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] | 3992 | break 2 |
| 3993 | fi |
| 3994 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3995 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3996 | IFS=$as_save_IFS |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3997 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3998 | fi |
| 3999 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4000 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
| 4001 | if test -n "$ac_ct_CPPBIN"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4003 | $as_echo "$ac_ct_CPPBIN" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4004 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4006 | $as_echo "no" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4007 | fi |
| 4008 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4009 | if test "x$ac_ct_CPPBIN" = x; then |
| 4010 | CPPBIN="cpp" |
| 4011 | else |
| 4012 | case $cross_compiling:$ac_tool_warned in |
| 4013 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4014 | { $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] | 4015 | $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] | 4016 | ac_tool_warned=yes ;; |
| 4017 | esac |
| 4018 | CPPBIN=$ac_ct_CPPBIN |
| 4019 | fi |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4020 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4021 | CPPBIN="$ac_cv_prog_CPPBIN" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4022 | fi |
| 4023 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4024 | |
Alexandre Julliard | 1aea4ef | 2009-08-27 13:35:46 +0200 | [diff] [blame] | 4025 | cat >>confdefs.h <<_ACEOF |
| 4026 | #define EXEEXT "$ac_exeext" |
| 4027 | _ACEOF |
| 4028 | |
| 4029 | |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4030 | case $host in |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4031 | *-darwin*) |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4032 | if test "x$enable_win64" = "xyes" |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4033 | then |
| 4034 | CC="$CC -m64" |
| 4035 | CXX="$CXX -m64" |
| 4036 | LD="${LD:-ld} -arch x86_64" |
| 4037 | AS="${AS:-as} -arch x86_64" |
| 4038 | host_cpu="x86_64" |
| 4039 | notice_platform="64-bit " |
| 4040 | TARGETFLAGS="-m64" |
| 4041 | |
| 4042 | else |
| 4043 | CC="$CC -m32" |
| 4044 | CXX="$CXX -m32" |
| 4045 | LD="${LD:-ld} -arch i386" |
| 4046 | AS="${AS:-as} -arch i386" |
| 4047 | host_cpu="i386" |
| 4048 | notice_platform="32-bit " |
| 4049 | TARGETFLAGS="-m32" |
| 4050 | |
| 4051 | enable_win16=${enable_win16:-yes} |
| 4052 | fi |
| 4053 | ;; |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4054 | x86_64*) |
Alexandre Julliard | 6b4ed0f | 2009-01-12 19:29:43 +0100 | [diff] [blame] | 4055 | if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes" |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4056 | then |
| 4057 | CC="$CC -m32" |
| 4058 | CXX="$CXX -m32" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4060 | $as_echo_n "checking whether $CC works... " >&6; } |
| 4061 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4063 | /* end confdefs.h. */ |
| 4064 | |
| 4065 | int |
| 4066 | main () |
| 4067 | { |
| 4068 | |
| 4069 | ; |
| 4070 | return 0; |
| 4071 | } |
| 4072 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4073 | if ac_fn_c_try_link "$LINENO"; then : |
| 4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4075 | $as_echo "yes" >&6; } |
| 4076 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4078 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4079 | 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] | 4080 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4081 | rm -f core conftest.err conftest.$ac_objext \ |
| 4082 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4083 | LD="${LD:-ld} -m elf_i386" |
| 4084 | AS="${AS:-as} --32" |
| 4085 | host_cpu="i386" |
| 4086 | notice_platform="32-bit " |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4087 | TARGETFLAGS="-m32" |
| 4088 | |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4089 | enable_win16=${enable_win16:-yes} |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4090 | else |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4091 | if test "x${GCC}" = "xyes" |
| 4092 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4093 | { $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] | 4094 | $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4096 | /* end confdefs.h. */ |
| 4097 | #include <stdarg.h> |
| 4098 | int |
| 4099 | main () |
| 4100 | { |
| 4101 | void func(__builtin_ms_va_list *args); |
| 4102 | ; |
| 4103 | return 0; |
| 4104 | } |
| 4105 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4106 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4108 | $as_echo "yes" >&6; } |
| 4109 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4111 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4112 | 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] | 4113 | fi |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4115 | fi |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4116 | TARGETFLAGS="-m64" |
| 4117 | |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4118 | fi |
| 4119 | ;; |
Alexandre Julliard | 391fce6 | 2009-04-02 12:59:52 +0200 | [diff] [blame] | 4120 | *-mingw32*|*-cygwin*) |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4121 | enable_win16=${enable_win16:-no} |
Alexandre Goujon | ac0a38c | 2010-03-01 21:39:40 +0100 | [diff] [blame] | 4122 | CFLAGS="$CFLAGS -D_WIN32" |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4123 | ;; |
| 4124 | i[3456789]86*) |
| 4125 | enable_win16=${enable_win16:-yes} |
| 4126 | ;; |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4127 | esac |
| 4128 | |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4129 | enable_win16=${enable_win16:-no} |
Alexandre Julliard | 4422d22 | 2011-05-10 13:26:28 +0200 | [diff] [blame] | 4130 | enable_win64=${enable_win64:-no} |
Alexandre Julliard | 776820e | 2009-02-23 17:46:33 +0100 | [diff] [blame] | 4131 | |
Alexandre Julliard | 9508155 | 2010-02-09 19:08:17 +0100 | [diff] [blame] | 4132 | enable_winetest=${enable_winetest:-$enable_tests} |
| 4133 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4134 | if test -n "$with_wine64" |
| 4135 | then |
| 4136 | if test "x$enable_win64" = "xyes" |
| 4137 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4138 | as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive. |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4139 | --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5 |
| 4140 | fi |
Alexandre Julliard | 9064777 | 2009-08-13 19:48:42 +0200 | [diff] [blame] | 4141 | WOW64_DISABLE=\# |
| 4142 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4143 | enable_fonts=${enable_fonts:-no} |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4144 | enable_server=${enable_server:-no} |
| 4145 | enable_tools=${enable_tools:-no} |
Alexandre Julliard | b326532 | 2010-04-21 12:28:22 +0200 | [diff] [blame] | 4146 | elif test "x$enable_win64" = "xyes" |
| 4147 | then |
| 4148 | test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64" |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4149 | fi |
| 4150 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4151 | { $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] | 4152 | $as_echo_n "checking for the directory containing the Wine tools... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4153 | if ${wine_cv_toolsdir+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4154 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4155 | else |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4156 | wine_cv_toolsdir="$with_wine_tools" |
| 4157 | if test -z "$with_wine_tools"; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4158 | if test "$cross_compiling" = "yes"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4159 | 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] | 4160 | elif test -n "$with_wine64"; then |
| 4161 | wine_cv_toolsdir="$with_wine64" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4162 | fi |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4163 | fi |
| 4164 | if test -z "$wine_cv_toolsdir"; then |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4165 | wine_cv_toolsdir="\$(top_builddir)" |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4166 | elif test -d "$wine_cv_toolsdir/tools/winebuild"; then |
| 4167 | case "$wine_cv_toolsdir" in |
| 4168 | /*) ;; |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4169 | *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;; |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4170 | esac |
| 4171 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4172 | 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] | 4173 | fi |
| 4174 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4176 | $as_echo "$wine_cv_toolsdir" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4177 | TOOLSDIR=$wine_cv_toolsdir |
| 4178 | |
Alexandre Julliard | 4d135d9 | 2009-02-16 13:08:44 +0100 | [diff] [blame] | 4179 | if test -n "$host_alias" -a "$host_alias" != "$build_alias" |
Alexandre Julliard | 424cb27 | 2008-12-26 17:54:50 +0100 | [diff] [blame] | 4180 | then |
Alexandre Julliard | 0fea4a5 | 2009-02-12 10:28:23 +0100 | [diff] [blame] | 4181 | TARGETFLAGS="-b $host_alias $TARGETFLAGS" |
Alexandre Julliard | 424cb27 | 2008-12-26 17:54:50 +0100 | [diff] [blame] | 4182 | |
| 4183 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4184 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4185 | for ac_prog in flex |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4186 | do |
| 4187 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4188 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4190 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4191 | if ${ac_cv_prog_FLEX+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4192 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4193 | else |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4194 | if test -n "$FLEX"; then |
| 4195 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4196 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4198 | for as_dir in $PATH |
| 4199 | do |
| 4200 | IFS=$as_save_IFS |
| 4201 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4202 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4204 | ac_cv_prog_FLEX="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4205 | $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] | 4206 | break 2 |
| 4207 | fi |
| 4208 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4209 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4210 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4211 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4212 | fi |
| 4213 | fi |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4214 | FLEX=$ac_cv_prog_FLEX |
| 4215 | if test -n "$FLEX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4217 | $as_echo "$FLEX" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4218 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4220 | $as_echo "no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4221 | fi |
| 4222 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4223 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4224 | test -n "$FLEX" && break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4225 | done |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4226 | test -n "$FLEX" || FLEX="none" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4227 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4228 | if test "$FLEX" = "none" |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4229 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4230 | 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] | 4231 | fi |
Michael Stefaniuc | ce30733 | 2009-12-29 18:07:02 +0100 | [diff] [blame] | 4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5 |
| 4233 | $as_echo_n "checking whether flex is recent enough... " >&6; } |
| 4234 | cat >conftest.l <<EOF |
| 4235 | %top{ |
| 4236 | #include "prediluvian.h" |
| 4237 | } |
| 4238 | %% |
| 4239 | EOF |
Alexandre Julliard | 27816c7 | 2010-07-28 11:04:46 +0200 | [diff] [blame] | 4240 | if $FLEX -t conftest.l >/dev/null 2>&5 |
Michael Stefaniuc | ce30733 | 2009-12-29 18:07:02 +0100 | [diff] [blame] | 4241 | then |
| 4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4243 | $as_echo "yes" >&6; } |
| 4244 | else |
| 4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4246 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4247 | 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] | 4248 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4249 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4250 | for ac_prog in bison |
| 4251 | do |
| 4252 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4253 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4255 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4256 | if ${ac_cv_prog_BISON+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4257 | $as_echo_n "(cached) " >&6 |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4258 | else |
| 4259 | if test -n "$BISON"; then |
| 4260 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
| 4261 | else |
| 4262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4263 | for as_dir in $PATH |
| 4264 | do |
| 4265 | IFS=$as_save_IFS |
| 4266 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4267 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4269 | ac_cv_prog_BISON="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4270 | $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] | 4271 | break 2 |
| 4272 | fi |
| 4273 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4274 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4275 | IFS=$as_save_IFS |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4276 | |
| 4277 | fi |
| 4278 | fi |
| 4279 | BISON=$ac_cv_prog_BISON |
| 4280 | if test -n "$BISON"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4282 | $as_echo "$BISON" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4283 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4285 | $as_echo "no" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4286 | fi |
| 4287 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4288 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4289 | test -n "$BISON" && break |
| 4290 | done |
| 4291 | test -n "$BISON" || BISON="none" |
| 4292 | |
| 4293 | if test "$BISON" = "none" |
| 4294 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4295 | 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] | 4296 | fi |
| 4297 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4298 | if test -n "$ac_tool_prefix"; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4299 | for ac_prog in ar gar |
| 4300 | do |
| 4301 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4302 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4304 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4305 | if ${ac_cv_prog_AR+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4306 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4307 | else |
| 4308 | if test -n "$AR"; then |
| 4309 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4310 | else |
| 4311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4312 | for as_dir in $PATH |
| 4313 | do |
| 4314 | IFS=$as_save_IFS |
| 4315 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4316 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4318 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4319 | $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] | 4320 | break 2 |
| 4321 | fi |
| 4322 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4323 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4324 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4325 | |
| 4326 | fi |
| 4327 | fi |
| 4328 | AR=$ac_cv_prog_AR |
| 4329 | if test -n "$AR"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4331 | $as_echo "$AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4332 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4334 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4335 | fi |
| 4336 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4337 | |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4338 | test -n "$AR" && break |
| 4339 | done |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4340 | fi |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4341 | if test -z "$AR"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4342 | ac_ct_AR=$AR |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4343 | for ac_prog in ar gar |
| 4344 | do |
| 4345 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4346 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4348 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4349 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4350 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4351 | else |
| 4352 | if test -n "$ac_ct_AR"; then |
| 4353 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4354 | else |
| 4355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4356 | for as_dir in $PATH |
| 4357 | do |
| 4358 | IFS=$as_save_IFS |
| 4359 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4360 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4362 | ac_cv_prog_ac_ct_AR="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4363 | $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] | 4364 | break 2 |
| 4365 | fi |
| 4366 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4367 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4368 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4369 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4370 | fi |
| 4371 | fi |
| 4372 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4373 | if test -n "$ac_ct_AR"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4375 | $as_echo "$ac_ct_AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4376 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4378 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4379 | fi |
| 4380 | |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4381 | |
| 4382 | test -n "$ac_ct_AR" && break |
| 4383 | done |
| 4384 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4385 | if test "x$ac_ct_AR" = x; then |
| 4386 | AR="ar" |
| 4387 | else |
| 4388 | case $cross_compiling:$ac_tool_warned in |
| 4389 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4390 | { $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] | 4391 | $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] | 4392 | ac_tool_warned=yes ;; |
| 4393 | esac |
| 4394 | AR=$ac_ct_AR |
| 4395 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4396 | fi |
| 4397 | |
Rob Shearman | 0c694d7 | 2008-03-04 15:53:41 +0000 | [diff] [blame] | 4398 | ARFLAGS=rc |
| 4399 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4400 | if test -n "$ac_tool_prefix"; then |
| 4401 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4402 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4404 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4405 | if ${ac_cv_prog_RANLIB+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4406 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4407 | else |
| 4408 | if test -n "$RANLIB"; then |
| 4409 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4410 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4412 | for as_dir in $PATH |
| 4413 | do |
| 4414 | IFS=$as_save_IFS |
| 4415 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4416 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4418 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4419 | $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] | 4420 | break 2 |
| 4421 | fi |
| 4422 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4423 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4424 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4425 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4426 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4427 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4428 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4429 | if test -n "$RANLIB"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4431 | $as_echo "$RANLIB" >&6; } |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4432 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4434 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4435 | fi |
| 4436 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4437 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4438 | fi |
| 4439 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4440 | ac_ct_RANLIB=$RANLIB |
| 4441 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4442 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4444 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4445 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4446 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4447 | else |
| 4448 | if test -n "$ac_ct_RANLIB"; then |
| 4449 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4450 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4452 | for as_dir in $PATH |
| 4453 | do |
| 4454 | IFS=$as_save_IFS |
| 4455 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4456 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4457 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4458 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4459 | $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] | 4460 | break 2 |
| 4461 | fi |
| 4462 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4463 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4464 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4465 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4466 | fi |
| 4467 | fi |
| 4468 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4469 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4471 | $as_echo "$ac_ct_RANLIB" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4472 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4474 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4475 | fi |
| 4476 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4477 | if test "x$ac_ct_RANLIB" = x; then |
| 4478 | RANLIB=":" |
| 4479 | else |
| 4480 | case $cross_compiling:$ac_tool_warned in |
| 4481 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4482 | { $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] | 4483 | $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] | 4484 | ac_tool_warned=yes ;; |
| 4485 | esac |
| 4486 | RANLIB=$ac_ct_RANLIB |
| 4487 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4488 | else |
| 4489 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4490 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4491 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4492 | { $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] | 4493 | $as_echo_n "checking whether ln -s works... " >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4494 | LN_S=$as_ln_s |
| 4495 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4497 | $as_echo "yes" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4498 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4499 | { $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] | 4500 | $as_echo "no, using $LN_S" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4501 | fi |
| 4502 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4503 | { $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] | 4504 | $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] | 4505 | if ${ac_cv_path_GREP+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4506 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4507 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4508 | if test -z "$GREP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4509 | ac_path_GREP_found=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4510 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4512 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4513 | do |
| 4514 | IFS=$as_save_IFS |
| 4515 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4516 | for ac_prog in grep ggrep; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4517 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4518 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4519 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4520 | # 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] | 4521 | # Check for GNU $ac_path_GREP |
| 4522 | case `"$ac_path_GREP" --version 2>&1` in |
| 4523 | *GNU*) |
| 4524 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4525 | *) |
| 4526 | ac_count=0 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4527 | $as_echo_n 0123456789 >"conftest.in" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4528 | while : |
| 4529 | do |
| 4530 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4531 | mv "conftest.tmp" "conftest.in" |
| 4532 | cp "conftest.in" "conftest.nl" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4533 | $as_echo 'GREP' >> "conftest.nl" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4534 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4535 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4536 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4537 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4538 | # Best one so far, save it but keep looking for a better one |
| 4539 | ac_cv_path_GREP="$ac_path_GREP" |
| 4540 | ac_path_GREP_max=$ac_count |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4541 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4542 | # 10*(2^10) chars as input seems more than enough |
| 4543 | test $ac_count -gt 10 && break |
| 4544 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4545 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4546 | esac |
| 4547 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4548 | $ac_path_GREP_found && break 3 |
| 4549 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4550 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4551 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4552 | IFS=$as_save_IFS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4553 | if test -z "$ac_cv_path_GREP"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4554 | 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] | 4555 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4556 | else |
| 4557 | ac_cv_path_GREP=$GREP |
| 4558 | fi |
| 4559 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4560 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4561 | { $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] | 4562 | $as_echo "$ac_cv_path_GREP" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4563 | GREP="$ac_cv_path_GREP" |
| 4564 | |
| 4565 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4567 | $as_echo_n "checking for egrep... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4568 | if ${ac_cv_path_EGREP+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4569 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4570 | else |
| 4571 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4572 | then ac_cv_path_EGREP="$GREP -E" |
| 4573 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4574 | if test -z "$EGREP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4575 | ac_path_EGREP_found=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4576 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4578 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4579 | do |
| 4580 | IFS=$as_save_IFS |
| 4581 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4582 | for ac_prog in egrep; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4583 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4584 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4585 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4586 | # 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] | 4587 | # Check for GNU $ac_path_EGREP |
| 4588 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4589 | *GNU*) |
| 4590 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4591 | *) |
| 4592 | ac_count=0 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4593 | $as_echo_n 0123456789 >"conftest.in" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4594 | while : |
| 4595 | do |
| 4596 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4597 | mv "conftest.tmp" "conftest.in" |
| 4598 | cp "conftest.in" "conftest.nl" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4599 | $as_echo 'EGREP' >> "conftest.nl" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4600 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4601 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4602 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4603 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4604 | # Best one so far, save it but keep looking for a better one |
| 4605 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4606 | ac_path_EGREP_max=$ac_count |
| 4607 | fi |
| 4608 | # 10*(2^10) chars as input seems more than enough |
| 4609 | test $ac_count -gt 10 && break |
| 4610 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4611 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4612 | esac |
| 4613 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4614 | $ac_path_EGREP_found && break 3 |
| 4615 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4616 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4617 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4618 | IFS=$as_save_IFS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4619 | if test -z "$ac_cv_path_EGREP"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4620 | 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] | 4621 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4622 | else |
| 4623 | ac_cv_path_EGREP=$EGREP |
| 4624 | fi |
| 4625 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4626 | fi |
| 4627 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4628 | { $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] | 4629 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4630 | EGREP="$ac_cv_path_EGREP" |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4631 | |
| 4632 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4633 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4634 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4636 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4637 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4638 | $as_echo_n "(cached) " >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4639 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4640 | case $LDCONFIG in |
| 4641 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4642 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4643 | ;; |
| 4644 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 4646 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4647 | do |
| 4648 | IFS=$as_save_IFS |
| 4649 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4650 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4651 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4652 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4653 | $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] | 4654 | break 2 |
| 4655 | fi |
| 4656 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4657 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4658 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4659 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 4660 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4661 | ;; |
| 4662 | esac |
| 4663 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4664 | LDCONFIG=$ac_cv_path_LDCONFIG |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4665 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4667 | $as_echo "$LDCONFIG" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4668 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4670 | $as_echo "no" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4671 | fi |
| 4672 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4673 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4674 | # Find a good install program. We prefer a C program (faster), |
| 4675 | # so one script is as good as another. But avoid the broken or |
| 4676 | # incompatible versions: |
| 4677 | # SysV /etc/install, /usr/sbin/install |
| 4678 | # SunOS /usr/etc/install |
| 4679 | # IRIX /sbin/install |
| 4680 | # AIX /bin/install |
| 4681 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4682 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4683 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4684 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4685 | # OS/2's system install, which has a completely different semantic |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4686 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4687 | # Reject install programs that cannot install multiple files. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4688 | { $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] | 4689 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4690 | if test -z "$INSTALL"; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4691 | if ${ac_cv_path_install+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4692 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4693 | else |
| 4694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4695 | for as_dir in $PATH |
| 4696 | do |
| 4697 | IFS=$as_save_IFS |
| 4698 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4699 | # Account for people who put trailing slashes in PATH elements. |
| 4700 | case $as_dir/ in #(( |
| 4701 | ./ | .// | /[cC]/* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4702 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4703 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4704 | /usr/ucb/* ) ;; |
| 4705 | *) |
| 4706 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4707 | # Don't use installbsd from OSF since it installs stuff as root |
| 4708 | # by default. |
| 4709 | for ac_prog in ginstall scoinst install; do |
| 4710 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4711 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4712 | if test $ac_prog = install && |
| 4713 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4714 | # AIX install. It has an incompatible calling convention. |
| 4715 | : |
| 4716 | elif test $ac_prog = install && |
| 4717 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4718 | # program-specific install script used by HP pwplus--don't use. |
| 4719 | : |
| 4720 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4721 | rm -rf conftest.one conftest.two conftest.dir |
| 4722 | echo one > conftest.one |
| 4723 | echo two > conftest.two |
| 4724 | mkdir conftest.dir |
| 4725 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4726 | test -s conftest.one && test -s conftest.two && |
| 4727 | test -s conftest.dir/conftest.one && |
| 4728 | test -s conftest.dir/conftest.two |
| 4729 | then |
| 4730 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4731 | break 3 |
| 4732 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4733 | fi |
| 4734 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4735 | done |
| 4736 | done |
| 4737 | ;; |
| 4738 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4739 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4740 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4741 | IFS=$as_save_IFS |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4742 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4743 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4744 | |
| 4745 | fi |
| 4746 | if test "${ac_cv_path_install+set}" = set; then |
| 4747 | INSTALL=$ac_cv_path_install |
| 4748 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4749 | # As a last resort, use the slow shell script. Don't cache a |
| 4750 | # value for INSTALL within a source directory, because that will |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4751 | # break other packages using the cache if that directory is |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4752 | # removed, or if the value is a relative name. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4753 | INSTALL=$ac_install_sh |
| 4754 | fi |
| 4755 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4757 | $as_echo "$INSTALL" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4758 | |
| 4759 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4760 | # It thinks the first close brace ends the variable substitution. |
| 4761 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4762 | |
| 4763 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4764 | |
| 4765 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4766 | |
| 4767 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 4768 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4769 | *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4770 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4771 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4772 | for ac_prog in lclint lint |
| 4773 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4774 | # 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] | 4775 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4777 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4778 | if ${ac_cv_prog_LINT+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4779 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4780 | else |
| 4781 | if test -n "$LINT"; then |
| 4782 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 4783 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4785 | for as_dir in $PATH |
| 4786 | do |
| 4787 | IFS=$as_save_IFS |
| 4788 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4789 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4791 | ac_cv_prog_LINT="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4792 | $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] | 4793 | break 2 |
| 4794 | fi |
| 4795 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4796 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4797 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4798 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4799 | fi |
| 4800 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4801 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4802 | if test -n "$LINT"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4804 | $as_echo "$LINT" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4805 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4807 | $as_echo "no" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4808 | fi |
| 4809 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4810 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4811 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4812 | done |
| 4813 | |
| 4814 | if test "$LINT" = "lint" |
| 4815 | then |
| 4816 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 4817 | fi |
| 4818 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4819 | |
| 4820 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4821 | for ac_prog in fontforge |
| 4822 | do |
| 4823 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4824 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4826 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4827 | if ${ac_cv_prog_FONTFORGE+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4828 | $as_echo_n "(cached) " >&6 |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4829 | else |
| 4830 | if test -n "$FONTFORGE"; then |
| 4831 | ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test. |
| 4832 | else |
| 4833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4834 | for as_dir in $PATH |
| 4835 | do |
| 4836 | IFS=$as_save_IFS |
| 4837 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4838 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4840 | ac_cv_prog_FONTFORGE="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4841 | $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] | 4842 | break 2 |
| 4843 | fi |
| 4844 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4845 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4846 | IFS=$as_save_IFS |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4847 | |
| 4848 | fi |
| 4849 | fi |
| 4850 | FONTFORGE=$ac_cv_prog_FONTFORGE |
| 4851 | if test -n "$FONTFORGE"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4853 | $as_echo "$FONTFORGE" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4854 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4856 | $as_echo "no" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4857 | fi |
| 4858 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4859 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4860 | test -n "$FONTFORGE" && break |
| 4861 | done |
| 4862 | test -n "$FONTFORGE" || FONTFORGE="false" |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 4863 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4864 | for ac_prog in pkg-config |
| 4865 | do |
| 4866 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4867 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4869 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4870 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4871 | $as_echo_n "(cached) " >&6 |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4872 | else |
| 4873 | if test -n "$PKG_CONFIG"; then |
| 4874 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 4875 | else |
| 4876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4877 | for as_dir in $PATH |
| 4878 | do |
| 4879 | IFS=$as_save_IFS |
| 4880 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4881 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4883 | ac_cv_prog_PKG_CONFIG="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4884 | $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] | 4885 | break 2 |
| 4886 | fi |
| 4887 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4888 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4889 | IFS=$as_save_IFS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4890 | |
| 4891 | fi |
| 4892 | fi |
| 4893 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 4894 | if test -n "$PKG_CONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4896 | $as_echo "$PKG_CONFIG" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4897 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4899 | $as_echo "no" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4900 | fi |
| 4901 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4902 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4903 | test -n "$PKG_CONFIG" && break |
| 4904 | done |
| 4905 | test -n "$PKG_CONFIG" || PKG_CONFIG="false" |
| 4906 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4907 | for ac_prog in rsvg |
| 4908 | do |
| 4909 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4910 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4912 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4913 | if ${ac_cv_prog_RSVG+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4914 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4915 | else |
| 4916 | if test -n "$RSVG"; then |
| 4917 | ac_cv_prog_RSVG="$RSVG" # Let the user override the test. |
| 4918 | else |
| 4919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4920 | for as_dir in $PATH |
| 4921 | do |
| 4922 | IFS=$as_save_IFS |
| 4923 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4924 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4926 | ac_cv_prog_RSVG="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4927 | $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] | 4928 | break 2 |
| 4929 | fi |
| 4930 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4931 | done |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4932 | IFS=$as_save_IFS |
| 4933 | |
| 4934 | fi |
| 4935 | fi |
| 4936 | RSVG=$ac_cv_prog_RSVG |
| 4937 | if test -n "$RSVG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4939 | $as_echo "$RSVG" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4940 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4942 | $as_echo "no" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4943 | fi |
| 4944 | |
| 4945 | |
| 4946 | test -n "$RSVG" && break |
| 4947 | done |
| 4948 | test -n "$RSVG" || RSVG="false" |
| 4949 | |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 4950 | for ac_prog in convert |
| 4951 | do |
| 4952 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4953 | set dummy $ac_prog; ac_word=$2 |
| 4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4955 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4956 | if ${ac_cv_prog_CONVERT+:} false; then : |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 4957 | $as_echo_n "(cached) " >&6 |
| 4958 | else |
| 4959 | if test -n "$CONVERT"; then |
| 4960 | ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test. |
| 4961 | else |
| 4962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4963 | for as_dir in $PATH |
| 4964 | do |
| 4965 | IFS=$as_save_IFS |
| 4966 | test -z "$as_dir" && as_dir=. |
| 4967 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4969 | ac_cv_prog_CONVERT="$ac_prog" |
| 4970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4971 | break 2 |
| 4972 | fi |
| 4973 | done |
| 4974 | done |
| 4975 | IFS=$as_save_IFS |
| 4976 | |
| 4977 | fi |
| 4978 | fi |
| 4979 | CONVERT=$ac_cv_prog_CONVERT |
| 4980 | if test -n "$CONVERT"; then |
| 4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5 |
| 4982 | $as_echo "$CONVERT" >&6; } |
| 4983 | else |
| 4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4985 | $as_echo "no" >&6; } |
| 4986 | fi |
| 4987 | |
| 4988 | |
| 4989 | test -n "$CONVERT" && break |
| 4990 | done |
| 4991 | test -n "$CONVERT" || CONVERT="false" |
| 4992 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4993 | for ac_prog in icotool |
| 4994 | do |
| 4995 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4996 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4998 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4999 | if ${ac_cv_prog_ICOTOOL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5000 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5001 | else |
| 5002 | if test -n "$ICOTOOL"; then |
| 5003 | ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test. |
| 5004 | else |
| 5005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5006 | for as_dir in $PATH |
| 5007 | do |
| 5008 | IFS=$as_save_IFS |
| 5009 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5010 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5012 | ac_cv_prog_ICOTOOL="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5013 | $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] | 5014 | break 2 |
| 5015 | fi |
| 5016 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5017 | done |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5018 | IFS=$as_save_IFS |
| 5019 | |
| 5020 | fi |
| 5021 | fi |
| 5022 | ICOTOOL=$ac_cv_prog_ICOTOOL |
| 5023 | if test -n "$ICOTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5025 | $as_echo "$ICOTOOL" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5026 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5028 | $as_echo "no" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5029 | fi |
| 5030 | |
| 5031 | |
| 5032 | test -n "$ICOTOOL" && break |
| 5033 | done |
| 5034 | test -n "$ICOTOOL" || ICOTOOL="false" |
| 5035 | |
| 5036 | |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 5037 | if test "x$enable_maintainer_mode" != "xyes" |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5038 | then |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 5039 | MAINTAINER_MODE=\# |
| 5040 | |
| 5041 | else |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5042 | if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi |
| 5043 | 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] | 5044 | |
| 5045 | if test "$CONVERT" = false |
| 5046 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5047 | 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] | 5048 | else |
| 5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5 |
| 5050 | $as_echo_n "checking for recent enough imagemagick... " >&6; } |
| 5051 | convert_version=`convert --version | head -n1` |
| 5052 | if test "x$convert_version" != "x" |
| 5053 | then |
| 5054 | convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'` |
| 5055 | convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'` |
| 5056 | if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6 |
| 5057 | then |
| 5058 | CONVERT=false |
Joel Holdsworth | b9eae1e | 2010-05-16 23:07:40 +0100 | [diff] [blame] | 5059 | fi |
| 5060 | fi |
| 5061 | if test "$CONVERT" = false |
| 5062 | then |
| 5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5 |
| 5064 | $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5065 | 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] | 5066 | else |
| 5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5 |
| 5068 | $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; } |
| 5069 | fi |
| 5070 | fi |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5071 | |
| 5072 | if test "$ICOTOOL" = false |
| 5073 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5074 | 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] | 5075 | else |
| 5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5 |
| 5077 | $as_echo_n "checking for recent enough icotool... " >&6; } |
| 5078 | icotool_version=`icotool --version | head -n1` |
| 5079 | if test "x$icotool_version" != "x" |
| 5080 | then |
Joel Holdsworth | 9571f78 | 2010-05-16 23:07:33 +0100 | [diff] [blame] | 5081 | icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'` |
| 5082 | icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'` |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5083 | if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29 |
| 5084 | then |
| 5085 | ICOTOOL=false |
| 5086 | as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons." |
| 5087 | fi |
| 5088 | fi |
| 5089 | if test "$ICOTOOL" = false |
| 5090 | then |
| 5091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5 |
| 5092 | $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5093 | 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] | 5094 | else |
| 5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5 |
| 5096 | $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; } |
| 5097 | fi |
| 5098 | fi |
| 5099 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5100 | fi |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 5101 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5102 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5103 | { $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] | 5104 | $as_echo_n "checking for i386_set_ldt in -li386... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5105 | if ${ac_cv_lib_i386_i386_set_ldt+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5106 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5107 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5108 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5109 | LIBS="-li386 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5111 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5112 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5113 | /* Override any GCC internal prototype to avoid an error. |
| 5114 | Use char because int might match the return type of a GCC |
| 5115 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5116 | #ifdef __cplusplus |
| 5117 | extern "C" |
| 5118 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5119 | char i386_set_ldt (); |
| 5120 | int |
| 5121 | main () |
| 5122 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5123 | return i386_set_ldt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5124 | ; |
| 5125 | return 0; |
| 5126 | } |
| 5127 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5128 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5129 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5130 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5131 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5132 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5133 | rm -f core conftest.err conftest.$ac_objext \ |
| 5134 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5135 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5136 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5137 | { $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] | 5138 | $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5139 | if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5140 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5141 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5142 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5143 | |
| 5144 | LIBS="-li386 $LIBS" |
| 5145 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5146 | fi |
| 5147 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5148 | { $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] | 5149 | $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5150 | if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5151 | $as_echo_n "(cached) " >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5152 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5153 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5154 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5156 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5157 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5158 | /* Override any GCC internal prototype to avoid an error. |
| 5159 | Use char because int might match the return type of a GCC |
| 5160 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5161 | #ifdef __cplusplus |
| 5162 | extern "C" |
| 5163 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5164 | char _oss_ioctl (); |
| 5165 | int |
| 5166 | main () |
| 5167 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5168 | return _oss_ioctl (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5169 | ; |
| 5170 | return 0; |
| 5171 | } |
| 5172 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5173 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5174 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5175 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5176 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5177 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5178 | rm -f core conftest.err conftest.$ac_objext \ |
| 5179 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5180 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5181 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5182 | { $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] | 5183 | $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5184 | if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5185 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5186 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5187 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5188 | |
| 5189 | LIBS="-lossaudio $LIBS" |
| 5190 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5191 | fi |
| 5192 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5193 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 5194 | XLIB="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5195 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5196 | OPENGL_LIBS="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5197 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5198 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 5199 | |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5200 | # Check whether --enable-largefile was given. |
| 5201 | if test "${enable_largefile+set}" = set; then : |
| 5202 | enableval=$enable_largefile; |
| 5203 | fi |
| 5204 | |
| 5205 | if test "$enable_largefile" != no; then |
| 5206 | |
| 5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 5208 | $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] | 5209 | if ${ac_cv_sys_largefile_CC+:} false; then : |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5210 | $as_echo_n "(cached) " >&6 |
| 5211 | else |
| 5212 | ac_cv_sys_largefile_CC=no |
| 5213 | if test "$GCC" != yes; then |
| 5214 | ac_save_CC=$CC |
| 5215 | while :; do |
| 5216 | # IRIX 6.2 and later do not support large files by default, |
| 5217 | # so use the C compiler's -n32 option if that helps. |
| 5218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5219 | /* end confdefs.h. */ |
| 5220 | #include <sys/types.h> |
| 5221 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5222 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5223 | since some C++ compilers masquerading as C compilers |
| 5224 | incorrectly reject 9223372036854775807. */ |
| 5225 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5226 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5227 | && LARGE_OFF_T % 2147483647 == 1) |
| 5228 | ? 1 : -1]; |
| 5229 | int |
| 5230 | main () |
| 5231 | { |
| 5232 | |
| 5233 | ; |
| 5234 | return 0; |
| 5235 | } |
| 5236 | _ACEOF |
| 5237 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5238 | break |
| 5239 | fi |
| 5240 | rm -f core conftest.err conftest.$ac_objext |
| 5241 | CC="$CC -n32" |
| 5242 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5243 | ac_cv_sys_largefile_CC=' -n32'; break |
| 5244 | fi |
| 5245 | rm -f core conftest.err conftest.$ac_objext |
| 5246 | break |
| 5247 | done |
| 5248 | CC=$ac_save_CC |
| 5249 | rm -f conftest.$ac_ext |
| 5250 | fi |
| 5251 | fi |
| 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 5253 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 5254 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 5255 | CC=$CC$ac_cv_sys_largefile_CC |
| 5256 | fi |
| 5257 | |
| 5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 5259 | $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] | 5260 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5261 | $as_echo_n "(cached) " >&6 |
| 5262 | else |
| 5263 | while :; do |
| 5264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5265 | /* end confdefs.h. */ |
| 5266 | #include <sys/types.h> |
| 5267 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5268 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5269 | since some C++ compilers masquerading as C compilers |
| 5270 | incorrectly reject 9223372036854775807. */ |
| 5271 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5272 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5273 | && LARGE_OFF_T % 2147483647 == 1) |
| 5274 | ? 1 : -1]; |
| 5275 | int |
| 5276 | main () |
| 5277 | { |
| 5278 | |
| 5279 | ; |
| 5280 | return 0; |
| 5281 | } |
| 5282 | _ACEOF |
| 5283 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5284 | ac_cv_sys_file_offset_bits=no; break |
| 5285 | fi |
| 5286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5288 | /* end confdefs.h. */ |
| 5289 | #define _FILE_OFFSET_BITS 64 |
| 5290 | #include <sys/types.h> |
| 5291 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5292 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5293 | since some C++ compilers masquerading as C compilers |
| 5294 | incorrectly reject 9223372036854775807. */ |
| 5295 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5296 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5297 | && LARGE_OFF_T % 2147483647 == 1) |
| 5298 | ? 1 : -1]; |
| 5299 | int |
| 5300 | main () |
| 5301 | { |
| 5302 | |
| 5303 | ; |
| 5304 | return 0; |
| 5305 | } |
| 5306 | _ACEOF |
| 5307 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5308 | ac_cv_sys_file_offset_bits=64; break |
| 5309 | fi |
| 5310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5311 | ac_cv_sys_file_offset_bits=unknown |
| 5312 | break |
| 5313 | done |
| 5314 | fi |
| 5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 5316 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 5317 | case $ac_cv_sys_file_offset_bits in #( |
| 5318 | no | unknown) ;; |
| 5319 | *) |
| 5320 | cat >>confdefs.h <<_ACEOF |
| 5321 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 5322 | _ACEOF |
| 5323 | ;; |
| 5324 | esac |
| 5325 | rm -rf conftest* |
| 5326 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 5328 | $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] | 5329 | if ${ac_cv_sys_large_files+:} false; then : |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5330 | $as_echo_n "(cached) " >&6 |
| 5331 | else |
| 5332 | while :; do |
| 5333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5334 | /* end confdefs.h. */ |
| 5335 | #include <sys/types.h> |
| 5336 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5337 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5338 | since some C++ compilers masquerading as C compilers |
| 5339 | incorrectly reject 9223372036854775807. */ |
| 5340 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5341 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5342 | && LARGE_OFF_T % 2147483647 == 1) |
| 5343 | ? 1 : -1]; |
| 5344 | int |
| 5345 | main () |
| 5346 | { |
| 5347 | |
| 5348 | ; |
| 5349 | return 0; |
| 5350 | } |
| 5351 | _ACEOF |
| 5352 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5353 | ac_cv_sys_large_files=no; break |
| 5354 | fi |
| 5355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5357 | /* end confdefs.h. */ |
| 5358 | #define _LARGE_FILES 1 |
| 5359 | #include <sys/types.h> |
| 5360 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5361 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5362 | since some C++ compilers masquerading as C compilers |
| 5363 | incorrectly reject 9223372036854775807. */ |
| 5364 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5365 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5366 | && LARGE_OFF_T % 2147483647 == 1) |
| 5367 | ? 1 : -1]; |
| 5368 | int |
| 5369 | main () |
| 5370 | { |
| 5371 | |
| 5372 | ; |
| 5373 | return 0; |
| 5374 | } |
| 5375 | _ACEOF |
| 5376 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5377 | ac_cv_sys_large_files=1; break |
| 5378 | fi |
| 5379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5380 | ac_cv_sys_large_files=unknown |
| 5381 | break |
| 5382 | done |
| 5383 | fi |
| 5384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 5385 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 5386 | case $ac_cv_sys_large_files in #( |
| 5387 | no | unknown) ;; |
| 5388 | *) |
| 5389 | cat >>confdefs.h <<_ACEOF |
| 5390 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 5391 | _ACEOF |
| 5392 | ;; |
| 5393 | esac |
| 5394 | rm -rf conftest* |
| 5395 | fi |
| 5396 | fi |
| 5397 | |
| 5398 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5399 | ac_ext=c |
| 5400 | ac_cpp='$CPP $CPPFLAGS' |
| 5401 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5402 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5403 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5404 | { $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] | 5405 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5406 | # On Suns, sometimes $CPP names a directory. |
| 5407 | if test -n "$CPP" && test -d "$CPP"; then |
| 5408 | CPP= |
| 5409 | fi |
| 5410 | if test -z "$CPP"; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5411 | if ${ac_cv_prog_CPP+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5412 | $as_echo_n "(cached) " >&6 |
| 5413 | else |
| 5414 | # Double quotes because CPP needs to be expanded |
| 5415 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5416 | do |
| 5417 | ac_preproc_ok=false |
| 5418 | for ac_c_preproc_warn_flag in '' yes |
| 5419 | do |
| 5420 | # Use a header file that comes with gcc, so configuring glibc |
| 5421 | # with a fresh cross-compiler works. |
| 5422 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5423 | # <limits.h> exists even on freestanding compilers. |
| 5424 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5425 | # not just through cpp. "Syntax error" is here to catch this case. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5427 | /* end confdefs.h. */ |
| 5428 | #ifdef __STDC__ |
| 5429 | # include <limits.h> |
| 5430 | #else |
| 5431 | # include <assert.h> |
| 5432 | #endif |
| 5433 | Syntax error |
| 5434 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5435 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5436 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5437 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5438 | # Broken: fails on valid input. |
| 5439 | continue |
| 5440 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5441 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5442 | |
| 5443 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5444 | # can be detected and how. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5446 | /* end confdefs.h. */ |
| 5447 | #include <ac_nonexistent.h> |
| 5448 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5449 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5450 | # Broken: success on invalid input. |
| 5451 | continue |
| 5452 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5453 | # Passes both tests. |
| 5454 | ac_preproc_ok=: |
| 5455 | break |
| 5456 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5457 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5458 | |
| 5459 | done |
| 5460 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5461 | rm -f conftest.i conftest.err conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5462 | if $ac_preproc_ok; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5463 | break |
| 5464 | fi |
| 5465 | |
| 5466 | done |
| 5467 | ac_cv_prog_CPP=$CPP |
| 5468 | |
| 5469 | fi |
| 5470 | CPP=$ac_cv_prog_CPP |
| 5471 | else |
| 5472 | ac_cv_prog_CPP=$CPP |
| 5473 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5475 | $as_echo "$CPP" >&6; } |
| 5476 | ac_preproc_ok=false |
| 5477 | for ac_c_preproc_warn_flag in '' yes |
| 5478 | do |
| 5479 | # Use a header file that comes with gcc, so configuring glibc |
| 5480 | # with a fresh cross-compiler works. |
| 5481 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5482 | # <limits.h> exists even on freestanding compilers. |
| 5483 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5484 | # not just through cpp. "Syntax error" is here to catch this case. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5486 | /* end confdefs.h. */ |
| 5487 | #ifdef __STDC__ |
| 5488 | # include <limits.h> |
| 5489 | #else |
| 5490 | # include <assert.h> |
| 5491 | #endif |
| 5492 | Syntax error |
| 5493 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5494 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5495 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5496 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5497 | # Broken: fails on valid input. |
| 5498 | continue |
| 5499 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5500 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5501 | |
| 5502 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5503 | # can be detected and how. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5505 | /* end confdefs.h. */ |
| 5506 | #include <ac_nonexistent.h> |
| 5507 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5508 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5509 | # Broken: success on invalid input. |
| 5510 | continue |
| 5511 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5512 | # Passes both tests. |
| 5513 | ac_preproc_ok=: |
| 5514 | break |
| 5515 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5516 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5517 | |
| 5518 | done |
| 5519 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5520 | rm -f conftest.i conftest.err conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5521 | if $ac_preproc_ok; then : |
| 5522 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5523 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5524 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5525 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5526 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5527 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5528 | fi |
| 5529 | |
| 5530 | ac_ext=c |
| 5531 | ac_cpp='$CPP $CPPFLAGS' |
| 5532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5535 | |
| 5536 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5537 | { $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] | 5538 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5539 | if ${ac_cv_header_stdc+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5540 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5541 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5543 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5544 | #include <stdlib.h> |
| 5545 | #include <stdarg.h> |
| 5546 | #include <string.h> |
| 5547 | #include <float.h> |
| 5548 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5549 | int |
| 5550 | main () |
| 5551 | { |
| 5552 | |
| 5553 | ; |
| 5554 | return 0; |
| 5555 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5556 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5557 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5558 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5559 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5560 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5561 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5563 | |
| 5564 | if test $ac_cv_header_stdc = yes; then |
| 5565 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5567 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5568 | #include <string.h> |
| 5569 | |
| 5570 | _ACEOF |
| 5571 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5572 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5573 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5574 | else |
| 5575 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5576 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5577 | rm -f conftest* |
| 5578 | |
| 5579 | fi |
| 5580 | |
| 5581 | if test $ac_cv_header_stdc = yes; then |
| 5582 | # 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] | 5583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5584 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5585 | #include <stdlib.h> |
| 5586 | |
| 5587 | _ACEOF |
| 5588 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5589 | $EGREP "free" >/dev/null 2>&1; then : |
| 5590 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5591 | else |
| 5592 | ac_cv_header_stdc=no |
| 5593 | fi |
| 5594 | rm -f conftest* |
| 5595 | |
| 5596 | fi |
| 5597 | |
| 5598 | if test $ac_cv_header_stdc = yes; then |
| 5599 | # /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] | 5600 | if test "$cross_compiling" = yes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5601 | : |
| 5602 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5604 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5605 | #include <ctype.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5606 | #include <stdlib.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5607 | #if ((' ' & 0x0FF) == 0x020) |
| 5608 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5609 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5610 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5611 | # define ISLOWER(c) \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5612 | (('a' <= (c) && (c) <= 'i') \ |
| 5613 | || ('j' <= (c) && (c) <= 'r') \ |
| 5614 | || ('s' <= (c) && (c) <= 'z')) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5615 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5616 | #endif |
| 5617 | |
| 5618 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5619 | int |
| 5620 | main () |
| 5621 | { |
| 5622 | int i; |
| 5623 | for (i = 0; i < 256; i++) |
| 5624 | if (XOR (islower (i), ISLOWER (i)) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5625 | || toupper (i) != TOUPPER (i)) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5626 | return 2; |
| 5627 | return 0; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5628 | } |
| 5629 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5630 | if ac_fn_c_try_run "$LINENO"; then : |
| 5631 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5632 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5633 | ac_cv_header_stdc=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5634 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5635 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5636 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5637 | fi |
| 5638 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5639 | fi |
| 5640 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5641 | { $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] | 5642 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5643 | if test $ac_cv_header_stdc = yes; then |
| 5644 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5645 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5646 | |
| 5647 | fi |
| 5648 | |
| 5649 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5650 | 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] | 5651 | inttypes.h stdint.h unistd.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5652 | do : |
| 5653 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5654 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5655 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5656 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5657 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5658 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5659 | _ACEOF |
| 5660 | |
| 5661 | fi |
| 5662 | |
| 5663 | done |
| 5664 | |
| 5665 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5666 | for ac_header in \ |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 5667 | AL/al.h \ |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 5668 | ApplicationServices/ApplicationServices.h \ |
Aric Stewart | 4430ab4 | 2010-03-17 10:58:32 -0500 | [diff] [blame] | 5669 | AudioToolbox/AudioConverter.h \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 5670 | AudioUnit/AudioUnit.h \ |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 5671 | AudioUnit/AudioComponent.h \ |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 5672 | CL/cl.h \ |
Pierre d'Herbemont | 0888451 | 2006-10-24 15:26:33 +0200 | [diff] [blame] | 5673 | Carbon/Carbon.h \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 5674 | CoreAudio/CoreAudio.h \ |
Alexandre Julliard | 66f45a5 | 2006-11-06 13:33:16 +0100 | [diff] [blame] | 5675 | DiskArbitration/DiskArbitration.h \ |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 5676 | IOKit/IOKitLib.h \ |
Aric Stewart | 225a494 | 2009-03-10 14:59:20 -0500 | [diff] [blame] | 5677 | IOKit/hid/IOHIDLib.h \ |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 5678 | OpenAL/al.h \ |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 5679 | OpenCL/opencl.h \ |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 5680 | QuickTime/ImageCompression.h \ |
Ken Thomases | 25ed687 | 2011-03-13 18:58:44 -0500 | [diff] [blame] | 5681 | Security/Security.h \ |
Eric Durbin | 020b0ef | 2008-06-24 22:45:51 -0500 | [diff] [blame] | 5682 | alias.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5683 | alsa/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5684 | arpa/inet.h \ |
| 5685 | arpa/nameser.h \ |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 5686 | asm/types.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5687 | capi20.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5688 | curses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5689 | direct.h \ |
Rob Shearman | 87175c6 | 2008-10-03 12:55:21 +0100 | [diff] [blame] | 5690 | dirent.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5691 | dlfcn.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5692 | elf.h \ |
| 5693 | float.h \ |
Alexandre Julliard | 7d5e565 | 2009-06-01 12:51:54 +0200 | [diff] [blame] | 5694 | fnmatch.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5695 | fontconfig/fontconfig.h \ |
| 5696 | getopt.h \ |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 5697 | gettext-po.h \ |
Alexandre Julliard | 46678dc | 2008-12-09 17:09:42 +0100 | [diff] [blame] | 5698 | grp.h \ |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 5699 | gsm.h \ |
Maarten Lankhorst | c186d8a | 2009-08-05 11:35:50 +0200 | [diff] [blame] | 5700 | gsm/gsm.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5701 | ieeefp.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5702 | inet/mib2.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5703 | io.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5704 | jpeglib.h \ |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 5705 | kstat.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 5706 | lber.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5707 | lcms.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5708 | lcms/lcms.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 5709 | ldap.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5710 | link.h \ |
| 5711 | linux/cdrom.h \ |
| 5712 | linux/compiler.h \ |
| 5713 | linux/hdreg.h \ |
| 5714 | linux/input.h \ |
| 5715 | linux/ioctl.h \ |
| 5716 | linux/joystick.h \ |
| 5717 | linux/major.h \ |
| 5718 | linux/param.h \ |
| 5719 | linux/serial.h \ |
Francois Gouget | da1a352 | 2008-12-28 10:35:02 +0100 | [diff] [blame] | 5720 | linux/types.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5721 | linux/ucdrom.h \ |
Ken Thomases | d35c0e8 | 2009-03-11 09:05:53 -0500 | [diff] [blame] | 5722 | mach-o/nlist.h \ |
Austin English | 95740b3 | 2010-10-08 00:33:52 -0700 | [diff] [blame] | 5723 | mach-o/loader.h \ |
Alexandre Julliard | 150b5dc | 2006-12-29 20:02:02 +0100 | [diff] [blame] | 5724 | mach/mach.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 5725 | mach/machine.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5726 | machine/cpu.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 5727 | machine/limits.h \ |
Austin English | 40b3d2e | 2010-05-23 21:18:17 -0500 | [diff] [blame] | 5728 | machine/sysarch.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5729 | mntent.h \ |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 5730 | mpg123.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5731 | ncurses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5732 | netdb.h \ |
| 5733 | netinet/in.h \ |
| 5734 | netinet/in_systm.h \ |
| 5735 | netinet/tcp.h \ |
| 5736 | netinet/tcp_fsm.h \ |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 5737 | openssl/err.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5738 | openssl/ssl.h \ |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 5739 | png.h \ |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 5740 | poll.h \ |
Albert Lee | 01b972d | 2009-11-20 18:35:26 -0500 | [diff] [blame] | 5741 | port.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5742 | process.h \ |
| 5743 | pthread.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5744 | pwd.h \ |
| 5745 | regex.h \ |
| 5746 | sched.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5747 | scsi/scsi.h \ |
| 5748 | scsi/scsi_ioctl.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5749 | scsi/sg.h \ |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 5750 | stdbool.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5751 | stdint.h \ |
| 5752 | strings.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5753 | stropts.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5754 | sys/asoundlib.h \ |
Charles Davis | 4e44e15 | 2011-01-18 13:09:44 -0700 | [diff] [blame] | 5755 | sys/attr.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5756 | sys/cdio.h \ |
| 5757 | sys/elf32.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5758 | sys/epoll.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5759 | sys/errno.h \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 5760 | sys/event.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5761 | sys/exec_elf.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5762 | sys/filio.h \ |
Alexandre Julliard | 61a7036 | 2009-06-26 15:45:03 +0200 | [diff] [blame] | 5763 | sys/inotify.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5764 | sys/ioctl.h \ |
| 5765 | sys/ipc.h \ |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 5766 | sys/limits.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5767 | sys/link.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5768 | sys/mman.h \ |
| 5769 | sys/modem.h \ |
| 5770 | sys/msg.h \ |
Hans Leidekker | 0844b70 | 2006-01-26 13:23:08 +0100 | [diff] [blame] | 5771 | sys/mtio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5772 | sys/param.h \ |
| 5773 | sys/poll.h \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 5774 | sys/prctl.h \ |
Austin English | 94021a1 | 2009-01-20 17:42:53 -0600 | [diff] [blame] | 5775 | sys/protosw.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5776 | sys/ptrace.h \ |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 5777 | sys/resource.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5778 | sys/scsiio.h \ |
| 5779 | sys/shm.h \ |
| 5780 | sys/signal.h \ |
| 5781 | sys/socket.h \ |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5782 | sys/socketvar.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5783 | sys/sockio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5784 | sys/statvfs.h \ |
| 5785 | sys/strtio.h \ |
| 5786 | sys/syscall.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5787 | sys/tihdr.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5788 | sys/time.h \ |
Austin English | 8b19591 | 2009-01-21 21:59:11 -0600 | [diff] [blame] | 5789 | sys/timeout.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5790 | sys/times.h \ |
| 5791 | sys/uio.h \ |
| 5792 | sys/un.h \ |
Alexandre Julliard | 66eb4bd | 2008-12-09 19:33:06 +0100 | [diff] [blame] | 5793 | sys/utsname.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5794 | sys/vm86.h \ |
| 5795 | sys/wait.h \ |
| 5796 | syscall.h \ |
| 5797 | termios.h \ |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 5798 | tiffio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5799 | unistd.h \ |
| 5800 | utime.h \ |
John Reiser | 0a2c94e | 2008-07-24 13:31:53 -0700 | [diff] [blame] | 5801 | valgrind/memcheck.h \ |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 5802 | valgrind/valgrind.h \ |
| 5803 | zlib.h |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5804 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5805 | do : |
| 5806 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5807 | 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] | 5808 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5809 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5810 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5811 | _ACEOF |
| 5812 | |
| 5813 | fi |
| 5814 | |
| 5815 | done |
| 5816 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5817 | { $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] | 5818 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5819 | if ${ac_cv_header_stat_broken+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5820 | $as_echo_n "(cached) " >&6 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5821 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5823 | /* end confdefs.h. */ |
| 5824 | #include <sys/types.h> |
| 5825 | #include <sys/stat.h> |
| 5826 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5827 | #if defined S_ISBLK && defined S_IFDIR |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5828 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5829 | #endif |
| 5830 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5831 | #if defined S_ISBLK && defined S_IFCHR |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5832 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5833 | #endif |
| 5834 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5835 | #if defined S_ISLNK && defined S_IFREG |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5836 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5837 | #endif |
| 5838 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5839 | #if defined S_ISSOCK && defined S_IFREG |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5840 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5841 | #endif |
| 5842 | |
| 5843 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5844 | if ac_fn_c_try_compile "$LINENO"; then : |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5845 | ac_cv_header_stat_broken=no |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5846 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5847 | ac_cv_header_stat_broken=yes |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5848 | fi |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5850 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5851 | { $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] | 5852 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5853 | if test $ac_cv_header_stat_broken = yes; then |
| 5854 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5855 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5856 | |
| 5857 | fi |
| 5858 | |
| 5859 | |
| 5860 | |
Austin English | 51094be | 2008-12-27 14:53:53 -0600 | [diff] [blame] | 5861 | 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] | 5862 | do : |
| 5863 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5864 | 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] | 5865 | #ifdef HAVE_SYS_PARAM_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5866 | # include <sys/param.h> |
| 5867 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5868 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5869 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5870 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5871 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5872 | _ACEOF |
| 5873 | |
| 5874 | fi |
| 5875 | |
| 5876 | done |
| 5877 | |
| 5878 | |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 5879 | for ac_header in \ |
| 5880 | netinet/ip.h \ |
| 5881 | net/if.h \ |
| 5882 | net/if_arp.h \ |
| 5883 | net/if_dl.h \ |
| 5884 | net/if_types.h \ |
| 5885 | net/route.h \ |
| 5886 | netinet/if_ether.h \ |
Austin English | 337067a | 2009-01-22 10:44:06 -0600 | [diff] [blame] | 5887 | netinet/if_inarp.h \ |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 5888 | netinet/in_pcb.h \ |
| 5889 | netinet/ip_icmp.h \ |
| 5890 | netinet/ip_var.h \ |
| 5891 | netinet/udp.h \ |
| 5892 | netipx/ipx.h \ |
| 5893 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5894 | do : |
| 5895 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5896 | 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] | 5897 | #ifdef HAVE_SYS_SOCKET_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5898 | # include <sys/socket.h> |
| 5899 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5900 | #ifdef HAVE_SYS_SOCKETVAR_H |
Ken Thomases | a609fee | 2007-10-19 16:18:17 -0500 | [diff] [blame] | 5901 | # include <sys/socketvar.h> |
| 5902 | #endif |
Austin English | bb3f258 | 2009-01-26 23:34:42 -0600 | [diff] [blame] | 5903 | #ifdef HAVE_NET_ROUTE_H |
| 5904 | # include <net/route.h> |
| 5905 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5906 | #ifdef HAVE_NETINET_IN_H |
Ken Thomases | ffd78b1 | 2007-10-19 16:18:27 -0500 | [diff] [blame] | 5907 | # include <netinet/in.h> |
| 5908 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 5909 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 5910 | # include <netinet/in_systm.h> |
| 5911 | #endif |
Alexandre Julliard | d7e846c | 2009-01-30 14:01:12 +0100 | [diff] [blame] | 5912 | #ifdef HAVE_NET_IF_H |
| 5913 | # include <net/if.h> |
| 5914 | #endif |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 5915 | #ifdef HAVE_NETINET_IP_H |
| 5916 | # include <netinet/ip.h> |
| 5917 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5918 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5919 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5920 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5921 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5922 | _ACEOF |
| 5923 | |
| 5924 | fi |
| 5925 | |
| 5926 | done |
| 5927 | |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5928 | |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 5929 | 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] | 5930 | do : |
| 5931 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5932 | 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] | 5933 | #ifdef HAVE_ALIAS_H |
| 5934 | # include <alias.h> |
| 5935 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5936 | #ifdef HAVE_SYS_SOCKET_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5937 | # include <sys/socket.h> |
| 5938 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5939 | #ifdef HAVE_SYS_SOCKETVAR_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5940 | # include <sys/socketvar.h> |
| 5941 | #endif |
Austin English | 53d3c46 | 2009-01-26 23:47:49 -0600 | [diff] [blame] | 5942 | #ifdef HAVE_SYS_TIMEOUT_H |
| 5943 | # include <sys/timeout.h> |
| 5944 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5945 | #ifdef HAVE_NETINET_IN_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5946 | # include <netinet/in.h> |
| 5947 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 5948 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 5949 | # include <netinet/in_systm.h> |
| 5950 | #endif |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 5951 | #ifdef HAVE_NETINET_IP_H |
| 5952 | # include <netinet/ip.h> |
| 5953 | #endif |
Eric Durbin | 6d4eab9 | 2008-06-24 22:44:13 -0500 | [diff] [blame] | 5954 | #ifdef HAVE_NETINET_IP_VAR_H |
| 5955 | # include <netinet/ip_var.h> |
| 5956 | #endif |
Eric Durbin | 020b0ef | 2008-06-24 22:45:51 -0500 | [diff] [blame] | 5957 | #ifdef HAVE_NETINET_IP_ICMP_H |
| 5958 | # include <netinet/ip_icmp.h> |
| 5959 | #endif |
Eric Durbin | 6d4eab9 | 2008-06-24 22:44:13 -0500 | [diff] [blame] | 5960 | #ifdef HAVE_NETINET_UDP_H |
| 5961 | # include <netinet/udp.h> |
| 5962 | #endif |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5963 | #ifdef HAVE_NETINET_TCP_H |
| 5964 | # include <netinet/tcp.h> |
| 5965 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 5966 | #ifdef HAVE_NETINET_TCP_TIMER_H |
| 5967 | #include <netinet/tcp_timer.h> |
| 5968 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5969 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5970 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5971 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5972 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5973 | _ACEOF |
| 5974 | |
| 5975 | fi |
| 5976 | |
| 5977 | done |
| 5978 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5979 | |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 5980 | for ac_header in linux/ipx.h linux/irda.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5981 | do : |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 5982 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5983 | 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] | 5984 | #ifdef HAVE_ASM_TYPES_H |
| 5985 | # include <asm/types.h> |
| 5986 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5987 | #ifdef HAVE_SYS_SOCKET_H |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 5988 | # include <sys/socket.h> |
| 5989 | #endif |
Francois Gouget | da1a352 | 2008-12-28 10:35:02 +0100 | [diff] [blame] | 5990 | #ifdef HAVE_LINUX_TYPES_H |
| 5991 | # include <linux/types.h> |
| 5992 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5993 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5994 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 5995 | cat >>confdefs.h <<_ACEOF |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 5996 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 5997 | _ACEOF |
| 5998 | |
| 5999 | fi |
| 6000 | |
| 6001 | done |
| 6002 | |
| 6003 | |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6004 | for ac_header in mach-o/dyld_images.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6005 | do : |
| 6006 | 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] | 6007 | # include <stdbool.h> |
| 6008 | #endif |
| 6009 | #ifdef HAVE_STDINT_H |
| 6010 | # include <stdint.h> |
| 6011 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6012 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6013 | 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] | 6014 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6015 | #define HAVE_MACH_O_DYLD_IMAGES_H 1 |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6016 | _ACEOF |
| 6017 | |
| 6018 | fi |
| 6019 | |
| 6020 | done |
| 6021 | |
| 6022 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6023 | for ac_header in resolv.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6024 | do : |
| 6025 | 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] | 6026 | #ifdef HAVE_SYS_SOCKET_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6027 | # include <sys/socket.h> |
| 6028 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6029 | #ifdef HAVE_NETINET_IN_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6030 | # include <netinet/in.h> |
| 6031 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6032 | #ifdef HAVE_ARPA_NAMESER_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6033 | # include <arpa/nameser.h> |
| 6034 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6035 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6036 | if test "x$ac_cv_header_resolv_h" = xyes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6037 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6038 | #define HAVE_RESOLV_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6039 | _ACEOF |
| 6040 | |
| 6041 | fi |
| 6042 | |
| 6043 | done |
| 6044 | |
| 6045 | |
Juan Lang | e3c0e30 | 2010-03-11 18:36:46 -0800 | [diff] [blame] | 6046 | for ac_header in ifaddrs.h |
| 6047 | do : |
| 6048 | ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h> |
| 6049 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6050 | if test "x$ac_cv_header_ifaddrs_h" = xyes; then : |
Juan Lang | e3c0e30 | 2010-03-11 18:36:46 -0800 | [diff] [blame] | 6051 | cat >>confdefs.h <<_ACEOF |
| 6052 | #define HAVE_IFADDRS_H 1 |
| 6053 | _ACEOF |
| 6054 | |
| 6055 | fi |
| 6056 | |
| 6057 | done |
| 6058 | |
| 6059 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6060 | for ac_header in ucontext.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6061 | do : |
| 6062 | ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h> |
| 6063 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6064 | if test "x$ac_cv_header_ucontext_h" = xyes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6065 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6066 | #define HAVE_UCONTEXT_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6067 | _ACEOF |
| 6068 | |
| 6069 | fi |
| 6070 | |
| 6071 | done |
| 6072 | |
| 6073 | |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6074 | for ac_header in sys/thr.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6075 | do : |
| 6076 | 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] | 6077 | #ifdef HAVE_UCONTEXT_H |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6078 | #include <ucontext.h> |
| 6079 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6080 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6081 | if test "x$ac_cv_header_sys_thr_h" = xyes; then : |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6082 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6083 | #define HAVE_SYS_THR_H 1 |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6084 | _ACEOF |
| 6085 | |
| 6086 | fi |
| 6087 | |
| 6088 | done |
| 6089 | |
| 6090 | |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6091 | for ac_header in pthread_np.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6092 | do : |
| 6093 | 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] | 6094 | #include <pthread.h> |
| 6095 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6096 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6097 | if test "x$ac_cv_header_pthread_np_h" = xyes; then : |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6098 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6099 | #define HAVE_PTHREAD_NP_H 1 |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6100 | _ACEOF |
| 6101 | |
| 6102 | fi |
| 6103 | |
| 6104 | done |
| 6105 | |
| 6106 | |
Rafał Mużyło | 898d8ab | 2011-07-14 21:38:14 +0200 | [diff] [blame] | 6107 | for ac_header in linux/videodev.h linux/videodev2.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6108 | do : |
Rafał Mużyło | 898d8ab | 2011-07-14 21:38:14 +0200 | [diff] [blame] | 6109 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6110 | 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] | 6111 | #include <sys/time.h> |
| 6112 | #endif |
| 6113 | #include <sys/types.h> |
| 6114 | #ifdef HAVE_ASM_TYPES_H |
| 6115 | #include <asm/types.h> |
| 6116 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6117 | " |
Rafał Mużyło | 898d8ab | 2011-07-14 21:38:14 +0200 | [diff] [blame] | 6118 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6119 | cat >>confdefs.h <<_ACEOF |
Rafał Mużyło | 898d8ab | 2011-07-14 21:38:14 +0200 | [diff] [blame] | 6120 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6121 | _ACEOF |
| 6122 | |
| 6123 | fi |
| 6124 | |
| 6125 | done |
| 6126 | |
| 6127 | |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6128 | for ac_header in linux/capi.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6129 | do : |
| 6130 | ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user |
| 6131 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6132 | if test "x$ac_cv_header_linux_capi_h" = xyes; then : |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6133 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6134 | #define HAVE_LINUX_CAPI_H 1 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6135 | _ACEOF |
| 6136 | |
| 6137 | fi |
| 6138 | |
| 6139 | done |
| 6140 | |
| 6141 | |
| 6142 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6143 | DLLEXT="" |
| 6144 | |
| 6145 | DLLFLAGS="-D_REENTRANT" |
| 6146 | |
| 6147 | LDSHARED="" |
| 6148 | |
| 6149 | LDDLLFLAGS="" |
| 6150 | |
| 6151 | LIBEXT="so" |
| 6152 | |
| 6153 | IMPLIBEXT="def" |
| 6154 | |
| 6155 | LDRPATH_INSTALL="" |
| 6156 | |
| 6157 | LDRPATH_LOCAL="" |
| 6158 | |
Alexandre Julliard | 950a0f8 | 2010-01-26 21:10:14 +0100 | [diff] [blame] | 6159 | STATIC_IMPLIBEXT="def.a" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6160 | # Extract the first word of "ldd", so it can be a program name with args. |
| 6161 | set dummy ldd; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6163 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6164 | if ${ac_cv_path_LDD+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6165 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6166 | else |
| 6167 | case $LDD in |
| 6168 | [\\/]* | ?:[\\/]*) |
| 6169 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 6170 | ;; |
| 6171 | *) |
| 6172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6173 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 6174 | for as_dir in $as_dummy |
| 6175 | do |
| 6176 | IFS=$as_save_IFS |
| 6177 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6178 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6180 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6181 | $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] | 6182 | break 2 |
| 6183 | fi |
| 6184 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6185 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6186 | IFS=$as_save_IFS |
| 6187 | |
| 6188 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 6189 | ;; |
| 6190 | esac |
| 6191 | fi |
| 6192 | LDD=$ac_cv_path_LDD |
| 6193 | if test -n "$LDD"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6195 | $as_echo "$LDD" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6196 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6198 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6199 | fi |
| 6200 | |
| 6201 | |
| 6202 | |
| 6203 | case $host_os in |
| 6204 | cygwin*|mingw32*) |
| 6205 | if test -n "$ac_tool_prefix"; then |
| 6206 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 6207 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6209 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6210 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6211 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6212 | else |
| 6213 | if test -n "$DLLTOOL"; then |
| 6214 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 6215 | else |
| 6216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6217 | for as_dir in $PATH |
| 6218 | do |
| 6219 | IFS=$as_save_IFS |
| 6220 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6221 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6223 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6224 | $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] | 6225 | break 2 |
| 6226 | fi |
| 6227 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6228 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6229 | IFS=$as_save_IFS |
| 6230 | |
| 6231 | fi |
| 6232 | fi |
| 6233 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 6234 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6236 | $as_echo "$DLLTOOL" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6237 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6239 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6240 | fi |
| 6241 | |
| 6242 | |
| 6243 | fi |
| 6244 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 6245 | ac_ct_DLLTOOL=$DLLTOOL |
| 6246 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 6247 | set dummy dlltool; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6249 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6250 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6251 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6252 | else |
| 6253 | if test -n "$ac_ct_DLLTOOL"; then |
| 6254 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 6255 | else |
| 6256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6257 | for as_dir in $PATH |
| 6258 | do |
| 6259 | IFS=$as_save_IFS |
| 6260 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6261 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6262 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6263 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6264 | $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] | 6265 | break 2 |
| 6266 | fi |
| 6267 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6268 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6269 | IFS=$as_save_IFS |
| 6270 | |
| 6271 | fi |
| 6272 | fi |
| 6273 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 6274 | if test -n "$ac_ct_DLLTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6276 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6277 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6279 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6280 | fi |
| 6281 | |
| 6282 | if test "x$ac_ct_DLLTOOL" = x; then |
| 6283 | DLLTOOL="false" |
| 6284 | else |
| 6285 | case $cross_compiling:$ac_tool_warned in |
| 6286 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6287 | { $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] | 6288 | $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] | 6289 | ac_tool_warned=yes ;; |
| 6290 | esac |
| 6291 | DLLTOOL=$ac_ct_DLLTOOL |
| 6292 | fi |
| 6293 | else |
| 6294 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 6295 | fi |
| 6296 | |
| 6297 | if test -n "$ac_tool_prefix"; then |
| 6298 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 6299 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6301 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6302 | if ${ac_cv_prog_DLLWRAP+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6303 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6304 | else |
| 6305 | if test -n "$DLLWRAP"; then |
| 6306 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 6307 | else |
| 6308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6309 | for as_dir in $PATH |
| 6310 | do |
| 6311 | IFS=$as_save_IFS |
| 6312 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6313 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6314 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6315 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6316 | $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] | 6317 | break 2 |
| 6318 | fi |
| 6319 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6320 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6321 | IFS=$as_save_IFS |
| 6322 | |
| 6323 | fi |
| 6324 | fi |
| 6325 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 6326 | if test -n "$DLLWRAP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6328 | $as_echo "$DLLWRAP" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6329 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6331 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6332 | fi |
| 6333 | |
| 6334 | |
| 6335 | fi |
| 6336 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 6337 | ac_ct_DLLWRAP=$DLLWRAP |
| 6338 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 6339 | set dummy dllwrap; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6341 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6342 | if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6343 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6344 | else |
| 6345 | if test -n "$ac_ct_DLLWRAP"; then |
| 6346 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 6347 | else |
| 6348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6349 | for as_dir in $PATH |
| 6350 | do |
| 6351 | IFS=$as_save_IFS |
| 6352 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6353 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6354 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6355 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6356 | $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] | 6357 | break 2 |
| 6358 | fi |
| 6359 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6360 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6361 | IFS=$as_save_IFS |
| 6362 | |
| 6363 | fi |
| 6364 | fi |
| 6365 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 6366 | if test -n "$ac_ct_DLLWRAP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6368 | $as_echo "$ac_ct_DLLWRAP" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6369 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6371 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6372 | fi |
| 6373 | |
| 6374 | if test "x$ac_ct_DLLWRAP" = x; then |
| 6375 | DLLWRAP="false" |
| 6376 | else |
| 6377 | case $cross_compiling:$ac_tool_warned in |
| 6378 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6379 | { $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] | 6380 | $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] | 6381 | ac_tool_warned=yes ;; |
| 6382 | esac |
| 6383 | DLLWRAP=$ac_ct_DLLWRAP |
| 6384 | fi |
| 6385 | else |
| 6386 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 6387 | fi |
| 6388 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6389 | if test "$DLLWRAP" = "false"; then |
| 6390 | LIBEXT="a" |
| 6391 | else |
| 6392 | LIBEXT="dll" |
| 6393 | fi |
| 6394 | IMPLIBEXT="a" |
Alexandre Julliard | 950a0f8 | 2010-01-26 21:10:14 +0100 | [diff] [blame] | 6395 | STATIC_IMPLIBEXT="a" |
Alexandre Julliard | ec1ebfb | 2008-09-04 12:29:07 +0200 | [diff] [blame] | 6396 | enable_iphlpapi=${enable_iphlpapi:-no} |
| 6397 | enable_kernel32=${enable_kernel32:-no} |
| 6398 | enable_msvcrt=${enable_msvcrt:-no} |
| 6399 | enable_ntdll=${enable_ntdll:-no} |
| 6400 | enable_ws2_32=${enable_ws2_32:-no} |
| 6401 | enable_loader=${enable_loader:-no} |
| 6402 | enable_server=${enable_server:-no} |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 6403 | with_x=${with_x:-no} |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 6404 | with_pthread=${with_pthread:-no} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6405 | ;; |
| 6406 | darwin*|macosx*) |
| 6407 | DLLEXT=".so" |
| 6408 | LIBEXT="dylib" |
| 6409 | DLLFLAGS="$DLLFLAGS -fPIC" |
| 6410 | LDDLLFLAGS="-bundle -multiply_defined suppress" |
| 6411 | LIBWINE_LDFLAGS="-multiply_defined suppress" |
| 6412 | LDSHARED="\$(CC) -dynamiclib" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6413 | 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] | 6414 | COREFOUNDATIONLIB="-framework CoreFoundation" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6415 | |
| 6416 | IOKITLIB="-framework IOKit -framework CoreFoundation" |
| 6417 | |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 6418 | APPLICATIONSERVICESLIB="-framework ApplicationServices" |
| 6419 | |
Camillo Lugaresi | 0b5dcba | 2011-08-02 04:31:53 +0200 | [diff] [blame] | 6420 | case $host_os in |
| 6421 | darwin11*) |
| 6422 | LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000" |
| 6423 | ;; |
| 6424 | *) |
| 6425 | LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000" |
| 6426 | ;; |
| 6427 | esac |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6428 | if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes" |
| 6429 | then |
| 6430 | DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation" |
| 6431 | |
| 6432 | fi |
Alexandre Julliard | 45db348 | 2011-03-14 14:25:45 +0100 | [diff] [blame] | 6433 | if test "$ac_cv_header_Security_Security_h" = "yes" |
| 6434 | then |
| 6435 | SECURITYLIB="-framework Security -framework CoreFoundation" |
| 6436 | |
| 6437 | with_gnutls=${with_gnutls:-no} |
| 6438 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6439 | if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes" |
| 6440 | then |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 6441 | if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes" |
| 6442 | then |
| 6443 | COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6444 | |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 6445 | else |
| 6446 | COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI" |
| 6447 | |
| 6448 | fi |
Charles Davis | b149d7b | 2011-01-29 16:45:54 -0700 | [diff] [blame] | 6449 | ac_save_LIBS="$LIBS" |
| 6450 | LIBS="$LIBS $COREAUDIO" |
| 6451 | for ac_func in AUGraphAddNode |
| 6452 | do : |
| 6453 | ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6454 | if test "x$ac_cv_func_AUGraphAddNode" = xyes; then : |
Charles Davis | b149d7b | 2011-01-29 16:45:54 -0700 | [diff] [blame] | 6455 | cat >>confdefs.h <<_ACEOF |
| 6456 | #define HAVE_AUGRAPHADDNODE 1 |
| 6457 | _ACEOF |
| 6458 | |
| 6459 | fi |
| 6460 | done |
| 6461 | |
| 6462 | LIBS="$ac_save_LIBS" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6463 | fi |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6464 | if test "$ac_cv_header_OpenAL_al_h" = "yes" |
| 6465 | then |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 6466 | FRAMEWORK_OPENAL="-framework OpenAL" |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6467 | |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 6468 | |
| 6469 | cat >>confdefs.h <<_ACEOF |
| 6470 | #define HAVE_OPENAL 1 |
| 6471 | _ACEOF |
| 6472 | |
| 6473 | ac_cv_lib_openal=yes |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6474 | fi |
Alexandre Julliard | fac6741 | 2010-12-03 14:16:55 +0100 | [diff] [blame] | 6475 | if test "$ac_cv_header_OpenCL_opencl_h" = "yes" |
| 6476 | then |
| 6477 | LIBOPENCL="-framework OpenCL" |
| 6478 | |
| 6479 | ac_cv_lib_OpenCL_clGetPlatformInfo=yes |
| 6480 | fi |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6481 | if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes" |
| 6482 | then |
| 6483 | ac_save_LIBS="$LIBS" |
| 6484 | LIBS="$LIBS $IOKITLIB" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6485 | for ac_func in IOHIDManagerCreate |
| 6486 | do : |
| 6487 | ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6488 | if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then : |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6489 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6490 | #define HAVE_IOHIDMANAGERCREATE 1 |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6491 | _ACEOF |
| 6492 | |
| 6493 | fi |
| 6494 | done |
| 6495 | |
| 6496 | LIBS="$ac_save_LIBS" |
| 6497 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6498 | case $host_cpu in |
| 6499 | *powerpc*) |
| 6500 | LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;; |
| 6501 | esac |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 6502 | if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes" |
| 6503 | then |
| 6504 | QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo" |
| 6505 | |
| 6506 | enable_wineqtdecoder=${enable_wineqtdecoder:-yes} |
| 6507 | else |
| 6508 | as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported." |
| 6509 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6510 | if test "$ac_cv_header_Carbon_Carbon_h" = "yes" |
| 6511 | then |
| 6512 | CARBONLIB="-framework Carbon" |
| 6513 | |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 6514 | enable_winequartz_drv=${enable_winequartz_drv:-yes} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6515 | fi |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6516 | if test "x$enable_win16" = "xyes" |
| 6517 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6518 | { $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] | 6519 | $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] | 6520 | if test "$cross_compiling" = yes; then : |
| 6521 | { $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] | 6522 | $as_echo "cross-compiling, assuming yes" >&6; } |
| 6523 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6525 | /* end confdefs.h. */ |
| 6526 | asm(".text\n" |
| 6527 | "bad:\tnop;nop\n" |
| 6528 | "good:\tnop;nop\n\t" |
| 6529 | ".globl _testfunc\n" |
| 6530 | "_testfunc:\tcallw good"); |
| 6531 | extern void testfunc(); |
| 6532 | int |
| 6533 | main () |
| 6534 | { |
| 6535 | unsigned short *p = (unsigned short *)testfunc; |
| 6536 | return p[0] != 0xe866 || p[1] != 0xfffa |
| 6537 | ; |
| 6538 | return 0; |
| 6539 | } |
| 6540 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6541 | if ac_fn_c_try_run "$LINENO"; then : |
| 6542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6543 | $as_echo "yes" >&6; } |
| 6544 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6546 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6547 | 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] | 6548 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6549 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6550 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6551 | fi |
| 6552 | |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6553 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6554 | ;; |
| 6555 | *) |
| 6556 | DLLFLAGS="$DLLFLAGS -fPIC" |
| 6557 | DLLEXT=".so" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6558 | { $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] | 6559 | $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] | 6560 | if ${ac_cv_c_dll_gnuelf+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6561 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6562 | else |
| 6563 | ac_wine_try_cflags_saved=$CFLAGS |
| 6564 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6566 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6567 | void myfunc() {} |
| 6568 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6569 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6570 | ac_cv_c_dll_gnuelf="yes" |
| 6571 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6572 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6573 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6574 | rm -f core conftest.err conftest.$ac_objext \ |
| 6575 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6576 | CFLAGS=$ac_wine_try_cflags_saved |
| 6577 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6578 | { $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] | 6579 | $as_echo "$ac_cv_c_dll_gnuelf" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6580 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 6581 | then |
| 6582 | LDSHARED="\$(CC) -shared" |
| 6583 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6584 | { $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] | 6585 | $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] | 6586 | 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] | 6587 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6588 | else |
| 6589 | ac_wine_try_cflags_saved=$CFLAGS |
| 6590 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6592 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6593 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6594 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6595 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6596 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes |
| 6597 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6598 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6599 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6600 | rm -f core conftest.err conftest.$ac_objext \ |
| 6601 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6602 | CFLAGS=$ac_wine_try_cflags_saved |
| 6603 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6604 | { $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] | 6605 | $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] | 6606 | 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] | 6607 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 6608 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6609 | { $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] | 6610 | $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] | 6611 | 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] | 6612 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6613 | else |
| 6614 | ac_wine_try_cflags_saved=$CFLAGS |
| 6615 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6617 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6618 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6619 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6620 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6621 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes |
| 6622 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6623 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6624 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6625 | rm -f core conftest.err conftest.$ac_objext \ |
| 6626 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6627 | CFLAGS=$ac_wine_try_cflags_saved |
| 6628 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6629 | { $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] | 6630 | $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] | 6631 | 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] | 6632 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)" |
| 6633 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6634 | fi |
| 6635 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6636 | { $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] | 6637 | $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] | 6638 | if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6639 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6640 | else |
| 6641 | ac_wine_try_cflags_saved=$CFLAGS |
| 6642 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6644 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6645 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6646 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6647 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6648 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes |
| 6649 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6650 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6651 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6652 | rm -f core conftest.err conftest.$ac_objext \ |
| 6653 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6654 | CFLAGS=$ac_wine_try_cflags_saved |
| 6655 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6656 | { $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] | 6657 | $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6658 | 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] | 6659 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
| 6660 | fi |
| 6661 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6662 | { $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] | 6663 | $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] | 6664 | 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] | 6665 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6666 | else |
| 6667 | ac_wine_try_cflags_saved=$CFLAGS |
| 6668 | 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] | 6669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6670 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6671 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6672 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6673 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6674 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes |
| 6675 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6676 | 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] | 6677 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6678 | rm -f core conftest.err conftest.$ac_objext \ |
| 6679 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6680 | CFLAGS=$ac_wine_try_cflags_saved |
| 6681 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6682 | { $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] | 6683 | $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] | 6684 | 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] | 6685 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 6686 | fi |
| 6687 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6688 | echo '{ global: *; };' >conftest.map |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6689 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh` |
| 6690 | { $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] | 6691 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6692 | if eval \${$as_ac_var+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6693 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6694 | else |
| 6695 | ac_wine_try_cflags_saved=$CFLAGS |
| 6696 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6698 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6699 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6700 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6701 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6702 | eval "$as_ac_var=yes" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6703 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6704 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6705 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6706 | rm -f core conftest.err conftest.$ac_objext \ |
| 6707 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6708 | CFLAGS=$ac_wine_try_cflags_saved |
| 6709 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6710 | eval ac_res=\$$as_ac_var |
| 6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6712 | $as_echo "$ac_res" >&6; } |
| 6713 | 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] | 6714 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" |
| 6715 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6716 | rm -f conftest.map |
| 6717 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6718 | { $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] | 6719 | $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] | 6720 | if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6721 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6722 | else |
| 6723 | ac_wine_try_cflags_saved=$CFLAGS |
| 6724 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6726 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6727 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6728 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6729 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6730 | ac_cv_cflags__fPIC__Wl___export_dynamic=yes |
| 6731 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6732 | ac_cv_cflags__fPIC__Wl___export_dynamic=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6733 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6734 | rm -f core conftest.err conftest.$ac_objext \ |
| 6735 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6736 | CFLAGS=$ac_wine_try_cflags_saved |
| 6737 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6738 | { $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] | 6739 | $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6740 | if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6741 | LDEXECFLAGS="-Wl,--export-dynamic" |
| 6742 | |
| 6743 | fi |
| 6744 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6745 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh` |
| 6746 | { $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] | 6747 | $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] | 6748 | if eval \${$as_ac_var+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6749 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6750 | else |
| 6751 | ac_wine_try_cflags_saved=$CFLAGS |
| 6752 | CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6754 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6755 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6756 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6757 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6758 | eval "$as_ac_var=yes" |
| 6759 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6760 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6761 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6762 | rm -f core conftest.err conftest.$ac_objext \ |
| 6763 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6764 | CFLAGS=$ac_wine_try_cflags_saved |
| 6765 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6766 | eval ac_res=\$$as_ac_var |
| 6767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6768 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6769 | 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] | 6770 | LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6771 | LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6772 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6773 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh` |
| 6774 | { $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] | 6775 | $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] | 6776 | if eval \${$as_ac_var+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6777 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6778 | else |
| 6779 | ac_wine_try_cflags_saved=$CFLAGS |
| 6780 | CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6782 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6783 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6784 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6785 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6786 | eval "$as_ac_var=yes" |
| 6787 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6788 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6789 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6790 | rm -f core conftest.err conftest.$ac_objext \ |
| 6791 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6792 | CFLAGS=$ac_wine_try_cflags_saved |
| 6793 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6794 | eval ac_res=\$$as_ac_var |
| 6795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6796 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6797 | 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] | 6798 | LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6799 | LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6800 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6801 | fi |
| 6802 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6803 | { $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] | 6804 | $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] | 6805 | if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6806 | $as_echo_n "(cached) " >&6 |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6807 | else |
| 6808 | ac_wine_try_cflags_saved=$CFLAGS |
| 6809 | CFLAGS="$CFLAGS -Wl,--enable-new-dtags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6811 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6812 | int main(int argc, char **argv) { return 0; } |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6813 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6814 | if ac_fn_c_try_link "$LINENO"; then : |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6815 | ac_cv_cflags__Wl___enable_new_dtags=yes |
| 6816 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6817 | ac_cv_cflags__Wl___enable_new_dtags=no |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6818 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6819 | rm -f core conftest.err conftest.$ac_objext \ |
| 6820 | conftest$ac_exeext conftest.$ac_ext |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6821 | CFLAGS=$ac_wine_try_cflags_saved |
| 6822 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6823 | { $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] | 6824 | $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6825 | if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then : |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6826 | LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags" |
| 6827 | fi |
| 6828 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6829 | case $host_cpu in |
| 6830 | *i[3456789]86* | x86_64) |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6831 | as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh` |
| 6832 | { $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] | 6833 | $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6834 | if eval \${$as_ac_var+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6835 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6836 | else |
| 6837 | ac_wine_try_cflags_saved=$CFLAGS |
| 6838 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6840 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6841 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6842 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6843 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6844 | eval "$as_ac_var=yes" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6845 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6846 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6847 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6848 | rm -f core conftest.err conftest.$ac_objext \ |
| 6849 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6850 | CFLAGS=$ac_wine_try_cflags_saved |
| 6851 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6852 | eval ac_res=\$$as_ac_var |
| 6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6854 | $as_echo "$ac_res" >&6; } |
| 6855 | if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then : |
Francois Gouget | 5f694dd | 2010-11-26 16:18:32 +0100 | [diff] [blame] | 6856 | case $host_os in |
Robert Millan | 535a55e | 2011-08-23 20:39:45 +0200 | [diff] [blame] | 6857 | freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;; |
Francois Gouget | 5f694dd | 2010-11-26 16:18:32 +0100 | [diff] [blame] | 6858 | *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;; |
| 6859 | esac |
| 6860 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6861 | fi |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 6862 | # Extract the first word of "prelink", so it can be a program name with args. |
| 6863 | set dummy prelink; ac_word=$2 |
| 6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6865 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6866 | if ${ac_cv_path_PRELINK+:} false; then : |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 6867 | $as_echo_n "(cached) " >&6 |
| 6868 | else |
| 6869 | case $PRELINK in |
| 6870 | [\\/]* | ?:[\\/]*) |
| 6871 | ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path. |
| 6872 | ;; |
| 6873 | *) |
| 6874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6875 | for as_dir in /sbin /usr/sbin $PATH |
| 6876 | do |
| 6877 | IFS=$as_save_IFS |
| 6878 | test -z "$as_dir" && as_dir=. |
| 6879 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6881 | ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext" |
| 6882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6883 | break 2 |
| 6884 | fi |
| 6885 | done |
| 6886 | done |
| 6887 | IFS=$as_save_IFS |
| 6888 | |
| 6889 | test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false" |
| 6890 | ;; |
| 6891 | esac |
| 6892 | fi |
| 6893 | PRELINK=$ac_cv_path_PRELINK |
| 6894 | if test -n "$PRELINK"; then |
| 6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5 |
| 6896 | $as_echo "$PRELINK" >&6; } |
| 6897 | else |
| 6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6899 | $as_echo "no" >&6; } |
| 6900 | fi |
| 6901 | |
| 6902 | |
| 6903 | if test "x$PRELINK" = xfalse |
| 6904 | then |
| 6905 | as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly." |
| 6906 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6907 | ;; |
| 6908 | esac |
| 6909 | |
| 6910 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6911 | { $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] | 6912 | $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] | 6913 | if ${ac_cv_c_dll_unixware+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6914 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6915 | else |
| 6916 | ac_wine_try_cflags_saved=$CFLAGS |
| 6917 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6919 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6920 | void myfunc() {} |
| 6921 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6922 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6923 | ac_cv_c_dll_unixware="yes" |
| 6924 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6925 | ac_cv_c_dll_unixware="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6926 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6927 | rm -f core conftest.err conftest.$ac_objext \ |
| 6928 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6929 | CFLAGS=$ac_wine_try_cflags_saved |
| 6930 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6931 | { $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] | 6932 | $as_echo "$ac_cv_c_dll_unixware" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6933 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 6934 | then |
| 6935 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
| 6936 | LDDLLFLAGS="-Wl,-G,-B,symbolic" |
| 6937 | |
| 6938 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6939 | { $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] | 6940 | $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] | 6941 | if ${ac_cv_c_dll_hpux+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6942 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6943 | else |
| 6944 | ac_wine_try_cflags_saved=$CFLAGS |
| 6945 | CFLAGS="$CFLAGS -shared" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6947 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6948 | void myfunc() {} |
| 6949 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6950 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6951 | ac_cv_c_dll_hpux="yes" |
| 6952 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6953 | ac_cv_c_dll_hpux="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6954 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6955 | rm -f core conftest.err conftest.$ac_objext \ |
| 6956 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6957 | CFLAGS=$ac_wine_try_cflags_saved |
| 6958 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6959 | { $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] | 6960 | $as_echo "$ac_cv_c_dll_hpux" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6961 | if test "$ac_cv_c_dll_hpux" = "yes" |
| 6962 | then |
| 6963 | LIBEXT="sl" |
| 6964 | DLLEXT=".sl" |
| 6965 | LDDLLFLAGS="-shared -fPIC" |
| 6966 | LDSHARED="\$(CC) -shared" |
| 6967 | fi |
| 6968 | fi |
| 6969 | fi |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 6970 | ;; |
| 6971 | esac |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6972 | |
Aric Stewart | eefe6f6 | 2010-12-03 07:33:08 -0600 | [diff] [blame] | 6973 | enable_wineqtdecoder=${enable_wineqtdecoder:-no} |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 6974 | enable_winequartz_drv=${enable_winequartz_drv:-no} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6975 | |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 6976 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6977 | as_fn_error $? "could not find a way to build shared libraries. |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 6978 | It is currently not possible to build Wine without shared library |
| 6979 | (.so) support to allow transparent switch between .so and .dll files. |
| 6980 | If you are using Linux, you will need a newer binutils. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6981 | " "$LINENO" 5 |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 6982 | fi |
| 6983 | |
Alexandre Julliard | 7d2e772 | 2010-07-26 12:13:47 +0200 | [diff] [blame] | 6984 | CROSSTEST_DISABLE=\# |
| 6985 | |
| 6986 | 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] | 6987 | then |
Alexandre Julliard | a91fb21 | 2009-12-07 15:36:09 +0100 | [diff] [blame] | 6988 | case "$host_cpu" in |
| 6989 | i[3456789]86*) |
Jacek Caban | 0b6bfad | 2010-12-21 18:08:38 +0100 | [diff] [blame] | 6990 | ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;; |
Alexandre Julliard | a91fb21 | 2009-12-07 15:36:09 +0100 | [diff] [blame] | 6991 | x86_64) |
Vincent Povirk | d210375 | 2010-10-11 15:55:40 -0500 | [diff] [blame] | 6992 | 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] | 6993 | *) |
| 6994 | ac_prefix_list="" ;; |
| 6995 | esac |
| 6996 | for ac_prog in $ac_prefix_list |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6997 | do |
| 6998 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6999 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7001 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7002 | if ${ac_cv_prog_CROSSCC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7003 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7004 | else |
| 7005 | if test -n "$CROSSCC"; then |
| 7006 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 7007 | else |
| 7008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7009 | for as_dir in $PATH |
| 7010 | do |
| 7011 | IFS=$as_save_IFS |
| 7012 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7013 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7014 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7015 | ac_cv_prog_CROSSCC="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7016 | $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] | 7017 | break 2 |
| 7018 | fi |
| 7019 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7020 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7021 | IFS=$as_save_IFS |
| 7022 | |
| 7023 | fi |
| 7024 | fi |
| 7025 | CROSSCC=$ac_cv_prog_CROSSCC |
| 7026 | if test -n "$CROSSCC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7028 | $as_echo "$CROSSCC" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7029 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7031 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7032 | fi |
| 7033 | |
| 7034 | |
| 7035 | test -n "$CROSSCC" && break |
| 7036 | done |
| 7037 | test -n "$CROSSCC" || CROSSCC="false" |
| 7038 | |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7039 | if test "$CROSSCC" != "false" |
| 7040 | then |
Alexandre Julliard | c2a29db | 2010-08-04 13:16:19 +0200 | [diff] [blame] | 7041 | ac_save_CC="$CC" |
| 7042 | CC="$CROSSCC" |
| 7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5 |
| 7044 | $as_echo_n "checking whether $CROSSCC works... " >&6; } |
| 7045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7046 | /* end confdefs.h. */ |
Alexandre Julliard | a2d88ab | 2009-05-30 17:08:06 +0200 | [diff] [blame] | 7047 | |
Alexandre Julliard | c2a29db | 2010-08-04 13:16:19 +0200 | [diff] [blame] | 7048 | int |
| 7049 | main () |
| 7050 | { |
| 7051 | |
| 7052 | ; |
| 7053 | return 0; |
| 7054 | } |
| 7055 | _ACEOF |
| 7056 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7058 | $as_echo "yes" >&6; } |
| 7059 | set x $CROSSCC |
| 7060 | shift |
| 7061 | target="" |
| 7062 | while test $# -ge 1 |
| 7063 | do |
| 7064 | case "$1" in |
| 7065 | *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;; |
| 7066 | esac |
| 7067 | shift |
| 7068 | done |
| 7069 | if test -n "$target" |
| 7070 | then |
| 7071 | CROSSTEST_DISABLE="" |
| 7072 | CROSSTARGET="$target" |
| 7073 | |
| 7074 | fi |
| 7075 | else |
| 7076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7077 | $as_echo "no" >&6; } |
| 7078 | fi |
| 7079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7080 | CC="$ac_save_CC" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7081 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7082 | fi |
| 7083 | |
| 7084 | |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7085 | if test "$ac_cv_header_pthread_h" = "yes" |
| 7086 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7087 | { $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] | 7088 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7089 | if ${ac_cv_lib_pthread_pthread_create+:} false; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7090 | $as_echo_n "(cached) " >&6 |
| 7091 | else |
| 7092 | ac_check_lib_save_LIBS=$LIBS |
| 7093 | LIBS="-lpthread $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7095 | /* end confdefs.h. */ |
| 7096 | |
| 7097 | /* Override any GCC internal prototype to avoid an error. |
| 7098 | Use char because int might match the return type of a GCC |
| 7099 | builtin and then its argument prototype would still apply. */ |
| 7100 | #ifdef __cplusplus |
| 7101 | extern "C" |
| 7102 | #endif |
| 7103 | char pthread_create (); |
| 7104 | int |
| 7105 | main () |
| 7106 | { |
| 7107 | return pthread_create (); |
| 7108 | ; |
| 7109 | return 0; |
| 7110 | } |
| 7111 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7112 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7113 | ac_cv_lib_pthread_pthread_create=yes |
| 7114 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7115 | ac_cv_lib_pthread_pthread_create=no |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7116 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7117 | rm -f core conftest.err conftest.$ac_objext \ |
| 7118 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7119 | LIBS=$ac_check_lib_save_LIBS |
| 7120 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7121 | { $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] | 7122 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7123 | if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7124 | LIBPTHREAD="-lpthread" |
| 7125 | |
| 7126 | fi |
| 7127 | |
| 7128 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7129 | if test "x$LIBPTHREAD" = "x"; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7130 | case "x$with_pthread" in |
| 7131 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7132 | *) as_fn_error $? "pthread ${notice_platform}development files not found. |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7133 | Wine cannot support threads without libpthread. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7134 | Use the --without-pthread option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7135 | esac |
| 7136 | fi |
| 7137 | |
| 7138 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7140 | $as_echo_n "checking for X... " >&6; } |
| 7141 | |
| 7142 | |
| 7143 | # Check whether --with-x was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7144 | if test "${with_x+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7145 | withval=$with_x; |
| 7146 | fi |
| 7147 | |
| 7148 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 7149 | if test "x$with_x" = xno; then |
| 7150 | # The user explicitly disabled X. |
| 7151 | have_x=disabled |
| 7152 | else |
| 7153 | case $x_includes,$x_libraries in #( |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7154 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 7155 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7156 | $as_echo_n "(cached) " >&6 |
| 7157 | else |
| 7158 | # One or both of the vars are not set, and there is no cached value. |
| 7159 | ac_x_includes=no ac_x_libraries=no |
| 7160 | rm -f -r conftest.dir |
| 7161 | if mkdir conftest.dir; then |
| 7162 | cd conftest.dir |
| 7163 | cat >Imakefile <<'_ACEOF' |
| 7164 | incroot: |
| 7165 | @echo incroot='${INCROOT}' |
| 7166 | usrlibdir: |
| 7167 | @echo usrlibdir='${USRLIBDIR}' |
| 7168 | libdir: |
| 7169 | @echo libdir='${LIBDIR}' |
| 7170 | _ACEOF |
| 7171 | 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] | 7172 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7173 | for ac_var in incroot usrlibdir libdir; do |
| 7174 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 7175 | done |
| 7176 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 7177 | for ac_extension in a so sl dylib la dll; do |
| 7178 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 7179 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 7180 | ac_im_usrlibdir=$ac_im_libdir; break |
| 7181 | fi |
| 7182 | done |
| 7183 | # Screen out bogus values from the imake configuration. They are |
| 7184 | # bogus both because they are the default anyway, and because |
| 7185 | # using them would break gcc on systems where it needs fixed includes. |
| 7186 | case $ac_im_incroot in |
| 7187 | /usr/include) ac_x_includes= ;; |
| 7188 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 7189 | esac |
| 7190 | case $ac_im_usrlibdir in |
| 7191 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 7192 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 7193 | esac |
| 7194 | fi |
| 7195 | cd .. |
| 7196 | rm -f -r conftest.dir |
| 7197 | fi |
| 7198 | |
| 7199 | # Standard set of common directories for X headers. |
| 7200 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 7201 | ac_x_header_dirs=' |
| 7202 | /usr/X11/include |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7203 | /usr/X11R7/include |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7204 | /usr/X11R6/include |
| 7205 | /usr/X11R5/include |
| 7206 | /usr/X11R4/include |
| 7207 | |
| 7208 | /usr/include/X11 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7209 | /usr/include/X11R7 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7210 | /usr/include/X11R6 |
| 7211 | /usr/include/X11R5 |
| 7212 | /usr/include/X11R4 |
| 7213 | |
| 7214 | /usr/local/X11/include |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7215 | /usr/local/X11R7/include |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7216 | /usr/local/X11R6/include |
| 7217 | /usr/local/X11R5/include |
| 7218 | /usr/local/X11R4/include |
| 7219 | |
| 7220 | /usr/local/include/X11 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7221 | /usr/local/include/X11R7 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7222 | /usr/local/include/X11R6 |
| 7223 | /usr/local/include/X11R5 |
| 7224 | /usr/local/include/X11R4 |
| 7225 | |
| 7226 | /usr/X386/include |
| 7227 | /usr/x386/include |
| 7228 | /usr/XFree86/include/X11 |
| 7229 | |
| 7230 | /usr/include |
| 7231 | /usr/local/include |
| 7232 | /usr/unsupported/include |
| 7233 | /usr/athena/include |
| 7234 | /usr/local/x11r5/include |
| 7235 | /usr/lpp/Xamples/include |
| 7236 | |
| 7237 | /usr/openwin/include |
| 7238 | /usr/openwin/share/include' |
| 7239 | |
| 7240 | if test "$ac_x_includes" = no; then |
| 7241 | # Guess where to find include files, by looking for Xlib.h. |
| 7242 | # First, try using that file with no special directory specified. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7244 | /* end confdefs.h. */ |
| 7245 | #include <X11/Xlib.h> |
| 7246 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7247 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7248 | # We can compile using X headers with no special include directory. |
| 7249 | ac_x_includes= |
| 7250 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7251 | for ac_dir in $ac_x_header_dirs; do |
| 7252 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 7253 | ac_x_includes=$ac_dir |
| 7254 | break |
| 7255 | fi |
| 7256 | done |
| 7257 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7258 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7259 | fi # $ac_x_includes = no |
| 7260 | |
| 7261 | if test "$ac_x_libraries" = no; then |
| 7262 | # Check for the libraries. |
| 7263 | # See if we find them without any special options. |
| 7264 | # Don't add to $LIBS permanently. |
| 7265 | ac_save_LIBS=$LIBS |
| 7266 | LIBS="-lX11 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7268 | /* end confdefs.h. */ |
| 7269 | #include <X11/Xlib.h> |
| 7270 | int |
| 7271 | main () |
| 7272 | { |
| 7273 | XrmInitialize () |
| 7274 | ; |
| 7275 | return 0; |
| 7276 | } |
| 7277 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7278 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7279 | LIBS=$ac_save_LIBS |
| 7280 | # We can link X programs with no special library path. |
| 7281 | ac_x_libraries= |
| 7282 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7283 | LIBS=$ac_save_LIBS |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7284 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 7285 | do |
| 7286 | # Don't even attempt the hair of trying to link an X program! |
| 7287 | for ac_extension in a so sl dylib la dll; do |
| 7288 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 7289 | ac_x_libraries=$ac_dir |
| 7290 | break 2 |
| 7291 | fi |
| 7292 | done |
| 7293 | done |
| 7294 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7295 | rm -f core conftest.err conftest.$ac_objext \ |
| 7296 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7297 | fi # $ac_x_libraries = no |
| 7298 | |
| 7299 | case $ac_x_includes,$ac_x_libraries in #( |
| 7300 | no,* | *,no | *\'*) |
| 7301 | # Didn't find X, or a directory has "'" in its name. |
| 7302 | ac_cv_have_x="have_x=no";; #( |
| 7303 | *) |
| 7304 | # Record where we found X for the cache. |
| 7305 | ac_cv_have_x="have_x=yes\ |
| 7306 | ac_x_includes='$ac_x_includes'\ |
| 7307 | ac_x_libraries='$ac_x_libraries'" |
| 7308 | esac |
| 7309 | fi |
| 7310 | ;; #( |
| 7311 | *) have_x=yes;; |
| 7312 | esac |
| 7313 | eval "$ac_cv_have_x" |
| 7314 | fi # $with_x != no |
| 7315 | |
| 7316 | if test "$have_x" != yes; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7318 | $as_echo "$have_x" >&6; } |
| 7319 | no_x=yes |
| 7320 | else |
| 7321 | # If each of the values was on the command line, it overrides each guess. |
| 7322 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 7323 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 7324 | # Update the cache value to reflect the command line values. |
| 7325 | ac_cv_have_x="have_x=yes\ |
| 7326 | ac_x_includes='$x_includes'\ |
| 7327 | ac_x_libraries='$x_libraries'" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7328 | { $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] | 7329 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 7330 | fi |
| 7331 | |
| 7332 | if test "$no_x" = yes; then |
| 7333 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 7334 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7335 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7336 | |
| 7337 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 7338 | else |
| 7339 | if test -n "$x_includes"; then |
| 7340 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 7341 | fi |
| 7342 | |
| 7343 | # It would also be nice to do this for all -L options, not just this one. |
| 7344 | if test -n "$x_libraries"; then |
| 7345 | X_LIBS="$X_LIBS -L$x_libraries" |
| 7346 | # For Solaris; some versions of Sun CC require a space after -R and |
| 7347 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7348 | { $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] | 7349 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 7350 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 7351 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 7352 | ac_c_werror_flag=yes |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7354 | /* end confdefs.h. */ |
| 7355 | |
| 7356 | int |
| 7357 | main () |
| 7358 | { |
| 7359 | |
| 7360 | ; |
| 7361 | return 0; |
| 7362 | } |
| 7363 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7364 | if ac_fn_c_try_link "$LINENO"; then : |
| 7365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7366 | $as_echo "no" >&6; } |
| 7367 | X_LIBS="$X_LIBS -R$x_libraries" |
| 7368 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7369 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 7370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7371 | /* end confdefs.h. */ |
| 7372 | |
| 7373 | int |
| 7374 | main () |
| 7375 | { |
| 7376 | |
| 7377 | ; |
| 7378 | return 0; |
| 7379 | } |
| 7380 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7381 | if ac_fn_c_try_link "$LINENO"; then : |
| 7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7383 | $as_echo "yes" >&6; } |
| 7384 | X_LIBS="$X_LIBS -R $x_libraries" |
| 7385 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7387 | $as_echo "neither works" >&6; } |
| 7388 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7389 | rm -f core conftest.err conftest.$ac_objext \ |
| 7390 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7391 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7392 | rm -f core conftest.err conftest.$ac_objext \ |
| 7393 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7394 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 7395 | LIBS=$ac_xsave_LIBS |
| 7396 | fi |
| 7397 | |
| 7398 | # Check for system-dependent libraries X programs must link with. |
| 7399 | # Do this before checking for the system-independent R6 libraries |
| 7400 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 7401 | |
| 7402 | if test "$ISC" = yes; then |
| 7403 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 7404 | else |
| 7405 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 7406 | # libraries were built with DECnet support. And Karl Berry says |
| 7407 | # the Alpha needs dnet_stub (dnet does not exist). |
| 7408 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7410 | /* end confdefs.h. */ |
| 7411 | |
| 7412 | /* Override any GCC internal prototype to avoid an error. |
| 7413 | Use char because int might match the return type of a GCC |
| 7414 | builtin and then its argument prototype would still apply. */ |
| 7415 | #ifdef __cplusplus |
| 7416 | extern "C" |
| 7417 | #endif |
| 7418 | char XOpenDisplay (); |
| 7419 | int |
| 7420 | main () |
| 7421 | { |
| 7422 | return XOpenDisplay (); |
| 7423 | ; |
| 7424 | return 0; |
| 7425 | } |
| 7426 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7427 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7428 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7429 | else |
| 7430 | { $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] | 7431 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7432 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7433 | $as_echo_n "(cached) " >&6 |
| 7434 | else |
| 7435 | ac_check_lib_save_LIBS=$LIBS |
| 7436 | LIBS="-ldnet $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7438 | /* end confdefs.h. */ |
| 7439 | |
| 7440 | /* Override any GCC internal prototype to avoid an error. |
| 7441 | Use char because int might match the return type of a GCC |
| 7442 | builtin and then its argument prototype would still apply. */ |
| 7443 | #ifdef __cplusplus |
| 7444 | extern "C" |
| 7445 | #endif |
| 7446 | char dnet_ntoa (); |
| 7447 | int |
| 7448 | main () |
| 7449 | { |
| 7450 | return dnet_ntoa (); |
| 7451 | ; |
| 7452 | return 0; |
| 7453 | } |
| 7454 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7455 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7456 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 7457 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7458 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7459 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7460 | rm -f core conftest.err conftest.$ac_objext \ |
| 7461 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7462 | LIBS=$ac_check_lib_save_LIBS |
| 7463 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7464 | { $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] | 7465 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7466 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7467 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 7468 | fi |
| 7469 | |
| 7470 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7471 | { $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] | 7472 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7473 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7474 | $as_echo_n "(cached) " >&6 |
| 7475 | else |
| 7476 | ac_check_lib_save_LIBS=$LIBS |
| 7477 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7479 | /* end confdefs.h. */ |
| 7480 | |
| 7481 | /* Override any GCC internal prototype to avoid an error. |
| 7482 | Use char because int might match the return type of a GCC |
| 7483 | builtin and then its argument prototype would still apply. */ |
| 7484 | #ifdef __cplusplus |
| 7485 | extern "C" |
| 7486 | #endif |
| 7487 | char dnet_ntoa (); |
| 7488 | int |
| 7489 | main () |
| 7490 | { |
| 7491 | return dnet_ntoa (); |
| 7492 | ; |
| 7493 | return 0; |
| 7494 | } |
| 7495 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7496 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7497 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 7498 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7499 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7500 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7501 | rm -f core conftest.err conftest.$ac_objext \ |
| 7502 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7503 | LIBS=$ac_check_lib_save_LIBS |
| 7504 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7505 | { $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] | 7506 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7507 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7508 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 7509 | fi |
| 7510 | |
| 7511 | fi |
| 7512 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7513 | rm -f core conftest.err conftest.$ac_objext \ |
| 7514 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7515 | LIBS="$ac_xsave_LIBS" |
| 7516 | |
| 7517 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 7518 | # to get the SysV transport functions. |
| 7519 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 7520 | # needs -lnsl. |
| 7521 | # The nsl library prevents programs from opening the X display |
| 7522 | # on Irix 5.2, according to T.E. Dickey. |
| 7523 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 7524 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7525 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7526 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7527 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7528 | fi |
| 7529 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7530 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7531 | { $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] | 7532 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7533 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7534 | $as_echo_n "(cached) " >&6 |
| 7535 | else |
| 7536 | ac_check_lib_save_LIBS=$LIBS |
| 7537 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7539 | /* end confdefs.h. */ |
| 7540 | |
| 7541 | /* Override any GCC internal prototype to avoid an error. |
| 7542 | Use char because int might match the return type of a GCC |
| 7543 | builtin and then its argument prototype would still apply. */ |
| 7544 | #ifdef __cplusplus |
| 7545 | extern "C" |
| 7546 | #endif |
| 7547 | char gethostbyname (); |
| 7548 | int |
| 7549 | main () |
| 7550 | { |
| 7551 | return gethostbyname (); |
| 7552 | ; |
| 7553 | return 0; |
| 7554 | } |
| 7555 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7556 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7557 | ac_cv_lib_nsl_gethostbyname=yes |
| 7558 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7559 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7560 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7561 | rm -f core conftest.err conftest.$ac_objext \ |
| 7562 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7563 | LIBS=$ac_check_lib_save_LIBS |
| 7564 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7565 | { $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] | 7566 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7567 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7568 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 7569 | fi |
| 7570 | |
| 7571 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7572 | { $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] | 7573 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7574 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7575 | $as_echo_n "(cached) " >&6 |
| 7576 | else |
| 7577 | ac_check_lib_save_LIBS=$LIBS |
| 7578 | LIBS="-lbsd $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7580 | /* end confdefs.h. */ |
| 7581 | |
| 7582 | /* Override any GCC internal prototype to avoid an error. |
| 7583 | Use char because int might match the return type of a GCC |
| 7584 | builtin and then its argument prototype would still apply. */ |
| 7585 | #ifdef __cplusplus |
| 7586 | extern "C" |
| 7587 | #endif |
| 7588 | char gethostbyname (); |
| 7589 | int |
| 7590 | main () |
| 7591 | { |
| 7592 | return gethostbyname (); |
| 7593 | ; |
| 7594 | return 0; |
| 7595 | } |
| 7596 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7597 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7598 | ac_cv_lib_bsd_gethostbyname=yes |
| 7599 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7600 | ac_cv_lib_bsd_gethostbyname=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7601 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7602 | rm -f core conftest.err conftest.$ac_objext \ |
| 7603 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7604 | LIBS=$ac_check_lib_save_LIBS |
| 7605 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7606 | { $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] | 7607 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7608 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7609 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 7610 | fi |
| 7611 | |
| 7612 | fi |
| 7613 | fi |
| 7614 | |
| 7615 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 7616 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 7617 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 7618 | # on later versions), says Simon Leinen: it contains gethostby* |
| 7619 | # variants that don't use the name server (or something). -lsocket |
| 7620 | # must be given before -lnsl if both are needed. We assume that |
| 7621 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7622 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7623 | if test "x$ac_cv_func_connect" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7624 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7625 | fi |
| 7626 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7627 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7628 | { $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] | 7629 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7630 | if ${ac_cv_lib_socket_connect+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7631 | $as_echo_n "(cached) " >&6 |
| 7632 | else |
| 7633 | ac_check_lib_save_LIBS=$LIBS |
| 7634 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7636 | /* end confdefs.h. */ |
| 7637 | |
| 7638 | /* Override any GCC internal prototype to avoid an error. |
| 7639 | Use char because int might match the return type of a GCC |
| 7640 | builtin and then its argument prototype would still apply. */ |
| 7641 | #ifdef __cplusplus |
| 7642 | extern "C" |
| 7643 | #endif |
| 7644 | char connect (); |
| 7645 | int |
| 7646 | main () |
| 7647 | { |
| 7648 | return connect (); |
| 7649 | ; |
| 7650 | return 0; |
| 7651 | } |
| 7652 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7653 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7654 | ac_cv_lib_socket_connect=yes |
| 7655 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7656 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7657 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7658 | rm -f core conftest.err conftest.$ac_objext \ |
| 7659 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7660 | LIBS=$ac_check_lib_save_LIBS |
| 7661 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7663 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7664 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7665 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 7666 | fi |
| 7667 | |
| 7668 | fi |
| 7669 | |
| 7670 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7671 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7672 | if test "x$ac_cv_func_remove" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7673 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7674 | fi |
| 7675 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7676 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7677 | { $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] | 7678 | $as_echo_n "checking for remove in -lposix... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7679 | if ${ac_cv_lib_posix_remove+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7680 | $as_echo_n "(cached) " >&6 |
| 7681 | else |
| 7682 | ac_check_lib_save_LIBS=$LIBS |
| 7683 | LIBS="-lposix $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7685 | /* end confdefs.h. */ |
| 7686 | |
| 7687 | /* Override any GCC internal prototype to avoid an error. |
| 7688 | Use char because int might match the return type of a GCC |
| 7689 | builtin and then its argument prototype would still apply. */ |
| 7690 | #ifdef __cplusplus |
| 7691 | extern "C" |
| 7692 | #endif |
| 7693 | char remove (); |
| 7694 | int |
| 7695 | main () |
| 7696 | { |
| 7697 | return remove (); |
| 7698 | ; |
| 7699 | return 0; |
| 7700 | } |
| 7701 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7702 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7703 | ac_cv_lib_posix_remove=yes |
| 7704 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7705 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7706 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7707 | rm -f core conftest.err conftest.$ac_objext \ |
| 7708 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7709 | LIBS=$ac_check_lib_save_LIBS |
| 7710 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7711 | { $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] | 7712 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7713 | if test "x$ac_cv_lib_posix_remove" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7714 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 7715 | fi |
| 7716 | |
| 7717 | fi |
| 7718 | |
| 7719 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7720 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7721 | if test "x$ac_cv_func_shmat" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7722 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7723 | fi |
| 7724 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7725 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7726 | { $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] | 7727 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7728 | if ${ac_cv_lib_ipc_shmat+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7729 | $as_echo_n "(cached) " >&6 |
| 7730 | else |
| 7731 | ac_check_lib_save_LIBS=$LIBS |
| 7732 | LIBS="-lipc $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7734 | /* end confdefs.h. */ |
| 7735 | |
| 7736 | /* Override any GCC internal prototype to avoid an error. |
| 7737 | Use char because int might match the return type of a GCC |
| 7738 | builtin and then its argument prototype would still apply. */ |
| 7739 | #ifdef __cplusplus |
| 7740 | extern "C" |
| 7741 | #endif |
| 7742 | char shmat (); |
| 7743 | int |
| 7744 | main () |
| 7745 | { |
| 7746 | return shmat (); |
| 7747 | ; |
| 7748 | return 0; |
| 7749 | } |
| 7750 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7751 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7752 | ac_cv_lib_ipc_shmat=yes |
| 7753 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7754 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7755 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7756 | rm -f core conftest.err conftest.$ac_objext \ |
| 7757 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7758 | LIBS=$ac_check_lib_save_LIBS |
| 7759 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7760 | { $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] | 7761 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7762 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7763 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 7764 | fi |
| 7765 | |
| 7766 | fi |
| 7767 | fi |
| 7768 | |
| 7769 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 7770 | ac_save_LDFLAGS=$LDFLAGS |
| 7771 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 7772 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 7773 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 7774 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 7775 | # These have to be linked with before -lX11, unlike the other |
| 7776 | # libraries we check for below, so use a different variable. |
| 7777 | # John Interrante, Karl Berry |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7778 | { $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] | 7779 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7780 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7781 | $as_echo_n "(cached) " >&6 |
| 7782 | else |
| 7783 | ac_check_lib_save_LIBS=$LIBS |
| 7784 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7786 | /* end confdefs.h. */ |
| 7787 | |
| 7788 | /* Override any GCC internal prototype to avoid an error. |
| 7789 | Use char because int might match the return type of a GCC |
| 7790 | builtin and then its argument prototype would still apply. */ |
| 7791 | #ifdef __cplusplus |
| 7792 | extern "C" |
| 7793 | #endif |
| 7794 | char IceConnectionNumber (); |
| 7795 | int |
| 7796 | main () |
| 7797 | { |
| 7798 | return IceConnectionNumber (); |
| 7799 | ; |
| 7800 | return 0; |
| 7801 | } |
| 7802 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7803 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7804 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 7805 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7806 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7807 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7808 | rm -f core conftest.err conftest.$ac_objext \ |
| 7809 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7810 | LIBS=$ac_check_lib_save_LIBS |
| 7811 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7812 | { $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] | 7813 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7814 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7815 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 7816 | fi |
| 7817 | |
| 7818 | LDFLAGS=$ac_save_LDFLAGS |
| 7819 | |
| 7820 | fi |
| 7821 | |
| 7822 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7823 | if test "$have_x" = "yes" |
| 7824 | then |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 7825 | XLIB="-lX11" |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7826 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 7827 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 7828 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7830 | $as_echo_n "checking for -lX11... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7831 | if ${ac_cv_lib_soname_X11+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7832 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7833 | else |
| 7834 | ac_check_soname_save_LIBS=$LIBS |
| 7835 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7837 | /* end confdefs.h. */ |
| 7838 | |
| 7839 | /* Override any GCC internal prototype to avoid an error. |
| 7840 | Use char because int might match the return type of a GCC |
| 7841 | builtin and then its argument prototype would still apply. */ |
| 7842 | #ifdef __cplusplus |
| 7843 | extern "C" |
| 7844 | #endif |
| 7845 | char XCreateWindow (); |
| 7846 | int |
| 7847 | main () |
| 7848 | { |
| 7849 | return XCreateWindow (); |
| 7850 | ; |
| 7851 | return 0; |
| 7852 | } |
| 7853 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7854 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7855 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 7856 | 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] | 7857 | 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'` ;; |
| 7858 | *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 7859 | esac |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7860 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7861 | rm -f core conftest.err conftest.$ac_objext \ |
| 7862 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7863 | LIBS=$ac_check_soname_save_LIBS |
| 7864 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7865 | if test "x$ac_cv_lib_soname_X11" = "x"; then : |
| 7866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7867 | $as_echo "not found" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7868 | |
| 7869 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7870 | { $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] | 7871 | $as_echo "$ac_cv_lib_soname_X11" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7872 | |
| 7873 | cat >>confdefs.h <<_ACEOF |
| 7874 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 7875 | _ACEOF |
| 7876 | |
| 7877 | |
| 7878 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7880 | $as_echo_n "checking for -lXext... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7881 | if ${ac_cv_lib_soname_Xext+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7882 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7883 | else |
| 7884 | ac_check_soname_save_LIBS=$LIBS |
| 7885 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7887 | /* end confdefs.h. */ |
| 7888 | |
| 7889 | /* Override any GCC internal prototype to avoid an error. |
| 7890 | Use char because int might match the return type of a GCC |
| 7891 | builtin and then its argument prototype would still apply. */ |
| 7892 | #ifdef __cplusplus |
| 7893 | extern "C" |
| 7894 | #endif |
| 7895 | char XextCreateExtension (); |
| 7896 | int |
| 7897 | main () |
| 7898 | { |
| 7899 | return XextCreateExtension (); |
| 7900 | ; |
| 7901 | return 0; |
| 7902 | } |
| 7903 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7904 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7905 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 7906 | 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] | 7907 | 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'` ;; |
| 7908 | *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 7909 | esac |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7910 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7911 | rm -f core conftest.err conftest.$ac_objext \ |
| 7912 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7913 | LIBS=$ac_check_soname_save_LIBS |
| 7914 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7915 | if test "x$ac_cv_lib_soname_Xext" = "x"; then : |
| 7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7917 | $as_echo "not found" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7918 | |
| 7919 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7920 | { $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] | 7921 | $as_echo "$ac_cv_lib_soname_Xext" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7922 | |
| 7923 | cat >>confdefs.h <<_ACEOF |
| 7924 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 7925 | _ACEOF |
| 7926 | |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 7927 | XLIB="-lXext $XLIB" |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7928 | fi |
| 7929 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7930 | for ac_header in X11/Xlib.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7931 | X11/XKBlib.h \ |
| 7932 | X11/Xutil.h \ |
Andrew Riedi | 23e2cb1 | 2007-03-22 12:06:19 -0700 | [diff] [blame] | 7933 | X11/Xcursor/Xcursor.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7934 | X11/extensions/shape.h \ |
| 7935 | X11/extensions/XInput.h \ |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 7936 | X11/extensions/XInput2.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7937 | X11/extensions/XShm.h \ |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 7938 | X11/extensions/Xcomposite.h \ |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 7939 | X11/extensions/Xinerama.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7940 | X11/extensions/Xrandr.h \ |
| 7941 | X11/extensions/Xrender.h \ |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 7942 | X11/extensions/xf86vmode.h \ |
| 7943 | X11/extensions/xf86vmproto.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7944 | do : |
| 7945 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7946 | 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] | 7947 | # include <X11/Xlib.h> |
| 7948 | #endif |
| 7949 | #ifdef HAVE_X11_XUTIL_H |
| 7950 | # include <X11/Xutil.h> |
| 7951 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7952 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7953 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7954 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7955 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7956 | _ACEOF |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7957 | |
| 7958 | fi |
| 7959 | |
| 7960 | done |
| 7961 | |
| 7962 | |
| 7963 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" |
| 7964 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7965 | { $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] | 7966 | $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7967 | if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7968 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7969 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7970 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 7971 | LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7973 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7974 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7975 | /* Override any GCC internal prototype to avoid an error. |
| 7976 | Use char because int might match the return type of a GCC |
| 7977 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7978 | #ifdef __cplusplus |
| 7979 | extern "C" |
| 7980 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7981 | char XkbQueryExtension (); |
| 7982 | int |
| 7983 | main () |
| 7984 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7985 | return XkbQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7986 | ; |
| 7987 | return 0; |
| 7988 | } |
| 7989 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7990 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7991 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7992 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7993 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7994 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7995 | rm -f core conftest.err conftest.$ac_objext \ |
| 7996 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7997 | LIBS=$ac_check_lib_save_LIBS |
| 7998 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7999 | { $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] | 8000 | $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8001 | if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then : |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8002 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8003 | $as_echo "#define HAVE_XKB 1" >>confdefs.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8004 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8005 | fi |
| 8006 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8007 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8008 | |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8009 | if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes" |
| 8010 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8012 | $as_echo_n "checking for -lXcursor... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8013 | if ${ac_cv_lib_soname_Xcursor+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8014 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8015 | else |
| 8016 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8017 | LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8019 | /* end confdefs.h. */ |
| 8020 | |
| 8021 | /* Override any GCC internal prototype to avoid an error. |
| 8022 | Use char because int might match the return type of a GCC |
| 8023 | builtin and then its argument prototype would still apply. */ |
| 8024 | #ifdef __cplusplus |
| 8025 | extern "C" |
| 8026 | #endif |
| 8027 | char XcursorImageLoadCursor (); |
| 8028 | int |
| 8029 | main () |
| 8030 | { |
| 8031 | return XcursorImageLoadCursor (); |
| 8032 | ; |
| 8033 | return 0; |
| 8034 | } |
| 8035 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8036 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8037 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8038 | 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] | 8039 | 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'` ;; |
| 8040 | *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8041 | esac |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8042 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8043 | rm -f core conftest.err conftest.$ac_objext \ |
| 8044 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8045 | LIBS=$ac_check_soname_save_LIBS |
| 8046 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8047 | if test "x$ac_cv_lib_soname_Xcursor" = "x"; then : |
| 8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8049 | $as_echo "not found" >&6; } |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8050 | |
| 8051 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8052 | { $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] | 8053 | $as_echo "$ac_cv_lib_soname_Xcursor" >&6; } |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8054 | |
| 8055 | cat >>confdefs.h <<_ACEOF |
| 8056 | #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor" |
| 8057 | _ACEOF |
| 8058 | |
| 8059 | |
| 8060 | fi |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8061 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8062 | if test "x$ac_cv_lib_soname_Xcursor" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8063 | case "x$with_xcursor" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8064 | 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] | 8065 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8066 | *) 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] | 8067 | This is an error since --with-xcursor was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8068 | esac |
| 8069 | fi |
| 8070 | |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8071 | if test "$ac_cv_header_X11_extensions_XInput_h" = "yes" |
| 8072 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8074 | $as_echo_n "checking for -lXi... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8075 | if ${ac_cv_lib_soname_Xi+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8076 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8077 | else |
| 8078 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8079 | LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8081 | /* end confdefs.h. */ |
| 8082 | |
| 8083 | /* Override any GCC internal prototype to avoid an error. |
| 8084 | Use char because int might match the return type of a GCC |
| 8085 | builtin and then its argument prototype would still apply. */ |
| 8086 | #ifdef __cplusplus |
| 8087 | extern "C" |
| 8088 | #endif |
| 8089 | char XOpenDevice (); |
| 8090 | int |
| 8091 | main () |
| 8092 | { |
| 8093 | return XOpenDevice (); |
| 8094 | ; |
| 8095 | return 0; |
| 8096 | } |
| 8097 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8098 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8099 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8100 | 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] | 8101 | 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'` ;; |
| 8102 | *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8103 | esac |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8104 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8105 | rm -f core conftest.err conftest.$ac_objext \ |
| 8106 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8107 | LIBS=$ac_check_soname_save_LIBS |
| 8108 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8109 | if test "x$ac_cv_lib_soname_Xi" = "x"; then : |
| 8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8111 | $as_echo "not found" >&6; } |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8112 | |
| 8113 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8114 | { $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] | 8115 | $as_echo "$ac_cv_lib_soname_Xi" >&6; } |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8116 | |
| 8117 | cat >>confdefs.h <<_ACEOF |
| 8118 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" |
| 8119 | _ACEOF |
| 8120 | |
| 8121 | |
| 8122 | fi |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8123 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8124 | if test "x$ac_cv_lib_soname_Xi" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8125 | case "x$with_xinput" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8126 | 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] | 8127 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8128 | *) 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] | 8129 | This is an error since --with-xinput was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8130 | esac |
| 8131 | fi |
| 8132 | |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 8133 | if test "x$ac_cv_lib_soname_Xi" != x |
| 8134 | then |
| 8135 | if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then : |
| 8136 | case "x$with_xinput2" in |
| 8137 | x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;; |
| 8138 | xno) ;; |
| 8139 | *) 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] | 8140 | This is an error since --with-xinput2 was requested." "$LINENO" 5 ;; |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 8141 | esac |
| 8142 | fi |
| 8143 | fi |
| 8144 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8145 | if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 8146 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8148 | $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8149 | if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8150 | $as_echo_n "(cached) " >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8151 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8152 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8153 | LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8155 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8156 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8157 | /* Override any GCC internal prototype to avoid an error. |
| 8158 | Use char because int might match the return type of a GCC |
| 8159 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8160 | #ifdef __cplusplus |
| 8161 | extern "C" |
| 8162 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8163 | char XShmQueryExtension (); |
| 8164 | int |
| 8165 | main () |
| 8166 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8167 | return XShmQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8168 | ; |
| 8169 | return 0; |
| 8170 | } |
| 8171 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8172 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8173 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8174 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8175 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8176 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8177 | rm -f core conftest.err conftest.$ac_objext \ |
| 8178 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8179 | LIBS=$ac_check_lib_save_LIBS |
| 8180 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8182 | $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8183 | if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then : |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8184 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8185 | $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8186 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8187 | fi |
| 8188 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8189 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8190 | if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8191 | case "x$with_xshm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8192 | x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8193 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8194 | *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8195 | This is an error since --with-xshm was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8196 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8197 | fi |
| 8198 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8199 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
| 8200 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8201 | { $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] | 8202 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8203 | if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8204 | $as_echo_n "(cached) " >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8205 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8206 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8207 | LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8209 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8210 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8211 | /* Override any GCC internal prototype to avoid an error. |
| 8212 | Use char because int might match the return type of a GCC |
| 8213 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8214 | #ifdef __cplusplus |
| 8215 | extern "C" |
| 8216 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8217 | char XShapeQueryExtension (); |
| 8218 | int |
| 8219 | main () |
| 8220 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8221 | return XShapeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8222 | ; |
| 8223 | return 0; |
| 8224 | } |
| 8225 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8226 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8227 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8228 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8229 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8230 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8231 | rm -f core conftest.err conftest.$ac_objext \ |
| 8232 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8233 | LIBS=$ac_check_lib_save_LIBS |
| 8234 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8235 | { $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] | 8236 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8237 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8238 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8239 | $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8240 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8241 | fi |
| 8242 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8243 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8244 | if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8245 | case "x$with_xshape" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8246 | 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] | 8247 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8248 | *) 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] | 8249 | This is an error since --with-xshape was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8250 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8251 | fi |
| 8252 | |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 8253 | 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] | 8254 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8256 | $as_echo_n "checking for -lXxf86vm... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8257 | if ${ac_cv_lib_soname_Xxf86vm+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8258 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8259 | else |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8260 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8261 | LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8263 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8264 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8265 | /* Override any GCC internal prototype to avoid an error. |
| 8266 | Use char because int might match the return type of a GCC |
| 8267 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8268 | #ifdef __cplusplus |
| 8269 | extern "C" |
| 8270 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8271 | char XF86VidModeQueryExtension (); |
| 8272 | int |
| 8273 | main () |
| 8274 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8275 | return XF86VidModeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8276 | ; |
| 8277 | return 0; |
| 8278 | } |
| 8279 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8280 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8281 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8282 | 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] | 8283 | 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'` ;; |
| 8284 | *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8285 | esac |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8286 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8287 | rm -f core conftest.err conftest.$ac_objext \ |
| 8288 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8289 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8290 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8291 | if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then : |
| 8292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8293 | $as_echo "not found" >&6; } |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8294 | |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8295 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8296 | { $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] | 8297 | $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; } |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8298 | |
| 8299 | cat >>confdefs.h <<_ACEOF |
| 8300 | #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8301 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8302 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8303 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8304 | fi |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8305 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8306 | if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then : |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8307 | case "x$with_xxf86vm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8308 | 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] | 8309 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8310 | *) 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] | 8311 | This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8312 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8313 | fi |
| 8314 | |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8315 | 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] | 8316 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8318 | $as_echo_n "checking for -lXrender... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8319 | if ${ac_cv_lib_soname_Xrender+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8320 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8321 | else |
| 8322 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8323 | LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8325 | /* end confdefs.h. */ |
| 8326 | |
| 8327 | /* Override any GCC internal prototype to avoid an error. |
| 8328 | Use char because int might match the return type of a GCC |
| 8329 | builtin and then its argument prototype would still apply. */ |
| 8330 | #ifdef __cplusplus |
| 8331 | extern "C" |
| 8332 | #endif |
| 8333 | char XRenderQueryExtension (); |
| 8334 | int |
| 8335 | main () |
| 8336 | { |
| 8337 | return XRenderQueryExtension (); |
| 8338 | ; |
| 8339 | return 0; |
| 8340 | } |
| 8341 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8342 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8343 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8344 | 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] | 8345 | 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'` ;; |
| 8346 | *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8347 | esac |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8348 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8349 | rm -f core conftest.err conftest.$ac_objext \ |
| 8350 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8351 | LIBS=$ac_check_soname_save_LIBS |
| 8352 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8353 | if test "x$ac_cv_lib_soname_Xrender" = "x"; then : |
| 8354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8355 | $as_echo "not found" >&6; } |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8356 | |
| 8357 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8358 | { $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] | 8359 | $as_echo "$ac_cv_lib_soname_Xrender" >&6; } |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8360 | |
| 8361 | cat >>confdefs.h <<_ACEOF |
| 8362 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 8363 | _ACEOF |
| 8364 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8365 | { $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] | 8366 | $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8367 | if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8368 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8369 | else |
| 8370 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8371 | LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8373 | /* end confdefs.h. */ |
| 8374 | |
| 8375 | /* Override any GCC internal prototype to avoid an error. |
| 8376 | Use char because int might match the return type of a GCC |
| 8377 | builtin and then its argument prototype would still apply. */ |
| 8378 | #ifdef __cplusplus |
| 8379 | extern "C" |
| 8380 | #endif |
| 8381 | char XRenderSetPictureTransform (); |
| 8382 | int |
| 8383 | main () |
| 8384 | { |
| 8385 | return XRenderSetPictureTransform (); |
| 8386 | ; |
| 8387 | return 0; |
| 8388 | } |
| 8389 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8390 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8391 | ac_cv_lib_Xrender_XRenderSetPictureTransform=yes |
| 8392 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8393 | ac_cv_lib_Xrender_XRenderSetPictureTransform=no |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8394 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8395 | rm -f core conftest.err conftest.$ac_objext \ |
| 8396 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8397 | LIBS=$ac_check_lib_save_LIBS |
| 8398 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8399 | { $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] | 8400 | $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8401 | if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8402 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8403 | $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8404 | |
| 8405 | fi |
| 8406 | |
| 8407 | fi |
| 8408 | |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8409 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8410 | if test "x$ac_cv_lib_soname_Xrender" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8411 | case "x$with_xrender" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8412 | 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] | 8413 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8414 | *) 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] | 8415 | This is an error since --with-xrender was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8416 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8417 | fi |
| 8418 | |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8419 | 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] | 8420 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8422 | /* end confdefs.h. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8423 | #include <X11/Xlib.h> |
| 8424 | #include <X11/extensions/Xrandr.h> |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8425 | int |
| 8426 | main () |
| 8427 | { |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8428 | static typeof(XRRSetScreenConfigAndRate) * func; |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8429 | ; |
| 8430 | return 0; |
| 8431 | } |
| 8432 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8433 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8435 | $as_echo_n "checking for -lXrandr... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8436 | if ${ac_cv_lib_soname_Xrandr+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8437 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8438 | else |
| 8439 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8440 | LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8442 | /* end confdefs.h. */ |
| 8443 | |
| 8444 | /* Override any GCC internal prototype to avoid an error. |
| 8445 | Use char because int might match the return type of a GCC |
| 8446 | builtin and then its argument prototype would still apply. */ |
| 8447 | #ifdef __cplusplus |
| 8448 | extern "C" |
| 8449 | #endif |
| 8450 | char XRRQueryExtension (); |
| 8451 | int |
| 8452 | main () |
| 8453 | { |
| 8454 | return XRRQueryExtension (); |
| 8455 | ; |
| 8456 | return 0; |
| 8457 | } |
| 8458 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8459 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8460 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8461 | 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] | 8462 | 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'` ;; |
| 8463 | *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8464 | esac |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8465 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8466 | rm -f core conftest.err conftest.$ac_objext \ |
| 8467 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8468 | LIBS=$ac_check_soname_save_LIBS |
| 8469 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8470 | if test "x$ac_cv_lib_soname_Xrandr" = "x"; then : |
| 8471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8472 | $as_echo "not found" >&6; } |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8473 | |
| 8474 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8475 | { $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] | 8476 | $as_echo "$ac_cv_lib_soname_Xrandr" >&6; } |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8477 | |
| 8478 | cat >>confdefs.h <<_ACEOF |
| 8479 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" |
| 8480 | _ACEOF |
| 8481 | |
| 8482 | |
| 8483 | fi |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8484 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8486 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8487 | if test "x$ac_cv_lib_soname_Xrandr" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8488 | case "x$with_xrandr" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8489 | 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] | 8490 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8491 | *) 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] | 8492 | This is an error since --with-xrandr was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8493 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8494 | fi |
| 8495 | |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8496 | if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes" |
| 8497 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8499 | /* end confdefs.h. */ |
| 8500 | #include <X11/Xlib.h> |
| 8501 | #include <X11/extensions/Xinerama.h> |
| 8502 | int |
| 8503 | main () |
| 8504 | { |
| 8505 | static typeof(XineramaQueryScreens) * func; |
| 8506 | ; |
| 8507 | return 0; |
| 8508 | } |
| 8509 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8510 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8512 | $as_echo_n "checking for -lXinerama... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8513 | if ${ac_cv_lib_soname_Xinerama+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8514 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8515 | else |
| 8516 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8517 | LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8519 | /* end confdefs.h. */ |
| 8520 | |
| 8521 | /* Override any GCC internal prototype to avoid an error. |
| 8522 | Use char because int might match the return type of a GCC |
| 8523 | builtin and then its argument prototype would still apply. */ |
| 8524 | #ifdef __cplusplus |
| 8525 | extern "C" |
| 8526 | #endif |
| 8527 | char XineramaQueryScreens (); |
| 8528 | int |
| 8529 | main () |
| 8530 | { |
| 8531 | return XineramaQueryScreens (); |
| 8532 | ; |
| 8533 | return 0; |
| 8534 | } |
| 8535 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8536 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8537 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8538 | 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] | 8539 | 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'` ;; |
| 8540 | *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8541 | esac |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8542 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8543 | rm -f core conftest.err conftest.$ac_objext \ |
| 8544 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8545 | LIBS=$ac_check_soname_save_LIBS |
| 8546 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8547 | if test "x$ac_cv_lib_soname_Xinerama" = "x"; then : |
| 8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8549 | $as_echo "not found" >&6; } |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8550 | |
| 8551 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8552 | { $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] | 8553 | $as_echo "$ac_cv_lib_soname_Xinerama" >&6; } |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8554 | |
| 8555 | cat >>confdefs.h <<_ACEOF |
| 8556 | #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama" |
| 8557 | _ACEOF |
| 8558 | |
| 8559 | |
| 8560 | fi |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8561 | fi |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8563 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8564 | if test "x$ac_cv_lib_soname_Xinerama" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8565 | case "x$with_xinerama" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8566 | 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] | 8567 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8568 | *) 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] | 8569 | This is an error since --with-xinerama was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8570 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8571 | fi |
| 8572 | |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8573 | if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes" |
| 8574 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8576 | $as_echo_n "checking for -lXcomposite... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8577 | if ${ac_cv_lib_soname_Xcomposite+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8578 | $as_echo_n "(cached) " >&6 |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8579 | else |
| 8580 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8581 | LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8583 | /* end confdefs.h. */ |
| 8584 | |
| 8585 | /* Override any GCC internal prototype to avoid an error. |
| 8586 | Use char because int might match the return type of a GCC |
| 8587 | builtin and then its argument prototype would still apply. */ |
| 8588 | #ifdef __cplusplus |
| 8589 | extern "C" |
| 8590 | #endif |
| 8591 | char XCompositeRedirectWindow (); |
| 8592 | int |
| 8593 | main () |
| 8594 | { |
| 8595 | return XCompositeRedirectWindow (); |
| 8596 | ; |
| 8597 | return 0; |
| 8598 | } |
| 8599 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8600 | if ac_fn_c_try_link "$LINENO"; then : |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8601 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8602 | 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] | 8603 | 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'` ;; |
| 8604 | *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8605 | esac |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8606 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8607 | rm -f core conftest.err conftest.$ac_objext \ |
| 8608 | conftest$ac_exeext conftest.$ac_ext |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8609 | LIBS=$ac_check_soname_save_LIBS |
| 8610 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8611 | if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then : |
| 8612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8613 | $as_echo "not found" >&6; } |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8614 | |
| 8615 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8616 | { $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] | 8617 | $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; } |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8618 | |
| 8619 | cat >>confdefs.h <<_ACEOF |
| 8620 | #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite" |
| 8621 | _ACEOF |
| 8622 | |
| 8623 | |
| 8624 | fi |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8625 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8626 | if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8627 | case "x$with_xcomposite" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8628 | 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] | 8629 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8630 | *) 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] | 8631 | This is an error since --with-xcomposite was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8632 | esac |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8633 | fi |
| 8634 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8635 | 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] | 8636 | #include <X11/Xlib.h> |
| 8637 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8638 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8639 | if test "x$ac_cv_member_XICCallback_callback" = xyes; then : |
Kusanagi Kouichi | 75e4022 | 2008-04-16 00:34:54 +0900 | [diff] [blame] | 8640 | |
| 8641 | cat >>confdefs.h <<_ACEOF |
| 8642 | #define HAVE_XICCALLBACK_CALLBACK 1 |
| 8643 | _ACEOF |
| 8644 | |
| 8645 | |
| 8646 | fi |
Alexandre Julliard | a8575a8 | 2011-04-12 21:16:15 +0200 | [diff] [blame] | 8647 | ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H |
| 8648 | #include <X11/Xlib.h> |
| 8649 | #endif |
| 8650 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8651 | if test "x$ac_cv_member_XEvent_xcookie" = xyes; then : |
Alexandre Julliard | a8575a8 | 2011-04-12 21:16:15 +0200 | [diff] [blame] | 8652 | |
| 8653 | cat >>confdefs.h <<_ACEOF |
| 8654 | #define HAVE_XEVENT_XCOOKIE 1 |
| 8655 | _ACEOF |
| 8656 | |
| 8657 | |
| 8658 | fi |
Kusanagi Kouichi | 75e4022 | 2008-04-16 00:34:54 +0900 | [diff] [blame] | 8659 | |
| 8660 | |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8661 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8662 | opengl_msg="" |
| 8663 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8664 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8665 | for ac_header in GL/gl.h GL/glx.h GL/glu.h |
| 8666 | do : |
| 8667 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8668 | 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] | 8669 | # include <GL/glx.h> |
| 8670 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8671 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8672 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8673 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8674 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8675 | _ACEOF |
| 8676 | |
| 8677 | fi |
| 8678 | |
| 8679 | done |
| 8680 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8681 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
| 8682 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8683 | { $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] | 8684 | $as_echo_n "checking for up-to-date OpenGL version... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8685 | if ${wine_cv_opengl_header_version_OK+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8686 | $as_echo_n "(cached) " >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8687 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8689 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8690 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8691 | int |
| 8692 | main () |
| 8693 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8694 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8695 | ; |
| 8696 | return 0; |
| 8697 | } |
| 8698 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8699 | if ac_fn_c_try_compile "$LINENO"; then : |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 8700 | wine_cv_opengl_header_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8701 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8702 | wine_cv_opengl_header_version_OK="no" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8703 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8705 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8706 | { $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] | 8707 | $as_echo "$wine_cv_opengl_header_version_OK" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8708 | |
Alexandre Julliard | cc6a08c | 2006-08-24 14:34:22 +0200 | [diff] [blame] | 8709 | if test "$wine_cv_opengl_header_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8710 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8712 | $as_echo_n "checking for -lGL... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8713 | if ${ac_cv_lib_soname_GL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8714 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8715 | else |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8716 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8717 | LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8719 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8720 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8721 | /* Override any GCC internal prototype to avoid an error. |
| 8722 | Use char because int might match the return type of a GCC |
| 8723 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8724 | #ifdef __cplusplus |
| 8725 | extern "C" |
| 8726 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8727 | char glXCreateContext (); |
| 8728 | int |
| 8729 | main () |
| 8730 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8731 | return glXCreateContext (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8732 | ; |
| 8733 | return 0; |
| 8734 | } |
| 8735 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8736 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8737 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8738 | 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] | 8739 | 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'` ;; |
| 8740 | *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8741 | esac |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8742 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8743 | rm -f core conftest.err conftest.$ac_objext \ |
| 8744 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8745 | LIBS=$ac_check_soname_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8746 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8747 | if test "x$ac_cv_lib_soname_GL" = "x"; then : |
| 8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8749 | $as_echo "not found" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8751 | $as_echo_n "checking for -lGL... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8752 | if ${ac_cv_lib_soname_GL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8753 | $as_echo_n "(cached) " >&6 |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8754 | else |
| 8755 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8756 | 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] | 8757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8758 | /* end confdefs.h. */ |
| 8759 | |
| 8760 | /* Override any GCC internal prototype to avoid an error. |
| 8761 | Use char because int might match the return type of a GCC |
| 8762 | builtin and then its argument prototype would still apply. */ |
| 8763 | #ifdef __cplusplus |
| 8764 | extern "C" |
| 8765 | #endif |
| 8766 | char glXCreateContext (); |
| 8767 | int |
| 8768 | main () |
| 8769 | { |
| 8770 | return glXCreateContext (); |
| 8771 | ; |
| 8772 | return 0; |
| 8773 | } |
| 8774 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8775 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8776 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8777 | 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] | 8778 | 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'` ;; |
| 8779 | *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8780 | esac |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8781 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8782 | rm -f core conftest.err conftest.$ac_objext \ |
| 8783 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8784 | LIBS=$ac_check_soname_save_LIBS |
| 8785 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8786 | if test "x$ac_cv_lib_soname_GL" = "x"; then : |
| 8787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8788 | $as_echo "not found" >&6; } |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8789 | if test -f /usr/X11R6/lib/libGL.a |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8790 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8791 | opengl_msg="/usr/X11R6/lib/libGL.a is present on your system. |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8792 | 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] | 8793 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8794 | opengl_msg="No OpenGL library found on this system." |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8795 | fi |
| 8796 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8797 | { $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] | 8798 | $as_echo "$ac_cv_lib_soname_GL" >&6; } |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8799 | |
| 8800 | cat >>confdefs.h <<_ACEOF |
| 8801 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 8802 | _ACEOF |
| 8803 | |
| 8804 | 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] | 8805 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8806 | $as_echo "#define HAVE_OPENGL 1" >>confdefs.h |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8807 | |
| 8808 | fi |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8809 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8810 | { $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] | 8811 | $as_echo "$ac_cv_lib_soname_GL" >&6; } |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8812 | |
| 8813 | cat >>confdefs.h <<_ACEOF |
| 8814 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 8815 | _ACEOF |
| 8816 | |
| 8817 | OPENGL_LIBS="-lGL" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8818 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8819 | $as_echo "#define HAVE_OPENGL 1" >>confdefs.h |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8820 | |
Alexandre Julliard | c84c478 | 2006-09-22 09:36:12 +0200 | [diff] [blame] | 8821 | fi |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8822 | if test "$ac_cv_header_GL_glu_h" = "yes" |
| 8823 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8825 | $as_echo_n "checking for -lGLU... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8826 | if ${ac_cv_lib_soname_GLU+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8827 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8828 | else |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8829 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8830 | 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] | 8831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8832 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8833 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8834 | /* Override any GCC internal prototype to avoid an error. |
| 8835 | Use char because int might match the return type of a GCC |
| 8836 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8837 | #ifdef __cplusplus |
| 8838 | extern "C" |
| 8839 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8840 | char gluLookAt (); |
| 8841 | int |
| 8842 | main () |
| 8843 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8844 | return gluLookAt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8845 | ; |
| 8846 | return 0; |
| 8847 | } |
| 8848 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8849 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8850 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8851 | 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] | 8852 | 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'` ;; |
| 8853 | *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8854 | esac |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8855 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8856 | rm -f core conftest.err conftest.$ac_objext \ |
| 8857 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8858 | LIBS=$ac_check_soname_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8859 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8860 | if test "x$ac_cv_lib_soname_GLU" = "x"; then : |
| 8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8862 | $as_echo "not found" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8863 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8864 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8865 | { $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] | 8866 | $as_echo "$ac_cv_lib_soname_GLU" >&6; } |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8867 | |
| 8868 | cat >>confdefs.h <<_ACEOF |
| 8869 | #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU" |
| 8870 | _ACEOF |
| 8871 | |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 8872 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8873 | fi |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8874 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8875 | if test "x$ac_cv_lib_soname_GLU" = "x"; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8876 | case "x$with_glu" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8877 | 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] | 8878 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8879 | *) 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] | 8880 | This is an error since --with-glu was requested." "$LINENO" 5 ;; |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8881 | esac |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8882 | fi |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8883 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8884 | opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries." |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8885 | fi |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 8886 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8887 | opengl_msg="OpenGL development headers not found." |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8888 | fi |
Alexandre Julliard | 8e9504d | 2008-09-24 13:11:11 +0200 | [diff] [blame] | 8889 | test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no} |
| 8890 | test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no} |
| 8891 | else |
| 8892 | enable_opengl32=${enable_opengl32:-no} |
| 8893 | enable_glu32=${enable_glu32:-no} |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8894 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8895 | if test -n "$opengl_msg"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8896 | case "x$with_opengl" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8897 | x) as_fn_append wine_warnings "|$opengl_msg |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8898 | OpenGL and Direct3D won't be supported." ;; |
| 8899 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8900 | *) as_fn_error $? "$opengl_msg |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8901 | OpenGL and Direct3D won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8902 | This is an error since --with-opengl was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8903 | esac |
| 8904 | fi |
| 8905 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 8906 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 8907 | else |
| 8908 | XLIB="" |
| 8909 | X_CFLAGS="" |
| 8910 | X_LIBS="" |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 8911 | enable_winex11_drv=${enable_winex11_drv:-no} |
| 8912 | enable_opengl32=${enable_opengl32:-no} |
| 8913 | enable_glu32=${enable_glu32:-no} |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 8914 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8915 | if test "x$XLIB" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8916 | case "x$with_x" in |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8917 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8918 | *) 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] | 8919 | without X support, which probably isn't what you want. You will need |
| 8920 | 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] | 8921 | Use the --without-x option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8922 | esac |
| 8923 | fi |
| 8924 | |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 8925 | if test "$ac_cv_header_CL_cl_h" = "yes" |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 8926 | then |
| 8927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5 |
| 8928 | $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8929 | if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then : |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 8930 | $as_echo_n "(cached) " >&6 |
| 8931 | else |
| 8932 | ac_check_lib_save_LIBS=$LIBS |
| 8933 | LIBS="-lOpenCL $LIBS" |
| 8934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8935 | /* end confdefs.h. */ |
| 8936 | |
| 8937 | /* Override any GCC internal prototype to avoid an error. |
| 8938 | Use char because int might match the return type of a GCC |
| 8939 | builtin and then its argument prototype would still apply. */ |
| 8940 | #ifdef __cplusplus |
| 8941 | extern "C" |
| 8942 | #endif |
| 8943 | char clGetPlatformInfo (); |
| 8944 | int |
| 8945 | main () |
| 8946 | { |
| 8947 | return clGetPlatformInfo (); |
| 8948 | ; |
| 8949 | return 0; |
| 8950 | } |
| 8951 | _ACEOF |
| 8952 | if ac_fn_c_try_link "$LINENO"; then : |
| 8953 | ac_cv_lib_OpenCL_clGetPlatformInfo=yes |
| 8954 | else |
| 8955 | ac_cv_lib_OpenCL_clGetPlatformInfo=no |
| 8956 | fi |
| 8957 | rm -f core conftest.err conftest.$ac_objext \ |
| 8958 | conftest$ac_exeext conftest.$ac_ext |
| 8959 | LIBS=$ac_check_lib_save_LIBS |
| 8960 | fi |
| 8961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5 |
| 8962 | $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8963 | if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then : |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 8964 | LIBOPENCL="-lOpenCL" |
| 8965 | |
| 8966 | fi |
| 8967 | |
| 8968 | fi |
| 8969 | if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then : |
| 8970 | case "x$with_opencl" in |
| 8971 | x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;; |
| 8972 | xno) ;; |
| 8973 | *) 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] | 8974 | This is an error since --with-opencl was requested." "$LINENO" 5 ;; |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 8975 | esac |
| 8976 | fi |
| 8977 | test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no} |
| 8978 | |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 8979 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 8980 | XML2LIBS="" |
| 8981 | |
| 8982 | XML2INCL="" |
| 8983 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 8984 | XSLTINCL="" |
| 8985 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8986 | if test "x$with_xml" != "xno" |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 8987 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8988 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 8989 | if test "$PKG_CONFIG" != "false" |
| 8990 | then |
| 8991 | ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`" |
| 8992 | ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`" |
| 8993 | else |
| 8994 | ac_xml_libs="`xml2-config --libs 2>/dev/null`" |
| 8995 | ac_xml_cflags="`xml2-config --cflags 2>/dev/null`" |
| 8996 | fi |
| 8997 | CPPFLAGS="$CPPFLAGS $ac_xml_cflags" |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 8998 | 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] | 8999 | do : |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9000 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9001 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9002 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9003 | cat >>confdefs.h <<_ACEOF |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9004 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9005 | _ACEOF |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9006 | |
| 9007 | fi |
| 9008 | |
| 9009 | done |
| 9010 | |
| 9011 | 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" |
| 9012 | then |
| 9013 | { $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] | 9014 | $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9015 | if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9016 | $as_echo_n "(cached) " >&6 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9017 | else |
| 9018 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9019 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9021 | /* end confdefs.h. */ |
| 9022 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9023 | /* Override any GCC internal prototype to avoid an error. |
| 9024 | Use char because int might match the return type of a GCC |
| 9025 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9026 | #ifdef __cplusplus |
| 9027 | extern "C" |
| 9028 | #endif |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9029 | char xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9030 | int |
| 9031 | main () |
| 9032 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9033 | return xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9034 | ; |
| 9035 | return 0; |
| 9036 | } |
| 9037 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9038 | if ac_fn_c_try_link "$LINENO"; then : |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9039 | ac_cv_lib_xml2_xmlParseMemory=yes |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9040 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9041 | ac_cv_lib_xml2_xmlParseMemory=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9042 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9043 | rm -f core conftest.err conftest.$ac_objext \ |
| 9044 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9045 | LIBS=$ac_check_lib_save_LIBS |
| 9046 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9047 | { $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] | 9048 | $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9049 | if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then : |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9050 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9051 | $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9052 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9053 | XML2LIBS="$ac_xml_libs" |
| 9054 | XML2INCL="$ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9055 | fi |
| 9056 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9057 | { $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] | 9058 | $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9059 | if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9060 | $as_echo_n "(cached) " >&6 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9061 | else |
| 9062 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9063 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9065 | /* end confdefs.h. */ |
| 9066 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9067 | /* Override any GCC internal prototype to avoid an error. |
| 9068 | Use char because int might match the return type of a GCC |
| 9069 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9070 | #ifdef __cplusplus |
| 9071 | extern "C" |
| 9072 | #endif |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9073 | char xmlReadMemory (); |
| 9074 | int |
| 9075 | main () |
| 9076 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9077 | return xmlReadMemory (); |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9078 | ; |
| 9079 | return 0; |
| 9080 | } |
| 9081 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9082 | if ac_fn_c_try_link "$LINENO"; then : |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9083 | ac_cv_lib_xml2_xmlReadMemory=yes |
| 9084 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9085 | ac_cv_lib_xml2_xmlReadMemory=no |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9086 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9087 | rm -f core conftest.err conftest.$ac_objext \ |
| 9088 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9089 | LIBS=$ac_check_lib_save_LIBS |
| 9090 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9091 | { $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] | 9092 | $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9093 | if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then : |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9094 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9095 | $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9096 | |
| 9097 | fi |
| 9098 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9099 | { $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] | 9100 | $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9101 | if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9102 | $as_echo_n "(cached) " >&6 |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9103 | else |
| 9104 | ac_check_lib_save_LIBS=$LIBS |
| 9105 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9107 | /* end confdefs.h. */ |
| 9108 | |
| 9109 | /* Override any GCC internal prototype to avoid an error. |
| 9110 | Use char because int might match the return type of a GCC |
| 9111 | builtin and then its argument prototype would still apply. */ |
| 9112 | #ifdef __cplusplus |
| 9113 | extern "C" |
| 9114 | #endif |
| 9115 | char xmlNewDocPI (); |
| 9116 | int |
| 9117 | main () |
| 9118 | { |
| 9119 | return xmlNewDocPI (); |
| 9120 | ; |
| 9121 | return 0; |
| 9122 | } |
| 9123 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9124 | if ac_fn_c_try_link "$LINENO"; then : |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9125 | ac_cv_lib_xml2_xmlNewDocPI=yes |
| 9126 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9127 | ac_cv_lib_xml2_xmlNewDocPI=no |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9128 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9129 | rm -f core conftest.err conftest.$ac_objext \ |
| 9130 | conftest$ac_exeext conftest.$ac_ext |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9131 | LIBS=$ac_check_lib_save_LIBS |
| 9132 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9133 | { $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] | 9134 | $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9135 | if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then : |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9136 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9137 | $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9138 | |
| 9139 | fi |
| 9140 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9141 | { $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] | 9142 | $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9143 | if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then : |
Adam Martinson | 6ee2231 | 2010-11-22 20:54:54 -0600 | [diff] [blame] | 9144 | $as_echo_n "(cached) " >&6 |
| 9145 | else |
| 9146 | ac_check_lib_save_LIBS=$LIBS |
| 9147 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9149 | /* end confdefs.h. */ |
| 9150 | |
| 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. */ |
| 9154 | #ifdef __cplusplus |
| 9155 | extern "C" |
| 9156 | #endif |
| 9157 | char xmlSchemaSetParserStructuredErrors (); |
| 9158 | int |
| 9159 | main () |
| 9160 | { |
| 9161 | return xmlSchemaSetParserStructuredErrors (); |
| 9162 | ; |
| 9163 | return 0; |
| 9164 | } |
| 9165 | _ACEOF |
| 9166 | if ac_fn_c_try_link "$LINENO"; then : |
| 9167 | ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes |
| 9168 | else |
| 9169 | ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no |
| 9170 | fi |
| 9171 | rm -f core conftest.err conftest.$ac_objext \ |
| 9172 | conftest$ac_exeext conftest.$ac_ext |
| 9173 | LIBS=$ac_check_lib_save_LIBS |
| 9174 | fi |
| 9175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5 |
| 9176 | $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9177 | if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then : |
Adam Martinson | 6ee2231 | 2010-11-22 20:54:54 -0600 | [diff] [blame] | 9178 | |
| 9179 | $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h |
| 9180 | |
| 9181 | fi |
| 9182 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9183 | { $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] | 9184 | $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9185 | if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then : |
Adam Martinson | be4d0e9 | 2010-11-01 14:11:16 -0500 | [diff] [blame] | 9186 | $as_echo_n "(cached) " >&6 |
| 9187 | else |
| 9188 | ac_check_lib_save_LIBS=$LIBS |
| 9189 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9191 | /* end confdefs.h. */ |
| 9192 | |
| 9193 | /* Override any GCC internal prototype to avoid an error. |
| 9194 | Use char because int might match the return type of a GCC |
| 9195 | builtin and then its argument prototype would still apply. */ |
| 9196 | #ifdef __cplusplus |
| 9197 | extern "C" |
| 9198 | #endif |
| 9199 | char xmlSchemaSetValidStructuredErrors (); |
| 9200 | int |
| 9201 | main () |
| 9202 | { |
| 9203 | return xmlSchemaSetValidStructuredErrors (); |
| 9204 | ; |
| 9205 | return 0; |
| 9206 | } |
| 9207 | _ACEOF |
| 9208 | if ac_fn_c_try_link "$LINENO"; then : |
| 9209 | ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes |
| 9210 | else |
| 9211 | ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no |
| 9212 | fi |
| 9213 | rm -f core conftest.err conftest.$ac_objext \ |
| 9214 | conftest$ac_exeext conftest.$ac_ext |
| 9215 | LIBS=$ac_check_lib_save_LIBS |
| 9216 | fi |
| 9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5 |
| 9218 | $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9219 | if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then : |
Adam Martinson | be4d0e9 | 2010-11-01 14:11:16 -0500 | [diff] [blame] | 9220 | |
| 9221 | $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h |
| 9222 | |
| 9223 | fi |
| 9224 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9225 | { $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] | 9226 | $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9227 | if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then : |
Adam Martinson | 82f73c8 | 2010-11-11 15:16:24 -0600 | [diff] [blame] | 9228 | $as_echo_n "(cached) " >&6 |
| 9229 | else |
| 9230 | ac_check_lib_save_LIBS=$LIBS |
| 9231 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9233 | /* end confdefs.h. */ |
| 9234 | |
| 9235 | /* Override any GCC internal prototype to avoid an error. |
| 9236 | Use char because int might match the return type of a GCC |
| 9237 | builtin and then its argument prototype would still apply. */ |
| 9238 | #ifdef __cplusplus |
| 9239 | extern "C" |
| 9240 | #endif |
| 9241 | char xmlFirstElementChild (); |
| 9242 | int |
| 9243 | main () |
| 9244 | { |
| 9245 | return xmlFirstElementChild (); |
| 9246 | ; |
| 9247 | return 0; |
| 9248 | } |
| 9249 | _ACEOF |
| 9250 | if ac_fn_c_try_link "$LINENO"; then : |
| 9251 | ac_cv_lib_xml2_xmlFirstElementChild=yes |
| 9252 | else |
| 9253 | ac_cv_lib_xml2_xmlFirstElementChild=no |
| 9254 | fi |
| 9255 | rm -f core conftest.err conftest.$ac_objext \ |
| 9256 | conftest$ac_exeext conftest.$ac_ext |
| 9257 | LIBS=$ac_check_lib_save_LIBS |
| 9258 | fi |
| 9259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5 |
| 9260 | $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9261 | if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then : |
Adam Martinson | 82f73c8 | 2010-11-11 15:16:24 -0600 | [diff] [blame] | 9262 | |
| 9263 | $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h |
| 9264 | |
| 9265 | fi |
| 9266 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9267 | 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] | 9268 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9269 | if test "x$ac_cv_type_xmlDocProperties" = xyes; then : |
Adam Martinson | 9408b49 | 2010-11-02 17:20:08 -0500 | [diff] [blame] | 9270 | |
| 9271 | $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h |
| 9272 | |
| 9273 | fi |
| 9274 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9275 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9276 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9277 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9278 | if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9279 | case "x$with_xml" in |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9280 | 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] | 9281 | xno) ;; |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9282 | *) 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] | 9283 | This is an error since --with-xml was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9284 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9285 | fi |
| 9286 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9287 | if test "x$with_xslt" != "xno" |
Emmanuel Maillard | 2a98b40 | 2007-06-22 02:58:39 +0200 | [diff] [blame] | 9288 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9289 | if test "$PKG_CONFIG" != "false" |
| 9290 | then |
| 9291 | ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`" |
| 9292 | ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`" |
| 9293 | else |
| 9294 | ac_xslt_libs="`xslt-config --libs 2>/dev/null`" |
| 9295 | ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`" |
| 9296 | fi |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9297 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9298 | CPPFLAGS="$CPPFLAGS $ac_xslt_cflags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9299 | for ac_header in libxslt/pattern.h libxslt/transform.h |
| 9300 | do : |
| 9301 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9302 | 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] | 9303 | # include <libxslt/pattern.h> |
| 9304 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9305 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9306 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9307 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9308 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9309 | _ACEOF |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9310 | |
| 9311 | fi |
| 9312 | |
| 9313 | done |
| 9314 | |
| 9315 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9316 | if test "$ac_cv_header_libxslt_transform_h" = "yes" |
| 9317 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5 |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9319 | $as_echo_n "checking for -lxslt... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9320 | if ${ac_cv_lib_soname_xslt+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9321 | $as_echo_n "(cached) " >&6 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9322 | else |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9323 | ac_check_soname_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9324 | LIBS="-lxslt $ac_xslt_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9326 | /* end confdefs.h. */ |
| 9327 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9328 | /* Override any GCC internal prototype to avoid an error. |
| 9329 | Use char because int might match the return type of a GCC |
| 9330 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9331 | #ifdef __cplusplus |
| 9332 | extern "C" |
| 9333 | #endif |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9334 | char xsltCompilePattern (); |
| 9335 | int |
| 9336 | main () |
| 9337 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9338 | return xsltCompilePattern (); |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9339 | ; |
| 9340 | return 0; |
| 9341 | } |
| 9342 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9343 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9344 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9345 | 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] | 9346 | 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'` ;; |
| 9347 | *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9348 | esac |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9349 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9350 | rm -f core conftest.err conftest.$ac_objext \ |
| 9351 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9352 | LIBS=$ac_check_soname_save_LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9353 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9354 | if test "x$ac_cv_lib_soname_xslt" = "x"; then : |
| 9355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9356 | $as_echo "not found" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9357 | |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9358 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9359 | { $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] | 9360 | $as_echo "$ac_cv_lib_soname_xslt" >&6; } |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9361 | |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9362 | cat >>confdefs.h <<_ACEOF |
| 9363 | #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt" |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9364 | _ACEOF |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9365 | |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9366 | XSLTINCL="$ac_xslt_cflags" |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9367 | fi |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9368 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9369 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9370 | if test "x$ac_cv_lib_soname_xslt" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9371 | case "x$with_xslt" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9372 | 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] | 9373 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9374 | *) 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] | 9375 | This is an error since --with-xslt was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9376 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9377 | fi |
| 9378 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9379 | HALINCL="" |
| 9380 | |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9381 | if test "x$with_hal" != "xno" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9382 | then |
| 9383 | ac_save_CPPFLAGS="$CPPFLAGS" |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9384 | if test "$PKG_CONFIG" != "false" |
| 9385 | then |
| 9386 | ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`" |
| 9387 | ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`" |
| 9388 | CPPFLAGS="$CPPFLAGS $ac_hal_cflags" |
| 9389 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9390 | for ac_header in dbus/dbus.h hal/libhal.h |
| 9391 | do : |
| 9392 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9393 | 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] | 9394 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9395 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9396 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9397 | _ACEOF |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9398 | |
| 9399 | fi |
| 9400 | |
| 9401 | done |
| 9402 | |
| 9403 | if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes" |
| 9404 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9406 | $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9407 | if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9408 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9409 | else |
| 9410 | ac_check_lib_save_LIBS=$LIBS |
| 9411 | LIBS="-ldbus-1 $ac_hal_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9413 | /* end confdefs.h. */ |
| 9414 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9415 | /* Override any GCC internal prototype to avoid an error. |
| 9416 | Use char because int might match the return type of a GCC |
| 9417 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9418 | #ifdef __cplusplus |
| 9419 | extern "C" |
| 9420 | #endif |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9421 | char dbus_connection_close (); |
| 9422 | int |
| 9423 | main () |
| 9424 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9425 | return dbus_connection_close (); |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9426 | ; |
| 9427 | return 0; |
| 9428 | } |
| 9429 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9430 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9431 | ac_cv_lib_dbus_1_dbus_connection_close=yes |
| 9432 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9433 | ac_cv_lib_dbus_1_dbus_connection_close=no |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9434 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9435 | rm -f core conftest.err conftest.$ac_objext \ |
| 9436 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9437 | LIBS=$ac_check_lib_save_LIBS |
| 9438 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9440 | $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9441 | if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9443 | $as_echo_n "checking for -lhal... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9444 | if ${ac_cv_lib_soname_hal+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9445 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9446 | else |
| 9447 | ac_check_soname_save_LIBS=$LIBS |
| 9448 | LIBS="-lhal $ac_hal_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9450 | /* end confdefs.h. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9451 | |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9452 | /* Override any GCC internal prototype to avoid an error. |
| 9453 | Use char because int might match the return type of a GCC |
| 9454 | builtin and then its argument prototype would still apply. */ |
| 9455 | #ifdef __cplusplus |
| 9456 | extern "C" |
| 9457 | #endif |
| 9458 | char libhal_ctx_new (); |
| 9459 | int |
| 9460 | main () |
| 9461 | { |
| 9462 | return libhal_ctx_new (); |
| 9463 | ; |
| 9464 | return 0; |
| 9465 | } |
| 9466 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9467 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9468 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9469 | 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] | 9470 | 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'` ;; |
| 9471 | *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9472 | esac |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9473 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9474 | rm -f core conftest.err conftest.$ac_objext \ |
| 9475 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9476 | LIBS=$ac_check_soname_save_LIBS |
| 9477 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9478 | if test "x$ac_cv_lib_soname_hal" = "x"; then : |
| 9479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9480 | $as_echo "not found" >&6; } |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9481 | |
| 9482 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9483 | { $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] | 9484 | $as_echo "$ac_cv_lib_soname_hal" >&6; } |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9485 | |
| 9486 | cat >>confdefs.h <<_ACEOF |
| 9487 | #define SONAME_LIBHAL "$ac_cv_lib_soname_hal" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9488 | _ACEOF |
| 9489 | |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9490 | HALINCL="$ac_hal_cflags" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9491 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9492 | fi |
| 9493 | |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9494 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9495 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9496 | fi |
Alexandre Julliard | d806273 | 2010-04-26 06:57:49 -0500 | [diff] [blame] | 9497 | if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9498 | case "x$with_hal" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9499 | x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9500 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9501 | *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9502 | This is an error since --with-hal was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9503 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9504 | fi |
| 9505 | |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9506 | if test "x$with_gnutls" != "xno" |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9507 | then |
| 9508 | ac_save_CPPFLAGS="$CPPFLAGS" |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9509 | if test "$PKG_CONFIG" != "false" |
| 9510 | then |
| 9511 | ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`" |
| 9512 | ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`" |
| 9513 | CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags" |
| 9514 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9515 | 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] | 9516 | if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9518 | /* end confdefs.h. */ |
| 9519 | #include <gnutls/gnutls.h> |
| 9520 | int |
| 9521 | main () |
| 9522 | { |
Henri Verbeet | 8c4a297 | 2008-12-30 09:45:20 +0100 | [diff] [blame] | 9523 | typeof(gnutls_mac_get_key_size) *pfunc; |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9524 | ; |
| 9525 | return 0; |
| 9526 | } |
| 9527 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9528 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9530 | $as_echo_n "checking for -lgnutls... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9531 | if ${ac_cv_lib_soname_gnutls+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9532 | $as_echo_n "(cached) " >&6 |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9533 | else |
| 9534 | ac_check_soname_save_LIBS=$LIBS |
| 9535 | LIBS="-lgnutls $ac_gnutls_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9537 | /* end confdefs.h. */ |
| 9538 | |
| 9539 | /* Override any GCC internal prototype to avoid an error. |
| 9540 | Use char because int might match the return type of a GCC |
| 9541 | builtin and then its argument prototype would still apply. */ |
| 9542 | #ifdef __cplusplus |
| 9543 | extern "C" |
| 9544 | #endif |
| 9545 | char gnutls_global_init (); |
| 9546 | int |
| 9547 | main () |
| 9548 | { |
| 9549 | return gnutls_global_init (); |
| 9550 | ; |
| 9551 | return 0; |
| 9552 | } |
| 9553 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9554 | if ac_fn_c_try_link "$LINENO"; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9555 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9556 | 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] | 9557 | 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'` ;; |
| 9558 | *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9559 | esac |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9560 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9561 | rm -f core conftest.err conftest.$ac_objext \ |
| 9562 | conftest$ac_exeext conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9563 | LIBS=$ac_check_soname_save_LIBS |
| 9564 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9565 | if test "x$ac_cv_lib_soname_gnutls" = "x"; then : |
| 9566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9567 | $as_echo "not found" >&6; } |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9568 | |
| 9569 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9570 | { $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] | 9571 | $as_echo "$ac_cv_lib_soname_gnutls" >&6; } |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9572 | |
| 9573 | cat >>confdefs.h <<_ACEOF |
| 9574 | #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls" |
| 9575 | _ACEOF |
| 9576 | |
| 9577 | GNUTLSINCL="$ac_gnutls_cflags" |
| 9578 | |
| 9579 | fi |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9580 | fi |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9582 | fi |
| 9583 | |
| 9584 | |
| 9585 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9586 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9587 | if test "x$ac_cv_lib_soname_gnutls" = "x"; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9588 | case "x$with_gnutls" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9589 | 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] | 9590 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9591 | *) 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] | 9592 | This is an error since --with-gnutls was requested." "$LINENO" 5 ;; |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9593 | esac |
| 9594 | fi |
| 9595 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9596 | CURSESLIBS="" |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9597 | if test "$ac_cv_header_ncurses_h" = "yes" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 9598 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9600 | $as_echo_n "checking for -lncurses... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9601 | if ${ac_cv_lib_soname_ncurses+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9602 | $as_echo_n "(cached) " >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9603 | else |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9604 | ac_check_soname_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9605 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9607 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9608 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9609 | /* Override any GCC internal prototype to avoid an error. |
| 9610 | Use char because int might match the return type of a GCC |
| 9611 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9612 | #ifdef __cplusplus |
| 9613 | extern "C" |
| 9614 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9615 | char waddch (); |
| 9616 | int |
| 9617 | main () |
| 9618 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9619 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9620 | ; |
| 9621 | return 0; |
| 9622 | } |
| 9623 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9624 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9625 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9626 | 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] | 9627 | 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'` ;; |
| 9628 | *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9629 | esac |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9630 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9631 | rm -f core conftest.err conftest.$ac_objext \ |
| 9632 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9633 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9634 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9635 | if test "x$ac_cv_lib_soname_ncurses" = "x"; then : |
| 9636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9637 | $as_echo "not found" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9638 | |
| 9639 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9640 | { $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] | 9641 | $as_echo "$ac_cv_lib_soname_ncurses" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9642 | |
| 9643 | cat >>confdefs.h <<_ACEOF |
| 9644 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
| 9645 | _ACEOF |
| 9646 | |
| 9647 | CURSESLIBS="-lncurses" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9648 | fi |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9649 | elif test "$ac_cv_header_curses_h" = "yes" |
| 9650 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9652 | $as_echo_n "checking for -lcurses... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9653 | if ${ac_cv_lib_soname_curses+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9654 | $as_echo_n "(cached) " >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9655 | else |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9656 | ac_check_soname_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9657 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9659 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9660 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9661 | /* Override any GCC internal prototype to avoid an error. |
| 9662 | Use char because int might match the return type of a GCC |
| 9663 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9664 | #ifdef __cplusplus |
| 9665 | extern "C" |
| 9666 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9667 | char waddch (); |
| 9668 | int |
| 9669 | main () |
| 9670 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9671 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9672 | ; |
| 9673 | return 0; |
| 9674 | } |
| 9675 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9676 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9677 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9678 | 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] | 9679 | 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'` ;; |
| 9680 | *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9681 | esac |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9682 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9683 | rm -f core conftest.err conftest.$ac_objext \ |
| 9684 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9685 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9686 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9687 | if test "x$ac_cv_lib_soname_curses" = "x"; then : |
| 9688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9689 | $as_echo "not found" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9690 | |
| 9691 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9692 | { $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] | 9693 | $as_echo "$ac_cv_lib_soname_curses" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9694 | |
| 9695 | cat >>confdefs.h <<_ACEOF |
| 9696 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
| 9697 | _ACEOF |
| 9698 | |
| 9699 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9700 | fi |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9701 | fi |
| 9702 | ac_save_LIBS="$LIBS" |
| 9703 | LIBS="$LIBS $CURSESLIBS" |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9704 | for ac_func in mousemask |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9705 | do : |
| 9706 | ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9707 | if test "x$ac_cv_func_mousemask" = xyes; then : |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9708 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9709 | #define HAVE_MOUSEMASK 1 |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9710 | _ACEOF |
| 9711 | |
| 9712 | fi |
| 9713 | done |
| 9714 | |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9715 | LIBS="$ac_save_LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9716 | 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] | 9717 | case "x$with_curses" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9718 | 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] | 9719 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9720 | *) 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] | 9721 | This is an error since --with-curses was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9722 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9723 | fi |
| 9724 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9725 | if test "x$with_sane" != "xno" |
| 9726 | then |
| 9727 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9728 | # 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] | 9729 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9731 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9732 | if ${ac_cv_prog_sane_devel+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9733 | $as_echo_n "(cached) " >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9734 | else |
| 9735 | if test -n "$sane_devel"; then |
| 9736 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 9737 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9739 | for as_dir in $PATH |
| 9740 | do |
| 9741 | IFS=$as_save_IFS |
| 9742 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9743 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 9744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9745 | ac_cv_prog_sane_devel="sane-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9746 | $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] | 9747 | break 2 |
| 9748 | fi |
| 9749 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9750 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9751 | IFS=$as_save_IFS |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9752 | |
| 9753 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 9754 | fi |
| 9755 | fi |
| 9756 | sane_devel=$ac_cv_prog_sane_devel |
| 9757 | if test -n "$sane_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9759 | $as_echo "$sane_devel" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9760 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9762 | $as_echo "no" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9763 | fi |
| 9764 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9765 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9766 | if test "$sane_devel" != "no" |
| 9767 | then |
| 9768 | ac_sane_incl="`$sane_devel --cflags`" |
| 9769 | ac_sane_libs="`$sane_devel --ldflags`" |
| 9770 | CPPFLAGS="$CPPFLAGS $ac_sane_incl" |
| 9771 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9772 | 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] | 9773 | if test "x$ac_cv_header_sane_sane_h" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9775 | $as_echo_n "checking for -lsane... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9776 | if ${ac_cv_lib_soname_sane+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9777 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9778 | else |
| 9779 | ac_check_soname_save_LIBS=$LIBS |
Francois Gouget | a9d7bab | 2008-07-20 22:41:41 +0200 | [diff] [blame] | 9780 | LIBS="-lsane $ac_sane_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9782 | /* end confdefs.h. */ |
| 9783 | |
| 9784 | /* Override any GCC internal prototype to avoid an error. |
| 9785 | Use char because int might match the return type of a GCC |
| 9786 | builtin and then its argument prototype would still apply. */ |
| 9787 | #ifdef __cplusplus |
| 9788 | extern "C" |
| 9789 | #endif |
| 9790 | char sane_init (); |
| 9791 | int |
| 9792 | main () |
| 9793 | { |
| 9794 | return sane_init (); |
| 9795 | ; |
| 9796 | return 0; |
| 9797 | } |
| 9798 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9799 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9800 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9801 | 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] | 9802 | 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'` ;; |
| 9803 | *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9804 | esac |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9805 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9806 | rm -f core conftest.err conftest.$ac_objext \ |
| 9807 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9808 | LIBS=$ac_check_soname_save_LIBS |
| 9809 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9810 | if test "x$ac_cv_lib_soname_sane" = "x"; then : |
| 9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9812 | $as_echo "not found" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9813 | |
| 9814 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9815 | { $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] | 9816 | $as_echo "$ac_cv_lib_soname_sane" >&6; } |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9817 | |
| 9818 | cat >>confdefs.h <<_ACEOF |
| 9819 | #define SONAME_LIBSANE "$ac_cv_lib_soname_sane" |
| 9820 | _ACEOF |
| 9821 | |
| 9822 | SANEINCL="$ac_sane_incl" |
| 9823 | |
| 9824 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9825 | fi |
| 9826 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9827 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9828 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9829 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9830 | if test "x$ac_cv_lib_soname_sane" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9831 | case "x$with_sane" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9832 | 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] | 9833 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9834 | *) 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] | 9835 | This is an error since --with-sane was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9836 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9837 | fi |
| 9838 | |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 9839 | if test "x$with_v4l" != "xno" |
| 9840 | then |
| 9841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5 |
| 9842 | $as_echo_n "checking for -lv4l1... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9843 | if ${ac_cv_lib_soname_v4l1+:} false; then : |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 9844 | $as_echo_n "(cached) " >&6 |
| 9845 | else |
| 9846 | ac_check_soname_save_LIBS=$LIBS |
| 9847 | LIBS="-lv4l1 $LIBS" |
| 9848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9849 | /* end confdefs.h. */ |
| 9850 | |
| 9851 | /* Override any GCC internal prototype to avoid an error. |
| 9852 | Use char because int might match the return type of a GCC |
| 9853 | builtin and then its argument prototype would still apply. */ |
| 9854 | #ifdef __cplusplus |
| 9855 | extern "C" |
| 9856 | #endif |
| 9857 | char v4l1_open (); |
| 9858 | int |
| 9859 | main () |
| 9860 | { |
| 9861 | return v4l1_open (); |
| 9862 | ; |
| 9863 | return 0; |
| 9864 | } |
| 9865 | _ACEOF |
| 9866 | if ac_fn_c_try_link "$LINENO"; then : |
| 9867 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9868 | 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] | 9869 | 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'` ;; |
| 9870 | *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9871 | esac |
| 9872 | fi |
| 9873 | rm -f core conftest.err conftest.$ac_objext \ |
| 9874 | conftest$ac_exeext conftest.$ac_ext |
| 9875 | LIBS=$ac_check_soname_save_LIBS |
| 9876 | fi |
| 9877 | if test "x$ac_cv_lib_soname_v4l1" = "x"; then : |
| 9878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 9879 | $as_echo "not found" >&6; } |
| 9880 | |
| 9881 | else |
| 9882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5 |
| 9883 | $as_echo "$ac_cv_lib_soname_v4l1" >&6; } |
| 9884 | |
| 9885 | cat >>confdefs.h <<_ACEOF |
| 9886 | #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1" |
| 9887 | _ACEOF |
| 9888 | |
| 9889 | |
| 9890 | fi |
| 9891 | fi |
| 9892 | if test "x$ac_cv_lib_soname_v4l1" = "x"; then : |
| 9893 | case "x$with_v4l" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9894 | 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] | 9895 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9896 | *) as_fn_error $? "libv4l ${notice_platform}development files not found. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9897 | This is an error since --with-v4l was requested." "$LINENO" 5 ;; |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 9898 | esac |
| 9899 | fi |
| 9900 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9901 | if test "x$with_gphoto" != "xno" |
| 9902 | then |
| 9903 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9904 | # 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] | 9905 | set dummy gphoto2-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9907 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9908 | if ${ac_cv_prog_gphoto2_devel+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9909 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 9910 | else |
| 9911 | if test -n "$gphoto2_devel"; then |
| 9912 | ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test. |
| 9913 | else |
| 9914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9915 | for as_dir in $PATH |
| 9916 | do |
| 9917 | IFS=$as_save_IFS |
| 9918 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9919 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 9920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 9921 | ac_cv_prog_gphoto2_devel="gphoto2-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9922 | $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] | 9923 | break 2 |
| 9924 | fi |
| 9925 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9926 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9927 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 9928 | |
| 9929 | test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no" |
| 9930 | fi |
| 9931 | fi |
| 9932 | gphoto2_devel=$ac_cv_prog_gphoto2_devel |
| 9933 | if test -n "$gphoto2_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9935 | $as_echo "$gphoto2_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 9936 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9938 | $as_echo "no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 9939 | fi |
| 9940 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9941 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9942 | # 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] | 9943 | set dummy gphoto2-port-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9945 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9946 | if ${ac_cv_prog_gphoto2port_devel+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9947 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 9948 | else |
| 9949 | if test -n "$gphoto2port_devel"; then |
| 9950 | ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test. |
| 9951 | else |
| 9952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9953 | for as_dir in $PATH |
| 9954 | do |
| 9955 | IFS=$as_save_IFS |
| 9956 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9957 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 9958 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 9959 | ac_cv_prog_gphoto2port_devel="gphoto2-port-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9960 | $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] | 9961 | break 2 |
| 9962 | fi |
| 9963 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9964 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9965 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 9966 | |
| 9967 | test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no" |
| 9968 | fi |
| 9969 | fi |
| 9970 | gphoto2port_devel=$ac_cv_prog_gphoto2port_devel |
| 9971 | if test -n "$gphoto2port_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9973 | $as_echo "$gphoto2port_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 9974 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9976 | $as_echo "no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 9977 | fi |
| 9978 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9979 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9980 | if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no" |
| 9981 | then |
| 9982 | ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`" |
| 9983 | ac_gphoto2_libs="" |
| 9984 | for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs` |
| 9985 | do |
| 9986 | case "$i" in |
| 9987 | -L/usr/lib|-L/usr/lib64) ;; |
| 9988 | -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";; |
| 9989 | esac |
| 9990 | done |
| 9991 | CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl" |
| 9992 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 9993 | ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9994 | 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] | 9995 | if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9996 | { $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] | 9997 | $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9998 | if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9999 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10000 | else |
| 10001 | ac_check_lib_save_LIBS=$LIBS |
Francois Gouget | 4bc03fe | 2008-07-21 17:10:45 +0200 | [diff] [blame] | 10002 | LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10004 | /* end confdefs.h. */ |
| 10005 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 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. */ |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10009 | #ifdef __cplusplus |
| 10010 | extern "C" |
| 10011 | #endif |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10012 | char gp_camera_new (); |
| 10013 | int |
| 10014 | main () |
| 10015 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10016 | return gp_camera_new (); |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10017 | ; |
| 10018 | return 0; |
| 10019 | } |
| 10020 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10021 | if ac_fn_c_try_link "$LINENO"; then : |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10022 | ac_cv_lib_gphoto2_gp_camera_new=yes |
| 10023 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10024 | ac_cv_lib_gphoto2_gp_camera_new=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10025 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10026 | rm -f core conftest.err conftest.$ac_objext \ |
| 10027 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10028 | LIBS=$ac_check_lib_save_LIBS |
| 10029 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10030 | { $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] | 10031 | $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10032 | if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then : |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10033 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10034 | $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10035 | |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10036 | GPHOTO2LIBS="$ac_gphoto2_libs" |
| 10037 | |
| 10038 | GPHOTO2INCL="$ac_gphoto2_incl" |
| 10039 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10040 | fi |
| 10041 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10042 | fi |
| 10043 | |
| 10044 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10045 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10046 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10047 | if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10048 | case "x$with_gphoto" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10049 | 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] | 10050 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10051 | *) 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] | 10052 | This is an error since --with-gphoto was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10053 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10054 | fi |
| 10055 | |
| 10056 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10057 | if test "$ac_cv_header_resolv_h" = "yes" |
| 10058 | then |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10059 | ac_save_LIBS="$LIBS" |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10060 | for lib in '' -lresolv |
| 10061 | do |
| 10062 | LIBS="$lib $ac_save_LIBS" |
| 10063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10064 | /* end confdefs.h. */ |
Rob Shearman | ba34921 | 2009-01-02 12:12:06 +0000 | [diff] [blame] | 10065 | #ifdef HAVE_NETINET_IN_H |
| 10066 | #include <netinet/in.h> |
| 10067 | #endif |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10068 | #include <resolv.h> |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10069 | int |
| 10070 | main () |
| 10071 | { |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10072 | res_query("foo",ns_c_in,0,0,0); |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10073 | ; |
| 10074 | return 0; |
| 10075 | } |
| 10076 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10077 | if ac_fn_c_try_link "$LINENO"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10078 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10079 | $as_echo "#define HAVE_RESOLV 1" >>confdefs.h |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10080 | |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10081 | RESOLVLIBS="$lib" |
| 10082 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10083 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10084 | rm -f core conftest.err conftest.$ac_objext \ |
| 10085 | conftest$ac_exeext conftest.$ac_ext |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10086 | if test "${RESOLVLIBS+set}" = set; then |
| 10087 | break |
| 10088 | fi |
| 10089 | done |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10090 | LIBS="$ac_save_LIBS" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10091 | fi |
| 10092 | |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10093 | LCMSLIBS="" |
| 10094 | |
| 10095 | if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes" |
| 10096 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10097 | { $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] | 10098 | $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10099 | if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10100 | $as_echo_n "(cached) " >&6 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10101 | else |
| 10102 | ac_check_lib_save_LIBS=$LIBS |
| 10103 | LIBS="-llcms $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10105 | /* end confdefs.h. */ |
| 10106 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10107 | /* Override any GCC internal prototype to avoid an error. |
| 10108 | Use char because int might match the return type of a GCC |
| 10109 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10110 | #ifdef __cplusplus |
| 10111 | extern "C" |
| 10112 | #endif |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10113 | char cmsOpenProfileFromFile (); |
| 10114 | int |
| 10115 | main () |
| 10116 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10117 | return cmsOpenProfileFromFile (); |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10118 | ; |
| 10119 | return 0; |
| 10120 | } |
| 10121 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10122 | if ac_fn_c_try_link "$LINENO"; then : |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10123 | ac_cv_lib_lcms_cmsOpenProfileFromFile=yes |
| 10124 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10125 | ac_cv_lib_lcms_cmsOpenProfileFromFile=no |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10126 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10127 | rm -f core conftest.err conftest.$ac_objext \ |
| 10128 | conftest$ac_exeext conftest.$ac_ext |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10129 | LIBS=$ac_check_lib_save_LIBS |
| 10130 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10131 | { $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] | 10132 | $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10133 | if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then : |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10134 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10135 | $as_echo "#define HAVE_LCMS 1" >>confdefs.h |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10136 | |
| 10137 | LCMSLIBS="-llcms" |
| 10138 | fi |
| 10139 | |
| 10140 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10141 | if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10142 | case "x$with_cms" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10143 | 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] | 10144 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10145 | *) 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] | 10146 | This is an error since --with-cms was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10147 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10148 | fi |
| 10149 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10150 | if test "x$with_freetype" != "xno" |
| 10151 | then |
| 10152 | for ac_prog in freetype-config freetype2-config |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10153 | do |
| 10154 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10155 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10157 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10158 | if ${ac_cv_prog_ft_devel+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10159 | $as_echo_n "(cached) " >&6 |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10160 | else |
| 10161 | if test -n "$ft_devel"; then |
| 10162 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 10163 | else |
| 10164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10165 | for as_dir in $PATH |
| 10166 | do |
| 10167 | IFS=$as_save_IFS |
| 10168 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10169 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10171 | ac_cv_prog_ft_devel="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10172 | $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] | 10173 | break 2 |
| 10174 | fi |
| 10175 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10176 | done |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10177 | IFS=$as_save_IFS |
| 10178 | |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10179 | fi |
| 10180 | fi |
| 10181 | ft_devel=$ac_cv_prog_ft_devel |
| 10182 | if test -n "$ft_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10184 | $as_echo "$ft_devel" >&6; } |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10185 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10187 | $as_echo "no" >&6; } |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10188 | fi |
| 10189 | |
| 10190 | |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10191 | test -n "$ft_devel" && break |
| 10192 | done |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10193 | test -n "$ft_devel" || ft_devel="no" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10194 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10195 | if test "$ft_devel" != "no" |
| 10196 | then |
| 10197 | ac_freetype_incl=`$ft_devel --cflags` |
| 10198 | ac_freetype_libs=`$ft_devel --libs` |
| 10199 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 10200 | ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10202 | $as_echo_n "checking for -lfreetype... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10203 | if ${ac_cv_lib_soname_freetype+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10204 | $as_echo_n "(cached) " >&6 |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10205 | else |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10206 | ac_check_soname_save_LIBS=$LIBS |
| 10207 | LIBS="-lfreetype $ac_freetype_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10209 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10210 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10211 | /* Override any GCC internal prototype to avoid an error. |
| 10212 | Use char because int might match the return type of a GCC |
| 10213 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10214 | #ifdef __cplusplus |
| 10215 | extern "C" |
| 10216 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10217 | char FT_Init_FreeType (); |
| 10218 | int |
| 10219 | main () |
| 10220 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10221 | return FT_Init_FreeType (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10222 | ; |
| 10223 | return 0; |
| 10224 | } |
| 10225 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10226 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10227 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10228 | 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] | 10229 | 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'` ;; |
| 10230 | *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10231 | esac |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10232 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10233 | rm -f core conftest.err conftest.$ac_objext \ |
| 10234 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10235 | LIBS=$ac_check_soname_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10236 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10237 | if test "x$ac_cv_lib_soname_freetype" = "x"; then : |
| 10238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10239 | $as_echo "not found" >&6; } |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10240 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10241 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10242 | { $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] | 10243 | $as_echo "$ac_cv_lib_soname_freetype" >&6; } |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10244 | |
| 10245 | cat >>confdefs.h <<_ACEOF |
| 10246 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 10247 | _ACEOF |
| 10248 | |
| 10249 | ft_lib=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10250 | fi |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10251 | if test "$ft_lib" = "yes" |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10252 | then |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10253 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10254 | CPPFLAGS="$ac_freetype_incl $CPPFLAGS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10255 | for ac_header in ft2build.h \ |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 10256 | freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10257 | freetype/ftglyph.h \ |
Dmitry Timoshkov | b0d1590 | 2007-09-20 19:10:31 +0900 | [diff] [blame] | 10258 | freetype/fttypes.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10259 | freetype/tttables.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10260 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 10261 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10262 | freetype/ftoutln.h \ |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 10263 | freetype/ftwinfnt.h \ |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 10264 | freetype/ftmodapi.h \ |
ByeongSik Jeon | 028617b | 2008-12-10 23:50:44 +0900 | [diff] [blame] | 10265 | freetype/ftlcdfil.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10266 | freetype/internal/sfnt.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10267 | do : |
| 10268 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10269 | 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] | 10270 | # include <ft2build.h> |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10271 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10272 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10273 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10274 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10275 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10276 | _ACEOF |
| 10277 | |
| 10278 | fi |
| 10279 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10280 | done |
| 10281 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10283 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10284 | #include <ft2build.h> |
| 10285 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10286 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10287 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10288 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10289 | $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10290 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10291 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10292 | else |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10293 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10294 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10295 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10296 | ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h> |
| 10297 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10298 | if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then : |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 10299 | |
| 10300 | cat >>confdefs.h <<_ACEOF |
| 10301 | #define HAVE_FT_TRUETYPEENGINETYPE 1 |
| 10302 | _ACEOF |
| 10303 | |
| 10304 | |
| 10305 | fi |
| 10306 | |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 10307 | ac_save_CFLAGS="$CFLAGS" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10308 | CFLAGS="$CFLAGS $ac_freetype_libs" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10309 | for ac_func in FT_Load_Sfnt_Table |
| 10310 | do : |
| 10311 | ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10312 | if test "x$ac_cv_func_FT_Load_Sfnt_Table" = xyes; then : |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 10313 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10314 | #define HAVE_FT_LOAD_SFNT_TABLE 1 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 10315 | _ACEOF |
| 10316 | |
| 10317 | fi |
| 10318 | done |
| 10319 | |
| 10320 | CFLAGS="$ac_save_CFLAGS" |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10321 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10322 | 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] | 10323 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10324 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10325 | $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10326 | |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10327 | FREETYPELIBS="$ac_freetype_libs" |
| 10328 | |
| 10329 | FREETYPEINCL="$ac_freetype_incl" |
| 10330 | |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10331 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10332 | fi |
| 10333 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10334 | if test "x$FREETYPELIBS" = "x"; then : |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10335 | case "x$with_freetype" in |
| 10336 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10337 | *) 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] | 10338 | Use the --without-freetype option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10339 | esac |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10340 | fi |
Alexandre Julliard | 6de0af1 | 2008-08-25 14:41:03 +0200 | [diff] [blame] | 10341 | test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no} |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10342 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10343 | { $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] | 10344 | $as_echo_n "checking for parport header/ppdev.h... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10345 | if ${ac_cv_c_ppdev+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10346 | $as_echo_n "(cached) " >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 10347 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10349 | /* end confdefs.h. */ |
Yann Droneaud | dd33ee9 | 2010-03-08 14:46:46 +0100 | [diff] [blame] | 10350 | #ifdef HAVE_SYS_IOCTL_H |
| 10351 | # include <sys/ioctl.h> |
| 10352 | #endif |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10353 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10354 | int |
| 10355 | main () |
| 10356 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10357 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10358 | ; |
| 10359 | return 0; |
| 10360 | } |
| 10361 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10362 | if ac_fn_c_try_compile "$LINENO"; then : |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10363 | ac_cv_c_ppdev="yes" |
| 10364 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10365 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10366 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10368 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10369 | { $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] | 10370 | $as_echo "$ac_cv_c_ppdev" >&6; } |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10371 | if test "$ac_cv_c_ppdev" = "yes" |
| 10372 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10373 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10374 | $as_echo "#define HAVE_PPDEV 1" >>confdefs.h |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10375 | |
| 10376 | fi |
| 10377 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10378 | ac_wine_check_funcs_save_LIBS="$LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10379 | LIBS="$LIBS $LIBPTHREAD" |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 10380 | for ac_func in \ |
Tijl Coosemans | fc8172f | 2006-08-05 23:31:07 +0200 | [diff] [blame] | 10381 | pthread_attr_get_np \ |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 10382 | pthread_getattr_np \ |
| 10383 | pthread_get_stackaddr_np \ |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10384 | pthread_get_stacksize_np |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10385 | do : |
| 10386 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10387 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10388 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10389 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10390 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10391 | _ACEOF |
| 10392 | |
| 10393 | fi |
| 10394 | done |
| 10395 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10396 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10397 | |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10398 | if test "$ac_cv_header_zlib_h" = "yes" |
| 10399 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10400 | { $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] | 10401 | $as_echo_n "checking for inflate in -lz... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10402 | if ${ac_cv_lib_z_inflate+:} false; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10403 | $as_echo_n "(cached) " >&6 |
| 10404 | else |
| 10405 | ac_check_lib_save_LIBS=$LIBS |
| 10406 | LIBS="-lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10408 | /* end confdefs.h. */ |
| 10409 | |
| 10410 | /* Override any GCC internal prototype to avoid an error. |
| 10411 | Use char because int might match the return type of a GCC |
| 10412 | builtin and then its argument prototype would still apply. */ |
| 10413 | #ifdef __cplusplus |
| 10414 | extern "C" |
| 10415 | #endif |
| 10416 | char inflate (); |
| 10417 | int |
| 10418 | main () |
| 10419 | { |
| 10420 | return inflate (); |
| 10421 | ; |
| 10422 | return 0; |
| 10423 | } |
| 10424 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10425 | if ac_fn_c_try_link "$LINENO"; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10426 | ac_cv_lib_z_inflate=yes |
| 10427 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10428 | ac_cv_lib_z_inflate=no |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10429 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10430 | rm -f core conftest.err conftest.$ac_objext \ |
| 10431 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10432 | LIBS=$ac_check_lib_save_LIBS |
| 10433 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10434 | { $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] | 10435 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10436 | if test "x$ac_cv_lib_z_inflate" = xyes; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10437 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10438 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10439 | |
| 10440 | ZLIB="-lz" |
| 10441 | |
| 10442 | fi |
| 10443 | |
| 10444 | fi |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 10445 | if test "x$ZLIB" = "x"; then : |
| 10446 | case "x$with_zlib" in |
| 10447 | x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;; |
| 10448 | xno) ;; |
| 10449 | *) 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] | 10450 | This is an error since --with-zlib was requested." "$LINENO" 5 ;; |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 10451 | esac |
| 10452 | fi |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10453 | |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10454 | if test "x$enable_tools" != xno |
| 10455 | then |
| 10456 | if test "$ac_cv_header_gettext_po_h" = "yes" |
| 10457 | then |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5 |
| 10459 | $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10460 | if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then : |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10461 | $as_echo_n "(cached) " >&6 |
| 10462 | else |
| 10463 | ac_check_lib_save_LIBS=$LIBS |
| 10464 | LIBS="-lgettextpo $LIBS" |
| 10465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10466 | /* end confdefs.h. */ |
| 10467 | |
| 10468 | /* Override any GCC internal prototype to avoid an error. |
| 10469 | Use char because int might match the return type of a GCC |
| 10470 | builtin and then its argument prototype would still apply. */ |
| 10471 | #ifdef __cplusplus |
| 10472 | extern "C" |
| 10473 | #endif |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10474 | char po_message_msgctxt (); |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10475 | int |
| 10476 | main () |
| 10477 | { |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10478 | return po_message_msgctxt (); |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10479 | ; |
| 10480 | return 0; |
| 10481 | } |
| 10482 | _ACEOF |
| 10483 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10484 | ac_cv_lib_gettextpo_po_message_msgctxt=yes |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10485 | else |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10486 | ac_cv_lib_gettextpo_po_message_msgctxt=no |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10487 | fi |
| 10488 | rm -f core conftest.err conftest.$ac_objext \ |
| 10489 | conftest$ac_exeext conftest.$ac_ext |
| 10490 | LIBS=$ac_check_lib_save_LIBS |
| 10491 | fi |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5 |
| 10493 | $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10494 | if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then : |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10495 | |
| 10496 | $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h |
| 10497 | |
| 10498 | LIBGETTEXTPO="-lgettextpo" |
| 10499 | |
| 10500 | fi |
| 10501 | |
| 10502 | fi |
| 10503 | if test "x$LIBGETTEXTPO" = "x"; then : |
| 10504 | case "x$with_gettextpo" in |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10505 | x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;; |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10506 | xno) ;; |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10507 | *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10508 | This is an error since --with-gettextpo was requested." "$LINENO" 5 ;; |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10509 | esac |
| 10510 | fi |
| 10511 | fi |
| 10512 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10513 | if test "x$with_gstreamer" != "xno" |
| 10514 | then |
| 10515 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10516 | if test "$PKG_CONFIG" != "false"; then |
| 10517 | ac_gst_incl="" |
| 10518 | for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null` |
| 10519 | do |
| 10520 | case "$i" in |
| 10521 | -I*) ac_gst_incl="$ac_gst_incl $i";; |
| 10522 | esac |
| 10523 | done |
| 10524 | ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`" |
| 10525 | CPPFLAGS="$CPPFLAGS $ac_gst_incl" |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10526 | 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] | 10527 | if test "x$ac_cv_header_gst_gstpad_h" = xyes; then : |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10528 | 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] | 10529 | if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then : |
Octavian Voicu | b113af1 | 2011-08-03 01:38:43 +0300 | [diff] [blame] | 10530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5 |
| 10531 | $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; } |
| 10532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10533 | /* end confdefs.h. */ |
| 10534 | #include <gst/app/gstappsink.h> |
| 10535 | int |
| 10536 | main () |
| 10537 | { |
| 10538 | int a[sizeof(gint64) > 4 ? 1 : -1] |
| 10539 | ; |
| 10540 | return 0; |
| 10541 | } |
| 10542 | _ACEOF |
| 10543 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10545 | $as_echo "yes" >&6; } |
| 10546 | { $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] | 10547 | $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] | 10548 | 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] | 10549 | $as_echo_n "(cached) " >&6 |
| 10550 | else |
| 10551 | ac_check_lib_save_LIBS=$LIBS |
| 10552 | LIBS="-lgstreamer-0.10 $LIBS" |
| 10553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10554 | /* end confdefs.h. */ |
| 10555 | |
| 10556 | /* Override any GCC internal prototype to avoid an error. |
| 10557 | Use char because int might match the return type of a GCC |
| 10558 | builtin and then its argument prototype would still apply. */ |
| 10559 | #ifdef __cplusplus |
| 10560 | extern "C" |
| 10561 | #endif |
| 10562 | char gst_pad_get_caps_reffed (); |
| 10563 | int |
| 10564 | main () |
| 10565 | { |
| 10566 | return gst_pad_get_caps_reffed (); |
| 10567 | ; |
| 10568 | return 0; |
| 10569 | } |
| 10570 | _ACEOF |
| 10571 | if ac_fn_c_try_link "$LINENO"; then : |
| 10572 | ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes |
| 10573 | else |
| 10574 | ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no |
| 10575 | fi |
| 10576 | rm -f core conftest.err conftest.$ac_objext \ |
| 10577 | conftest$ac_exeext conftest.$ac_ext |
| 10578 | LIBS=$ac_check_lib_save_LIBS |
| 10579 | fi |
| 10580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5 |
| 10581 | $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] | 10582 | 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] | 10583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5 |
| 10584 | $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] | 10585 | 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] | 10586 | $as_echo_n "(cached) " >&6 |
| 10587 | else |
| 10588 | ac_check_lib_save_LIBS=$LIBS |
| 10589 | LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS" |
| 10590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10591 | /* end confdefs.h. */ |
| 10592 | |
| 10593 | /* Override any GCC internal prototype to avoid an error. |
| 10594 | Use char because int might match the return type of a GCC |
| 10595 | builtin and then its argument prototype would still apply. */ |
| 10596 | #ifdef __cplusplus |
| 10597 | extern "C" |
| 10598 | #endif |
| 10599 | char gst_app_buffer_new (); |
| 10600 | int |
| 10601 | main () |
| 10602 | { |
| 10603 | return gst_app_buffer_new (); |
| 10604 | ; |
| 10605 | return 0; |
| 10606 | } |
| 10607 | _ACEOF |
| 10608 | if ac_fn_c_try_link "$LINENO"; then : |
| 10609 | ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes |
| 10610 | else |
| 10611 | ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no |
| 10612 | fi |
| 10613 | rm -f core conftest.err conftest.$ac_objext \ |
| 10614 | conftest$ac_exeext conftest.$ac_ext |
| 10615 | LIBS=$ac_check_lib_save_LIBS |
| 10616 | fi |
| 10617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5 |
| 10618 | $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] | 10619 | 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] | 10620 | GSTREAMER_LIBS="$ac_gst_libs" |
| 10621 | |
Octavian Voicu | b113af1 | 2011-08-03 01:38:43 +0300 | [diff] [blame] | 10622 | GSTREAMER_INCL="$ac_gst_incl" |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10623 | |
| 10624 | fi |
| 10625 | |
| 10626 | fi |
| 10627 | |
Octavian Voicu | b113af1 | 2011-08-03 01:38:43 +0300 | [diff] [blame] | 10628 | else |
| 10629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10630 | $as_echo "no" >&6; } |
| 10631 | fi |
| 10632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10633 | fi |
| 10634 | |
| 10635 | |
| 10636 | fi |
| 10637 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10638 | |
| 10639 | fi |
| 10640 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10641 | fi |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 10642 | 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] | 10643 | case "x$with_gstreamer" in |
Detlef Riekenberg | 654bb4a | 2010-12-12 22:48:56 +0100 | [diff] [blame] | 10644 | 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] | 10645 | xno) ;; |
Detlef Riekenberg | 654bb4a | 2010-12-12 22:48:56 +0100 | [diff] [blame] | 10646 | *) 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] | 10647 | This is an error since --with-gstreamer was requested." "$LINENO" 5 ;; |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10648 | esac |
| 10649 | fi |
| 10650 | test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no} |
| 10651 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10652 | ALSALIBS="" |
| 10653 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10654 | 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] | 10655 | then |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5 |
| 10657 | $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] | 10658 | 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] | 10659 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10660 | else |
| 10661 | ac_check_lib_save_LIBS=$LIBS |
| 10662 | LIBS="-lasound $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10664 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10665 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10666 | /* Override any GCC internal prototype to avoid an error. |
| 10667 | Use char because int might match the return type of a GCC |
| 10668 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10669 | #ifdef __cplusplus |
| 10670 | extern "C" |
| 10671 | #endif |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10672 | char snd_pcm_hw_params_get_access_mask (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10673 | int |
| 10674 | main () |
| 10675 | { |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10676 | return snd_pcm_hw_params_get_access_mask (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10677 | ; |
| 10678 | return 0; |
| 10679 | } |
| 10680 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10681 | if ac_fn_c_try_link "$LINENO"; then : |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10682 | ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10683 | else |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10684 | ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10685 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10686 | rm -f core conftest.err conftest.$ac_objext \ |
| 10687 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10688 | LIBS=$ac_check_lib_save_LIBS |
| 10689 | fi |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5 |
| 10691 | $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] | 10692 | 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] | 10693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10694 | /* end confdefs.h. */ |
| 10695 | #ifdef HAVE_ALSA_ASOUNDLIB_H |
| 10696 | #include <alsa/asoundlib.h> |
| 10697 | #elif defined(HAVE_SYS_ASOUNDLIB_H) |
| 10698 | #include <sys/asoundlib.h> |
| 10699 | #endif |
| 10700 | int |
| 10701 | main () |
| 10702 | { |
Austin English | 8521ebe | 2011-06-13 21:26:40 -0700 | [diff] [blame] | 10703 | snd_pcm_hw_params_get_access_mask(NULL, NULL) |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10704 | ; |
| 10705 | return 0; |
| 10706 | } |
| 10707 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10708 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 255cc21 | 2011-03-28 22:07:26 +0200 | [diff] [blame] | 10709 | ALSALIBS="-lasound" |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10710 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10712 | fi |
| 10713 | |
| 10714 | fi |
| 10715 | |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10716 | if test "x$with_oss" != xno |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10717 | then |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10718 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10719 | if test -f /etc/oss.conf |
| 10720 | then |
| 10721 | . /etc/oss.conf |
| 10722 | fi |
| 10723 | ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include" |
| 10724 | CPPFLAGS="$CPPFLAGS $ac_oss_incl" |
| 10725 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" |
| 10726 | if test "x$ac_cv_header_sys_soundcard_h" = xyes; then : |
| 10727 | 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] | 10728 | " |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10729 | if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then : |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10730 | |
| 10731 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10732 | #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1 |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10733 | _ACEOF |
| 10734 | |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10735 | OSS4INCL="$ac_oss_incl" |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10736 | |
| 10737 | fi |
| 10738 | |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10739 | fi |
| 10740 | |
| 10741 | |
| 10742 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10743 | if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10744 | then |
| 10745 | as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported." |
| 10746 | fi |
| 10747 | fi |
| 10748 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10749 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 10750 | if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes" |
| 10751 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10753 | $as_echo_n "checking for -lcapi20... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10754 | if ${ac_cv_lib_soname_capi20+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10755 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10756 | else |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10757 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10758 | LIBS="-lcapi20 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10760 | /* end confdefs.h. */ |
| 10761 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10762 | /* Override any GCC internal prototype to avoid an error. |
| 10763 | Use char because int might match the return type of a GCC |
| 10764 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10765 | #ifdef __cplusplus |
| 10766 | extern "C" |
| 10767 | #endif |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10768 | char capi20_register (); |
| 10769 | int |
| 10770 | main () |
| 10771 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10772 | return capi20_register (); |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10773 | ; |
| 10774 | return 0; |
| 10775 | } |
| 10776 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10777 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10778 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10779 | 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] | 10780 | 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'` ;; |
| 10781 | *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10782 | esac |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10783 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10784 | rm -f core conftest.err conftest.$ac_objext \ |
| 10785 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10786 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10787 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10788 | if test "x$ac_cv_lib_soname_capi20" = "x"; then : |
| 10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10790 | $as_echo "not found" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10791 | |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10792 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10793 | { $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] | 10794 | $as_echo "$ac_cv_lib_soname_capi20" >&6; } |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10795 | |
| 10796 | cat >>confdefs.h <<_ACEOF |
| 10797 | #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20" |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10798 | _ACEOF |
| 10799 | |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10800 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10801 | fi |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10802 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10803 | if test "x$ac_cv_lib_soname_capi20" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10804 | case "x$with_capi" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10805 | 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] | 10806 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10807 | *) 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] | 10808 | This is an error since --with-capi was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10809 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10810 | fi |
| 10811 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10812 | CUPSINCL="" |
| 10813 | |
| 10814 | if test "x$with_cups" != "xno" |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10815 | then |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10816 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10817 | ac_cups_cflags=`cups-config --cflags 2>/dev/null` |
Alexandre Julliard | a991a56 | 2008-07-28 12:04:46 +0200 | [diff] [blame] | 10818 | ac_cups_libs=`cups-config --ldflags 2>/dev/null` |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10819 | CPPFLAGS="$CPPFLAGS $ac_cups_cflags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10820 | for ac_header in cups/cups.h |
| 10821 | do : |
| 10822 | 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] | 10823 | if test "x$ac_cv_header_cups_cups_h" = xyes; then : |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10824 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10825 | #define HAVE_CUPS_CUPS_H 1 |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10826 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10828 | $as_echo_n "checking for -lcups... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10829 | if ${ac_cv_lib_soname_cups+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10830 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10831 | else |
| 10832 | ac_check_soname_save_LIBS=$LIBS |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10833 | LIBS="-lcups $ac_cups_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10835 | /* end confdefs.h. */ |
| 10836 | |
| 10837 | /* Override any GCC internal prototype to avoid an error. |
| 10838 | Use char because int might match the return type of a GCC |
| 10839 | builtin and then its argument prototype would still apply. */ |
| 10840 | #ifdef __cplusplus |
| 10841 | extern "C" |
| 10842 | #endif |
| 10843 | char cupsGetDefault (); |
| 10844 | int |
| 10845 | main () |
| 10846 | { |
| 10847 | return cupsGetDefault (); |
| 10848 | ; |
| 10849 | return 0; |
| 10850 | } |
| 10851 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10852 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10853 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10854 | 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] | 10855 | 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'` ;; |
| 10856 | *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10857 | esac |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10858 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10859 | rm -f core conftest.err conftest.$ac_objext \ |
| 10860 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10861 | LIBS=$ac_check_soname_save_LIBS |
| 10862 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10863 | if test "x$ac_cv_lib_soname_cups" = "x"; then : |
| 10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10865 | $as_echo "not found" >&6; } |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10866 | |
| 10867 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10868 | { $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] | 10869 | $as_echo "$ac_cv_lib_soname_cups" >&6; } |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10870 | |
| 10871 | cat >>confdefs.h <<_ACEOF |
| 10872 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 10873 | _ACEOF |
| 10874 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10875 | CUPSINCL="$ac_cups_cflags" |
| 10876 | fi |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10877 | fi |
| 10878 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 10879 | done |
| 10880 | |
| 10881 | CPPFLAGS="$ac_save_CPPFLAGS" |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 10882 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10883 | if test "x$ac_cv_lib_soname_cups" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10884 | case "x$with_cups" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10885 | 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] | 10886 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10887 | *) 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] | 10888 | This is an error since --with-cups was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10889 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10890 | fi |
| 10891 | |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 10892 | if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes" |
| 10893 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10895 | $as_echo_n "checking for -lfontconfig... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10896 | if ${ac_cv_lib_soname_fontconfig+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10897 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 10898 | else |
| 10899 | ac_check_soname_save_LIBS=$LIBS |
| 10900 | LIBS="-lfontconfig $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 10902 | /* end confdefs.h. */ |
| 10903 | |
| 10904 | /* Override any GCC internal prototype to avoid an error. |
| 10905 | Use char because int might match the return type of a GCC |
| 10906 | builtin and then its argument prototype would still apply. */ |
| 10907 | #ifdef __cplusplus |
| 10908 | extern "C" |
| 10909 | #endif |
| 10910 | char FcInit (); |
| 10911 | int |
| 10912 | main () |
| 10913 | { |
| 10914 | return FcInit (); |
| 10915 | ; |
| 10916 | return 0; |
| 10917 | } |
| 10918 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10919 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 10920 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10921 | 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] | 10922 | 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'` ;; |
| 10923 | *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10924 | esac |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 10925 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10926 | rm -f core conftest.err conftest.$ac_objext \ |
| 10927 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 10928 | LIBS=$ac_check_soname_save_LIBS |
| 10929 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10930 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
| 10931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10932 | $as_echo "not found" >&6; } |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 10933 | |
| 10934 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10935 | { $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] | 10936 | $as_echo "$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 10937 | |
| 10938 | cat >>confdefs.h <<_ACEOF |
| 10939 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 10940 | _ACEOF |
| 10941 | |
| 10942 | |
| 10943 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10944 | elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno" |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 10945 | then |
| 10946 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10947 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 10948 | $as_unset ac_cv_header_fontconfig_fontconfig_h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10949 | for ac_header in fontconfig/fontconfig.h |
| 10950 | do : |
| 10951 | 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] | 10952 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 10953 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10954 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 10955 | _ACEOF |
| 10956 | |
| 10957 | fi |
| 10958 | |
| 10959 | done |
| 10960 | |
| 10961 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10962 | if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes" |
| 10963 | then |
| 10964 | FONTCONFIGINCL="$X_CFLAGS" |
| 10965 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10967 | $as_echo_n "checking for -lfontconfig... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10968 | if ${ac_cv_lib_soname_fontconfig+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10969 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 10970 | else |
| 10971 | ac_check_soname_save_LIBS=$LIBS |
| 10972 | LIBS="-lfontconfig $X_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 10974 | /* end confdefs.h. */ |
| 10975 | |
| 10976 | /* Override any GCC internal prototype to avoid an error. |
| 10977 | Use char because int might match the return type of a GCC |
| 10978 | builtin and then its argument prototype would still apply. */ |
| 10979 | #ifdef __cplusplus |
| 10980 | extern "C" |
| 10981 | #endif |
| 10982 | char FcInit (); |
| 10983 | int |
| 10984 | main () |
| 10985 | { |
| 10986 | return FcInit (); |
| 10987 | ; |
| 10988 | return 0; |
| 10989 | } |
| 10990 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10991 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 10992 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10993 | 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] | 10994 | 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'` ;; |
| 10995 | *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10996 | esac |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 10997 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10998 | rm -f core conftest.err conftest.$ac_objext \ |
| 10999 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11000 | LIBS=$ac_check_soname_save_LIBS |
| 11001 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11002 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
| 11003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11004 | $as_echo "not found" >&6; } |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11005 | |
| 11006 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11007 | { $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] | 11008 | $as_echo "$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11009 | |
| 11010 | cat >>confdefs.h <<_ACEOF |
| 11011 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 11012 | _ACEOF |
| 11013 | |
| 11014 | |
| 11015 | fi |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11016 | fi |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11017 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11018 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11019 | case "x$with_fontconfig" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11020 | 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] | 11021 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11022 | *) 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] | 11023 | This is an error since --with-fontconfig was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11024 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11025 | fi |
| 11026 | |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11027 | if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes" |
| 11028 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11030 | $as_echo_n "checking for -lssl... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11031 | if ${ac_cv_lib_soname_ssl+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11032 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11033 | else |
| 11034 | ac_check_soname_save_LIBS=$LIBS |
| 11035 | LIBS="-lssl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11037 | /* end confdefs.h. */ |
| 11038 | |
| 11039 | /* Override any GCC internal prototype to avoid an error. |
| 11040 | Use char because int might match the return type of a GCC |
| 11041 | builtin and then its argument prototype would still apply. */ |
| 11042 | #ifdef __cplusplus |
| 11043 | extern "C" |
| 11044 | #endif |
| 11045 | char SSL_library_init (); |
| 11046 | int |
| 11047 | main () |
| 11048 | { |
| 11049 | return SSL_library_init (); |
| 11050 | ; |
| 11051 | return 0; |
| 11052 | } |
| 11053 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11054 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11055 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11056 | 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] | 11057 | 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'` ;; |
| 11058 | *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11059 | esac |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11060 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11061 | rm -f core conftest.err conftest.$ac_objext \ |
| 11062 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11063 | LIBS=$ac_check_soname_save_LIBS |
| 11064 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11065 | if test "x$ac_cv_lib_soname_ssl" = "x"; then : |
| 11066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11067 | $as_echo "not found" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11068 | |
| 11069 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11070 | { $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] | 11071 | $as_echo "$ac_cv_lib_soname_ssl" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11072 | |
| 11073 | cat >>confdefs.h <<_ACEOF |
| 11074 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 11075 | _ACEOF |
| 11076 | |
| 11077 | |
| 11078 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11080 | $as_echo_n "checking for -lcrypto... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11081 | if ${ac_cv_lib_soname_crypto+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11082 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11083 | else |
| 11084 | ac_check_soname_save_LIBS=$LIBS |
| 11085 | LIBS="-lcrypto $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11087 | /* end confdefs.h. */ |
| 11088 | |
| 11089 | /* Override any GCC internal prototype to avoid an error. |
| 11090 | Use char because int might match the return type of a GCC |
| 11091 | builtin and then its argument prototype would still apply. */ |
| 11092 | #ifdef __cplusplus |
| 11093 | extern "C" |
| 11094 | #endif |
| 11095 | char BIO_new_socket (); |
| 11096 | int |
| 11097 | main () |
| 11098 | { |
| 11099 | return BIO_new_socket (); |
| 11100 | ; |
| 11101 | return 0; |
| 11102 | } |
| 11103 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11104 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11105 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11106 | 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] | 11107 | 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'` ;; |
| 11108 | *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11109 | esac |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11110 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11111 | rm -f core conftest.err conftest.$ac_objext \ |
| 11112 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11113 | LIBS=$ac_check_soname_save_LIBS |
| 11114 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11115 | if test "x$ac_cv_lib_soname_crypto" = "x"; then : |
| 11116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11117 | $as_echo "not found" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11118 | |
| 11119 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11120 | { $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] | 11121 | $as_echo "$ac_cv_lib_soname_crypto" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11122 | |
| 11123 | cat >>confdefs.h <<_ACEOF |
| 11124 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 11125 | _ACEOF |
| 11126 | |
| 11127 | |
| 11128 | fi |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11129 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11130 | 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] | 11131 | case "x$with_openssl" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11132 | 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] | 11133 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11134 | *) 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] | 11135 | This is an error since --with-openssl was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11136 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11137 | fi |
| 11138 | |
Maarten Lankhorst | c186d8a | 2009-08-05 11:35:50 +0200 | [diff] [blame] | 11139 | 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] | 11140 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5 |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11142 | $as_echo_n "checking for -lgsm... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11143 | if ${ac_cv_lib_soname_gsm+:} false; then : |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11144 | $as_echo_n "(cached) " >&6 |
| 11145 | else |
| 11146 | ac_check_soname_save_LIBS=$LIBS |
| 11147 | LIBS="-lgsm $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11149 | /* end confdefs.h. */ |
| 11150 | |
| 11151 | /* Override any GCC internal prototype to avoid an error. |
| 11152 | Use char because int might match the return type of a GCC |
| 11153 | builtin and then its argument prototype would still apply. */ |
| 11154 | #ifdef __cplusplus |
| 11155 | extern "C" |
| 11156 | #endif |
| 11157 | char gsm_create (); |
| 11158 | int |
| 11159 | main () |
| 11160 | { |
| 11161 | return gsm_create (); |
| 11162 | ; |
| 11163 | return 0; |
| 11164 | } |
| 11165 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11166 | if ac_fn_c_try_link "$LINENO"; then : |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11167 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11168 | 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] | 11169 | 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'` ;; |
| 11170 | *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11171 | esac |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11172 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11173 | rm -f core conftest.err conftest.$ac_objext \ |
| 11174 | conftest$ac_exeext conftest.$ac_ext |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11175 | LIBS=$ac_check_soname_save_LIBS |
| 11176 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11177 | if test "x$ac_cv_lib_soname_gsm" = "x"; then : |
| 11178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11179 | $as_echo "not found" >&6; } |
| 11180 | |
| 11181 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11182 | { $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] | 11183 | $as_echo "$ac_cv_lib_soname_gsm" >&6; } |
| 11184 | |
| 11185 | cat >>confdefs.h <<_ACEOF |
| 11186 | #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm" |
| 11187 | _ACEOF |
| 11188 | |
| 11189 | |
| 11190 | fi |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11191 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11192 | if test "x$ac_cv_lib_soname_gsm" = "x"; then : |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 11193 | case "x$with_gsm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11194 | 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] | 11195 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11196 | *) 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] | 11197 | This is an error since --with-gsm was requested." "$LINENO" 5 ;; |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11198 | esac |
| 11199 | fi |
| 11200 | |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11201 | if test "$ac_cv_header_jpeglib_h" = "yes" |
| 11202 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11204 | $as_echo_n "checking for -ljpeg... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11205 | if ${ac_cv_lib_soname_jpeg+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11206 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11207 | else |
| 11208 | ac_check_soname_save_LIBS=$LIBS |
| 11209 | LIBS="-ljpeg $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11211 | /* end confdefs.h. */ |
| 11212 | |
| 11213 | /* Override any GCC internal prototype to avoid an error. |
| 11214 | Use char because int might match the return type of a GCC |
| 11215 | builtin and then its argument prototype would still apply. */ |
| 11216 | #ifdef __cplusplus |
| 11217 | extern "C" |
| 11218 | #endif |
| 11219 | char jpeg_start_decompress (); |
| 11220 | int |
| 11221 | main () |
| 11222 | { |
| 11223 | return jpeg_start_decompress (); |
| 11224 | ; |
| 11225 | return 0; |
| 11226 | } |
| 11227 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11228 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11229 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11230 | 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] | 11231 | 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'` ;; |
| 11232 | *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11233 | esac |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11234 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11235 | rm -f core conftest.err conftest.$ac_objext \ |
| 11236 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11237 | LIBS=$ac_check_soname_save_LIBS |
| 11238 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11239 | if test "x$ac_cv_lib_soname_jpeg" = "x"; then : |
| 11240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11241 | $as_echo "not found" >&6; } |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11242 | |
| 11243 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11244 | { $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] | 11245 | $as_echo "$ac_cv_lib_soname_jpeg" >&6; } |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11246 | |
| 11247 | cat >>confdefs.h <<_ACEOF |
| 11248 | #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg" |
| 11249 | _ACEOF |
| 11250 | |
| 11251 | |
| 11252 | fi |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11253 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11254 | if test "x$ac_cv_lib_soname_jpeg" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11255 | case "x$with_jpeg" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11256 | 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] | 11257 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11258 | *) 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] | 11259 | This is an error since --with-jpeg was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11260 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11261 | fi |
| 11262 | |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11263 | if test "$ac_cv_header_png_h" = "yes" |
| 11264 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11266 | $as_echo_n "checking for -lpng... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11267 | if ${ac_cv_lib_soname_png+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11268 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11269 | else |
| 11270 | ac_check_soname_save_LIBS=$LIBS |
Austin English | fe8879e | 2008-12-28 19:10:19 -0600 | [diff] [blame] | 11271 | LIBS="-lpng -lm -lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11273 | /* end confdefs.h. */ |
| 11274 | |
| 11275 | /* Override any GCC internal prototype to avoid an error. |
| 11276 | Use char because int might match the return type of a GCC |
| 11277 | builtin and then its argument prototype would still apply. */ |
| 11278 | #ifdef __cplusplus |
| 11279 | extern "C" |
| 11280 | #endif |
| 11281 | char png_create_read_struct (); |
| 11282 | int |
| 11283 | main () |
| 11284 | { |
| 11285 | return png_create_read_struct (); |
| 11286 | ; |
| 11287 | return 0; |
| 11288 | } |
| 11289 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11290 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11291 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11292 | 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] | 11293 | 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'` ;; |
| 11294 | *) 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'` ;; |
| 11295 | esac |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11296 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11297 | rm -f core conftest.err conftest.$ac_objext \ |
| 11298 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11299 | LIBS=$ac_check_soname_save_LIBS |
| 11300 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11301 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
| 11302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11303 | $as_echo "not found" >&6; } |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11304 | |
| 11305 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11306 | { $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] | 11307 | $as_echo "$ac_cv_lib_soname_png" >&6; } |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11308 | |
| 11309 | cat >>confdefs.h <<_ACEOF |
| 11310 | #define SONAME_LIBPNG "$ac_cv_lib_soname_png" |
| 11311 | _ACEOF |
| 11312 | |
| 11313 | |
| 11314 | fi |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5 |
| 11316 | $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] | 11317 | 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] | 11318 | $as_echo_n "(cached) " >&6 |
| 11319 | else |
| 11320 | ac_check_lib_save_LIBS=$LIBS |
| 11321 | LIBS="-lpng -lm -lz $LIBS" |
| 11322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11323 | /* end confdefs.h. */ |
| 11324 | |
| 11325 | /* Override any GCC internal prototype to avoid an error. |
| 11326 | Use char because int might match the return type of a GCC |
| 11327 | builtin and then its argument prototype would still apply. */ |
| 11328 | #ifdef __cplusplus |
| 11329 | extern "C" |
| 11330 | #endif |
| 11331 | char png_set_expand_gray_1_2_4_to_8 (); |
| 11332 | int |
| 11333 | main () |
| 11334 | { |
| 11335 | return png_set_expand_gray_1_2_4_to_8 (); |
| 11336 | ; |
| 11337 | return 0; |
| 11338 | } |
| 11339 | _ACEOF |
| 11340 | if ac_fn_c_try_link "$LINENO"; then : |
| 11341 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes |
| 11342 | else |
| 11343 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no |
| 11344 | fi |
| 11345 | rm -f core conftest.err conftest.$ac_objext \ |
| 11346 | conftest$ac_exeext conftest.$ac_ext |
| 11347 | LIBS=$ac_check_lib_save_LIBS |
| 11348 | fi |
| 11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5 |
| 11350 | $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] | 11351 | 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] | 11352 | |
| 11353 | $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h |
| 11354 | |
| 11355 | |
| 11356 | fi |
| 11357 | |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11358 | elif test -n "$X_CFLAGS" -a "x$with_png" != "xno" |
| 11359 | then |
| 11360 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11361 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11362 | $as_unset ac_cv_header_png_h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11363 | for ac_header in png.h |
| 11364 | do : |
| 11365 | 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] | 11366 | 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] | 11367 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11368 | #define HAVE_PNG_H 1 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11369 | _ACEOF |
| 11370 | |
| 11371 | fi |
| 11372 | |
| 11373 | done |
| 11374 | |
| 11375 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11376 | if test "$ac_cv_header_png_h" = "yes" |
| 11377 | then |
| 11378 | PNGINCL="$X_CFLAGS" |
| 11379 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11380 | { $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] | 11381 | $as_echo_n "checking for -lpng... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11382 | if ${ac_cv_lib_soname_png+:} false; then : |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11383 | $as_echo_n "(cached) " >&6 |
| 11384 | else |
| 11385 | ac_check_soname_save_LIBS=$LIBS |
| 11386 | LIBS="-lpng $X_LIBS -lm -lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11388 | /* end confdefs.h. */ |
| 11389 | |
| 11390 | /* Override any GCC internal prototype to avoid an error. |
| 11391 | Use char because int might match the return type of a GCC |
| 11392 | builtin and then its argument prototype would still apply. */ |
| 11393 | #ifdef __cplusplus |
| 11394 | extern "C" |
| 11395 | #endif |
| 11396 | char png_create_read_struct (); |
| 11397 | int |
| 11398 | main () |
| 11399 | { |
| 11400 | return png_create_read_struct (); |
| 11401 | ; |
| 11402 | return 0; |
| 11403 | } |
| 11404 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11405 | if ac_fn_c_try_link "$LINENO"; then : |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11406 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11407 | 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] | 11408 | 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'` ;; |
| 11409 | *) 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'` ;; |
| 11410 | esac |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11411 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11412 | rm -f core conftest.err conftest.$ac_objext \ |
| 11413 | conftest$ac_exeext conftest.$ac_ext |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11414 | LIBS=$ac_check_soname_save_LIBS |
| 11415 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11416 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
| 11417 | { $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] | 11418 | $as_echo "not found" >&6; } |
| 11419 | |
| 11420 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11421 | { $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] | 11422 | $as_echo "$ac_cv_lib_soname_png" >&6; } |
| 11423 | |
| 11424 | cat >>confdefs.h <<_ACEOF |
| 11425 | #define SONAME_LIBPNG "$ac_cv_lib_soname_png" |
| 11426 | _ACEOF |
| 11427 | |
| 11428 | |
| 11429 | fi |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5 |
| 11431 | $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] | 11432 | 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] | 11433 | $as_echo_n "(cached) " >&6 |
| 11434 | else |
| 11435 | ac_check_lib_save_LIBS=$LIBS |
| 11436 | LIBS="-lpng $X_LIBS -lm -lz $LIBS" |
| 11437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11438 | /* end confdefs.h. */ |
| 11439 | |
| 11440 | /* Override any GCC internal prototype to avoid an error. |
| 11441 | Use char because int might match the return type of a GCC |
| 11442 | builtin and then its argument prototype would still apply. */ |
| 11443 | #ifdef __cplusplus |
| 11444 | extern "C" |
| 11445 | #endif |
| 11446 | char png_set_expand_gray_1_2_4_to_8 (); |
| 11447 | int |
| 11448 | main () |
| 11449 | { |
| 11450 | return png_set_expand_gray_1_2_4_to_8 (); |
| 11451 | ; |
| 11452 | return 0; |
| 11453 | } |
| 11454 | _ACEOF |
| 11455 | if ac_fn_c_try_link "$LINENO"; then : |
| 11456 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes |
| 11457 | else |
| 11458 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no |
| 11459 | fi |
| 11460 | rm -f core conftest.err conftest.$ac_objext \ |
| 11461 | conftest$ac_exeext conftest.$ac_ext |
| 11462 | LIBS=$ac_check_lib_save_LIBS |
| 11463 | fi |
| 11464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5 |
| 11465 | $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] | 11466 | 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] | 11467 | $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h |
| 11468 | |
| 11469 | fi |
| 11470 | |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11471 | fi |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11472 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11473 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11474 | case "x$with_png" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11475 | 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] | 11476 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11477 | *) 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] | 11478 | This is an error since --with-png was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11479 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11480 | fi |
| 11481 | |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11482 | if test "$ac_cv_header_tiffio_h" = "yes" |
| 11483 | then |
| 11484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5 |
| 11485 | $as_echo_n "checking for -ltiff... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11486 | if ${ac_cv_lib_soname_tiff+:} false; then : |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11487 | $as_echo_n "(cached) " >&6 |
| 11488 | else |
| 11489 | ac_check_soname_save_LIBS=$LIBS |
| 11490 | LIBS="-ltiff $LIBS" |
| 11491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11492 | /* end confdefs.h. */ |
| 11493 | |
| 11494 | /* Override any GCC internal prototype to avoid an error. |
| 11495 | Use char because int might match the return type of a GCC |
| 11496 | builtin and then its argument prototype would still apply. */ |
| 11497 | #ifdef __cplusplus |
| 11498 | extern "C" |
| 11499 | #endif |
| 11500 | char TIFFClientOpen (); |
| 11501 | int |
| 11502 | main () |
| 11503 | { |
| 11504 | return TIFFClientOpen (); |
| 11505 | ; |
| 11506 | return 0; |
| 11507 | } |
| 11508 | _ACEOF |
| 11509 | if ac_fn_c_try_link "$LINENO"; then : |
| 11510 | case "$LIBEXT" in |
| 11511 | dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
| 11512 | 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'` ;; |
| 11513 | *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11514 | esac |
| 11515 | fi |
| 11516 | rm -f core conftest.err conftest.$ac_objext \ |
| 11517 | conftest$ac_exeext conftest.$ac_ext |
| 11518 | LIBS=$ac_check_soname_save_LIBS |
| 11519 | fi |
| 11520 | if test "x$ac_cv_lib_soname_tiff" = "x"; then : |
| 11521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11522 | $as_echo "not found" >&6; } |
| 11523 | |
| 11524 | else |
| 11525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5 |
| 11526 | $as_echo "$ac_cv_lib_soname_tiff" >&6; } |
| 11527 | |
| 11528 | cat >>confdefs.h <<_ACEOF |
| 11529 | #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff" |
| 11530 | _ACEOF |
| 11531 | |
| 11532 | |
| 11533 | fi |
| 11534 | fi |
| 11535 | if test "x$ac_cv_lib_soname_tiff" = "x"; then : |
| 11536 | case "x$with_tiff" in |
| 11537 | x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;; |
| 11538 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11539 | *) 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] | 11540 | This is an error since --with-tiff was requested." "$LINENO" 5 ;; |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11541 | esac |
| 11542 | fi |
| 11543 | |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11544 | if test "$ac_cv_header_mpg123_h" = "yes" |
| 11545 | then |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5 |
| 11547 | $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11548 | if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then : |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11549 | $as_echo_n "(cached) " >&6 |
| 11550 | else |
| 11551 | ac_check_lib_save_LIBS=$LIBS |
| 11552 | LIBS="-lmpg123 $LIBS" |
| 11553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11554 | /* end confdefs.h. */ |
| 11555 | |
| 11556 | /* Override any GCC internal prototype to avoid an error. |
| 11557 | Use char because int might match the return type of a GCC |
| 11558 | builtin and then its argument prototype would still apply. */ |
| 11559 | #ifdef __cplusplus |
| 11560 | extern "C" |
| 11561 | #endif |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11562 | char mpg123_feed (); |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11563 | int |
| 11564 | main () |
| 11565 | { |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11566 | return mpg123_feed (); |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11567 | ; |
| 11568 | return 0; |
| 11569 | } |
| 11570 | _ACEOF |
| 11571 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11572 | ac_cv_lib_mpg123_mpg123_feed=yes |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11573 | else |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11574 | ac_cv_lib_mpg123_mpg123_feed=no |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11575 | fi |
| 11576 | rm -f core conftest.err conftest.$ac_objext \ |
| 11577 | conftest$ac_exeext conftest.$ac_ext |
| 11578 | LIBS=$ac_check_lib_save_LIBS |
| 11579 | fi |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5 |
| 11581 | $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11582 | if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then : |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11583 | LIBMPG123="-lmpg123" |
| 11584 | |
| 11585 | fi |
| 11586 | |
| 11587 | fi |
Aric Stewart | 4430ab4 | 2010-03-17 10:58:32 -0500 | [diff] [blame] | 11588 | 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] | 11589 | case "x$with_mpg123" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11590 | 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] | 11591 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11592 | *) 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] | 11593 | This is an error since --with-mpg123 was requested." "$LINENO" 5 ;; |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11594 | esac |
| 11595 | fi |
Kristofer Henriksson | c58eff6 | 2010-05-24 15:04:42 -0400 | [diff] [blame] | 11596 | 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] | 11597 | |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11598 | if test "$ac_cv_header_AL_al_h" = "yes" |
| 11599 | then |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5 |
| 11601 | $as_echo_n "checking for -lopenal... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11602 | if ${ac_cv_lib_soname_openal+:} false; then : |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11603 | $as_echo_n "(cached) " >&6 |
| 11604 | else |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11605 | ac_check_soname_save_LIBS=$LIBS |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11606 | LIBS="-lopenal $LIBS" |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11608 | /* end confdefs.h. */ |
| 11609 | |
| 11610 | /* Override any GCC internal prototype to avoid an error. |
| 11611 | Use char because int might match the return type of a GCC |
| 11612 | builtin and then its argument prototype would still apply. */ |
| 11613 | #ifdef __cplusplus |
| 11614 | extern "C" |
| 11615 | #endif |
| 11616 | char alGetSource3i (); |
| 11617 | int |
| 11618 | main () |
| 11619 | { |
| 11620 | return alGetSource3i (); |
| 11621 | ; |
| 11622 | return 0; |
| 11623 | } |
| 11624 | _ACEOF |
| 11625 | if ac_fn_c_try_link "$LINENO"; then : |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11626 | case "$LIBEXT" in |
| 11627 | dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
| 11628 | 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'` ;; |
| 11629 | *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11630 | esac |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11631 | fi |
| 11632 | rm -f core conftest.err conftest.$ac_objext \ |
| 11633 | conftest$ac_exeext conftest.$ac_ext |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11634 | LIBS=$ac_check_soname_save_LIBS |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11635 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11636 | if test "x$ac_cv_lib_soname_openal" = "x"; then : |
| 11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11638 | $as_echo "not found" >&6; } |
| 11639 | |
| 11640 | else |
| 11641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5 |
| 11642 | $as_echo "$ac_cv_lib_soname_openal" >&6; } |
| 11643 | |
| 11644 | cat >>confdefs.h <<_ACEOF |
| 11645 | #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal" |
| 11646 | _ACEOF |
| 11647 | |
| 11648 | LIBOPENAL="-lopenal" |
| 11649 | |
| 11650 | ac_cv_lib_openal=yes |
| 11651 | |
| 11652 | cat >>confdefs.h <<_ACEOF |
| 11653 | #define HAVE_OPENAL 1 |
| 11654 | _ACEOF |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11655 | |
| 11656 | fi |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11657 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11658 | if test "x$ac_cv_lib_openal" != xyes; then : |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11659 | case "x$with_openal" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11660 | 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] | 11661 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11662 | *) 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] | 11663 | This is an error since --with-openal was requested." "$LINENO" 5 ;; |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11664 | esac |
| 11665 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11666 | test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no} |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11667 | |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11668 | if test "$ac_cv_header_kstat_h" = "yes" |
| 11669 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11670 | { $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] | 11671 | $as_echo_n "checking for kstat_open in -lkstat... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11672 | if ${ac_cv_lib_kstat_kstat_open+:} false; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11673 | $as_echo_n "(cached) " >&6 |
| 11674 | else |
| 11675 | ac_check_lib_save_LIBS=$LIBS |
| 11676 | LIBS="-lkstat $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11678 | /* end confdefs.h. */ |
| 11679 | |
| 11680 | /* Override any GCC internal prototype to avoid an error. |
| 11681 | Use char because int might match the return type of a GCC |
| 11682 | builtin and then its argument prototype would still apply. */ |
| 11683 | #ifdef __cplusplus |
| 11684 | extern "C" |
| 11685 | #endif |
| 11686 | char kstat_open (); |
| 11687 | int |
| 11688 | main () |
| 11689 | { |
| 11690 | return kstat_open (); |
| 11691 | ; |
| 11692 | return 0; |
| 11693 | } |
| 11694 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11695 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11696 | ac_cv_lib_kstat_kstat_open=yes |
| 11697 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11698 | ac_cv_lib_kstat_kstat_open=no |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11699 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11700 | rm -f core conftest.err conftest.$ac_objext \ |
| 11701 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11702 | LIBS=$ac_check_lib_save_LIBS |
| 11703 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11704 | { $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] | 11705 | $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11706 | if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11707 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11708 | $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11709 | |
| 11710 | LIBKSTAT="-lkstat" |
| 11711 | |
| 11712 | fi |
| 11713 | |
| 11714 | fi |
| 11715 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11717 | $as_echo_n "checking for -lodbc... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11718 | if ${ac_cv_lib_soname_odbc+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11719 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11720 | else |
| 11721 | ac_check_soname_save_LIBS=$LIBS |
| 11722 | LIBS="-lodbc $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11724 | /* end confdefs.h. */ |
| 11725 | |
| 11726 | /* Override any GCC internal prototype to avoid an error. |
| 11727 | Use char because int might match the return type of a GCC |
| 11728 | builtin and then its argument prototype would still apply. */ |
| 11729 | #ifdef __cplusplus |
| 11730 | extern "C" |
| 11731 | #endif |
| 11732 | char SQLConnect (); |
| 11733 | int |
| 11734 | main () |
| 11735 | { |
| 11736 | return SQLConnect (); |
| 11737 | ; |
| 11738 | return 0; |
| 11739 | } |
| 11740 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11741 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11742 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11743 | 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] | 11744 | 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'` ;; |
| 11745 | *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11746 | esac |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11747 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11748 | rm -f core conftest.err conftest.$ac_objext \ |
| 11749 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11750 | LIBS=$ac_check_soname_save_LIBS |
| 11751 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11752 | if test "x$ac_cv_lib_soname_odbc" = "x"; then : |
| 11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11754 | $as_echo "not found" >&6; } |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11755 | cat >>confdefs.h <<_ACEOF |
| 11756 | #define SONAME_LIBODBC "libodbc.$LIBEXT" |
| 11757 | _ACEOF |
| 11758 | |
| 11759 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11760 | { $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] | 11761 | $as_echo "$ac_cv_lib_soname_odbc" >&6; } |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11762 | |
| 11763 | cat >>confdefs.h <<_ACEOF |
| 11764 | #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc" |
| 11765 | _ACEOF |
| 11766 | |
| 11767 | |
| 11768 | fi |
| 11769 | |
Alexandre Julliard | 98cb21f | 2011-03-17 11:42:17 +0100 | [diff] [blame] | 11770 | test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no} |
| 11771 | test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no} |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 11772 | 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] | 11773 | test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no} |
| 11774 | |
Austin English | eb17b8c | 2011-07-23 23:05:04 -0500 | [diff] [blame] | 11775 | if test "x$ALSALIBS$COREAUDIO" = "x" -a \ |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 11776 | "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \ |
Andrew Eikum | 55f9ac8 | 2011-07-13 14:20:47 -0500 | [diff] [blame] | 11777 | "x$with_alsa$with_coreaudio$with_oss" != xnonono |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11778 | then |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11779 | 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] | 11780 | fi |
| 11781 | |
| 11782 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 11783 | EXTRACFLAGS="" |
| 11784 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11785 | if test "x${GCC}" = "xyes" |
| 11786 | then |
Hans Leidekker | d17b232 | 2004-01-06 21:37:44 +0000 | [diff] [blame] | 11787 | EXTRACFLAGS="-Wall -pipe" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 11788 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11789 | { $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] | 11790 | $as_echo_n "checking for gcc strength-reduce bug... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11791 | if ${ac_cv_c_gcc_strength_bug+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11792 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11793 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11794 | if test "$cross_compiling" = yes; then : |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11795 | ac_cv_c_gcc_strength_bug="yes" |
| 11796 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11798 | /* end confdefs.h. */ |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 11799 | int L[4] = {0,1,2,3}; |
| 11800 | int |
| 11801 | main () |
| 11802 | { |
| 11803 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11804 | unsigned int B = 3; |
| 11805 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 11806 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 11807 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 11808 | L[i] = 4; |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 11809 | return (Array[1] != -2 || L[2] != 3) |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 11810 | ; |
| 11811 | return 0; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11812 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11813 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11814 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11815 | ac_cv_c_gcc_strength_bug="no" |
| 11816 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11817 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11818 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11819 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11820 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11821 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11822 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11823 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11824 | { $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] | 11825 | $as_echo "$ac_cv_c_gcc_strength_bug" >&6; } |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11826 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 11827 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 11828 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11829 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 11830 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11831 | { $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] | 11832 | $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11833 | if ${ac_cv_cflags__fno_builtin+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11834 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11835 | else |
| 11836 | ac_wine_try_cflags_saved=$CFLAGS |
| 11837 | CFLAGS="$CFLAGS -fno-builtin" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11839 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 11840 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11841 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11842 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11843 | ac_cv_cflags__fno_builtin=yes |
| 11844 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11845 | ac_cv_cflags__fno_builtin=no |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11846 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11847 | rm -f core conftest.err conftest.$ac_objext \ |
| 11848 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11849 | CFLAGS=$ac_wine_try_cflags_saved |
| 11850 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11851 | { $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] | 11852 | $as_echo "$ac_cv_cflags__fno_builtin" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11853 | if test $ac_cv_cflags__fno_builtin = yes; then : |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 11854 | BUILTINFLAG="-fno-builtin" |
| 11855 | |
| 11856 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11857 | { $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] | 11858 | $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11859 | if ${ac_cv_cflags__fno_strict_aliasing+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11860 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 11861 | else |
| 11862 | ac_wine_try_cflags_saved=$CFLAGS |
| 11863 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 11865 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 11866 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 11867 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11868 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 11869 | ac_cv_cflags__fno_strict_aliasing=yes |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 11870 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11871 | ac_cv_cflags__fno_strict_aliasing=no |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 11872 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11873 | rm -f core conftest.err conftest.$ac_objext \ |
| 11874 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 11875 | CFLAGS=$ac_wine_try_cflags_saved |
| 11876 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11877 | { $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] | 11878 | $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11879 | if test $ac_cv_cflags__fno_strict_aliasing = yes; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 11880 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 11881 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11882 | { $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] | 11883 | $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11884 | if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11885 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 11886 | else |
| 11887 | ac_wine_try_cflags_saved=$CFLAGS |
| 11888 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 11890 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 11891 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 11892 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11893 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 11894 | ac_cv_cflags__Wdeclaration_after_statement=yes |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 11895 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11896 | ac_cv_cflags__Wdeclaration_after_statement=no |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 11897 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11898 | rm -f core conftest.err conftest.$ac_objext \ |
| 11899 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 11900 | CFLAGS=$ac_wine_try_cflags_saved |
| 11901 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11902 | { $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] | 11903 | $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11904 | if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 11905 | EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement" |
| 11906 | fi |
Gerald Pfeifer | 8213f54 | 2011-05-08 02:53:23 +0200 | [diff] [blame] | 11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5 |
| 11908 | $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; } |
| 11909 | if ${ac_cv_cflags__Wempty_body+:} false; then : |
| 11910 | $as_echo_n "(cached) " >&6 |
| 11911 | else |
| 11912 | ac_wine_try_cflags_saved=$CFLAGS |
| 11913 | CFLAGS="$CFLAGS -Wempty-body" |
| 11914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11915 | /* end confdefs.h. */ |
| 11916 | int main(int argc, char **argv) { return 0; } |
| 11917 | _ACEOF |
| 11918 | if ac_fn_c_try_link "$LINENO"; then : |
| 11919 | ac_cv_cflags__Wempty_body=yes |
| 11920 | else |
| 11921 | ac_cv_cflags__Wempty_body=no |
| 11922 | fi |
| 11923 | rm -f core conftest.err conftest.$ac_objext \ |
| 11924 | conftest$ac_exeext conftest.$ac_ext |
| 11925 | CFLAGS=$ac_wine_try_cflags_saved |
| 11926 | fi |
| 11927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5 |
| 11928 | $as_echo "$ac_cv_cflags__Wempty_body" >&6; } |
| 11929 | if test $ac_cv_cflags__Wempty_body = yes; then : |
| 11930 | EXTRACFLAGS="$EXTRACFLAGS -Wempty-body" |
| 11931 | fi |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 11932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5 |
| 11933 | $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11934 | if ${ac_cv_cflags__Wstrict_prototypes+:} false; then : |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 11935 | $as_echo_n "(cached) " >&6 |
| 11936 | else |
| 11937 | ac_wine_try_cflags_saved=$CFLAGS |
| 11938 | CFLAGS="$CFLAGS -Wstrict-prototypes" |
| 11939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11940 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 11941 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 11942 | _ACEOF |
| 11943 | if ac_fn_c_try_link "$LINENO"; then : |
| 11944 | ac_cv_cflags__Wstrict_prototypes=yes |
| 11945 | else |
| 11946 | ac_cv_cflags__Wstrict_prototypes=no |
| 11947 | fi |
| 11948 | rm -f core conftest.err conftest.$ac_objext \ |
| 11949 | conftest$ac_exeext conftest.$ac_ext |
| 11950 | CFLAGS=$ac_wine_try_cflags_saved |
| 11951 | fi |
| 11952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5 |
| 11953 | $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; } |
| 11954 | if test $ac_cv_cflags__Wstrict_prototypes = yes; then : |
| 11955 | EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes" |
| 11956 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11957 | { $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] | 11958 | $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11959 | if ${ac_cv_cflags__Wtype_limits+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11960 | $as_echo_n "(cached) " >&6 |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 11961 | else |
| 11962 | ac_wine_try_cflags_saved=$CFLAGS |
| 11963 | CFLAGS="$CFLAGS -Wtype-limits" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 11965 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 11966 | int main(int argc, char **argv) { return 0; } |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 11967 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11968 | if ac_fn_c_try_link "$LINENO"; then : |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 11969 | ac_cv_cflags__Wtype_limits=yes |
| 11970 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11971 | ac_cv_cflags__Wtype_limits=no |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 11972 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11973 | rm -f core conftest.err conftest.$ac_objext \ |
| 11974 | conftest$ac_exeext conftest.$ac_ext |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 11975 | CFLAGS=$ac_wine_try_cflags_saved |
| 11976 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11977 | { $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] | 11978 | $as_echo "$ac_cv_cflags__Wtype_limits" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11979 | if test $ac_cv_cflags__Wtype_limits = yes; then : |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 11980 | EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits" |
| 11981 | fi |
Gerald Pfeifer | 3ec82c5 | 2011-04-10 20:38:52 +0200 | [diff] [blame] | 11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5 |
| 11983 | $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] | 11984 | if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then : |
Gerald Pfeifer | 3ec82c5 | 2011-04-10 20:38:52 +0200 | [diff] [blame] | 11985 | $as_echo_n "(cached) " >&6 |
| 11986 | else |
| 11987 | ac_wine_try_cflags_saved=$CFLAGS |
| 11988 | CFLAGS="$CFLAGS -Wunused-but-set-parameter" |
| 11989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11990 | /* end confdefs.h. */ |
| 11991 | int main(int argc, char **argv) { return 0; } |
| 11992 | _ACEOF |
| 11993 | if ac_fn_c_try_link "$LINENO"; then : |
| 11994 | ac_cv_cflags__Wunused_but_set_parameter=yes |
| 11995 | else |
| 11996 | ac_cv_cflags__Wunused_but_set_parameter=no |
| 11997 | fi |
| 11998 | rm -f core conftest.err conftest.$ac_objext \ |
| 11999 | conftest$ac_exeext conftest.$ac_ext |
| 12000 | CFLAGS=$ac_wine_try_cflags_saved |
| 12001 | fi |
| 12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5 |
| 12003 | $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; } |
| 12004 | if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then : |
| 12005 | EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter" |
| 12006 | fi |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5 |
| 12008 | $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12009 | if ${ac_cv_cflags__Wwrite_strings+:} false; then : |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12010 | $as_echo_n "(cached) " >&6 |
| 12011 | else |
| 12012 | ac_wine_try_cflags_saved=$CFLAGS |
| 12013 | CFLAGS="$CFLAGS -Wwrite-strings" |
| 12014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12015 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12016 | int main(int argc, char **argv) { return 0; } |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12017 | _ACEOF |
| 12018 | if ac_fn_c_try_link "$LINENO"; then : |
| 12019 | ac_cv_cflags__Wwrite_strings=yes |
| 12020 | else |
| 12021 | ac_cv_cflags__Wwrite_strings=no |
| 12022 | fi |
| 12023 | rm -f core conftest.err conftest.$ac_objext \ |
| 12024 | conftest$ac_exeext conftest.$ac_ext |
| 12025 | CFLAGS=$ac_wine_try_cflags_saved |
| 12026 | fi |
| 12027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5 |
| 12028 | $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; } |
| 12029 | if test $ac_cv_cflags__Wwrite_strings = yes; then : |
| 12030 | EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings" |
| 12031 | fi |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12032 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12033 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12034 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5 |
| 12036 | $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] | 12037 | if ${ac_cv_c_string_h_warnings+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12038 | $as_echo_n "(cached) " >&6 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12039 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12041 | /* end confdefs.h. */ |
| 12042 | #include <string.h> |
| 12043 | int |
| 12044 | main () |
| 12045 | { |
| 12046 | |
| 12047 | ; |
| 12048 | return 0; |
| 12049 | } |
| 12050 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12051 | if ac_fn_c_try_compile "$LINENO"; then : |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12052 | ac_cv_c_string_h_warnings=no |
| 12053 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12054 | ac_cv_c_string_h_warnings=yes |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12055 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12057 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12058 | { $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] | 12059 | $as_echo "$ac_cv_c_string_h_warnings" >&6; } |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12060 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12061 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 12062 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12063 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12064 | fi |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12065 | |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12066 | saved_CFLAGS="$CFLAGS" |
| 12067 | CFLAGS="$CFLAGS -Wlogical-op -Werror" |
| 12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5 |
| 12069 | $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] | 12070 | if ${ac_cv_c_logicalop_noisy+:} false; then : |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12071 | $as_echo_n "(cached) " >&6 |
| 12072 | else |
| 12073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12074 | /* end confdefs.h. */ |
| 12075 | #include <string.h> |
| 12076 | int |
| 12077 | main () |
| 12078 | { |
| 12079 | char*f(const char *h,char n) {return strchr(h,n);} |
| 12080 | ; |
| 12081 | return 0; |
| 12082 | } |
| 12083 | _ACEOF |
| 12084 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12085 | ac_cv_c_logicalop_noisy=no |
| 12086 | else |
| 12087 | ac_cv_c_logicalop_noisy=yes |
| 12088 | fi |
| 12089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12090 | fi |
| 12091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5 |
| 12092 | $as_echo "$ac_cv_c_logicalop_noisy" >&6; } |
| 12093 | CFLAGS="$saved_CFLAGS" |
| 12094 | if test "$ac_cv_c_logicalop_noisy" = "no" |
| 12095 | then |
| 12096 | EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op" |
| 12097 | fi |
| 12098 | |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 12099 | if test "x$enable_maintainer_mode" = "xyes" |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12100 | then |
| 12101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5 |
| 12102 | $as_echo_n "checking whether the compiler supports -Werror... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12103 | if ${ac_cv_cflags__Werror+:} false; then : |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12104 | $as_echo_n "(cached) " >&6 |
| 12105 | else |
| 12106 | ac_wine_try_cflags_saved=$CFLAGS |
| 12107 | CFLAGS="$CFLAGS -Werror" |
| 12108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12109 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12110 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12111 | _ACEOF |
| 12112 | if ac_fn_c_try_link "$LINENO"; then : |
| 12113 | ac_cv_cflags__Werror=yes |
| 12114 | else |
| 12115 | ac_cv_cflags__Werror=no |
| 12116 | fi |
| 12117 | rm -f core conftest.err conftest.$ac_objext \ |
| 12118 | conftest$ac_exeext conftest.$ac_ext |
| 12119 | CFLAGS=$ac_wine_try_cflags_saved |
| 12120 | fi |
| 12121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5 |
| 12122 | $as_echo "$ac_cv_cflags__Werror" >&6; } |
| 12123 | if test $ac_cv_cflags__Werror = yes; then : |
| 12124 | EXTRACFLAGS="$EXTRACFLAGS -Werror" |
| 12125 | fi |
| 12126 | fi |
Stefan Dösinger | fdac5e5 | 2009-09-12 14:08:53 +0200 | [diff] [blame] | 12127 | |
| 12128 | saved_CFLAGS="$CFLAGS" |
| 12129 | CFLAGS="$CFLAGS -Werror" |
| 12130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5 |
| 12131 | $as_echo_n "checking for ms_hook_prologue attribute... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12132 | if ${ac_cv_have_ms_hook_prologue+:} false; then : |
Stefan Dösinger | fdac5e5 | 2009-09-12 14:08:53 +0200 | [diff] [blame] | 12133 | $as_echo_n "(cached) " >&6 |
| 12134 | else |
| 12135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12136 | /* end confdefs.h. */ |
| 12137 | int __attribute__((__ms_hook_prologue__)) test(void) { return 0; } |
| 12138 | int |
| 12139 | main () |
| 12140 | { |
| 12141 | |
| 12142 | ; |
| 12143 | return 0; |
| 12144 | } |
| 12145 | _ACEOF |
| 12146 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12147 | ac_cv_have_ms_hook_prologue="yes" |
| 12148 | else |
| 12149 | ac_cv_have_ms_hook_prologue="no" |
| 12150 | fi |
| 12151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12152 | fi |
| 12153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5 |
| 12154 | $as_echo "$ac_cv_have_ms_hook_prologue" >&6; } |
| 12155 | CFLAGS="$saved_CFLAGS" |
| 12156 | if test "$ac_cv_have_ms_hook_prologue" = "yes" |
| 12157 | then |
| 12158 | |
| 12159 | $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h |
| 12160 | |
| 12161 | else |
| 12162 | $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h |
| 12163 | |
| 12164 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12165 | fi |
| 12166 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12167 | |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5 |
| 12169 | $as_echo_n "checking for the need to disable Fortify... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12170 | if ${ac_cv_c_fortify_enabled+:} false; then : |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12171 | $as_echo_n "(cached) " >&6 |
| 12172 | else |
| 12173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12174 | /* end confdefs.h. */ |
| 12175 | #include <string.h> |
| 12176 | int |
| 12177 | main () |
| 12178 | { |
| 12179 | #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0 |
| 12180 | #error Fortify enabled |
| 12181 | #endif |
| 12182 | ; |
| 12183 | return 0; |
| 12184 | } |
| 12185 | _ACEOF |
| 12186 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12187 | ac_cv_c_fortify_enabled=no |
| 12188 | else |
| 12189 | ac_cv_c_fortify_enabled=yes |
| 12190 | fi |
| 12191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12192 | fi |
| 12193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5 |
| 12194 | $as_echo "$ac_cv_c_fortify_enabled" >&6; } |
| 12195 | if test "$ac_cv_c_fortify_enabled" = yes |
| 12196 | then |
Alexandre Julliard | b10fb86 | 2010-10-29 14:25:01 +0200 | [diff] [blame] | 12197 | CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0" |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12198 | fi |
| 12199 | |
| 12200 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12201 | { $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] | 12202 | $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12203 | if ${ac_cv_c_extern_prefix+:} false; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12204 | $as_echo_n "(cached) " >&6 |
| 12205 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12207 | /* end confdefs.h. */ |
| 12208 | extern int ac_test; |
| 12209 | int |
| 12210 | main () |
| 12211 | { |
| 12212 | asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1 |
| 12213 | ; |
| 12214 | return 0; |
| 12215 | } |
| 12216 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12217 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12218 | ac_cv_c_extern_prefix="yes" |
| 12219 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12220 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12221 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12222 | rm -f core conftest.err conftest.$ac_objext \ |
| 12223 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12224 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12225 | { $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] | 12226 | $as_echo "$ac_cv_c_extern_prefix" >&6; } |
| 12227 | |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12228 | case $host_cpu in |
| 12229 | *i[3456789]86*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12230 | { $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] | 12231 | $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12232 | if ${ac_cv_c_stdcall_suffix+:} false; then : |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12233 | $as_echo_n "(cached) " >&6 |
| 12234 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12236 | /* end confdefs.h. */ |
| 12237 | #ifndef _MSC_VER |
| 12238 | #define __stdcall __attribute__((__stdcall__)) |
| 12239 | #endif |
| 12240 | int __stdcall ac_test(int i) { return i; } |
| 12241 | int |
| 12242 | main () |
| 12243 | { |
| 12244 | asm("jmp _ac_test@4"); if (ac_test(1)) return 1 |
| 12245 | ; |
| 12246 | return 0; |
| 12247 | } |
| 12248 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12249 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12250 | ac_cv_c_stdcall_suffix="yes" |
| 12251 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12252 | ac_cv_c_stdcall_suffix="no" |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12253 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12254 | rm -f core conftest.err conftest.$ac_objext \ |
| 12255 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12256 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12257 | { $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] | 12258 | $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;; |
| 12259 | *) ac_cv_c_stdcall_suffix="no" ;; |
| 12260 | esac |
| 12261 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12262 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12263 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 12264 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12265 | $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12266 | |
| 12267 | asm_name_prefix="_" |
| 12268 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12269 | $as_echo "#define __ASM_NAME(name) name" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12270 | |
| 12271 | asm_name_prefix="" |
| 12272 | fi |
| 12273 | |
| 12274 | |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12275 | if test "$ac_cv_c_stdcall_suffix" = "yes" |
| 12276 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12277 | $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12278 | |
| 12279 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12280 | $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12281 | |
| 12282 | fi |
| 12283 | |
| 12284 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12285 | { $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] | 12286 | $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] | 12287 | if ${ac_cv_asm_func_def+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12288 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12289 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12291 | /* end confdefs.h. */ |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12292 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12293 | int |
| 12294 | main () |
| 12295 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12296 | 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] | 12297 | ; |
| 12298 | return 0; |
| 12299 | } |
| 12300 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12301 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12302 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12303 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12305 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12306 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12307 | int |
| 12308 | main () |
| 12309 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12310 | 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] | 12311 | ; |
| 12312 | return 0; |
| 12313 | } |
| 12314 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12315 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12316 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12317 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12319 | /* end confdefs.h. */ |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12320 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12321 | int |
| 12322 | main () |
| 12323 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12324 | 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] | 12325 | ; |
| 12326 | return 0; |
| 12327 | } |
| 12328 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12329 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12330 | ac_cv_asm_func_def=".type 2" |
| 12331 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12332 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12333 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12334 | rm -f core conftest.err conftest.$ac_objext \ |
| 12335 | conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12336 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12337 | rm -f core conftest.err conftest.$ac_objext \ |
| 12338 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12339 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12340 | rm -f core conftest.err conftest.$ac_objext \ |
| 12341 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12342 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12343 | { $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] | 12344 | $as_echo "$ac_cv_asm_func_def" >&6; } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12345 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12346 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12347 | case "$ac_cv_asm_func_def" in |
| 12348 | ".def") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12349 | $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] | 12350 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12351 | 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] | 12352 | ".type @function") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12353 | $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] | 12354 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12355 | asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12356 | ".type 2") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12357 | $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] | 12358 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12359 | asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12360 | *) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12361 | $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12362 | |
| 12363 | asm_func_header="" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12364 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12365 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12366 | { $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] | 12367 | $as_echo_n "checking whether asm() works outside of functions... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12368 | if ${ac_cv_c_asm_outside_funcs+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12369 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12370 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12372 | /* end confdefs.h. */ |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12373 | asm(".text\n\t.long 0"); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12374 | int |
| 12375 | main () |
| 12376 | { |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12377 | |
| 12378 | ; |
| 12379 | return 0; |
| 12380 | } |
| 12381 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12382 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12383 | ac_cv_c_asm_outside_funcs="yes" |
| 12384 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12385 | ac_cv_c_asm_outside_funcs="no" |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12386 | fi |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12388 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12389 | { $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] | 12390 | $as_echo "$ac_cv_c_asm_outside_funcs" >&6; } |
| 12391 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12392 | { $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] | 12393 | $as_echo_n "checking whether .previous is supported in assembly code... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12394 | if ${ac_cv_c_dot_previous+:} false; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12395 | $as_echo_n "(cached) " >&6 |
| 12396 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12398 | /* end confdefs.h. */ |
| 12399 | |
| 12400 | int |
| 12401 | main () |
| 12402 | { |
| 12403 | asm(".text\nac_test:\t.long 0\n\t.previous"); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12404 | ; |
| 12405 | return 0; |
| 12406 | } |
| 12407 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12408 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12409 | ac_cv_c_dot_previous="yes" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12410 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12411 | ac_cv_c_dot_previous="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12412 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12413 | rm -f core conftest.err conftest.$ac_objext \ |
| 12414 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12415 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12416 | { $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] | 12417 | $as_echo "$ac_cv_c_dot_previous" >&6; } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12418 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12419 | { $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] | 12420 | $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] | 12421 | if ${ac_cv_c_cfi_support+:} false; then : |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12422 | $as_echo_n "(cached) " >&6 |
| 12423 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12425 | /* end confdefs.h. */ |
| 12426 | asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc"); |
| 12427 | int |
| 12428 | main () |
| 12429 | { |
| 12430 | |
| 12431 | ; |
| 12432 | return 0; |
| 12433 | } |
| 12434 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12435 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12436 | ac_cv_c_cfi_support="yes" |
| 12437 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12438 | ac_cv_c_cfi_support="no" |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12439 | fi |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12441 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12442 | { $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] | 12443 | $as_echo "$ac_cv_c_cfi_support" >&6; } |
| 12444 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12445 | 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] | 12446 | asm_func_trailer="" |
| 12447 | if test "$ac_cv_c_dot_previous" = "yes" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12448 | then |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12449 | asm_func_trailer="\\n\\t.previous" |
| 12450 | fi |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12451 | if test "$ac_cv_c_cfi_support" = "yes" |
| 12452 | then |
| 12453 | asm_func_header="$asm_func_header.cfi_startproc\\n\\t" |
| 12454 | asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer" |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12455 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12456 | $as_echo "#define __ASM_CFI(str) str" >>confdefs.h |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12457 | |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 12458 | UNWINDFLAGS=-fasynchronous-unwind-tables |
| 12459 | |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12460 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12461 | $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12462 | |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12463 | fi |
| 12464 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12465 | asm_func_code="$asm_func_header\" code \"$asm_func_trailer" |
| 12466 | |
| 12467 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12468 | if test "$ac_cv_c_asm_outside_funcs" = "yes" |
| 12469 | then |
| 12470 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12471 | #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] | 12472 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12473 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12474 | else |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12475 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12476 | #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] | 12477 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12478 | |
| 12479 | fi |
| 12480 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12481 | $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] | 12482 | |
| 12483 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12484 | $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] | 12485 | |
| 12486 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12487 | |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12488 | LDPATH="" |
| 12489 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12490 | case $build_os in |
| 12491 | cygwin*|mingw32*) |
Alexandre Julliard | b860c4a | 2009-09-01 22:36:13 +0200 | [diff] [blame] | 12492 | TOOLSEXT=".exe" |
| 12493 | |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 12494 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\"" |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12495 | ;; |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 12496 | darwin*|macosx*) |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12497 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12498 | *) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 12499 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12500 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12501 | esac |
| 12502 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12503 | case $host_os in |
| 12504 | mingw32*) |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 12505 | CRTLIBS="-lmsvcrt" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 12506 | |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 12507 | SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 12508 | |
| 12509 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 12510 | esac |
| 12511 | |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 12512 | MAIN_BINARY="wine" |
| 12513 | |
Alexandre Julliard | f3831cf | 2010-05-16 17:01:52 +0200 | [diff] [blame] | 12514 | test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64" |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 12515 | |
Alexandre Julliard | 0a08620 | 2010-12-16 16:54:15 +0100 | [diff] [blame] | 12516 | case $host_os in |
| 12517 | linux*) |
| 12518 | case $host_cpu in |
| 12519 | *i[3456789]86*) EXTRA_BINARIES="wine-preloader" |
| 12520 | ;; |
| 12521 | x86_64*) EXTRA_BINARIES="wine64-preloader" |
Tijl Coosemans | 9f5c69c | 2007-08-24 15:46:36 +0200 | [diff] [blame] | 12522 | ;; |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 12523 | esac |
Emmanuel Maillard | 3bc8d2e | 2004-07-19 20:11:10 +0000 | [diff] [blame] | 12524 | ;; |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12525 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12526 | |
| 12527 | |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12528 | ac_save_CFLAGS="$CFLAGS" |
| 12529 | CFLAGS="$CFLAGS $BUILTINFLAG" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12530 | for ac_func in \ |
Stefan Dösinger | a774152 | 2011-05-24 21:05:28 +0200 | [diff] [blame] | 12531 | _finite \ |
| 12532 | _isnan \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12533 | _pclose \ |
| 12534 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12535 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 12536 | _spawnvp \ |
Bang Jun-young | ff96bd6 | 2007-10-15 17:09:12 +0900 | [diff] [blame] | 12537 | _strdup \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12538 | _stricmp \ |
| 12539 | _strnicmp \ |
Rob Shearman | e9f5bce | 2008-03-03 21:48:18 +0000 | [diff] [blame] | 12540 | _strtoi64 \ |
| 12541 | _strtoui64 \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 12542 | _vsnprintf \ |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 12543 | asctime_r \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12544 | chsize \ |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12545 | dlopen \ |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 12546 | epoll_create \ |
Hans Leidekker | c3de6ef | 2004-10-19 23:53:26 +0000 | [diff] [blame] | 12547 | ffs \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 12548 | finite \ |
Alexandre Julliard | 7d5e565 | 2009-06-01 12:51:54 +0200 | [diff] [blame] | 12549 | fnmatch \ |
Hans Leidekker | bed3842 | 2004-10-14 03:08:57 +0000 | [diff] [blame] | 12550 | fork \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 12551 | fpclass \ |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 12552 | fstatfs \ |
| 12553 | fstatvfs \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12554 | ftruncate \ |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 12555 | futimes \ |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 12556 | futimesat \ |
Charles Davis | 4e44e15 | 2011-01-18 13:09:44 -0700 | [diff] [blame] | 12557 | getattrlist \ |
Alexandre Julliard | a9f214c | 2006-11-13 15:42:48 +0100 | [diff] [blame] | 12558 | getdirentries \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 12559 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12560 | getpagesize \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 12561 | getpwuid \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 12562 | gettimeofday \ |
Steven Edwards | e7c3ab1 | 2004-10-04 20:45:49 +0000 | [diff] [blame] | 12563 | getuid \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 12564 | kqueue \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 12565 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12566 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 12567 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12568 | pclose \ |
Alexandre Julliard | 6f68b77 | 2009-07-01 12:13:34 +0200 | [diff] [blame] | 12569 | pipe2 \ |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12570 | poll \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12571 | popen \ |
Albert Lee | 01b972d | 2009-11-20 18:35:26 -0500 | [diff] [blame] | 12572 | port_create \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 12573 | prctl \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12574 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 12575 | pwrite \ |
Rob Shearman | 87175c6 | 2008-10-03 12:55:21 +0100 | [diff] [blame] | 12576 | readdir \ |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 12577 | readlink \ |
Jeremy White | 08c0f69 | 2004-10-09 02:26:29 +0000 | [diff] [blame] | 12578 | sched_yield \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12579 | select \ |
Gerald Pfeifer | 39f6727 | 2008-01-20 21:23:08 +0100 | [diff] [blame] | 12580 | setproctitle \ |
Paul Millar | df10b7d | 2006-07-16 15:06:28 +0100 | [diff] [blame] | 12581 | setrlimit \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12582 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12583 | sigaltstack \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 12584 | sigprocmask \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12585 | snprintf \ |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 12586 | spawnvp \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12587 | statfs \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 12588 | statvfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 12589 | strcasecmp \ |
Bang Jun-young | ff96bd6 | 2007-10-15 17:09:12 +0900 | [diff] [blame] | 12590 | strdup \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12591 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 12592 | strncasecmp \ |
Louis Lenders | 6c04a18 | 2006-12-17 17:56:50 +0000 | [diff] [blame] | 12593 | strtold \ |
Rob Shearman | e9f5bce | 2008-03-03 21:48:18 +0000 | [diff] [blame] | 12594 | strtoll \ |
| 12595 | strtoull \ |
Alexandre Julliard | 0fbd556 | 2008-12-22 10:47:16 +0100 | [diff] [blame] | 12596 | symlink \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12597 | tcgetattr \ |
Tijl Coosemans | 0c4f152 | 2007-08-23 14:12:37 +0200 | [diff] [blame] | 12598 | thr_kill2 \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12599 | timegm \ |
| 12600 | usleep \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 12601 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12602 | wait4 \ |
| 12603 | waitpid \ |
| 12604 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12605 | do : |
| 12606 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12607 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 12608 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12609 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12610 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12611 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 12612 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12613 | fi |
| 12614 | done |
| 12615 | |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12616 | CFLAGS="$ac_save_CFLAGS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12617 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12618 | if test "$ac_cv_func_dlopen" = no |
| 12619 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12620 | { $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] | 12621 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12622 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12623 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12624 | else |
| 12625 | ac_check_lib_save_LIBS=$LIBS |
| 12626 | LIBS="-ldl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12628 | /* end confdefs.h. */ |
| 12629 | |
| 12630 | /* Override any GCC internal prototype to avoid an error. |
| 12631 | Use char because int might match the return type of a GCC |
| 12632 | builtin and then its argument prototype would still apply. */ |
| 12633 | #ifdef __cplusplus |
| 12634 | extern "C" |
| 12635 | #endif |
| 12636 | char dlopen (); |
| 12637 | int |
| 12638 | main () |
| 12639 | { |
| 12640 | return dlopen (); |
| 12641 | ; |
| 12642 | return 0; |
| 12643 | } |
| 12644 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12645 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12646 | ac_cv_lib_dl_dlopen=yes |
| 12647 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12648 | ac_cv_lib_dl_dlopen=no |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12649 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12650 | rm -f core conftest.err conftest.$ac_objext \ |
| 12651 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12652 | LIBS=$ac_check_lib_save_LIBS |
| 12653 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12654 | { $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] | 12655 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12656 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12657 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12658 | LIBDL="-ldl" |
| 12659 | |
| 12660 | fi |
| 12661 | |
| 12662 | fi |
| 12663 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 12664 | LIBS="$LIBS $LIBDL" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12665 | for ac_func in dladdr |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12666 | do : |
| 12667 | ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12668 | if test "x$ac_cv_func_dladdr" = xyes; then : |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12669 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12670 | #define HAVE_DLADDR 1 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12671 | _ACEOF |
| 12672 | |
| 12673 | fi |
| 12674 | done |
| 12675 | |
| 12676 | LIBS="$ac_wine_check_funcs_save_LIBS" |
| 12677 | |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12678 | if test "$ac_cv_func_poll" = no |
| 12679 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12680 | { $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] | 12681 | $as_echo_n "checking for poll in -lpoll... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12682 | if ${ac_cv_lib_poll_poll+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12683 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12684 | else |
| 12685 | ac_check_lib_save_LIBS=$LIBS |
| 12686 | LIBS="-lpoll $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12688 | /* end confdefs.h. */ |
| 12689 | |
| 12690 | /* Override any GCC internal prototype to avoid an error. |
| 12691 | Use char because int might match the return type of a GCC |
| 12692 | builtin and then its argument prototype would still apply. */ |
| 12693 | #ifdef __cplusplus |
| 12694 | extern "C" |
| 12695 | #endif |
| 12696 | char poll (); |
| 12697 | int |
| 12698 | main () |
| 12699 | { |
| 12700 | return poll (); |
| 12701 | ; |
| 12702 | return 0; |
| 12703 | } |
| 12704 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12705 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12706 | ac_cv_lib_poll_poll=yes |
| 12707 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12708 | ac_cv_lib_poll_poll=no |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12709 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12710 | rm -f core conftest.err conftest.$ac_objext \ |
| 12711 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12712 | LIBS=$ac_check_lib_save_LIBS |
| 12713 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12714 | { $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] | 12715 | $as_echo "$ac_cv_lib_poll_poll" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12716 | if test "x$ac_cv_lib_poll_poll" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12717 | $as_echo "#define HAVE_POLL 1" >>confdefs.h |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12718 | LIBPOLL="-lpoll" |
| 12719 | |
| 12720 | fi |
| 12721 | |
| 12722 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12723 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12724 | { $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] | 12725 | $as_echo_n "checking for library containing gethostbyname... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12726 | if ${ac_cv_search_gethostbyname+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12727 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12728 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12729 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12731 | /* end confdefs.h. */ |
| 12732 | |
| 12733 | /* Override any GCC internal prototype to avoid an error. |
| 12734 | Use char because int might match the return type of a GCC |
| 12735 | builtin and then its argument prototype would still apply. */ |
| 12736 | #ifdef __cplusplus |
| 12737 | extern "C" |
| 12738 | #endif |
| 12739 | char gethostbyname (); |
| 12740 | int |
| 12741 | main () |
| 12742 | { |
| 12743 | return gethostbyname (); |
| 12744 | ; |
| 12745 | return 0; |
| 12746 | } |
| 12747 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12748 | for ac_lib in '' nsl; do |
| 12749 | if test -z "$ac_lib"; then |
| 12750 | ac_res="none required" |
| 12751 | else |
| 12752 | ac_res=-l$ac_lib |
| 12753 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12754 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12755 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12756 | ac_cv_search_gethostbyname=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12757 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12758 | rm -f core conftest.err conftest.$ac_objext \ |
| 12759 | conftest$ac_exeext |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12760 | if ${ac_cv_search_gethostbyname+:} false; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12761 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12762 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12763 | done |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12764 | if ${ac_cv_search_gethostbyname+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12765 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12766 | else |
| 12767 | ac_cv_search_gethostbyname=no |
| 12768 | fi |
| 12769 | rm conftest.$ac_ext |
| 12770 | LIBS=$ac_func_search_save_LIBS |
| 12771 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12772 | { $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] | 12773 | $as_echo "$ac_cv_search_gethostbyname" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12774 | ac_res=$ac_cv_search_gethostbyname |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12775 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12776 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12777 | |
| 12778 | fi |
| 12779 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12780 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12781 | { $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] | 12782 | $as_echo_n "checking for library containing connect... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12783 | if ${ac_cv_search_connect+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12784 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12785 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12786 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12788 | /* end confdefs.h. */ |
| 12789 | |
| 12790 | /* Override any GCC internal prototype to avoid an error. |
| 12791 | Use char because int might match the return type of a GCC |
| 12792 | builtin and then its argument prototype would still apply. */ |
| 12793 | #ifdef __cplusplus |
| 12794 | extern "C" |
| 12795 | #endif |
| 12796 | char connect (); |
| 12797 | int |
| 12798 | main () |
| 12799 | { |
| 12800 | return connect (); |
| 12801 | ; |
| 12802 | return 0; |
| 12803 | } |
| 12804 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12805 | for ac_lib in '' socket; do |
| 12806 | if test -z "$ac_lib"; then |
| 12807 | ac_res="none required" |
| 12808 | else |
| 12809 | ac_res=-l$ac_lib |
| 12810 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12811 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12812 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12813 | ac_cv_search_connect=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12814 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12815 | rm -f core conftest.err conftest.$ac_objext \ |
| 12816 | conftest$ac_exeext |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12817 | if ${ac_cv_search_connect+:} false; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12818 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12819 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12820 | done |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12821 | if ${ac_cv_search_connect+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12822 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12823 | else |
| 12824 | ac_cv_search_connect=no |
| 12825 | fi |
| 12826 | rm conftest.$ac_ext |
| 12827 | LIBS=$ac_func_search_save_LIBS |
| 12828 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12829 | { $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] | 12830 | $as_echo "$ac_cv_search_connect" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12831 | ac_res=$ac_cv_search_connect |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12832 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12833 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12834 | |
| 12835 | fi |
| 12836 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12837 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12838 | { $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] | 12839 | $as_echo_n "checking for library containing inet_aton... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12840 | if ${ac_cv_search_inet_aton+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12841 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12842 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12843 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12845 | /* end confdefs.h. */ |
| 12846 | |
| 12847 | /* Override any GCC internal prototype to avoid an error. |
| 12848 | Use char because int might match the return type of a GCC |
| 12849 | builtin and then its argument prototype would still apply. */ |
| 12850 | #ifdef __cplusplus |
| 12851 | extern "C" |
| 12852 | #endif |
| 12853 | char inet_aton (); |
| 12854 | int |
| 12855 | main () |
| 12856 | { |
| 12857 | return inet_aton (); |
| 12858 | ; |
| 12859 | return 0; |
| 12860 | } |
| 12861 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12862 | for ac_lib in '' resolv; do |
| 12863 | if test -z "$ac_lib"; then |
| 12864 | ac_res="none required" |
| 12865 | else |
| 12866 | ac_res=-l$ac_lib |
| 12867 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12868 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12869 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12870 | ac_cv_search_inet_aton=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12871 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12872 | rm -f core conftest.err conftest.$ac_objext \ |
| 12873 | conftest$ac_exeext |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12874 | if ${ac_cv_search_inet_aton+:} false; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12875 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12876 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12877 | done |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12878 | if ${ac_cv_search_inet_aton+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12879 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12880 | else |
| 12881 | ac_cv_search_inet_aton=no |
| 12882 | fi |
| 12883 | rm conftest.$ac_ext |
| 12884 | LIBS=$ac_func_search_save_LIBS |
| 12885 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12886 | { $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] | 12887 | $as_echo "$ac_cv_search_inet_aton" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12888 | ac_res=$ac_cv_search_inet_aton |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12889 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 12890 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12891 | |
| 12892 | fi |
| 12893 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12894 | |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 12895 | for ac_func in \ |
| 12896 | getaddrinfo \ |
| 12897 | getnameinfo \ |
| 12898 | getnetbyname \ |
| 12899 | getprotobyname \ |
| 12900 | getprotobynumber \ |
| 12901 | getservbyport \ |
| 12902 | inet_network \ |
Austin English | 0656691 | 2009-03-28 00:13:09 -0500 | [diff] [blame] | 12903 | inet_ntop \ |
| 12904 | inet_pton \ |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 12905 | sendmsg \ |
Alexandre Julliard | 98bec05 | 2009-03-26 11:07:28 +0100 | [diff] [blame] | 12906 | socketpair \ |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 12907 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12908 | do : |
| 12909 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12910 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 12911 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 12912 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12913 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 12914 | _ACEOF |
| 12915 | |
| 12916 | fi |
| 12917 | done |
| 12918 | |
| 12919 | |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 12920 | LDAPLIBS="" |
| 12921 | |
| 12922 | if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes" |
| 12923 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12924 | ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h> |
| 12925 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12926 | if test "x$ac_cv_type_LDAPSortKey" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12927 | { $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] | 12928 | $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12929 | if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12930 | $as_echo_n "(cached) " >&6 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 12931 | else |
| 12932 | ac_check_lib_save_LIBS=$LIBS |
| 12933 | LIBS="-lldap_r $LIBPTHREAD $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 12935 | /* end confdefs.h. */ |
| 12936 | |
| 12937 | /* Override any GCC internal prototype to avoid an error. |
| 12938 | Use char because int might match the return type of a GCC |
| 12939 | builtin and then its argument prototype would still apply. */ |
| 12940 | #ifdef __cplusplus |
| 12941 | extern "C" |
| 12942 | #endif |
| 12943 | char ldap_initialize (); |
| 12944 | int |
| 12945 | main () |
| 12946 | { |
| 12947 | return ldap_initialize (); |
| 12948 | ; |
| 12949 | return 0; |
| 12950 | } |
| 12951 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12952 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 12953 | ac_cv_lib_ldap_r_ldap_initialize=yes |
| 12954 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12955 | ac_cv_lib_ldap_r_ldap_initialize=no |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 12956 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12957 | rm -f core conftest.err conftest.$ac_objext \ |
| 12958 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 12959 | LIBS=$ac_check_lib_save_LIBS |
| 12960 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12961 | { $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] | 12962 | $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12963 | if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12964 | { $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] | 12965 | $as_echo_n "checking for ber_init in -llber... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12966 | if ${ac_cv_lib_lber_ber_init+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12967 | $as_echo_n "(cached) " >&6 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 12968 | else |
| 12969 | ac_check_lib_save_LIBS=$LIBS |
| 12970 | LIBS="-llber $LIBPTHREAD $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 12972 | /* end confdefs.h. */ |
| 12973 | |
| 12974 | /* Override any GCC internal prototype to avoid an error. |
| 12975 | Use char because int might match the return type of a GCC |
| 12976 | builtin and then its argument prototype would still apply. */ |
| 12977 | #ifdef __cplusplus |
| 12978 | extern "C" |
| 12979 | #endif |
| 12980 | char ber_init (); |
| 12981 | int |
| 12982 | main () |
| 12983 | { |
| 12984 | return ber_init (); |
| 12985 | ; |
| 12986 | return 0; |
| 12987 | } |
| 12988 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12989 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 12990 | ac_cv_lib_lber_ber_init=yes |
| 12991 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12992 | ac_cv_lib_lber_ber_init=no |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 12993 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12994 | rm -f core conftest.err conftest.$ac_objext \ |
| 12995 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 12996 | LIBS=$ac_check_lib_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_lib_lber_ber_init" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12999 | $as_echo "$ac_cv_lib_lber_ber_init" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13000 | if test "x$ac_cv_lib_lber_ber_init" = xyes; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13001 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13002 | $as_echo "#define HAVE_LDAP 1" >>confdefs.h |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13003 | |
| 13004 | LDAPLIBS="-lldap_r -llber" |
| 13005 | fi |
| 13006 | |
| 13007 | fi |
| 13008 | |
| 13009 | fi |
| 13010 | |
| 13011 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 13012 | LIBS="$LIBS $LDAPLIBS $LIBPTHREAD" |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13013 | for ac_func in \ |
| 13014 | ldap_count_references \ |
| 13015 | ldap_first_reference \ |
| 13016 | ldap_next_reference \ |
| 13017 | ldap_parse_reference \ |
| 13018 | ldap_parse_sort_control \ |
| 13019 | ldap_parse_sortresponse_control \ |
| 13020 | ldap_parse_vlv_control \ |
| 13021 | ldap_parse_vlvresponse_control |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13022 | do : |
| 13023 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13024 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13025 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13026 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13027 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13028 | _ACEOF |
| 13029 | |
| 13030 | fi |
| 13031 | done |
| 13032 | |
| 13033 | LIBS="$ac_wine_check_funcs_save_LIBS" |
| 13034 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13035 | if test "x$LDAPLIBS" = "x"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13036 | case "x$with_ldap" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 13037 | 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] | 13038 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13039 | *) 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] | 13040 | This is an error since --with-ldap was requested." "$LINENO" 5 ;; |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13041 | esac |
| 13042 | fi |
| 13043 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13044 | { $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] | 13045 | $as_echo_n "checking whether mkdir takes only one argument... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13046 | if ${wine_cv_one_arg_mkdir+:} false; then : |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13047 | $as_echo_n "(cached) " >&6 |
| 13048 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13050 | /* end confdefs.h. */ |
| 13051 | #include <sys/stat.h> |
| 13052 | int |
| 13053 | main () |
| 13054 | { |
| 13055 | mkdir("foo"); |
| 13056 | ; |
| 13057 | return 0; |
| 13058 | } |
| 13059 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13060 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13061 | wine_cv_one_arg_mkdir=yes |
| 13062 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13063 | wine_cv_one_arg_mkdir=no |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13064 | fi |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13066 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13067 | { $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] | 13068 | $as_echo "$wine_cv_one_arg_mkdir" >&6; } |
| 13069 | if test "$wine_cv_one_arg_mkdir" = "yes" |
| 13070 | then |
| 13071 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13072 | $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13073 | |
| 13074 | fi |
| 13075 | |
Andrew Nguyen | 2f22a50 | 2011-02-22 07:10:22 -0600 | [diff] [blame] | 13076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5 |
| 13077 | $as_echo_n "checking for sched_setaffinity... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13078 | if ${wine_cv_have_sched_setaffinity+:} false; then : |
Andrew Nguyen | 2f22a50 | 2011-02-22 07:10:22 -0600 | [diff] [blame] | 13079 | $as_echo_n "(cached) " >&6 |
| 13080 | else |
| 13081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13082 | /* end confdefs.h. */ |
| 13083 | #define _GNU_SOURCE |
| 13084 | #include <sched.h> |
| 13085 | int |
| 13086 | main () |
| 13087 | { |
| 13088 | sched_setaffinity(0, 0, 0); |
| 13089 | ; |
| 13090 | return 0; |
| 13091 | } |
| 13092 | _ACEOF |
| 13093 | if ac_fn_c_try_link "$LINENO"; then : |
| 13094 | wine_cv_have_sched_setaffinity=yes |
| 13095 | else |
| 13096 | wine_cv_have_sched_setaffinity=no |
| 13097 | fi |
| 13098 | rm -f core conftest.err conftest.$ac_objext \ |
| 13099 | conftest$ac_exeext conftest.$ac_ext |
| 13100 | fi |
| 13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5 |
| 13102 | $as_echo "$wine_cv_have_sched_setaffinity" >&6; } |
| 13103 | if test "$wine_cv_have_sched_setaffinity" = "yes" |
| 13104 | then |
| 13105 | |
| 13106 | $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h |
| 13107 | |
| 13108 | fi |
| 13109 | |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13110 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13112 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13113 | if ${ac_cv_c_const+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13114 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13115 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13117 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13118 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13119 | int |
| 13120 | main () |
| 13121 | { |
| 13122 | /* FIXME: Include the comments suggested by Paul. */ |
| 13123 | #ifndef __cplusplus |
| 13124 | /* Ultrix mips cc rejects this. */ |
| 13125 | typedef int charset[2]; |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13126 | const charset cs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13127 | /* SunOS 4.1.1 cc rejects this. */ |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13128 | char const *const *pcpcc; |
| 13129 | char **ppc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13130 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13131 | struct point {int x, y;}; |
| 13132 | static struct point const zero = {0,0}; |
| 13133 | /* AIX XL C 1.02.0.0 rejects this. |
| 13134 | It does not let you subtract one const X* pointer from another in |
| 13135 | an arm of an if-expression whose if-part is not a constant |
| 13136 | expression */ |
| 13137 | const char *g = "string"; |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13138 | pcpcc = &g + (g ? g-g : 0); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13139 | /* HPUX 7.0 cc rejects these. */ |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13140 | ++pcpcc; |
| 13141 | ppc = (char**) pcpcc; |
| 13142 | pcpcc = (char const *const *) ppc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13143 | { /* SCO 3.2v4 cc rejects this. */ |
| 13144 | char *t; |
| 13145 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13146 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13147 | *t++ = 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13148 | if (s) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13149 | } |
| 13150 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13151 | int x[] = {25, 17}; |
| 13152 | const int *foo = &x[0]; |
| 13153 | ++foo; |
| 13154 | } |
| 13155 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13156 | typedef const int *iptr; |
| 13157 | iptr p = 0; |
| 13158 | ++p; |
| 13159 | } |
| 13160 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13161 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13162 | struct s { int j; const int *ap[3]; }; |
| 13163 | struct s *b; b->j = 5; |
| 13164 | } |
| 13165 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13166 | const int foo = 10; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13167 | if (!foo) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13168 | } |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13169 | return !cs[0] && !zero.x; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13170 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13171 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13172 | ; |
| 13173 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13174 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13175 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13176 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13177 | ac_cv_c_const=yes |
| 13178 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13179 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13180 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13182 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13184 | $as_echo "$ac_cv_c_const" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13185 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13186 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13187 | $as_echo "#define const /**/" >>confdefs.h |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13188 | |
| 13189 | fi |
| 13190 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13192 | $as_echo_n "checking for inline... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13193 | if ${ac_cv_c_inline+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13194 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13195 | else |
| 13196 | ac_cv_c_inline=no |
| 13197 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13199 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13200 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13201 | typedef int foo_t; |
| 13202 | static $ac_kw foo_t static_foo () {return 0; } |
| 13203 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13204 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13205 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13206 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13207 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13208 | ac_cv_c_inline=$ac_kw |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13209 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13211 | test "$ac_cv_c_inline" != no && break |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13212 | done |
| 13213 | |
| 13214 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13215 | { $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] | 13216 | $as_echo "$ac_cv_c_inline" >&6; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13217 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13218 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13219 | inline | yes) ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13220 | *) |
| 13221 | case $ac_cv_c_inline in |
| 13222 | no) ac_val=;; |
| 13223 | *) ac_val=$ac_cv_c_inline;; |
| 13224 | esac |
| 13225 | cat >>confdefs.h <<_ACEOF |
| 13226 | #ifndef __cplusplus |
| 13227 | #define inline $ac_val |
| 13228 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13229 | _ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13230 | ;; |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13231 | esac |
| 13232 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13233 | 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] | 13234 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13235 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13236 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13237 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13238 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13239 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13240 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13241 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13242 | 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] | 13243 | if test "x$ac_cv_type_off_t" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13244 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13245 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13246 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13247 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13248 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13249 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13250 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13251 | 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] | 13252 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13253 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13254 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13255 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13256 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13257 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13258 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13259 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13260 | 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] | 13261 | if test "x$ac_cv_type_size_t" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13262 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13263 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13264 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13265 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13266 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13267 | |
| 13268 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13269 | 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] | 13270 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13271 | |
| 13272 | cat >>confdefs.h <<_ACEOF |
| 13273 | #define HAVE_SSIZE_T 1 |
| 13274 | _ACEOF |
| 13275 | |
| 13276 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13277 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13278 | 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] | 13279 | if test "x$ac_cv_type_long_long" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13280 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13281 | cat >>confdefs.h <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13282 | #define HAVE_LONG_LONG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13283 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13284 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13285 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13286 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13287 | 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] | 13288 | if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13289 | |
| 13290 | cat >>confdefs.h <<_ACEOF |
| 13291 | #define HAVE_FSBLKCNT_T 1 |
| 13292 | _ACEOF |
| 13293 | |
| 13294 | |
| 13295 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13296 | 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] | 13297 | if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13298 | |
| 13299 | cat >>confdefs.h <<_ACEOF |
| 13300 | #define HAVE_FSFILCNT_T 1 |
| 13301 | _ACEOF |
| 13302 | |
| 13303 | |
| 13304 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13305 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13306 | 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] | 13307 | #include <signal.h> |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13308 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13309 | if test "x$ac_cv_type_sigset_t" = xyes; then : |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13310 | |
| 13311 | cat >>confdefs.h <<_ACEOF |
| 13312 | #define HAVE_SIGSET_T 1 |
| 13313 | _ACEOF |
| 13314 | |
| 13315 | |
| 13316 | fi |
| 13317 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13318 | ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h> |
| 13319 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13320 | if test "x$ac_cv_type_request_sense" = xyes; then : |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 13321 | |
| 13322 | cat >>confdefs.h <<_ACEOF |
| 13323 | #define HAVE_REQUEST_SENSE 1 |
| 13324 | _ACEOF |
| 13325 | |
| 13326 | |
| 13327 | fi |
| 13328 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13329 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13330 | 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] | 13331 | #ifdef HAVE_SYS_SOCKET_H |
| 13332 | #include <sys/socket.h> |
| 13333 | #endif |
| 13334 | #ifdef HAVE_SYS_SOCKETVAR_H |
| 13335 | #include <sys/socketvar.h> |
| 13336 | #endif |
| 13337 | #ifdef HAVE_NET_ROUTE_H |
| 13338 | #include <net/route.h> |
| 13339 | #endif |
| 13340 | #ifdef HAVE_NETINET_IN_H |
| 13341 | #include <netinet/in.h> |
| 13342 | #endif |
| 13343 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 13344 | #include <netinet/in_systm.h> |
| 13345 | #endif |
| 13346 | #ifdef HAVE_NETINET_IP_H |
| 13347 | #include <netinet/ip.h> |
| 13348 | #endif |
| 13349 | #ifdef HAVE_NETINET_IN_PCB_H |
| 13350 | #include <netinet/in_pcb.h> |
| 13351 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13352 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13353 | if test "x$ac_cv_type_struct_xinpgen" = xyes; then : |
Austin English | 68f2db2 | 2009-01-29 08:28:37 -0600 | [diff] [blame] | 13354 | |
| 13355 | cat >>confdefs.h <<_ACEOF |
| 13356 | #define HAVE_STRUCT_XINPGEN 1 |
| 13357 | _ACEOF |
| 13358 | |
| 13359 | |
| 13360 | fi |
| 13361 | |
| 13362 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13363 | 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] | 13364 | #include <linux/input.h> |
| 13365 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13366 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13367 | if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then : |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 13368 | |
| 13369 | cat >>confdefs.h <<_ACEOF |
| 13370 | #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1 |
| 13371 | _ACEOF |
| 13372 | |
| 13373 | |
| 13374 | fi |
| 13375 | |
| 13376 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13378 | $as_echo_n "checking for sigaddset... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13379 | if ${wine_cv_have_sigaddset+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13380 | $as_echo_n "(cached) " >&6 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13381 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13383 | /* end confdefs.h. */ |
| 13384 | #include <signal.h> |
| 13385 | int |
| 13386 | main () |
| 13387 | { |
| 13388 | sigset_t set; sigaddset(&set,SIGTERM); |
| 13389 | ; |
| 13390 | return 0; |
| 13391 | } |
| 13392 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13393 | if ac_fn_c_try_link "$LINENO"; then : |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13394 | wine_cv_have_sigaddset=yes |
| 13395 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13396 | wine_cv_have_sigaddset=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13397 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13398 | rm -f core conftest.err conftest.$ac_objext \ |
| 13399 | conftest$ac_exeext conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13400 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13401 | { $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] | 13402 | $as_echo "$wine_cv_have_sigaddset" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13403 | if test "$wine_cv_have_sigaddset" = "yes" |
| 13404 | then |
| 13405 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13406 | $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13407 | |
| 13408 | fi |
| 13409 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13410 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13411 | { $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] | 13412 | $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] | 13413 | if ${wine_cv_linux_gethostbyname_r_6+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13414 | $as_echo_n "(cached) " >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13415 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13417 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13418 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13419 | int |
| 13420 | main () |
| 13421 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13422 | |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13423 | char *name=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13424 | struct hostent he; |
| 13425 | struct hostent *result; |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13426 | char *buf=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13427 | int bufsize=0; |
Austin English | 8521ebe | 2011-06-13 21:26:40 -0700 | [diff] [blame] | 13428 | int errnr; |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13429 | char *addr=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13430 | int addrlen=0; |
| 13431 | int addrtype=0; |
Austin English | 8521ebe | 2011-06-13 21:26:40 -0700 | [diff] [blame] | 13432 | gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 13433 | gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13434 | |
| 13435 | ; |
| 13436 | return 0; |
| 13437 | } |
| 13438 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13439 | if ac_fn_c_try_link "$LINENO"; then : |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13440 | wine_cv_linux_gethostbyname_r_6=yes |
| 13441 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13442 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13443 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13444 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13445 | rm -f core conftest.err conftest.$ac_objext \ |
| 13446 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13447 | |
| 13448 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13449 | { $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] | 13450 | $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; } |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13451 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 13452 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13453 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13454 | $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13455 | |
| 13456 | fi |
| 13457 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13458 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13459 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13460 | { $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] | 13461 | $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] | 13462 | if ${wine_cv_linux_joystick_22_api+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13463 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13464 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13466 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13467 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13468 | #include <sys/ioctl.h> |
Marcus Meissner | 7c43499 | 2007-04-12 12:12:05 +0200 | [diff] [blame] | 13469 | #include <sys/types.h> |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13470 | #include <linux/joystick.h> |
| 13471 | |
| 13472 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 13473 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 13474 | #error "no 2.2 header" |
| 13475 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13476 | |
| 13477 | int |
| 13478 | main () |
| 13479 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13480 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13481 | ; |
| 13482 | return 0; |
| 13483 | } |
| 13484 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13485 | if ac_fn_c_try_compile "$LINENO"; then : |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13486 | wine_cv_linux_joystick_22_api=yes |
| 13487 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13488 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13489 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13491 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13492 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13493 | { $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] | 13494 | $as_echo "$wine_cv_linux_joystick_22_api" >&6; } |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 13495 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13496 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13497 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13498 | $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13499 | |
| 13500 | fi |
| 13501 | fi |
| 13502 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13503 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13504 | 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] | 13505 | #ifdef HAVE_SYS_PARAM_H |
| 13506 | # include <sys/param.h> |
| 13507 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13508 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13509 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13510 | #endif |
| 13511 | #ifdef HAVE_SYS_VFS_H |
| 13512 | # include <sys/vfs.h> |
| 13513 | #endif |
| 13514 | #ifdef HAVE_SYS_STATFS_H |
| 13515 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13516 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13517 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13518 | if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then : |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13519 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13520 | cat >>confdefs.h <<_ACEOF |
| 13521 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13522 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13523 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13524 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13525 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13526 | 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] | 13527 | #ifdef HAVE_SYS_PARAM_H |
| 13528 | # include <sys/param.h> |
| 13529 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13530 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13531 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13532 | #endif |
| 13533 | #ifdef HAVE_SYS_VFS_H |
| 13534 | # include <sys/vfs.h> |
| 13535 | #endif |
| 13536 | #ifdef HAVE_SYS_STATFS_H |
| 13537 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13538 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13539 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13540 | if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then : |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13541 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13542 | cat >>confdefs.h <<_ACEOF |
| 13543 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13544 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13545 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13546 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13547 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13548 | 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] | 13549 | #ifdef HAVE_SYS_PARAM_H |
| 13550 | # include <sys/param.h> |
| 13551 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13552 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13553 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13554 | #endif |
| 13555 | #ifdef HAVE_SYS_VFS_H |
| 13556 | # include <sys/vfs.h> |
| 13557 | #endif |
| 13558 | #ifdef HAVE_SYS_STATFS_H |
| 13559 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13560 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13561 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13562 | if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13563 | |
| 13564 | cat >>confdefs.h <<_ACEOF |
| 13565 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 |
| 13566 | _ACEOF |
| 13567 | |
| 13568 | |
| 13569 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13570 | 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] | 13571 | #ifdef HAVE_SYS_PARAM_H |
| 13572 | # include <sys/param.h> |
| 13573 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13574 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13575 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13576 | #endif |
| 13577 | #ifdef HAVE_SYS_VFS_H |
| 13578 | # include <sys/vfs.h> |
| 13579 | #endif |
| 13580 | #ifdef HAVE_SYS_STATFS_H |
| 13581 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13582 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13583 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13584 | if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13585 | |
| 13586 | cat >>confdefs.h <<_ACEOF |
| 13587 | #define HAVE_STRUCT_STATFS_F_FFREE 1 |
| 13588 | _ACEOF |
| 13589 | |
| 13590 | |
| 13591 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13592 | 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] | 13593 | #ifdef HAVE_SYS_PARAM_H |
| 13594 | # include <sys/param.h> |
| 13595 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13596 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13597 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13598 | #endif |
| 13599 | #ifdef HAVE_SYS_VFS_H |
| 13600 | # include <sys/vfs.h> |
| 13601 | #endif |
| 13602 | #ifdef HAVE_SYS_STATFS_H |
| 13603 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13604 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13605 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13606 | if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13607 | |
| 13608 | cat >>confdefs.h <<_ACEOF |
| 13609 | #define HAVE_STRUCT_STATFS_F_FAVAIL 1 |
| 13610 | _ACEOF |
| 13611 | |
| 13612 | |
| 13613 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13614 | 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] | 13615 | #ifdef HAVE_SYS_PARAM_H |
| 13616 | # include <sys/param.h> |
| 13617 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13618 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13619 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13620 | #endif |
| 13621 | #ifdef HAVE_SYS_VFS_H |
| 13622 | # include <sys/vfs.h> |
| 13623 | #endif |
| 13624 | #ifdef HAVE_SYS_STATFS_H |
| 13625 | # include <sys/statfs.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13626 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13627 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13628 | if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then : |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13629 | |
| 13630 | cat >>confdefs.h <<_ACEOF |
| 13631 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 |
| 13632 | _ACEOF |
| 13633 | |
| 13634 | |
| 13635 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13636 | |
| 13637 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13638 | 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] | 13639 | #include <sys/statvfs.h> |
| 13640 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13641 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13642 | if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13643 | |
| 13644 | cat >>confdefs.h <<_ACEOF |
| 13645 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 |
| 13646 | _ACEOF |
| 13647 | |
| 13648 | |
| 13649 | fi |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13650 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13651 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13652 | 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] | 13653 | #ifdef HAVE_SYS_SOCKET_H |
| 13654 | # include <sys/socket.h> |
| 13655 | #endif |
| 13656 | #ifdef HAVE_SYS_UN_H |
| 13657 | # include <sys/un.h> |
| 13658 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13659 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13660 | if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then : |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13661 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13662 | cat >>confdefs.h <<_ACEOF |
| 13663 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13664 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13665 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13666 | |
| 13667 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13668 | 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] | 13669 | #ifdef HAVE_SYS_SOCKET_H |
| 13670 | # include <sys/socket.h> |
| 13671 | #endif |
| 13672 | #ifdef HAVE_SYS_UN_H |
| 13673 | # include <sys/un.h> |
| 13674 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13675 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13676 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13677 | |
| 13678 | cat >>confdefs.h <<_ACEOF |
| 13679 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 13680 | _ACEOF |
| 13681 | |
| 13682 | |
| 13683 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13684 | 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] | 13685 | #ifdef HAVE_SYS_SOCKET_H |
| 13686 | # include <sys/socket.h> |
| 13687 | #endif |
| 13688 | #ifdef HAVE_SYS_UN_H |
| 13689 | # include <sys/un.h> |
| 13690 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13691 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13692 | 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] | 13693 | |
| 13694 | cat >>confdefs.h <<_ACEOF |
| 13695 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 13696 | _ACEOF |
| 13697 | |
| 13698 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13699 | fi |
| 13700 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13701 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13702 | 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] | 13703 | #ifdef HAVE_SCSI_SG_H |
| 13704 | #include <scsi/sg.h> |
| 13705 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13706 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13707 | if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then : |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 13708 | |
| 13709 | cat >>confdefs.h <<_ACEOF |
| 13710 | #define HAVE_SCSIREQ_T_CMD 1 |
| 13711 | _ACEOF |
| 13712 | |
| 13713 | |
| 13714 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13715 | 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] | 13716 | #ifdef HAVE_SCSI_SG_H |
| 13717 | #include <scsi/sg.h> |
| 13718 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13719 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13720 | 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] | 13721 | |
| 13722 | cat >>confdefs.h <<_ACEOF |
| 13723 | #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1 |
| 13724 | _ACEOF |
| 13725 | |
| 13726 | |
| 13727 | fi |
| 13728 | |
| 13729 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13730 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h> |
| 13731 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13732 | if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then : |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13733 | |
| 13734 | cat >>confdefs.h <<_ACEOF |
| 13735 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 13736 | _ACEOF |
| 13737 | |
| 13738 | |
| 13739 | fi |
| 13740 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13741 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13742 | 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] | 13743 | #ifdef HAVE_SYS_MTIO_H |
| 13744 | #include <sys/mtio.h> |
| 13745 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13746 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13747 | if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then : |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 13748 | |
| 13749 | cat >>confdefs.h <<_ACEOF |
| 13750 | #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1 |
| 13751 | _ACEOF |
| 13752 | |
| 13753 | |
| 13754 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13755 | 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] | 13756 | #ifdef HAVE_SYS_MTIO_H |
| 13757 | #include <sys/mtio.h> |
| 13758 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13759 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13760 | if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then : |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 13761 | |
| 13762 | cat >>confdefs.h <<_ACEOF |
| 13763 | #define HAVE_STRUCT_MTGET_MT_GSTAT 1 |
| 13764 | _ACEOF |
| 13765 | |
| 13766 | |
| 13767 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13768 | 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] | 13769 | #ifdef HAVE_SYS_MTIO_H |
| 13770 | #include <sys/mtio.h> |
| 13771 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13772 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13773 | if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then : |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 13774 | |
| 13775 | cat >>confdefs.h <<_ACEOF |
| 13776 | #define HAVE_STRUCT_MTGET_MT_BLKNO 1 |
| 13777 | _ACEOF |
| 13778 | |
| 13779 | |
| 13780 | fi |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 13781 | |
| 13782 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13783 | 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] | 13784 | #include <getopt.h> |
| 13785 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13786 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13787 | if test "x$ac_cv_member_struct_option_name" = xyes; then : |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 13788 | |
| 13789 | cat >>confdefs.h <<_ACEOF |
| 13790 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 13791 | _ACEOF |
| 13792 | |
| 13793 | |
| 13794 | fi |
| 13795 | |
| 13796 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13797 | 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] | 13798 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 13799 | |
| 13800 | cat >>confdefs.h <<_ACEOF |
| 13801 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13802 | _ACEOF |
| 13803 | |
| 13804 | |
| 13805 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13806 | 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] | 13807 | if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : |
Michael Karcher | af2d274 | 2008-08-17 19:03:44 +0200 | [diff] [blame] | 13808 | |
| 13809 | cat >>confdefs.h <<_ACEOF |
| 13810 | #define HAVE_STRUCT_STAT_ST_MTIM 1 |
| 13811 | _ACEOF |
| 13812 | |
| 13813 | |
| 13814 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13815 | 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] | 13816 | if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then : |
Michael Karcher | af2d274 | 2008-08-17 19:03:44 +0200 | [diff] [blame] | 13817 | |
| 13818 | cat >>confdefs.h <<_ACEOF |
| 13819 | #define HAVE_STRUCT_STAT_ST_CTIM 1 |
| 13820 | _ACEOF |
| 13821 | |
| 13822 | |
| 13823 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13824 | 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] | 13825 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : |
Michael Karcher | af2d274 | 2008-08-17 19:03:44 +0200 | [diff] [blame] | 13826 | |
| 13827 | cat >>confdefs.h <<_ACEOF |
| 13828 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 13829 | _ACEOF |
| 13830 | |
| 13831 | |
| 13832 | fi |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 13833 | |
| 13834 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13835 | 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] | 13836 | #include <sys/types.h> |
| 13837 | #endif |
| 13838 | #ifdef HAVE_NETINET_IN_H |
| 13839 | #include <netinet/in.h> |
| 13840 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13841 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13842 | 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] | 13843 | |
| 13844 | cat >>confdefs.h <<_ACEOF |
| 13845 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 13846 | _ACEOF |
| 13847 | |
| 13848 | |
| 13849 | fi |
| 13850 | |
| 13851 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13852 | 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] | 13853 | #include <sys/types.h> |
| 13854 | #endif |
| 13855 | #ifdef HAVE_NETINET_IN_H |
| 13856 | # include <netinet/in.h> |
| 13857 | #endif |
| 13858 | #ifdef HAVE_ARPA_NAMESER_H |
| 13859 | # include <arpa/nameser.h> |
| 13860 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13861 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13862 | if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then : |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 13863 | |
| 13864 | cat >>confdefs.h <<_ACEOF |
| 13865 | #define HAVE_NS_MSG__MSG_PTR 1 |
| 13866 | _ACEOF |
| 13867 | |
| 13868 | |
| 13869 | fi |
| 13870 | |
| 13871 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13872 | 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] | 13873 | #include <sys/types.h> |
| 13874 | #endif |
| 13875 | #ifdef HAVE_ALIAS_H |
| 13876 | #include <alias.h> |
| 13877 | #endif |
| 13878 | #ifdef HAVE_SYS_SOCKET_H |
| 13879 | #include <sys/socket.h> |
| 13880 | #endif |
| 13881 | #ifdef HAVE_SYS_SOCKETVAR_H |
| 13882 | #include <sys/socketvar.h> |
| 13883 | #endif |
| 13884 | #ifdef HAVE_SYS_TIMEOUT_H |
| 13885 | #include <sys/timeout.h> |
| 13886 | #endif |
| 13887 | #ifdef HAVE_NETINET_IN_H |
| 13888 | #include <netinet/in.h> |
| 13889 | #endif |
| 13890 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 13891 | #include <netinet/in_systm.h> |
| 13892 | #endif |
| 13893 | #ifdef HAVE_NETINET_IP_H |
| 13894 | #include <netinet/ip.h> |
| 13895 | #endif |
| 13896 | #ifdef HAVE_NETINET_IP_VAR_H |
| 13897 | #include <netinet/ip_var.h> |
| 13898 | #endif |
| 13899 | #ifdef HAVE_NETINET_IP_ICMP_H |
| 13900 | #include <netinet/ip_icmp.h> |
| 13901 | #endif |
| 13902 | #ifdef HAVE_NETINET_ICMP_VAR |
| 13903 | #include <netinet/icmp_var.h> |
| 13904 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13905 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13906 | if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then : |
Austin English | ac0252d | 2009-01-30 10:18:10 -0600 | [diff] [blame] | 13907 | |
| 13908 | cat >>confdefs.h <<_ACEOF |
| 13909 | #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1 |
| 13910 | _ACEOF |
| 13911 | |
| 13912 | |
| 13913 | fi |
| 13914 | |
| 13915 | |
Juan Lang | 984c3b2 | 2010-03-12 10:38:46 -0800 | [diff] [blame] | 13916 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H |
| 13917 | #include <sys/types.h> |
| 13918 | #endif |
| 13919 | #ifdef HAVE_NET_IF_H |
| 13920 | # include <net/if.h> |
| 13921 | #endif |
| 13922 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13923 | if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then : |
Juan Lang | 984c3b2 | 2010-03-12 10:38:46 -0800 | [diff] [blame] | 13924 | |
| 13925 | cat >>confdefs.h <<_ACEOF |
| 13926 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 |
| 13927 | _ACEOF |
| 13928 | |
| 13929 | |
| 13930 | fi |
| 13931 | |
| 13932 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13934 | $as_echo_n "checking for timezone variable... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13935 | if ${ac_cv_have_timezone+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13936 | $as_echo_n "(cached) " >&6 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13937 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13939 | /* end confdefs.h. */ |
| 13940 | #include <time.h> |
| 13941 | int |
| 13942 | main () |
| 13943 | { |
Alexandre Julliard | ff2bd66 | 2006-08-25 13:23:29 +0200 | [diff] [blame] | 13944 | timezone = 1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13945 | ; |
| 13946 | return 0; |
| 13947 | } |
| 13948 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13949 | if ac_fn_c_try_link "$LINENO"; then : |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13950 | ac_cv_have_timezone="yes" |
| 13951 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13952 | ac_cv_have_timezone="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13953 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13954 | rm -f core conftest.err conftest.$ac_objext \ |
| 13955 | conftest$ac_exeext conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13956 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13957 | { $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] | 13958 | $as_echo "$ac_cv_have_timezone" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13959 | if test "$ac_cv_have_timezone" = "yes" |
| 13960 | then |
| 13961 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13962 | $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13963 | |
| 13964 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13966 | $as_echo_n "checking for daylight variable... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13967 | if ${ac_cv_have_daylight+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13968 | $as_echo_n "(cached) " >&6 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13969 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13971 | /* end confdefs.h. */ |
| 13972 | #include <time.h> |
| 13973 | int |
| 13974 | main () |
| 13975 | { |
Alexandre Julliard | ff2bd66 | 2006-08-25 13:23:29 +0200 | [diff] [blame] | 13976 | daylight = 1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13977 | ; |
| 13978 | return 0; |
| 13979 | } |
| 13980 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13981 | if ac_fn_c_try_link "$LINENO"; then : |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13982 | ac_cv_have_daylight="yes" |
| 13983 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13984 | ac_cv_have_daylight="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13985 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13986 | rm -f core conftest.err conftest.$ac_objext \ |
| 13987 | conftest$ac_exeext conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13988 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13989 | { $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] | 13990 | $as_echo "$ac_cv_have_daylight" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13991 | if test "$ac_cv_have_daylight" = "yes" |
| 13992 | then |
| 13993 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13994 | $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 13995 | |
| 13996 | fi |
| 13997 | |
Natanael Copa | 3b11f79 | 2011-07-06 08:58:01 +0000 | [diff] [blame] | 13998 | ac_save_LIBS="$LIBS" |
| 13999 | LIBS="$LIBS -lm" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14001 | $as_echo_n "checking for isinf... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14002 | if ${ac_cv_have_isinf+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14003 | $as_echo_n "(cached) " >&6 |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14004 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14006 | /* end confdefs.h. */ |
| 14007 | #include <math.h> |
| 14008 | int |
| 14009 | main () |
| 14010 | { |
Austin English | 8521ebe | 2011-06-13 21:26:40 -0700 | [diff] [blame] | 14011 | float f = 0.0; return isinf(f) |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14012 | ; |
| 14013 | return 0; |
| 14014 | } |
| 14015 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14016 | if ac_fn_c_try_link "$LINENO"; then : |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14017 | ac_cv_have_isinf="yes" |
| 14018 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14019 | ac_cv_have_isinf="no" |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14020 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14021 | rm -f core conftest.err conftest.$ac_objext \ |
| 14022 | conftest$ac_exeext conftest.$ac_ext |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14023 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14024 | { $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] | 14025 | $as_echo "$ac_cv_have_isinf" >&6; } |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14026 | if test "$ac_cv_have_isinf" = "yes" |
| 14027 | then |
| 14028 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14029 | $as_echo "#define HAVE_ISINF 1" >>confdefs.h |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14030 | |
| 14031 | fi |
| 14032 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14034 | $as_echo_n "checking for isnan... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14035 | if ${ac_cv_have_isnan+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14036 | $as_echo_n "(cached) " >&6 |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14037 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14039 | /* end confdefs.h. */ |
| 14040 | #include <math.h> |
| 14041 | int |
| 14042 | main () |
| 14043 | { |
Austin English | 8521ebe | 2011-06-13 21:26:40 -0700 | [diff] [blame] | 14044 | float f = 0.0; return isnan(f) |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14045 | ; |
| 14046 | return 0; |
| 14047 | } |
| 14048 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14049 | if ac_fn_c_try_link "$LINENO"; then : |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14050 | ac_cv_have_isnan="yes" |
| 14051 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14052 | ac_cv_have_isnan="no" |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14053 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14054 | rm -f core conftest.err conftest.$ac_objext \ |
| 14055 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14056 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14057 | { $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] | 14058 | $as_echo "$ac_cv_have_isnan" >&6; } |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14059 | if test "$ac_cv_have_isnan" = "yes" |
| 14060 | then |
| 14061 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14062 | $as_echo "#define HAVE_ISNAN 1" >>confdefs.h |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14063 | |
| 14064 | fi |
Natanael Copa | 3b11f79 | 2011-07-06 08:58:01 +0000 | [diff] [blame] | 14065 | LIBS="$ac_save_LIBS" |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14066 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14067 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14068 | case $host_cpu in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14069 | *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] | 14070 | $as_echo_n "checking whether we need to define __i386__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14071 | if ${ac_cv_cpp_def___i386__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14072 | $as_echo_n "(cached) " >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 14073 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14075 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14076 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14077 | yes |
| 14078 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14079 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14080 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14081 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14082 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14083 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14084 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14085 | fi |
| 14086 | rm -f conftest* |
| 14087 | |
| 14088 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14089 | { $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] | 14090 | $as_echo "$ac_cv_cpp_def___i386__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14091 | if test $ac_cv_cpp_def___i386__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14092 | CFLAGS="$CFLAGS -D__i386__" |
| 14093 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14094 | fi ;; |
| 14095 | *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] | 14096 | $as_echo_n "checking whether we need to define __x86_64__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14097 | if ${ac_cv_cpp_def___x86_64__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14098 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14099 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14101 | /* end confdefs.h. */ |
| 14102 | #ifndef __x86_64__ |
| 14103 | yes |
| 14104 | #endif |
| 14105 | _ACEOF |
| 14106 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14107 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14108 | ac_cv_cpp_def___x86_64__=yes |
| 14109 | else |
| 14110 | ac_cv_cpp_def___x86_64__=no |
| 14111 | fi |
| 14112 | rm -f conftest* |
| 14113 | |
| 14114 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14115 | { $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] | 14116 | $as_echo "$ac_cv_cpp_def___x86_64__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14117 | if test $ac_cv_cpp_def___x86_64__ = yes; then : |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14118 | CFLAGS="$CFLAGS -D__x86_64__" |
| 14119 | LINTFLAGS="$LINTFLAGS -D__x86_64__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14120 | fi ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14121 | *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] | 14122 | $as_echo_n "checking whether we need to define __sparc__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14123 | if ${ac_cv_cpp_def___sparc__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14124 | $as_echo_n "(cached) " >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14125 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14127 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14128 | #ifndef __sparc__ |
| 14129 | yes |
| 14130 | #endif |
| 14131 | _ACEOF |
| 14132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14133 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14134 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14135 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14136 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14137 | fi |
| 14138 | rm -f conftest* |
| 14139 | |
| 14140 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14141 | { $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] | 14142 | $as_echo "$ac_cv_cpp_def___sparc__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14143 | if test $ac_cv_cpp_def___sparc__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14144 | CFLAGS="$CFLAGS -D__sparc__" |
| 14145 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14146 | fi ;; |
| 14147 | *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] | 14148 | $as_echo_n "checking whether we need to define __powerpc__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14149 | if ${ac_cv_cpp_def___powerpc__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14150 | $as_echo_n "(cached) " >&6 |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14151 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14153 | /* end confdefs.h. */ |
| 14154 | #ifndef __powerpc__ |
| 14155 | yes |
| 14156 | #endif |
| 14157 | _ACEOF |
| 14158 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14159 | $EGREP "yes" >/dev/null 2>&1; then : |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14160 | ac_cv_cpp_def___powerpc__=yes |
| 14161 | else |
| 14162 | ac_cv_cpp_def___powerpc__=no |
| 14163 | fi |
| 14164 | rm -f conftest* |
| 14165 | |
| 14166 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14167 | { $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] | 14168 | $as_echo "$ac_cv_cpp_def___powerpc__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14169 | if test $ac_cv_cpp_def___powerpc__ = yes; then : |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14170 | CFLAGS="$CFLAGS -D__powerpc__" |
| 14171 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14172 | fi ;; |
André Hentschel | 50ada0f | 2011-04-19 19:37:05 +0200 | [diff] [blame] | 14173 | *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5 |
| 14174 | $as_echo_n "checking whether we need to define __arm__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14175 | if ${ac_cv_cpp_def___arm__+:} false; then : |
André Hentschel | 50ada0f | 2011-04-19 19:37:05 +0200 | [diff] [blame] | 14176 | $as_echo_n "(cached) " >&6 |
| 14177 | else |
| 14178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14179 | /* end confdefs.h. */ |
| 14180 | #ifndef __arm__ |
| 14181 | yes |
| 14182 | #endif |
| 14183 | _ACEOF |
| 14184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14185 | $EGREP "yes" >/dev/null 2>&1; then : |
| 14186 | ac_cv_cpp_def___arm__=yes |
| 14187 | else |
| 14188 | ac_cv_cpp_def___arm__=no |
| 14189 | fi |
| 14190 | rm -f conftest* |
| 14191 | |
| 14192 | fi |
| 14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5 |
| 14194 | $as_echo "$ac_cv_cpp_def___arm__" >&6; } |
| 14195 | if test $ac_cv_cpp_def___arm__ = yes; then : |
| 14196 | CFLAGS="$CFLAGS -D__arm__" |
| 14197 | LINTFLAGS="$LINTFLAGS -D__arm__" |
| 14198 | fi ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14199 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14200 | |
| 14201 | case $host_vendor in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14202 | *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] | 14203 | $as_echo_n "checking whether we need to define __sun__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14204 | if ${ac_cv_cpp_def___sun__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14205 | $as_echo_n "(cached) " >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14206 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14208 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14209 | #ifndef __sun__ |
| 14210 | yes |
| 14211 | #endif |
| 14212 | _ACEOF |
| 14213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14214 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14215 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14216 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14217 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14218 | fi |
| 14219 | rm -f conftest* |
| 14220 | |
| 14221 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14222 | { $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] | 14223 | $as_echo "$ac_cv_cpp_def___sun__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14224 | if test $ac_cv_cpp_def___sun__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14225 | CFLAGS="$CFLAGS -D__sun__" |
| 14226 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14227 | fi ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14228 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14229 | |
| 14230 | |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14231 | |
Alexandre Julliard | 7d83115 | 2010-03-20 15:07:45 +0100 | [diff] [blame] | 14232 | |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 14233 | |
Alexandre Julliard | 7d83115 | 2010-03-20 15:07:45 +0100 | [diff] [blame] | 14234 | ac_config_commands="$ac_config_commands include/stamp-h" |
| 14235 | |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14236 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14237 | ALL_MAKEFILE_DEPENDS=" |
| 14238 | # Rules automatically generated by configure |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14239 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14240 | .INIT: Makefile |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14241 | .MAKEFILEDEPS: |
Alexandre Julliard | bd3110d | 2010-05-23 10:34:36 +0200 | [diff] [blame] | 14242 | all: Makefile |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 14243 | Makefile: Makefile.in Make.vars.in Make.rules config.status |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14244 | @./config.status Make.tmp Makefile" |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14245 | |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14246 | ALL_POT_FILES="" |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 14247 | ALL_TEST_RESOURCES="" |
Alexandre Julliard | 454fb3c | 2010-02-08 21:29:13 +0100 | [diff] [blame] | 14248 | |
Alexandre Julliard | 49163da | 2008-08-25 12:02:27 +0200 | [diff] [blame] | 14249 | |
Alexandre Julliard | 2de10c4 | 2010-02-11 23:23:45 +0100 | [diff] [blame] | 14250 | wine_fn_append_file () |
| 14251 | { |
| 14252 | as_fn_append $1 " \\$as_nl $2" |
| 14253 | } |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14254 | |
Alexandre Julliard | 2de10c4 | 2010-02-11 23:23:45 +0100 | [diff] [blame] | 14255 | wine_fn_append_rule () |
| 14256 | { |
| 14257 | as_fn_append $1 "$as_nl$2" |
| 14258 | } |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14259 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14260 | wine_fn_has_flag () |
| 14261 | { |
| 14262 | expr ",$2," : ".*,$1,.*" >/dev/null |
| 14263 | } |
| 14264 | |
Alexandre Julliard | 943cd73 | 2010-03-25 21:52:56 +0100 | [diff] [blame] | 14265 | wine_fn_all_dir_rules () |
| 14266 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14267 | ac_dir=$1 |
| 14268 | ac_alldeps=$2 |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14269 | ac_makedep="\$(MAKEDEP)" |
| 14270 | ac_input=Make.vars.in:$ac_dir/Makefile.in |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14271 | if test $ac_dir != tools |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14272 | then |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14273 | ac_alldeps="$2 $ac_makedep" |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14274 | fi |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14275 | case $2 in |
| 14276 | *.in) ac_input=$ac_input:$2 ;; |
| 14277 | *) ac_makedep="$2 $ac_makedep" ;; |
| 14278 | esac |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14279 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14280 | wine_fn_append_file ALL_DIRS $ac_dir |
Alexandre Julliard | 943cd73 | 2010-03-25 21:52:56 +0100 | [diff] [blame] | 14281 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14282 | "__clean__: $ac_dir/__clean__ |
| 14283 | .PHONY: $ac_dir/__clean__ |
| 14284 | $ac_dir/__clean__: $ac_dir/Makefile |
| 14285 | @cd $ac_dir && \$(MAKE) clean |
| 14286 | \$(RM) $ac_dir/Makefile |
| 14287 | $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] | 14288 | @./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] | 14289 | depend: $ac_dir/__depend__ |
| 14290 | .PHONY: $ac_dir/__depend__ |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14291 | $ac_dir/__depend__: $ac_makedep dummy |
| 14292 | @./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] | 14293 | } |
| 14294 | |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14295 | wine_fn_config_makefile () |
| 14296 | { |
| 14297 | ac_dir=$1 |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14298 | ac_enable=$2 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14299 | ac_flags=$3 |
Alexandre Julliard | a0b8fa9 | 2011-06-12 12:44:03 +0200 | [diff] [blame] | 14300 | ac_rules=$4 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14301 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | 9bdd027 | 2010-06-30 17:34:20 +0200 | [diff] [blame] | 14302 | return 0 |
| 14303 | fi |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14304 | |
Alexandre Julliard | a0b8fa9 | 2011-06-12 12:44:03 +0200 | [diff] [blame] | 14305 | wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules} |
Alexandre Julliard | 9bdd027 | 2010-06-30 17:34:20 +0200 | [diff] [blame] | 14306 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14307 | "all: $ac_dir |
| 14308 | .PHONY: $ac_dir |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14309 | $ac_dir: $ac_dir/Makefile dummy |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 14310 | @cd $ac_dir && \$(MAKE)" |
| 14311 | |
| 14312 | wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return |
| 14313 | |
| 14314 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14315 | ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__ |
| 14316 | $ac_dir/__install__:: $ac_dir |
Alexandre Julliard | e84063b | 2010-03-25 21:46:41 +0100 | [diff] [blame] | 14317 | @cd $ac_dir && \$(MAKE) install |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14318 | $ac_dir/__uninstall__:: $ac_dir/Makefile |
| 14319 | @cd $ac_dir && \$(MAKE) uninstall |
| 14320 | install:: $ac_dir/__install__ |
| 14321 | __uninstall__: $ac_dir/__uninstall__" |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 14322 | |
| 14323 | if wine_fn_has_flag install-lib $ac_flags |
| 14324 | then |
| 14325 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14326 | ".PHONY: $ac_dir/__install-lib__ |
| 14327 | $ac_dir/__install-lib__:: $ac_dir |
| 14328 | @cd $ac_dir && \$(MAKE) install-lib |
| 14329 | install-lib:: $ac_dir/__install-lib__" |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 14330 | fi |
| 14331 | |
| 14332 | if wine_fn_has_flag install-dev $ac_flags |
| 14333 | then |
| 14334 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14335 | ".PHONY: $ac_dir/__install-dev |
| 14336 | $ac_dir/__install-dev__:: $ac_dir |
| 14337 | @cd $ac_dir && \$(MAKE) install-dev |
| 14338 | install-dev:: $ac_dir/__install-dev__" |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 14339 | fi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14340 | } |
| 14341 | |
| 14342 | wine_fn_config_lib () |
| 14343 | { |
| 14344 | ac_name=$1 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14345 | ac_flags=$2 |
Alexandre Julliard | b8fb1d5 | 2010-03-20 14:50:53 +0100 | [diff] [blame] | 14346 | ac_dir=dlls/$ac_name |
Alexandre Julliard | f64a675 | 2011-07-09 17:58:47 +0200 | [diff] [blame] | 14347 | wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules |
| 14348 | |
| 14349 | if wine_fn_has_flag install-dev $ac_flags |
| 14350 | then : |
| 14351 | else |
| 14352 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14353 | ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__ |
| 14354 | $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) |
| 14355 | \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a |
| 14356 | $ac_dir/__uninstall__:: |
| 14357 | \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a |
| 14358 | install install-dev:: $ac_dir/__install__ |
| 14359 | __uninstall__: $ac_dir/__uninstall__" |
| 14360 | fi |
| 14361 | |
Alexandre Julliard | a0b8fa9 | 2011-06-12 12:44:03 +0200 | [diff] [blame] | 14362 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir" |
| 14363 | 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] | 14364 | } |
| 14365 | |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14366 | wine_fn_config_dll () |
| 14367 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14368 | ac_name=$1 |
| 14369 | ac_dir=dlls/$ac_name |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14370 | ac_enable=$2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14371 | ac_flags=$3 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14372 | ac_implib=${4:-$ac_name} |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14373 | ac_file=$ac_dir/lib$ac_implib |
Alexandre Julliard | bf8f435 | 2011-07-25 11:39:42 +0200 | [diff] [blame] | 14374 | ac_dll=$ac_name |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14375 | ac_deps="tools/widl tools/winebuild tools/winegcc include" |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14376 | ac_implibflags="" |
| 14377 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14378 | case $ac_name in |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14379 | *16) ac_implibflags=" -m16" ;; |
Alexandre Julliard | bf8f435 | 2011-07-25 11:39:42 +0200 | [diff] [blame] | 14380 | *.*) ;; |
| 14381 | *) ac_dll=$ac_dll.dll ;; |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14382 | esac |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14383 | |
Alexandre Julliard | bf8f435 | 2011-07-25 11:39:42 +0200 | [diff] [blame] | 14384 | 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] | 14385 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14386 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14387 | test "$ac_enable" != enable_win16 || return 0 |
Alexandre Julliard | 2844991 | 2011-07-25 22:05:51 +0200 | [diff] [blame] | 14388 | 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] | 14389 | else |
Alexandre Julliard | 60a05ad | 2010-03-25 12:05:44 +0100 | [diff] [blame] | 14390 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | bf8f435 | 2011-07-25 11:39:42 +0200 | [diff] [blame] | 14391 | "$ac_dir: __builddeps__ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14392 | manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14393 | @cd $ac_dir && \$(MAKE) \$@" |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14394 | |
Alexandre Julliard | bf8f435 | 2011-07-25 11:39:42 +0200 | [diff] [blame] | 14395 | if wine_fn_has_flag install-lib $ac_flags |
| 14396 | then : |
| 14397 | else |
| 14398 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14399 | ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__ |
| 14400 | install install-lib:: $ac_dir/__install-lib__ |
| 14401 | __uninstall__: $ac_dir/__uninstall__" |
| 14402 | if test -n "$DLLEXT" |
| 14403 | then |
| 14404 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14405 | "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir) |
| 14406 | \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT |
| 14407 | \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll |
| 14408 | $ac_dir/__uninstall__:: |
| 14409 | \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll" |
| 14410 | else |
| 14411 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14412 | "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) |
| 14413 | \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll |
| 14414 | $ac_dir/__uninstall__:: |
| 14415 | \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll" |
| 14416 | fi |
| 14417 | fi |
| 14418 | |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14419 | if test "x$enable_maintainer_mode" = xyes |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14420 | then |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14421 | if wine_fn_has_flag mc $ac_flags |
| 14422 | then |
| 14423 | wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot |
| 14424 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14425 | "$ac_dir/msg.pot: $ac_dir" |
| 14426 | fi |
| 14427 | if wine_fn_has_flag po $ac_flags |
| 14428 | then |
| 14429 | wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot |
| 14430 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14431 | "$ac_dir/rsrc.pot: $ac_dir" |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14432 | fi |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14433 | fi |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14434 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14435 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14436 | if wine_fn_has_flag staticimplib $ac_flags |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14437 | then |
| 14438 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14439 | "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14440 | $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] | 14441 | $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile |
| 14442 | @cd $ac_dir && \$(MAKE) lib$ac_implib.def |
| 14443 | $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy |
| 14444 | @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT |
Alexandre Julliard | 6cba5c4 | 2011-07-09 18:01:42 +0200 | [diff] [blame] | 14445 | .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__ |
| 14446 | $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir) |
| 14447 | \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT |
| 14448 | $ac_dir/__uninstall__:: |
| 14449 | \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT |
| 14450 | install install-dev:: $ac_dir/__install-dev__ |
| 14451 | __uninstall__: $ac_dir/__uninstall__" |
| 14452 | |
| 14453 | if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT" |
| 14454 | then |
| 14455 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14456 | "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__ |
| 14457 | \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT |
| 14458 | $ac_dir/__uninstall__:: |
| 14459 | \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT" |
| 14460 | fi |
| 14461 | |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14462 | if test "x$CROSSTEST_DISABLE" = x |
| 14463 | then |
| 14464 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14465 | "__builddeps__: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14466 | $ac_file.cross.a: $ac_dir/Makefile dummy |
| 14467 | @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14468 | fi |
| 14469 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14470 | elif wine_fn_has_flag implib $ac_flags |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14471 | then |
| 14472 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14473 | "__builddeps__: $ac_file.$IMPLIBEXT |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14474 | $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14475 | \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec |
| 14476 | $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14477 | \$(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] | 14478 | .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__ |
| 14479 | $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir) |
| 14480 | \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT |
| 14481 | $ac_dir/__uninstall__:: |
| 14482 | \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT |
| 14483 | install install-dev:: $ac_dir/__install-dev__ |
| 14484 | __uninstall__: $ac_dir/__uninstall__" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14485 | if test "x$CROSSTEST_DISABLE" = x |
| 14486 | then |
| 14487 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14488 | "__builddeps__: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14489 | $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14490 | \$(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] | 14491 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14492 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14493 | if test "$ac_name" != "$ac_implib" |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14494 | then |
| 14495 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14496 | "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14497 | dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14498 | \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@ |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14499 | clean:: |
| 14500 | \$(RM) dlls/lib$ac_implib.$IMPLIBEXT" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14501 | if test "x$CROSSTEST_DISABLE" = x |
| 14502 | then |
| 14503 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14504 | "__builddeps__: dlls/lib$ac_implib.cross.a |
| 14505 | dlls/lib$ac_implib.cross.a: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14506 | \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14507 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14508 | fi |
| 14509 | fi |
| 14510 | } |
| 14511 | |
| 14512 | wine_fn_config_program () |
| 14513 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14514 | ac_name=$1 |
| 14515 | ac_dir=programs/$ac_name |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14516 | ac_enable=$2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14517 | ac_flags=$3 |
Alexandre Julliard | fda8b65 | 2011-07-09 21:04:23 +0200 | [diff] [blame] | 14518 | ac_program=$ac_name |
| 14519 | |
| 14520 | case $ac_name in |
| 14521 | *.*) ;; |
| 14522 | *) ac_program=$ac_program.exe ;; |
| 14523 | esac |
| 14524 | |
| 14525 | 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] | 14526 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14527 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14528 | |
| 14529 | else |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14530 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | fda8b65 | 2011-07-09 21:04:23 +0200 | [diff] [blame] | 14531 | "$ac_dir: __builddeps__" |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14532 | |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14533 | if test "x$enable_maintainer_mode" = xyes |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14534 | then |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14535 | if wine_fn_has_flag mc $ac_flags |
| 14536 | then |
| 14537 | wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot |
| 14538 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14539 | "$ac_dir/msg.pot: $ac_dir" |
| 14540 | fi |
| 14541 | if wine_fn_has_flag po $ac_flags |
| 14542 | then |
| 14543 | wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot |
| 14544 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14545 | "$ac_dir/rsrc.pot: $ac_dir" |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14546 | fi |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14547 | fi |
| 14548 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14549 | wine_fn_has_flag install $ac_flags || return |
Alexandre Julliard | 2fb3021 | 2010-03-26 09:24:33 +0100 | [diff] [blame] | 14550 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14551 | ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14552 | install install-lib:: $ac_dir/__install__ |
| 14553 | __uninstall__: $ac_dir/__uninstall__" |
Alexandre Julliard | fda8b65 | 2011-07-09 21:04:23 +0200 | [diff] [blame] | 14554 | |
| 14555 | if test -n "$DLLEXT" |
Alexandre Julliard | 2fb3021 | 2010-03-26 09:24:33 +0100 | [diff] [blame] | 14556 | then |
| 14557 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | fda8b65 | 2011-07-09 21:04:23 +0200 | [diff] [blame] | 14558 | "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir) |
| 14559 | \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT |
| 14560 | \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program |
| 14561 | $ac_dir/__uninstall__:: |
| 14562 | \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program" |
| 14563 | |
| 14564 | if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags |
| 14565 | then |
| 14566 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14567 | "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir) |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14568 | \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name |
Alexandre Julliard | bb86a35 | 2011-07-09 17:46:54 +0200 | [diff] [blame] | 14569 | $ac_dir/__uninstall__:: |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14570 | \$(RM) \$(DESTDIR)\$(bindir)/$ac_name" |
Alexandre Julliard | fda8b65 | 2011-07-09 21:04:23 +0200 | [diff] [blame] | 14571 | fi |
| 14572 | else |
| 14573 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14574 | "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) |
| 14575 | \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program |
| 14576 | $ac_dir/__uninstall__:: |
| 14577 | \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program" |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14578 | fi |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 14579 | |
| 14580 | if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags |
| 14581 | then |
| 14582 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14583 | "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext) |
| 14584 | \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext) |
| 14585 | $ac_dir/__uninstall__:: |
| 14586 | \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)" |
| 14587 | fi |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14588 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14589 | } |
| 14590 | |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14591 | wine_fn_config_test () |
| 14592 | { |
| 14593 | ac_dir=$1 |
| 14594 | ac_name=$2 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14595 | ac_flags=$3 |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 14596 | wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14597 | wine_fn_all_dir_rules $ac_dir Maketest.rules |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14598 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14599 | if test "x$enable_tests" = xno; then : |
Alexandre Julliard | dc3afa1 | 2010-03-20 14:51:52 +0100 | [diff] [blame] | 14600 | |
| 14601 | else |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14602 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 14603 | "all: $ac_dir |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14604 | .PHONY: $ac_dir |
Alexandre Julliard | dbbed38 | 2011-05-26 12:04:45 +0200 | [diff] [blame] | 14605 | $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14606 | @cd $ac_dir && \$(MAKE) |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 14607 | programs/winetest: $ac_dir |
Alexandre Julliard | e4eff85 | 2011-05-22 13:15:03 +0200 | [diff] [blame] | 14608 | check test: $ac_dir/__test__ |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14609 | .PHONY: $ac_dir/__test__ |
Alexandre Julliard | eab7efd | 2010-03-25 21:42:54 +0100 | [diff] [blame] | 14610 | $ac_dir/__test__: dummy |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14611 | @cd $ac_dir && \$(MAKE) test |
| 14612 | testclean:: |
| 14613 | \$(RM) $ac_dir/*.ok" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14614 | |
| 14615 | if test "x$CROSSTEST_DISABLE" = x |
| 14616 | then |
| 14617 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14618 | "crosstest: $ac_dir/__crosstest__ |
| 14619 | .PHONY: $ac_dir/__crosstest__ |
| 14620 | $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy |
| 14621 | @cd $ac_dir && \$(MAKE) crosstest" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14622 | fi |
Alexandre Julliard | dc3afa1 | 2010-03-20 14:51:52 +0100 | [diff] [blame] | 14623 | fi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14624 | } |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 14625 | |
| 14626 | wine_fn_config_tool () |
| 14627 | { |
| 14628 | ac_dir=$1 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14629 | ac_flags=$2 |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 14630 | if test "x$enable_tools" = xno; then : |
| 14631 | return 0 |
| 14632 | fi |
| 14633 | |
Alexandre Julliard | 49c31e3 | 2011-06-12 12:13:17 +0200 | [diff] [blame] | 14634 | wine_fn_config_makefile $ac_dir enable_tools $ac_flags |
Alexandre Julliard | 6dbe7a0 | 2010-03-25 11:51:24 +0100 | [diff] [blame] | 14635 | |
Alexandre Julliard | 49c31e3 | 2011-06-12 12:13:17 +0200 | [diff] [blame] | 14636 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir" |
| 14637 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port" |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 14638 | case $ac_dir in |
| 14639 | tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;; |
| 14640 | esac |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 14641 | } |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14642 | |
| 14643 | wine_fn_config_makerules () |
| 14644 | { |
| 14645 | ac_rules=$1 |
| 14646 | ac_deps=$2 |
| 14647 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14648 | "$ac_rules: $ac_rules.in $ac_deps config.status |
| 14649 | @./config.status $ac_rules |
| 14650 | distclean:: |
| 14651 | \$(RM) $ac_rules" |
| 14652 | } |
| 14653 | |
| 14654 | wine_fn_config_symlink () |
| 14655 | { |
| 14656 | ac_link=$1 |
| 14657 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14658 | "$ac_link: |
| 14659 | @./config.status $ac_link |
| 14660 | distclean:: |
| 14661 | \$(RM) $ac_link" |
| 14662 | } |
Alexandre Julliard | a070f9b | 2010-07-26 20:53:12 +0200 | [diff] [blame] | 14663 | |
| 14664 | if test "x$CROSSTEST_DISABLE" != x |
| 14665 | then |
| 14666 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14667 | "crosstest: |
| 14668 | @echo \"crosstest is not supported (mingw not installed?)\" && false" |
| 14669 | fi |
Alexandre Julliard | 40977bf | 2010-11-11 12:24:46 +0100 | [diff] [blame] | 14670 | ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS" |
| 14671 | wine_fn_config_symlink dlls/shell32/AUTHORS |
Alexandre Julliard | a632052 | 2010-02-03 13:14:03 +0100 | [diff] [blame] | 14672 | 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] | 14673 | test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14674 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14675 | ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14676 | test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14677 | fi |
| 14678 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14679 | ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14680 | test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14681 | fi |
| 14682 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14683 | ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14684 | test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14685 | fi |
| 14686 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14687 | ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14688 | test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14689 | fi |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 14690 | if test "x$enable_tools" != xno; then |
Alexandre Julliard | 321d388 | 2010-05-06 20:51:53 +0200 | [diff] [blame] | 14691 | ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls" |
| 14692 | test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 14693 | fi |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 14694 | ac_config_links="$ac_config_links wine:tools/winewrapper" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14695 | wine_fn_config_symlink wine |
Alexandre Julliard | 4422d22 | 2011-05-10 13:26:28 +0200 | [diff] [blame] | 14696 | if test "x$enable_win64" != xno; then |
| 14697 | ac_config_links="$ac_config_links wine64:tools/winewrapper" |
| 14698 | wine_fn_config_symlink wine64 |
| 14699 | fi |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 14700 | |
Huw Davies | 4cffb2d | 2011-04-01 15:27:48 +0100 | [diff] [blame] | 14701 | ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv" |
| 14702 | |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 14703 | ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 14704 | |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 14705 | ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 14706 | |
Alexandre Julliard | 1c60e3b | 2006-09-12 16:10:51 +0200 | [diff] [blame] | 14707 | ac_config_commands="$ac_config_commands dlls/kernel32/nls" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14708 | |
Alexandre Julliard | b8a2e3b | 2006-11-16 14:49:25 +0100 | [diff] [blame] | 14709 | ac_config_commands="$ac_config_commands dlls/user32/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14710 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14711 | ac_config_commands="$ac_config_commands dlls/wineps.drv/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14712 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14713 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14714 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 14715 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14716 | wine_fn_config_makerules Make.rules |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 14717 | MAKE_RULES=Make.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14718 | ac_config_files="$ac_config_files Make.rules" |
| 14719 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14720 | wine_fn_config_makerules Maketest.rules Make.rules |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 14721 | MAKE_TEST_RULES=Maketest.rules |
| 14722 | ac_config_files="$ac_config_files Maketest.rules" |
| 14723 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14724 | wine_fn_config_makerules dlls/Makedll.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14725 | MAKE_DLL_RULES=dlls/Makedll.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14726 | ac_config_files="$ac_config_files dlls/Makedll.rules" |
| 14727 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14728 | wine_fn_config_makerules dlls/Makeimplib.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14729 | MAKE_IMPLIB_RULES=dlls/Makeimplib.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14730 | ac_config_files="$ac_config_files dlls/Makeimplib.rules" |
| 14731 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14732 | wine_fn_config_makerules programs/Makeprog.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14733 | MAKE_PROG_RULES=programs/Makeprog.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14734 | ac_config_files="$ac_config_files programs/Makeprog.rules" |
| 14735 | |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14736 | |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14737 | wine_fn_config_dll acledit enable_acledit |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14738 | wine_fn_config_dll aclui enable_aclui implib |
| 14739 | wine_fn_config_dll activeds enable_activeds implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14740 | wine_fn_config_dll actxprxy enable_actxprxy |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14741 | wine_fn_config_lib adsiid |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14742 | wine_fn_config_dll advapi32 enable_advapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14743 | wine_fn_config_test dlls/advapi32/tests advapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14744 | wine_fn_config_dll advpack enable_advpack implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14745 | wine_fn_config_test dlls/advpack/tests advpack_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14746 | wine_fn_config_dll amstream enable_amstream |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14747 | wine_fn_config_test dlls/amstream/tests amstream_test |
Alexandre Julliard | 902f10c | 2011-01-13 15:16:02 +0100 | [diff] [blame] | 14748 | wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14749 | wine_fn_config_dll atl enable_atl implib |
Marcus Meissner | b3f0425 | 2010-06-15 11:04:33 +0200 | [diff] [blame] | 14750 | wine_fn_config_test dlls/atl/tests atl_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14751 | wine_fn_config_dll authz enable_authz |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14752 | wine_fn_config_dll avicap32 enable_avicap32 implib |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14753 | wine_fn_config_dll avifil32 enable_avifil32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14754 | wine_fn_config_test dlls/avifil32/tests avifil32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14755 | wine_fn_config_dll avifile.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14756 | wine_fn_config_dll avrt enable_avrt implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14757 | wine_fn_config_dll bcrypt enable_bcrypt |
Alexandre Julliard | 4447900 | 2011-01-11 12:56:17 +0100 | [diff] [blame] | 14758 | wine_fn_config_dll browseui enable_browseui po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14759 | wine_fn_config_test dlls/browseui/tests browseui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14760 | wine_fn_config_dll cabinet enable_cabinet implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14761 | wine_fn_config_test dlls/cabinet/tests cabinet_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14762 | wine_fn_config_dll capi2032 enable_capi2032 implib |
| 14763 | wine_fn_config_dll cards enable_cards implib |
| 14764 | wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib |
| 14765 | wine_fn_config_dll clusapi enable_clusapi implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14766 | wine_fn_config_dll comcat enable_comcat |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14767 | wine_fn_config_test dlls/comcat/tests comcat_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14768 | wine_fn_config_dll comctl32 enable_comctl32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14769 | wine_fn_config_test dlls/comctl32/tests comctl32_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14770 | wine_fn_config_dll comdlg32 enable_comdlg32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14771 | wine_fn_config_test dlls/comdlg32/tests comdlg32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14772 | wine_fn_config_dll comm.drv16 enable_win16 |
| 14773 | wine_fn_config_dll commdlg.dll16 enable_win16 |
| 14774 | wine_fn_config_dll compobj.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14775 | wine_fn_config_dll compstui enable_compstui implib |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14776 | wine_fn_config_dll credui enable_credui implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14777 | wine_fn_config_test dlls/credui/tests credui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14778 | wine_fn_config_dll crtdll enable_crtdll implib |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14779 | wine_fn_config_dll crypt32 enable_crypt32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14780 | wine_fn_config_test dlls/crypt32/tests crypt32_test |
Alexandre Julliard | 8484e96 | 2011-01-06 12:28:26 +0100 | [diff] [blame] | 14781 | wine_fn_config_dll cryptdlg enable_cryptdlg po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14782 | wine_fn_config_dll cryptdll enable_cryptdll implib |
| 14783 | wine_fn_config_dll cryptnet enable_cryptnet implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14784 | wine_fn_config_test dlls/cryptnet/tests cryptnet_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14785 | wine_fn_config_dll cryptui enable_cryptui implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14786 | wine_fn_config_test dlls/cryptui/tests cryptui_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14787 | wine_fn_config_dll ctapi32 enable_ctapi32 |
| 14788 | wine_fn_config_dll ctl3d.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14789 | wine_fn_config_dll ctl3d32 enable_ctl3d32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14790 | wine_fn_config_dll ctl3dv2.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14791 | wine_fn_config_dll d3d10 enable_d3d10 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14792 | wine_fn_config_test dlls/d3d10/tests d3d10_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14793 | wine_fn_config_dll d3d10core enable_d3d10core implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14794 | wine_fn_config_test dlls/d3d10core/tests d3d10core_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14795 | wine_fn_config_dll d3d8 enable_d3d8 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14796 | wine_fn_config_test dlls/d3d8/tests d3d8_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14797 | wine_fn_config_dll d3d9 enable_d3d9 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14798 | wine_fn_config_test dlls/d3d9/tests d3d9_test |
Matteo Bruni | 0ac336f | 2010-07-29 01:53:54 +0200 | [diff] [blame] | 14799 | wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33 |
Matteo Bruni | 66d4499 | 2010-07-29 01:47:13 +0200 | [diff] [blame] | 14800 | wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34 |
Matteo Bruni | 8ea7583 | 2010-07-28 16:44:37 +0200 | [diff] [blame] | 14801 | wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35 |
Matteo Bruni | 458eb08 | 2010-07-28 16:37:28 +0200 | [diff] [blame] | 14802 | wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36 |
Matteo Bruni | 3c59b9c | 2010-07-28 16:22:11 +0200 | [diff] [blame] | 14803 | wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37 |
Matteo Bruni | fbf1e83 | 2010-07-28 16:13:40 +0200 | [diff] [blame] | 14804 | wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38 |
Matteo Bruni | 9949146 | 2010-07-28 04:31:18 +0200 | [diff] [blame] | 14805 | wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39 |
Matteo Bruni | fd4efcd | 2010-07-28 04:09:13 +0200 | [diff] [blame] | 14806 | wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40 |
Matteo Bruni | 79c1bc4 | 2010-08-03 18:44:25 +0200 | [diff] [blame] | 14807 | wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41 |
Matteo Bruni | fe05070 | 2010-08-03 18:44:25 +0200 | [diff] [blame] | 14808 | wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14809 | wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler |
Rico Schüller | 5ad7f7b | 2010-08-19 21:33:43 +0200 | [diff] [blame] | 14810 | wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14811 | wine_fn_config_dll d3dim enable_d3dim implib |
| 14812 | wine_fn_config_dll d3drm enable_d3drm implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14813 | wine_fn_config_test dlls/d3drm/tests d3drm_test |
Owen Rudge | 9870c04 | 2010-08-18 16:02:22 -0500 | [diff] [blame] | 14814 | wine_fn_config_dll d3dx10_33 enable_d3dx10_33 |
Owen Rudge | 49dbdc1 | 2010-08-18 16:02:20 -0500 | [diff] [blame] | 14815 | wine_fn_config_dll d3dx10_34 enable_d3dx10_34 |
Owen Rudge | 955b844 | 2010-08-18 16:02:18 -0500 | [diff] [blame] | 14816 | wine_fn_config_dll d3dx10_35 enable_d3dx10_35 |
Owen Rudge | f44830e | 2010-08-18 16:02:16 -0500 | [diff] [blame] | 14817 | wine_fn_config_dll d3dx10_36 enable_d3dx10_36 |
Owen Rudge | 4196ba2 | 2010-08-18 16:02:10 -0500 | [diff] [blame] | 14818 | wine_fn_config_dll d3dx10_37 enable_d3dx10_37 |
Owen Rudge | 199ff9b | 2010-08-18 16:02:08 -0500 | [diff] [blame] | 14819 | wine_fn_config_dll d3dx10_38 enable_d3dx10_38 |
Owen Rudge | fb8d7cd | 2010-08-18 16:02:06 -0500 | [diff] [blame] | 14820 | wine_fn_config_dll d3dx10_39 enable_d3dx10_39 |
Owen Rudge | 662cbb1 | 2010-08-18 16:02:03 -0500 | [diff] [blame] | 14821 | wine_fn_config_dll d3dx10_40 enable_d3dx10_40 |
Owen Rudge | 17591cc | 2010-08-18 16:01:59 -0500 | [diff] [blame] | 14822 | wine_fn_config_dll d3dx10_41 enable_d3dx10_41 |
Owen Rudge | e5d9e12 | 2010-08-18 16:01:57 -0500 | [diff] [blame] | 14823 | wine_fn_config_dll d3dx10_42 enable_d3dx10_42 |
Owen Rudge | 3c5b2e6 | 2010-08-18 16:01:53 -0500 | [diff] [blame] | 14824 | wine_fn_config_dll d3dx10_43 enable_d3dx10_43 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14825 | wine_fn_config_dll d3dx9_24 enable_d3dx9_24 |
| 14826 | wine_fn_config_dll d3dx9_25 enable_d3dx9_25 |
| 14827 | wine_fn_config_dll d3dx9_26 enable_d3dx9_26 |
| 14828 | wine_fn_config_dll d3dx9_27 enable_d3dx9_27 |
| 14829 | wine_fn_config_dll d3dx9_28 enable_d3dx9_28 |
| 14830 | wine_fn_config_dll d3dx9_29 enable_d3dx9_29 |
| 14831 | wine_fn_config_dll d3dx9_30 enable_d3dx9_30 |
| 14832 | wine_fn_config_dll d3dx9_31 enable_d3dx9_31 |
| 14833 | wine_fn_config_dll d3dx9_32 enable_d3dx9_32 |
| 14834 | wine_fn_config_dll d3dx9_33 enable_d3dx9_33 |
| 14835 | wine_fn_config_dll d3dx9_34 enable_d3dx9_34 |
| 14836 | wine_fn_config_dll d3dx9_35 enable_d3dx9_35 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14837 | wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14838 | wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14839 | wine_fn_config_dll d3dx9_37 enable_d3dx9_37 |
| 14840 | wine_fn_config_dll d3dx9_38 enable_d3dx9_38 |
| 14841 | wine_fn_config_dll d3dx9_39 enable_d3dx9_39 |
| 14842 | wine_fn_config_dll d3dx9_40 enable_d3dx9_40 |
| 14843 | wine_fn_config_dll d3dx9_41 enable_d3dx9_41 |
| 14844 | wine_fn_config_dll d3dx9_42 enable_d3dx9_42 |
Matteo Bruni | 90c615a | 2010-08-25 17:12:51 +0200 | [diff] [blame] | 14845 | wine_fn_config_dll d3dx9_43 enable_d3dx9_43 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14846 | wine_fn_config_dll d3dxof enable_d3dxof implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14847 | wine_fn_config_test dlls/d3dxof/tests d3dxof_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14848 | wine_fn_config_dll dbgeng enable_dbgeng implib |
| 14849 | wine_fn_config_dll dbghelp enable_dbghelp implib |
| 14850 | wine_fn_config_dll dciman32 enable_dciman32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14851 | wine_fn_config_dll ddeml.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14852 | wine_fn_config_dll ddraw enable_ddraw implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14853 | wine_fn_config_test dlls/ddraw/tests ddraw_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14854 | wine_fn_config_dll ddrawex enable_ddrawex |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14855 | wine_fn_config_test dlls/ddrawex/tests ddrawex_test |
Alexandre Julliard | 0cdd147 | 2011-01-06 12:37:11 +0100 | [diff] [blame] | 14856 | wine_fn_config_dll devenum enable_devenum po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14857 | wine_fn_config_dll dinput enable_dinput implib,staticimplib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14858 | wine_fn_config_test dlls/dinput/tests dinput_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14859 | wine_fn_config_dll dinput8 enable_dinput8 implib |
Lucas Fialho Zawacki | 1fbf857 | 2011-04-29 19:29:19 -0300 | [diff] [blame] | 14860 | wine_fn_config_test dlls/dinput8/tests dinput8_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14861 | wine_fn_config_dll dispdib.dll16 enable_win16 |
| 14862 | wine_fn_config_dll dispex enable_dispex |
Huw Davies | df07561 | 2010-03-19 13:34:53 +0000 | [diff] [blame] | 14863 | wine_fn_config_test dlls/dispex/tests dispex_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14864 | wine_fn_config_dll display.drv16 enable_win16 |
| 14865 | wine_fn_config_dll dmband enable_dmband |
| 14866 | wine_fn_config_dll dmcompos enable_dmcompos |
| 14867 | wine_fn_config_dll dmime enable_dmime |
Austin Lund | 203272e | 2010-08-06 17:50:49 +1000 | [diff] [blame] | 14868 | wine_fn_config_test dlls/dmime/tests dmime_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14869 | wine_fn_config_dll dmloader enable_dmloader |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14870 | wine_fn_config_test dlls/dmloader/tests dmloader_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14871 | wine_fn_config_dll dmscript enable_dmscript |
| 14872 | wine_fn_config_dll dmstyle enable_dmstyle |
| 14873 | wine_fn_config_dll dmsynth enable_dmsynth |
| 14874 | wine_fn_config_dll dmusic enable_dmusic |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14875 | wine_fn_config_dll dmusic32 enable_dmusic32 implib |
| 14876 | wine_fn_config_dll dnsapi enable_dnsapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14877 | wine_fn_config_test dlls/dnsapi/tests dnsapi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14878 | wine_fn_config_dll dplay enable_dplay implib |
| 14879 | wine_fn_config_dll dplayx enable_dplayx implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14880 | wine_fn_config_test dlls/dplayx/tests dplayx_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14881 | wine_fn_config_dll dpnaddr enable_dpnaddr |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14882 | wine_fn_config_dll dpnet enable_dpnet implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14883 | wine_fn_config_dll dpnhpast enable_dpnhpast |
| 14884 | wine_fn_config_dll dpnlobby enable_dpnlobby |
| 14885 | wine_fn_config_dll dpwsockx enable_dpwsockx |
| 14886 | wine_fn_config_dll drmclien enable_drmclien |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14887 | wine_fn_config_dll dsound enable_dsound implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14888 | wine_fn_config_test dlls/dsound/tests dsound_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14889 | wine_fn_config_dll dssenh enable_dssenh |
| 14890 | wine_fn_config_dll dswave enable_dswave |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14891 | wine_fn_config_dll dwmapi enable_dwmapi implib |
Andrew Nguyen | f9c8e46 | 2011-04-03 20:55:32 -0500 | [diff] [blame] | 14892 | wine_fn_config_dll dxdiagn enable_dxdiagn po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14893 | wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14894 | wine_fn_config_lib dxerr8 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14895 | wine_fn_config_lib dxerr9 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14896 | wine_fn_config_dll dxgi enable_dxgi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14897 | wine_fn_config_test dlls/dxgi/tests dxgi_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14898 | wine_fn_config_lib dxguid |
David Hedberg | e2cf9ad | 2010-07-31 20:02:45 +0200 | [diff] [blame] | 14899 | wine_fn_config_dll explorerframe enable_explorerframe |
David Hedberg | 87212d5 | 2010-07-31 20:02:49 +0200 | [diff] [blame] | 14900 | wine_fn_config_test dlls/explorerframe/tests explorerframe_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14901 | wine_fn_config_dll faultrep enable_faultrep implib |
Detlef Riekenberg | 53fca11 | 2010-10-26 10:11:13 +0200 | [diff] [blame] | 14902 | wine_fn_config_test dlls/faultrep/tests faultrep_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14903 | wine_fn_config_dll fltlib enable_fltlib |
| 14904 | wine_fn_config_dll fusion enable_fusion |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14905 | wine_fn_config_test dlls/fusion/tests fusion_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14906 | wine_fn_config_dll fwpuclnt enable_fwpuclnt |
Mariusz Pluciński | b3a9ce4 | 2010-07-22 23:59:34 +0200 | [diff] [blame] | 14907 | wine_fn_config_dll gameux enable_gameux |
Mariusz Pluciński | cb886f4 | 2010-08-03 11:58:01 +0200 | [diff] [blame] | 14908 | wine_fn_config_test dlls/gameux/tests gameux_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14909 | wine_fn_config_dll gdi.exe16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14910 | wine_fn_config_dll gdi32 enable_gdi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14911 | wine_fn_config_test dlls/gdi32/tests gdi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14912 | wine_fn_config_dll gdiplus enable_gdiplus implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14913 | wine_fn_config_test dlls/gdiplus/tests gdiplus_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14914 | wine_fn_config_dll glu32 enable_glu32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14915 | wine_fn_config_dll gphoto2.ds enable_gphoto2_ds |
| 14916 | wine_fn_config_dll gpkcsp enable_gpkcsp |
| 14917 | wine_fn_config_dll hal enable_hal |
Alexandre Julliard | c9b52d2 | 2011-01-06 13:19:58 +0100 | [diff] [blame] | 14918 | wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14919 | wine_fn_config_dll hid enable_hid implib |
| 14920 | wine_fn_config_dll hlink enable_hlink implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14921 | wine_fn_config_test dlls/hlink/tests hlink_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14922 | wine_fn_config_dll hnetcfg enable_hnetcfg |
| 14923 | wine_fn_config_dll httpapi enable_httpapi |
Alexandre Julliard | 9c6444c | 2011-01-06 13:31:16 +0100 | [diff] [blame] | 14924 | wine_fn_config_dll iccvid enable_iccvid po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14925 | wine_fn_config_dll icmp enable_icmp |
Jacek Caban | c685f8c | 2011-07-27 14:45:47 +0200 | [diff] [blame] | 14926 | wine_fn_config_dll ieframe enable_ieframe implib,po |
Jacek Caban | f42d9e2 | 2011-07-28 13:32:01 +0200 | [diff] [blame] | 14927 | wine_fn_config_test dlls/ieframe/tests ieframe_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14928 | wine_fn_config_dll ifsmgr.vxd enable_win16 |
| 14929 | wine_fn_config_dll imaadp32.acm enable_imaadp32_acm |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14930 | wine_fn_config_dll imagehlp enable_imagehlp implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14931 | wine_fn_config_test dlls/imagehlp/tests imagehlp_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14932 | wine_fn_config_dll imm.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14933 | wine_fn_config_dll imm32 enable_imm32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14934 | wine_fn_config_test dlls/imm32/tests imm32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14935 | wine_fn_config_dll inetcomm enable_inetcomm implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14936 | wine_fn_config_test dlls/inetcomm/tests inetcomm_test |
Alexandre Julliard | be52106 | 2011-01-12 15:49:32 +0100 | [diff] [blame] | 14937 | wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14938 | wine_fn_config_dll inetmib1 enable_inetmib1 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14939 | wine_fn_config_test dlls/inetmib1/tests inetmib1_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14940 | wine_fn_config_dll infosoft enable_infosoft |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14941 | wine_fn_config_test dlls/infosoft/tests infosoft_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14942 | wine_fn_config_dll initpki enable_initpki |
| 14943 | wine_fn_config_dll inkobj enable_inkobj |
| 14944 | wine_fn_config_dll inseng enable_inseng |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14945 | wine_fn_config_dll iphlpapi enable_iphlpapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14946 | wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14947 | wine_fn_config_dll itircl enable_itircl |
| 14948 | wine_fn_config_dll itss enable_itss |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14949 | wine_fn_config_test dlls/itss/tests itss_test |
Alexandre Julliard | 0ccf1d8 | 2011-01-06 13:38:57 +0100 | [diff] [blame] | 14950 | wine_fn_config_dll jscript enable_jscript po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14951 | wine_fn_config_test dlls/jscript/tests jscript_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14952 | wine_fn_config_dll kernel32 enable_kernel32 implib,mc |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14953 | wine_fn_config_test dlls/kernel32/tests kernel32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14954 | wine_fn_config_dll keyboard.drv16 enable_win16 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14955 | wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel |
Vincent Povirk | 8f87459 | 2010-09-26 16:38:44 -0500 | [diff] [blame] | 14956 | wine_fn_config_dll ktmw32 enable_ktmw32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14957 | wine_fn_config_dll loadperf enable_loadperf implib |
Alexandre Julliard | 7df87f3 | 2011-01-06 14:24:05 +0100 | [diff] [blame] | 14958 | wine_fn_config_dll localspl enable_localspl po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14959 | wine_fn_config_test dlls/localspl/tests localspl_test |
Alexandre Julliard | 0546dd5 | 2011-01-12 16:11:26 +0100 | [diff] [blame] | 14960 | wine_fn_config_dll localui enable_localui po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14961 | wine_fn_config_test dlls/localui/tests localui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14962 | wine_fn_config_dll lz32 enable_lz32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14963 | wine_fn_config_test dlls/lz32/tests lz32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14964 | wine_fn_config_dll lzexpand.dll16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14965 | wine_fn_config_dll mapi32 enable_mapi32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14966 | wine_fn_config_test dlls/mapi32/tests mapi32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14967 | wine_fn_config_dll mapistub enable_mapistub |
| 14968 | wine_fn_config_dll mciavi32 enable_mciavi32 |
| 14969 | wine_fn_config_dll mcicda enable_mcicda |
| 14970 | wine_fn_config_dll mciqtz32 enable_mciqtz32 |
| 14971 | wine_fn_config_dll mciseq enable_mciseq |
| 14972 | wine_fn_config_dll mciwave enable_mciwave |
| 14973 | wine_fn_config_dll midimap enable_midimap |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14974 | wine_fn_config_dll mlang enable_mlang implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14975 | wine_fn_config_test dlls/mlang/tests mlang_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14976 | wine_fn_config_dll mmdevapi enable_mmdevapi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14977 | wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14978 | wine_fn_config_dll mmdevldr.vxd enable_win16 |
| 14979 | wine_fn_config_dll mmsystem.dll16 enable_win16 |
| 14980 | wine_fn_config_dll monodebg.vxd enable_win16 |
| 14981 | wine_fn_config_dll mountmgr.sys enable_mountmgr_sys |
| 14982 | wine_fn_config_dll mouse.drv16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14983 | wine_fn_config_dll mpr enable_mpr implib,po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14984 | wine_fn_config_dll mprapi enable_mprapi implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14985 | wine_fn_config_dll msacm.dll16 enable_win16 |
| 14986 | wine_fn_config_dll msacm32.drv enable_msacm32_drv |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14987 | wine_fn_config_dll msacm32 enable_msacm32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14988 | wine_fn_config_test dlls/msacm32/tests msacm32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14989 | wine_fn_config_dll msadp32.acm enable_msadp32_acm |
| 14990 | wine_fn_config_dll mscat32 enable_mscat32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14991 | wine_fn_config_dll mscms enable_mscms implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14992 | wine_fn_config_test dlls/mscms/tests mscms_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14993 | wine_fn_config_dll mscoree enable_mscoree |
Louis Lenders | a852870 | 2010-08-24 11:48:01 +0200 | [diff] [blame] | 14994 | wine_fn_config_test dlls/mscoree/tests mscoree_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14995 | wine_fn_config_dll msctf enable_msctf |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14996 | wine_fn_config_test dlls/msctf/tests msctf_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14997 | wine_fn_config_dll msdaps enable_msdaps |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14998 | wine_fn_config_dll msdmo enable_msdmo implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14999 | wine_fn_config_dll msftedit enable_msftedit |
| 15000 | wine_fn_config_dll msg711.acm enable_msg711_acm |
| 15001 | wine_fn_config_dll msgsm32.acm enable_msgsm32_acm |
| 15002 | wine_fn_config_dll mshtml.tlb enable_mshtml_tlb |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15003 | wine_fn_config_dll mshtml enable_mshtml implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15004 | wine_fn_config_test dlls/mshtml/tests mshtml_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15005 | wine_fn_config_dll msi enable_msi implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15006 | wine_fn_config_test dlls/msi/tests msi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15007 | wine_fn_config_dll msimg32 enable_msimg32 implib |
Hans Leidekker | 530e947 | 2011-03-10 10:59:44 +0100 | [diff] [blame] | 15008 | wine_fn_config_dll msimsg enable_msimsg |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15009 | wine_fn_config_dll msimtf enable_msimtf |
| 15010 | wine_fn_config_dll msisip enable_msisip |
| 15011 | wine_fn_config_dll msisys.ocx enable_msisys_ocx |
| 15012 | wine_fn_config_dll msnet32 enable_msnet32 |
David Hedberg | 21085ed | 2011-03-22 04:16:56 +0100 | [diff] [blame] | 15013 | wine_fn_config_dll mspatcha enable_mspatcha |
Alexandre Julliard | ad5605b | 2011-01-06 16:36:14 +0100 | [diff] [blame] | 15014 | wine_fn_config_dll msrle32 enable_msrle32 po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15015 | wine_fn_config_dll mssign32 enable_mssign32 |
| 15016 | wine_fn_config_dll mssip32 enable_mssip32 |
| 15017 | wine_fn_config_dll mstask enable_mstask |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15018 | wine_fn_config_test dlls/mstask/tests mstask_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15019 | wine_fn_config_dll msvcirt enable_msvcirt |
Austin English | dfbf47b | 2011-04-05 12:47:46 -0700 | [diff] [blame] | 15020 | wine_fn_config_dll msvcp100 enable_msvcp100 |
Alexandre Julliard | a3172a5 | 2011-04-28 23:30:07 +0200 | [diff] [blame] | 15021 | wine_fn_config_dll msvcp60 enable_msvcp60 |
Alexandre Julliard | 2f9c02e | 2011-05-03 11:09:58 +0200 | [diff] [blame] | 15022 | wine_fn_config_dll msvcp70 enable_msvcp70 |
Alexandre Julliard | 4be2026 | 2011-05-02 17:32:22 +0200 | [diff] [blame] | 15023 | wine_fn_config_dll msvcp71 enable_msvcp71 |
Piotr Caban | 71a49eb | 2010-08-23 16:36:24 +0200 | [diff] [blame] | 15024 | wine_fn_config_dll msvcp80 enable_msvcp80 |
Piotr Caban | 9ae9d26 | 2010-07-20 23:22:16 +0200 | [diff] [blame] | 15025 | wine_fn_config_dll msvcp90 enable_msvcp90 |
Piotr Caban | d589d95 | 2010-07-20 23:24:32 +0200 | [diff] [blame] | 15026 | wine_fn_config_test dlls/msvcp90/tests msvcp90_test |
Detlef Riekenberg | 1434ef4 | 2010-04-30 14:07:34 +0200 | [diff] [blame] | 15027 | wine_fn_config_dll msvcr100 enable_msvcr100 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15028 | wine_fn_config_dll msvcr70 enable_msvcr70 implib |
| 15029 | wine_fn_config_dll msvcr71 enable_msvcr71 implib |
Piotr Caban | c452249 | 2010-03-25 11:06:29 +0100 | [diff] [blame] | 15030 | wine_fn_config_dll msvcr80 enable_msvcr80 |
| 15031 | wine_fn_config_dll msvcr90 enable_msvcr90 |
Detlef Riekenberg | 73e669c | 2010-03-20 00:32:17 +0100 | [diff] [blame] | 15032 | wine_fn_config_test dlls/msvcr90/tests msvcr90_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15033 | wine_fn_config_dll msvcrt enable_msvcrt implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15034 | wine_fn_config_test dlls/msvcrt/tests msvcrt_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15035 | wine_fn_config_dll msvcrt20 enable_msvcrt20 implib |
| 15036 | wine_fn_config_dll msvcrt40 enable_msvcrt40 implib |
| 15037 | wine_fn_config_dll msvcrtd enable_msvcrtd implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15038 | wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15039 | wine_fn_config_dll msvfw32 enable_msvfw32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15040 | wine_fn_config_test dlls/msvfw32/tests msvfw32_test |
Alexandre Julliard | 958ecd6 | 2011-01-06 17:07:23 +0100 | [diff] [blame] | 15041 | wine_fn_config_dll msvidc32 enable_msvidc32 po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15042 | wine_fn_config_dll msvideo.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15043 | wine_fn_config_dll mswsock enable_mswsock implib |
Alexandre Julliard | 25ccc90 | 2010-12-21 12:03:14 +0100 | [diff] [blame] | 15044 | wine_fn_config_dll msxml enable_msxml |
Alexandre Julliard | 41d6a92 | 2010-12-21 13:27:20 +0100 | [diff] [blame] | 15045 | wine_fn_config_dll msxml2 enable_msxml2 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15046 | wine_fn_config_dll msxml3 enable_msxml3 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15047 | wine_fn_config_test dlls/msxml3/tests msxml3_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15048 | wine_fn_config_dll msxml4 enable_msxml4 |
Nikolay Sivov | 25bce45 | 2010-08-30 01:31:07 +0400 | [diff] [blame] | 15049 | wine_fn_config_dll msxml6 enable_msxml6 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15050 | wine_fn_config_dll nddeapi enable_nddeapi implib |
| 15051 | wine_fn_config_dll netapi32 enable_netapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15052 | wine_fn_config_test dlls/netapi32/tests netapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15053 | wine_fn_config_dll newdev enable_newdev implib |
Thomas Mullaly | 858ccff | 2011-01-02 17:13:43 -0500 | [diff] [blame] | 15054 | wine_fn_config_dll normaliz enable_normaliz implib |
Jacek Caban | 4a91265 | 2010-12-02 19:15:28 +0100 | [diff] [blame] | 15055 | wine_fn_config_dll npmshtml enable_npmshtml |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15056 | wine_fn_config_dll ntdll enable_ntdll implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15057 | wine_fn_config_test dlls/ntdll/tests ntdll_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15058 | wine_fn_config_dll ntdsapi enable_ntdsapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15059 | wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15060 | wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15061 | wine_fn_config_dll ntprint enable_ntprint |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15062 | wine_fn_config_test dlls/ntprint/tests ntprint_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15063 | wine_fn_config_dll objsel enable_objsel |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15064 | wine_fn_config_dll odbc32 enable_odbc32 implib |
| 15065 | wine_fn_config_dll odbccp32 enable_odbccp32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15066 | wine_fn_config_test dlls/odbccp32/tests odbccp32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15067 | wine_fn_config_dll ole2.dll16 enable_win16 |
| 15068 | wine_fn_config_dll ole2conv.dll16 enable_win16 |
| 15069 | wine_fn_config_dll ole2disp.dll16 enable_win16 |
| 15070 | wine_fn_config_dll ole2nls.dll16 enable_win16 |
| 15071 | wine_fn_config_dll ole2prox.dll16 enable_win16 |
| 15072 | wine_fn_config_dll ole2thk.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15073 | wine_fn_config_dll ole32 enable_ole32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15074 | wine_fn_config_test dlls/ole32/tests ole32_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15075 | wine_fn_config_dll oleacc enable_oleacc implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15076 | wine_fn_config_test dlls/oleacc/tests oleacc_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15077 | wine_fn_config_dll oleaut32 enable_oleaut32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15078 | wine_fn_config_test dlls/oleaut32/tests oleaut32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15079 | wine_fn_config_dll olecli.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15080 | wine_fn_config_dll olecli32 enable_olecli32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15081 | wine_fn_config_dll oledb32 enable_oledb32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15082 | wine_fn_config_test dlls/oledb32/tests oledb32_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15083 | wine_fn_config_dll oledlg enable_oledlg implib,po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15084 | wine_fn_config_dll olepro32 enable_olepro32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15085 | wine_fn_config_dll olesvr.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15086 | wine_fn_config_dll olesvr32 enable_olesvr32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15087 | wine_fn_config_dll olethk32 enable_olethk32 |
| 15088 | wine_fn_config_dll openal32 enable_openal32 |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 15089 | wine_fn_config_dll opencl enable_opencl |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15090 | wine_fn_config_dll opengl32 enable_opengl32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15091 | wine_fn_config_test dlls/opengl32/tests opengl32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15092 | wine_fn_config_dll pdh enable_pdh implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15093 | wine_fn_config_test dlls/pdh/tests pdh_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15094 | wine_fn_config_dll pidgen enable_pidgen |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15095 | wine_fn_config_dll powrprof enable_powrprof implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15096 | wine_fn_config_dll printui enable_printui |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15097 | wine_fn_config_dll propsys enable_propsys implib |
Andrew Nguyen | c20908b | 2010-07-25 21:57:59 -0500 | [diff] [blame] | 15098 | wine_fn_config_test dlls/propsys/tests propsys_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15099 | wine_fn_config_dll psapi enable_psapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15100 | wine_fn_config_test dlls/psapi/tests psapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15101 | wine_fn_config_dll pstorec enable_pstorec |
| 15102 | wine_fn_config_dll qcap enable_qcap |
| 15103 | wine_fn_config_dll qedit enable_qedit |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15104 | wine_fn_config_test dlls/qedit/tests qedit_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15105 | wine_fn_config_dll qmgr enable_qmgr |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15106 | wine_fn_config_test dlls/qmgr/tests qmgr_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15107 | wine_fn_config_dll qmgrprxy enable_qmgrprxy |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15108 | wine_fn_config_dll quartz enable_quartz implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15109 | wine_fn_config_test dlls/quartz/tests quartz_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15110 | wine_fn_config_dll query enable_query |
| 15111 | wine_fn_config_dll rasapi16.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15112 | wine_fn_config_dll rasapi32 enable_rasapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15113 | wine_fn_config_test dlls/rasapi32/tests rasapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15114 | wine_fn_config_dll rasdlg enable_rasdlg implib |
Austin English | d8d7780 | 2011-05-21 20:17:07 -0500 | [diff] [blame] | 15115 | wine_fn_config_dll regapi enable_regapi |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15116 | wine_fn_config_dll resutils enable_resutils implib |
| 15117 | wine_fn_config_dll riched20 enable_riched20 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15118 | wine_fn_config_test dlls/riched20/tests riched20_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15119 | wine_fn_config_dll riched32 enable_riched32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15120 | wine_fn_config_test dlls/riched32/tests riched32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15121 | wine_fn_config_dll rpcrt4 enable_rpcrt4 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15122 | wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15123 | wine_fn_config_dll rsabase enable_rsabase |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15124 | wine_fn_config_dll rsaenh enable_rsaenh implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15125 | wine_fn_config_test dlls/rsaenh/tests rsaenh_test |
Louis Lenders | 85b3f29 | 2010-08-27 11:45:11 +0200 | [diff] [blame] | 15126 | wine_fn_config_dll rstrtmgr enable_rstrtmgr |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15127 | wine_fn_config_dll rtutils enable_rtutils implib |
Louis Lenders | 1ae673f | 2010-05-11 22:59:22 +0200 | [diff] [blame] | 15128 | wine_fn_config_dll samlib enable_samlib |
Alexandre Julliard | 036fe88 | 2011-01-14 12:48:59 +0100 | [diff] [blame] | 15129 | wine_fn_config_dll sane.ds enable_sane_ds po |
Stefan Leichter | 81f3d68 | 2011-04-03 23:50:40 +0200 | [diff] [blame] | 15130 | wine_fn_config_dll scarddlg enable_scarddlg |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15131 | wine_fn_config_dll sccbase enable_sccbase |
| 15132 | wine_fn_config_dll schannel enable_schannel |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15133 | wine_fn_config_test dlls/schannel/tests schannel_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15134 | wine_fn_config_dll secur32 enable_secur32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15135 | wine_fn_config_test dlls/secur32/tests secur32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15136 | wine_fn_config_dll security enable_security |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15137 | wine_fn_config_dll sensapi enable_sensapi implib |
| 15138 | wine_fn_config_dll serialui enable_serialui implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15139 | wine_fn_config_test dlls/serialui/tests serialui_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15140 | wine_fn_config_dll setupapi enable_setupapi implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15141 | wine_fn_config_test dlls/setupapi/tests setupapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15142 | wine_fn_config_dll setupx.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15143 | wine_fn_config_dll sfc enable_sfc implib |
| 15144 | wine_fn_config_dll sfc_os enable_sfc_os implib |
Alexandre Julliard | b31d231 | 2011-01-06 17:42:05 +0100 | [diff] [blame] | 15145 | wine_fn_config_dll shdoclc enable_shdoclc po |
Jacek Caban | c685f8c | 2011-07-27 14:45:47 +0200 | [diff] [blame] | 15146 | wine_fn_config_dll shdocvw enable_shdocvw implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15147 | wine_fn_config_test dlls/shdocvw/tests shdocvw_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15148 | wine_fn_config_dll shell.dll16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15149 | wine_fn_config_dll shell32 enable_shell32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15150 | wine_fn_config_test dlls/shell32/tests shell32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15151 | wine_fn_config_dll shfolder enable_shfolder implib |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15152 | wine_fn_config_dll shlwapi enable_shlwapi implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15153 | wine_fn_config_test dlls/shlwapi/tests shlwapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15154 | wine_fn_config_dll slbcsp enable_slbcsp |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15155 | wine_fn_config_dll slc enable_slc implib |
| 15156 | wine_fn_config_dll snmpapi enable_snmpapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15157 | wine_fn_config_test dlls/snmpapi/tests snmpapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15158 | wine_fn_config_dll softpub enable_softpub |
| 15159 | wine_fn_config_dll sound.drv16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15160 | wine_fn_config_dll spoolss enable_spoolss implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15161 | wine_fn_config_test dlls/spoolss/tests spoolss_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15162 | wine_fn_config_dll stdole2.tlb enable_stdole2_tlb |
| 15163 | wine_fn_config_dll stdole32.tlb enable_stdole32_tlb |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15164 | wine_fn_config_dll sti enable_sti implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15165 | wine_fn_config_test dlls/sti/tests sti_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15166 | wine_fn_config_dll storage.dll16 enable_win16 |
| 15167 | wine_fn_config_dll stress.dll16 enable_win16 |
Aric Stewart | 9619210 | 2010-10-04 09:48:25 -0500 | [diff] [blame] | 15168 | wine_fn_config_lib strmbase |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15169 | wine_fn_config_lib strmiids |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15170 | wine_fn_config_dll svrapi enable_svrapi |
| 15171 | wine_fn_config_dll sxs enable_sxs |
| 15172 | wine_fn_config_dll system.drv16 enable_win16 |
| 15173 | wine_fn_config_dll t2embed enable_t2embed |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15174 | wine_fn_config_dll tapi32 enable_tapi32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15175 | wine_fn_config_dll toolhelp.dll16 enable_win16 |
| 15176 | wine_fn_config_dll traffic enable_traffic |
| 15177 | wine_fn_config_dll twain.dll16 enable_win16 |
| 15178 | wine_fn_config_dll twain_32 enable_twain_32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15179 | wine_fn_config_test dlls/twain_32/tests twain_32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15180 | wine_fn_config_dll typelib.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15181 | wine_fn_config_dll unicows enable_unicows implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15182 | wine_fn_config_dll updspapi enable_updspapi |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15183 | wine_fn_config_dll url enable_url implib |
| 15184 | wine_fn_config_dll urlmon enable_urlmon implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15185 | wine_fn_config_test dlls/urlmon/tests urlmon_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15186 | wine_fn_config_dll usbd.sys enable_usbd_sys implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15187 | wine_fn_config_dll user.exe16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15188 | wine_fn_config_dll user32 enable_user32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15189 | wine_fn_config_test dlls/user32/tests user32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15190 | wine_fn_config_dll userenv enable_userenv implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15191 | wine_fn_config_test dlls/userenv/tests userenv_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15192 | wine_fn_config_dll usp10 enable_usp10 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15193 | wine_fn_config_test dlls/usp10/tests usp10_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15194 | wine_fn_config_lib uuid |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15195 | wine_fn_config_dll uxtheme enable_uxtheme implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15196 | wine_fn_config_test dlls/uxtheme/tests uxtheme_test |
Jacek Caban | c35aa01 | 2011-06-21 16:14:04 +0200 | [diff] [blame] | 15197 | wine_fn_config_dll vbscript enable_vbscript |
Jacek Caban | 68c6f58 | 2011-07-19 13:46:50 +0200 | [diff] [blame] | 15198 | wine_fn_config_test dlls/vbscript/tests vbscript_test |
Austin English | dd2159c | 2011-04-08 18:03:47 +0000 | [diff] [blame] | 15199 | wine_fn_config_dll vcomp enable_vcomp |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15200 | wine_fn_config_dll vdhcp.vxd enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15201 | wine_fn_config_dll vdmdbg enable_vdmdbg implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15202 | wine_fn_config_dll ver.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15203 | wine_fn_config_dll version enable_version implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15204 | wine_fn_config_test dlls/version/tests version_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15205 | wine_fn_config_dll vmm.vxd enable_win16 |
| 15206 | wine_fn_config_dll vnbt.vxd enable_win16 |
| 15207 | wine_fn_config_dll vnetbios.vxd enable_win16 |
| 15208 | wine_fn_config_dll vtdapi.vxd enable_win16 |
| 15209 | wine_fn_config_dll vwin32.vxd enable_win16 |
| 15210 | wine_fn_config_dll w32skrnl enable_win16 |
| 15211 | wine_fn_config_dll w32sys.dll16 enable_win16 |
| 15212 | wine_fn_config_dll wbemprox enable_wbemprox |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15213 | wine_fn_config_dll wer enable_wer implib |
Detlef Riekenberg | d8a5bc9 | 2010-10-26 11:37:17 +0200 | [diff] [blame] | 15214 | wine_fn_config_test dlls/wer/tests wer_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15215 | wine_fn_config_dll wiaservc enable_wiaservc |
| 15216 | wine_fn_config_dll win32s16.dll16 enable_win16 |
| 15217 | wine_fn_config_dll win87em.dll16 enable_win16 |
| 15218 | wine_fn_config_dll winaspi.dll16 enable_win16 |
| 15219 | wine_fn_config_dll windebug.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15220 | wine_fn_config_dll windowscodecs enable_windowscodecs implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15221 | wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15222 | wine_fn_config_dll winealsa.drv enable_winealsa_drv |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15223 | wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15224 | wine_fn_config_lib winecrt0 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15225 | wine_fn_config_dll wined3d enable_wined3d implib |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 15226 | wine_fn_config_dll winegstreamer enable_winegstreamer |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15227 | wine_fn_config_dll winejoystick.drv enable_winejoystick_drv |
| 15228 | wine_fn_config_dll winemapi enable_winemapi |
| 15229 | wine_fn_config_dll winemp3.acm enable_winemp3_acm |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15230 | wine_fn_config_dll wineoss.drv enable_wineoss_drv |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 15231 | wine_fn_config_dll wineps.drv enable_wineps_drv install-lib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15232 | wine_fn_config_dll wineps16.drv16 enable_win16 |
Aric Stewart | eefe6f6 | 2010-12-03 07:33:08 -0600 | [diff] [blame] | 15233 | wine_fn_config_dll wineqtdecoder enable_wineqtdecoder |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15234 | wine_fn_config_dll winequartz.drv enable_winequartz_drv |
| 15235 | wine_fn_config_dll winex11.drv enable_winex11_drv |
| 15236 | wine_fn_config_dll wing.dll16 enable_win16 |
| 15237 | wine_fn_config_dll wing32 enable_wing32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15238 | wine_fn_config_dll winhttp enable_winhttp implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15239 | wine_fn_config_test dlls/winhttp/tests winhttp_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15240 | wine_fn_config_dll wininet enable_wininet implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15241 | wine_fn_config_test dlls/wininet/tests wininet_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15242 | wine_fn_config_dll winmm enable_winmm implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15243 | wine_fn_config_test dlls/winmm/tests winmm_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15244 | wine_fn_config_dll winnls.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15245 | wine_fn_config_dll winnls32 enable_winnls32 implib |
| 15246 | wine_fn_config_dll winscard enable_winscard implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15247 | wine_fn_config_dll winsock.dll16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15248 | wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15249 | wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test |
Austin English | 14067ac | 2011-05-21 20:14:37 -0500 | [diff] [blame] | 15250 | wine_fn_config_dll winsta enable_winsta |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15251 | wine_fn_config_dll wintab.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15252 | wine_fn_config_dll wintab32 enable_wintab32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15253 | wine_fn_config_test dlls/wintab32/tests wintab32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15254 | wine_fn_config_dll wintrust enable_wintrust implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15255 | wine_fn_config_test dlls/wintrust/tests wintrust_test |
Ričardas Barkauskas | 303079f | 2010-10-20 11:21:15 +0300 | [diff] [blame] | 15256 | wine_fn_config_dll wlanapi enable_wlanapi |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15257 | wine_fn_config_dll wldap32 enable_wldap32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15258 | wine_fn_config_test dlls/wldap32/tests wldap32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15259 | wine_fn_config_dll wmi enable_wmi |
| 15260 | wine_fn_config_dll wmiutils enable_wmiutils |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15261 | wine_fn_config_dll wnaspi32 enable_wnaspi32 implib |
| 15262 | wine_fn_config_dll wow32 enable_win16 implib |
| 15263 | wine_fn_config_dll ws2_32 enable_ws2_32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15264 | wine_fn_config_test dlls/ws2_32/tests ws2_32_test |
Jacek Caban | 1c2f066 | 2011-08-03 13:22:54 +0200 | [diff] [blame] | 15265 | wine_fn_config_dll wshom.ocx enable_wshom_ocx |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15266 | wine_fn_config_dll wsock32 enable_wsock32 implib |
| 15267 | wine_fn_config_dll wtsapi32 enable_wtsapi32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15268 | wine_fn_config_dll wuapi enable_wuapi |
| 15269 | wine_fn_config_dll wuaueng enable_wuaueng |
Louis Lenders | 934d676 | 2010-11-12 11:23:37 +0100 | [diff] [blame] | 15270 | wine_fn_config_dll xapofx1_1 enable_xapofx1_1 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15271 | wine_fn_config_dll xinput1_1 enable_xinput1_1 |
| 15272 | wine_fn_config_dll xinput1_2 enable_xinput1_2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15273 | wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15274 | wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15275 | wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0 |
| 15276 | wine_fn_config_dll xmllite enable_xmllite |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15277 | wine_fn_config_test dlls/xmllite/tests xmllite_test |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 15278 | wine_fn_config_makefile documentation enable_documentation |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 15279 | wine_fn_config_makefile fonts enable_fonts install-lib |
| 15280 | wine_fn_config_makefile include enable_include install-dev |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 15281 | wine_fn_config_makefile libs/port enable_libs_port |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 15282 | 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] | 15283 | wine_fn_config_makefile libs/wpp enable_libs_wpp |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15284 | wine_fn_config_makefile loader enable_loader install-lib,manpage |
Hans Leidekker | ab789c6 | 2010-10-13 14:23:09 +0200 | [diff] [blame] | 15285 | wine_fn_config_program aspnet_regiis enable_aspnet_regiis install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15286 | wine_fn_config_program attrib enable_attrib install |
Alexandre Julliard | 30bdbed | 2011-02-02 22:44:47 +0100 | [diff] [blame] | 15287 | wine_fn_config_program cabarc enable_cabarc install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15288 | wine_fn_config_program cacls enable_cacls install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15289 | wine_fn_config_program clock enable_clock install,po |
| 15290 | wine_fn_config_program cmd enable_cmd install,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15291 | wine_fn_config_test programs/cmd/tests cmd.exe_test |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15292 | wine_fn_config_program cmdlgtst enable_cmdlgtst |
| 15293 | wine_fn_config_program control enable_control install |
Andrew Nguyen | 4122cf2 | 2011-06-14 08:01:45 -0500 | [diff] [blame] | 15294 | wine_fn_config_program dxdiag enable_dxdiag install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15295 | wine_fn_config_program eject enable_eject install |
| 15296 | wine_fn_config_program expand enable_expand install |
Jay Yang | f2ac486 | 2011-06-11 17:42:17 -0400 | [diff] [blame] | 15297 | wine_fn_config_program explorer enable_explorer install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15298 | wine_fn_config_program extrac32 enable_extrac32 install |
| 15299 | wine_fn_config_program hh enable_hh install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15300 | wine_fn_config_program hostname enable_hostname install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15301 | wine_fn_config_program icinfo enable_icinfo install |
| 15302 | wine_fn_config_program iexplore enable_iexplore install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15303 | wine_fn_config_program ipconfig enable_ipconfig install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15304 | wine_fn_config_program lodctr enable_lodctr install |
Hans Leidekker | f15aea2 | 2010-09-29 09:57:34 +0200 | [diff] [blame] | 15305 | wine_fn_config_program mofcomp enable_mofcomp install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15306 | wine_fn_config_program mshta enable_mshta install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15307 | wine_fn_config_program msiexec enable_msiexec install,installbin,manpage |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15308 | wine_fn_config_program net enable_net install,po |
Hans Leidekker | 8ad7d2e | 2010-12-06 13:19:41 +0100 | [diff] [blame] | 15309 | wine_fn_config_program netsh enable_netsh install |
Vincent Povirk | 4d3e6f4 | 2010-04-02 10:19:18 -0500 | [diff] [blame] | 15310 | wine_fn_config_program ngen enable_ngen install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15311 | wine_fn_config_program notepad enable_notepad install,installbin,manpage,po |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15312 | wine_fn_config_program oleview enable_oleview install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15313 | wine_fn_config_program ping enable_ping install |
Hans Leidekker | 2133b6c | 2011-01-31 15:26:17 +0100 | [diff] [blame] | 15314 | wine_fn_config_program plugplay enable_plugplay install |
Hans Leidekker | 8959961 | 2011-08-24 10:23:57 +0200 | [diff] [blame^] | 15315 | wine_fn_config_program presentationfontcache enable_presentationfontcache install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15316 | wine_fn_config_program progman enable_progman install,po |
| 15317 | wine_fn_config_program reg enable_reg install,po |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15318 | wine_fn_config_program regedit enable_regedit install,installbin,manpage,po |
Andrew Eikum | f3c6c62 | 2010-07-30 16:02:34 -0500 | [diff] [blame] | 15319 | wine_fn_config_test programs/regedit/tests regedit.exe_test |
Hans Leidekker | ab5fbeb | 2010-11-12 13:07:40 +0100 | [diff] [blame] | 15320 | wine_fn_config_program regsvcs enable_regsvcs install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15321 | wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15322 | wine_fn_config_program rpcss enable_rpcss install |
Detlef Riekenberg | df898ea | 2010-07-18 19:15:57 +0200 | [diff] [blame] | 15323 | wine_fn_config_program rundll.exe16 enable_win16 install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15324 | wine_fn_config_program rundll32 enable_rundll32 install |
Hans Leidekker | 544da28 | 2010-05-03 12:56:58 +0200 | [diff] [blame] | 15325 | wine_fn_config_program sc enable_sc install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15326 | wine_fn_config_program secedit enable_secedit install |
Hans Leidekker | 1885c3d | 2010-11-18 12:09:11 +0100 | [diff] [blame] | 15327 | wine_fn_config_program servicemodelreg enable_servicemodelreg install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15328 | wine_fn_config_program services enable_services install |
| 15329 | wine_fn_config_program spoolsv enable_spoolsv install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15330 | wine_fn_config_program start enable_start install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15331 | wine_fn_config_program svchost enable_svchost install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15332 | wine_fn_config_program taskkill enable_taskkill install,po |
| 15333 | wine_fn_config_program taskmgr enable_taskmgr install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15334 | wine_fn_config_program termsv enable_termsv install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15335 | wine_fn_config_program uninstaller enable_uninstaller install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15336 | wine_fn_config_program unlodctr enable_unlodctr install |
Alexandre Julliard | 9d6489a | 2011-01-10 13:25:22 +0100 | [diff] [blame] | 15337 | wine_fn_config_program view enable_view po |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15338 | wine_fn_config_program wineboot enable_wineboot install,installbin,manpage |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15339 | wine_fn_config_program winebrowser enable_winebrowser install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15340 | wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po |
| 15341 | wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po |
| 15342 | wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15343 | wine_fn_config_program winedevice enable_winedevice install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15344 | wine_fn_config_program winefile enable_winefile install,installbin,manpage,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15345 | wine_fn_config_program winemenubuilder enable_winemenubuilder install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15346 | wine_fn_config_program winemine enable_winemine install,installbin,manpage,po |
Hans Leidekker | 1370072 | 2011-02-01 14:01:42 +0100 | [diff] [blame] | 15347 | wine_fn_config_program winemsibuilder enable_winemsibuilder install |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15348 | wine_fn_config_program winepath enable_winepath install,installbin,manpage |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15349 | wine_fn_config_program winetest enable_winetest |
| 15350 | wine_fn_config_program winevdm enable_win16 install |
| 15351 | wine_fn_config_program winhelp.exe16 enable_win16 install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15352 | wine_fn_config_program winhlp32 enable_winhlp32 install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15353 | wine_fn_config_program winoldap.mod16 enable_win16 install |
| 15354 | wine_fn_config_program winver enable_winver install |
Louis Lenders | 4b281b2 | 2010-12-06 23:04:20 +0100 | [diff] [blame] | 15355 | wine_fn_config_program wmic enable_wmic install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15356 | wine_fn_config_program wordpad enable_wordpad install,po |
| 15357 | wine_fn_config_program write enable_write install,po |
Jacek Caban | 16bad58 | 2010-07-27 15:51:18 +0200 | [diff] [blame] | 15358 | wine_fn_config_program wscript enable_wscript install |
Jacek Caban | f5eb15a | 2011-02-22 19:48:37 +0100 | [diff] [blame] | 15359 | wine_fn_config_test programs/wscript/tests wscript.exe_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15360 | wine_fn_config_program xcopy enable_xcopy install,po |
Alexandre Julliard | 41107a9 | 2011-08-01 13:40:19 +0200 | [diff] [blame] | 15361 | wine_fn_config_makefile server enable_server install-lib,manpage |
| 15362 | wine_fn_config_tool tools install-dev,install-lib,manpage |
| 15363 | wine_fn_config_tool tools/widl install-dev,manpage |
| 15364 | wine_fn_config_tool tools/winebuild install-dev,manpage |
| 15365 | wine_fn_config_tool tools/winedump install-dev,manpage |
| 15366 | wine_fn_config_tool tools/winegcc install-dev,manpage |
| 15367 | wine_fn_config_tool tools/wmc install-dev,manpage |
| 15368 | wine_fn_config_tool tools/wrc install-dev,manpage |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 15369 | |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15370 | LINGUAS="\ |
Alexandre Julliard | ff71d91 | 2011-01-08 12:53:31 +0100 | [diff] [blame] | 15371 | ar \ |
Alexandre Julliard | 4bca334 | 2011-01-04 19:38:45 +0100 | [diff] [blame] | 15372 | bg \ |
Alexandre Julliard | 39558f8 | 2011-01-13 17:24:15 +0100 | [diff] [blame] | 15373 | ca \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15374 | cs \ |
| 15375 | da \ |
| 15376 | de \ |
Alexandre Julliard | c9b52d2 | 2011-01-06 13:19:58 +0100 | [diff] [blame] | 15377 | el \ |
| 15378 | en \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15379 | en_US \ |
| 15380 | eo \ |
| 15381 | es \ |
Alexandre Julliard | ff71d91 | 2011-01-08 12:53:31 +0100 | [diff] [blame] | 15382 | fa \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15383 | fi \ |
| 15384 | fr \ |
| 15385 | he \ |
| 15386 | hi \ |
| 15387 | hu \ |
| 15388 | it \ |
| 15389 | ja \ |
| 15390 | ko \ |
| 15391 | lt \ |
| 15392 | ml \ |
| 15393 | nb_NO \ |
| 15394 | nl \ |
| 15395 | or \ |
| 15396 | pa \ |
| 15397 | pl \ |
| 15398 | pt_BR \ |
| 15399 | pt_PT \ |
Alexandre Julliard | 433e240 | 2011-01-10 20:30:14 +0100 | [diff] [blame] | 15400 | rm \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15401 | ro \ |
| 15402 | ru \ |
| 15403 | sk \ |
| 15404 | sl \ |
Alexandre Julliard | c0b813f | 2011-01-07 12:11:41 +0100 | [diff] [blame] | 15405 | sr_RS@cyrillic \ |
| 15406 | sr_RS@latin \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15407 | sv \ |
| 15408 | te \ |
| 15409 | th \ |
| 15410 | tr \ |
| 15411 | uk \ |
| 15412 | wa \ |
| 15413 | zh_CN \ |
| 15414 | zh_TW" |
| 15415 | |
| 15416 | |
| 15417 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 15418 | ac_config_commands="$ac_config_commands Makefile" |
| 15419 | |
| 15420 | |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 15421 | 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] | 15422 | |
| 15423 | |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15424 | |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15425 | if test "x$enable_maintainer_mode" = xyes |
| 15426 | then |
| 15427 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4 |
| 15428 | cd \$(srcdir) && autoconf --warnings=all |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15429 | \$(srcdir)/include/config.h.in: include/stamp-h.in |
| 15430 | \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4 |
| 15431 | cd \$(srcdir) && autoheader --warnings=all |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 15432 | @echo timestamp > \$@ |
| 15433 | |
| 15434 | ALL_POT_FILES =$ALL_POT_FILES |
| 15435 | all: \$(ALL_PO_FILES) |
| 15436 | \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot |
Alexandre Julliard | 945ccf5 | 2011-01-27 15:09:55 +0100 | [diff] [blame] | 15437 | msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@ |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 15438 | \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES) |
| 15439 | msgcat -o \$@ \$(ALL_POT_FILES)" |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15440 | fi |
| 15441 | |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 15442 | if test "x$enable_tools" != xno |
| 15443 | then |
| 15444 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile |
| 15445 | clean:: __clean__ |
| 15446 | \$(RM) tools/makedep\$(EXEEXT)" |
| 15447 | fi |
| 15448 | |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15449 | if test -n "$with_wine64" |
| 15450 | then |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 15451 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader |
| 15452 | fonts server tools: |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15453 | \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@ |
Alexandre Julliard | f3831cf | 2010-05-16 17:01:52 +0200 | [diff] [blame] | 15454 | $with_wine64/loader/wine: |
| 15455 | \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@ |
Alexandre Julliard | 3c42b62 | 2010-12-27 14:37:57 +0100 | [diff] [blame] | 15456 | $with_wine64/loader/wine-preloader: |
| 15457 | \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@ |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15458 | clean:: |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 15459 | \$(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] | 15460 | fi |
| 15461 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15462 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15463 | # This file is a shell script that caches the results of configure |
| 15464 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15465 | # scripts and configure runs, see configure's option --config-cache. |
| 15466 | # It is not useful on other systems. If it contains results you don't |
| 15467 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15468 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15469 | # config.status only pays attention to the cache file if you give it |
| 15470 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15471 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15472 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15473 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15474 | # following values. |
| 15475 | |
| 15476 | _ACEOF |
| 15477 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 15478 | # The following way of writing the cache mishandles newlines in values, |
| 15479 | # but we know of no workaround that is simple, portable, and efficient. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15480 | # So, we kill variables containing newlines. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15481 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15482 | # 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] | 15483 | ( |
| 15484 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15485 | eval ac_val=\$$ac_var |
| 15486 | case $ac_val in #( |
| 15487 | *${as_nl}*) |
| 15488 | case $ac_var in #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15489 | *_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] | 15490 | $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] | 15491 | esac |
| 15492 | case $ac_var in #( |
| 15493 | _ | IFS | as_nl) ;; #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15494 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15495 | *) { eval $ac_var=; unset $ac_var;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15496 | esac ;; |
| 15497 | esac |
| 15498 | done |
| 15499 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15500 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15501 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15502 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15503 | # `set' does not quote correctly, so add quotes: double-quote |
| 15504 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15505 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15506 | "s/'/'\\\\''/g; |
| 15507 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15508 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15509 | *) |
| 15510 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15511 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15512 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15513 | esac | |
| 15514 | sort |
| 15515 | ) | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15516 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15517 | /^ac_cv_env_/b end |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15518 | t clear |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15519 | :clear |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15520 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15521 | t end |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15522 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15523 | :end' >>confcache |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15524 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15525 | if test -w "$cache_file"; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 15526 | if test "x$cache_file" != "x/dev/null"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15527 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15528 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 15529 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 15530 | cat confcache >"$cache_file" |
| 15531 | else |
| 15532 | case $cache_file in #( |
| 15533 | */* | ?:*) |
| 15534 | mv -f confcache "$cache_file"$$ && |
| 15535 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 15536 | *) |
| 15537 | mv -f confcache "$cache_file" ;; |
| 15538 | esac |
| 15539 | fi |
| 15540 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15541 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15542 | { $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] | 15543 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15544 | fi |
| 15545 | fi |
| 15546 | rm -f confcache |
| 15547 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15548 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15549 | # Let make expand exec_prefix. |
| 15550 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15551 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15552 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15553 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15554 | ac_libobjs= |
| 15555 | ac_ltlibobjs= |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15556 | U= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15557 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15558 | # 1. Remove the extension, and $U if already installed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15559 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15560 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15561 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15562 | # will be set to the directory where LIBOBJS objects are built. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15563 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15564 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15565 | done |
| 15566 | LIBOBJS=$ac_libobjs |
| 15567 | |
| 15568 | LTLIBOBJS=$ac_ltlibobjs |
| 15569 | |
| 15570 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15571 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 15572 | : "${CONFIG_STATUS=./config.status}" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15573 | ac_write_fail=0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15574 | ac_clean_files_save=$ac_clean_files |
| 15575 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15576 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15577 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15578 | as_write_fail=0 |
| 15579 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15580 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15581 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15582 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15583 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15584 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15585 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15586 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15587 | ac_cs_recheck=false |
| 15588 | ac_cs_silent=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15589 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15590 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15591 | export SHELL |
| 15592 | _ASEOF |
| 15593 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 15594 | ## -------------------- ## |
| 15595 | ## M4sh Initialization. ## |
| 15596 | ## -------------------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15597 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15598 | # Be more Bourne compatible |
| 15599 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15600 | 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] | 15601 | emulate sh |
| 15602 | NULLCMD=: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15603 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15604 | # is contrary to our usage. Disable this feature. |
| 15605 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15606 | setopt NO_GLOB_SUBST |
| 15607 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15608 | case `(set -o) 2>/dev/null` in #( |
| 15609 | *posix*) : |
| 15610 | set -o posix ;; #( |
| 15611 | *) : |
| 15612 | ;; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15613 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 15614 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15615 | |
| 15616 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15617 | as_nl=' |
| 15618 | ' |
| 15619 | export as_nl |
| 15620 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 15621 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 15622 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15623 | 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] | 15624 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 15625 | # but without wasting forks for bash or zsh. |
| 15626 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 15627 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15628 | as_echo='print -r --' |
| 15629 | as_echo_n='print -rn --' |
| 15630 | 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] | 15631 | as_echo='printf %s\n' |
| 15632 | as_echo_n='printf %s' |
| 15633 | else |
| 15634 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 15635 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 15636 | as_echo_n='/usr/ucb/echo -n' |
| 15637 | else |
| 15638 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 15639 | as_echo_n_body='eval |
| 15640 | arg=$1; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15641 | case $arg in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15642 | *"$as_nl"*) |
| 15643 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 15644 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 15645 | esac; |
| 15646 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 15647 | ' |
| 15648 | export as_echo_n_body |
| 15649 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 15650 | fi |
| 15651 | export as_echo_body |
| 15652 | as_echo='sh -c $as_echo_body as_echo' |
| 15653 | fi |
| 15654 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15655 | # The user is always right. |
| 15656 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15657 | PATH_SEPARATOR=: |
| 15658 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 15659 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 15660 | PATH_SEPARATOR=';' |
| 15661 | } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15662 | fi |
| 15663 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15664 | |
| 15665 | # IFS |
| 15666 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15667 | # there to prevent editors from complaining about space-tab. |
| 15668 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15669 | # splitting by setting IFS to empty value.) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15670 | IFS=" "" $as_nl" |
| 15671 | |
| 15672 | # 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] | 15673 | as_myself= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15674 | case $0 in #(( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15675 | *[\\/]* ) as_myself=$0 ;; |
| 15676 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15677 | for as_dir in $PATH |
| 15678 | do |
| 15679 | IFS=$as_save_IFS |
| 15680 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15681 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15682 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15683 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15684 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15685 | ;; |
| 15686 | esac |
| 15687 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15688 | # in which case we are not to be found in the path. |
| 15689 | if test "x$as_myself" = x; then |
| 15690 | as_myself=$0 |
| 15691 | fi |
| 15692 | if test ! -f "$as_myself"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15693 | $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] | 15694 | exit 1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15695 | fi |
| 15696 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15697 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 15698 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 15699 | # suppresses any "Segmentation fault" message there. '((' could |
| 15700 | # trigger a bug in pdksh 5.2.14. |
| 15701 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 15702 | do eval test x\${$as_var+set} = xset \ |
| 15703 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15704 | done |
| 15705 | PS1='$ ' |
| 15706 | PS2='> ' |
| 15707 | PS4='+ ' |
| 15708 | |
| 15709 | # NLS nuisances. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15710 | LC_ALL=C |
| 15711 | export LC_ALL |
| 15712 | LANGUAGE=C |
| 15713 | export LANGUAGE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15714 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15715 | # CDPATH. |
| 15716 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15717 | |
| 15718 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15719 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 15720 | # ---------------------------------------- |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15721 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 15722 | # 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] | 15723 | # script with STATUS, using 1 if that was 0. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15724 | as_fn_error () |
| 15725 | { |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15726 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 15727 | if test "$4"; then |
| 15728 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 15729 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15730 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15731 | $as_echo "$as_me: error: $2" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15732 | as_fn_exit $as_status |
| 15733 | } # as_fn_error |
| 15734 | |
| 15735 | |
| 15736 | # as_fn_set_status STATUS |
| 15737 | # ----------------------- |
| 15738 | # Set $? to STATUS, without forking. |
| 15739 | as_fn_set_status () |
| 15740 | { |
| 15741 | return $1 |
| 15742 | } # as_fn_set_status |
| 15743 | |
| 15744 | # as_fn_exit STATUS |
| 15745 | # ----------------- |
| 15746 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 15747 | as_fn_exit () |
| 15748 | { |
| 15749 | set +e |
| 15750 | as_fn_set_status $1 |
| 15751 | exit $1 |
| 15752 | } # as_fn_exit |
| 15753 | |
| 15754 | # as_fn_unset VAR |
| 15755 | # --------------- |
| 15756 | # Portably unset VAR. |
| 15757 | as_fn_unset () |
| 15758 | { |
| 15759 | { eval $1=; unset $1;} |
| 15760 | } |
| 15761 | as_unset=as_fn_unset |
| 15762 | # as_fn_append VAR VALUE |
| 15763 | # ---------------------- |
| 15764 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 15765 | # advantage of any shell optimizations that allow amortized linear growth over |
| 15766 | # repeated appends, instead of the typical quadratic growth present in naive |
| 15767 | # implementations. |
| 15768 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 15769 | eval 'as_fn_append () |
| 15770 | { |
| 15771 | eval $1+=\$2 |
| 15772 | }' |
| 15773 | else |
| 15774 | as_fn_append () |
| 15775 | { |
| 15776 | eval $1=\$$1\$2 |
| 15777 | } |
| 15778 | fi # as_fn_append |
| 15779 | |
| 15780 | # as_fn_arith ARG... |
| 15781 | # ------------------ |
| 15782 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 15783 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 15784 | # must be portable across $(()) and expr. |
| 15785 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 15786 | eval 'as_fn_arith () |
| 15787 | { |
| 15788 | as_val=$(( $* )) |
| 15789 | }' |
| 15790 | else |
| 15791 | as_fn_arith () |
| 15792 | { |
| 15793 | as_val=`expr "$@" || test $? -eq 1` |
| 15794 | } |
| 15795 | fi # as_fn_arith |
| 15796 | |
| 15797 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15798 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15799 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15800 | as_expr=expr |
| 15801 | else |
| 15802 | as_expr=false |
| 15803 | fi |
| 15804 | |
| 15805 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15806 | as_basename=basename |
| 15807 | else |
| 15808 | as_basename=false |
| 15809 | fi |
| 15810 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15811 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15812 | as_dirname=dirname |
| 15813 | else |
| 15814 | as_dirname=false |
| 15815 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15816 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15817 | as_me=`$as_basename -- "$0" || |
| 15818 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15819 | X"$0" : 'X\(//\)$' \| \ |
| 15820 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15821 | $as_echo X/"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15822 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15823 | s//\1/ |
| 15824 | q |
| 15825 | } |
| 15826 | /^X\/\(\/\/\)$/{ |
| 15827 | s//\1/ |
| 15828 | q |
| 15829 | } |
| 15830 | /^X\/\(\/\).*/{ |
| 15831 | s//\1/ |
| 15832 | q |
| 15833 | } |
| 15834 | s/.*/./; q'` |
| 15835 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15836 | # Avoid depending upon Character Ranges. |
| 15837 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15838 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15839 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15840 | as_cr_digits='0123456789' |
| 15841 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15842 | |
| 15843 | ECHO_C= ECHO_N= ECHO_T= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15844 | case `echo -n x` in #((((( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15845 | -n*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15846 | case `echo 'xy\c'` in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15847 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15848 | xy) ECHO_C='\c';; |
| 15849 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 15850 | ECHO_T=' ';; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15851 | esac;; |
| 15852 | *) |
| 15853 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15854 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15855 | |
| 15856 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15857 | if test -d conf$$.dir; then |
| 15858 | rm -f conf$$.dir/conf$$.file |
| 15859 | else |
| 15860 | rm -f conf$$.dir |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15861 | mkdir conf$$.dir 2>/dev/null |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15862 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15863 | if (echo >conf$$.file) 2>/dev/null; then |
| 15864 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15865 | as_ln_s='ln -s' |
| 15866 | # ... but there are two gotchas: |
| 15867 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15868 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15869 | # In both cases, we have to default to `cp -p'. |
| 15870 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 15871 | as_ln_s='cp -p' |
| 15872 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15873 | as_ln_s=ln |
| 15874 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15875 | as_ln_s='cp -p' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15876 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15877 | else |
| 15878 | as_ln_s='cp -p' |
| 15879 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15880 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15881 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15882 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15883 | |
| 15884 | # as_fn_mkdir_p |
| 15885 | # ------------- |
| 15886 | # Create "$as_dir" as a directory, including parents if necessary. |
| 15887 | as_fn_mkdir_p () |
| 15888 | { |
| 15889 | |
| 15890 | case $as_dir in #( |
| 15891 | -*) as_dir=./$as_dir;; |
| 15892 | esac |
| 15893 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 15894 | as_dirs= |
| 15895 | while :; do |
| 15896 | case $as_dir in #( |
| 15897 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 15898 | *) as_qdir=$as_dir;; |
| 15899 | esac |
| 15900 | as_dirs="'$as_qdir' $as_dirs" |
| 15901 | as_dir=`$as_dirname -- "$as_dir" || |
| 15902 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15903 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 15904 | X"$as_dir" : 'X\(//\)$' \| \ |
| 15905 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 15906 | $as_echo X"$as_dir" | |
| 15907 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15908 | s//\1/ |
| 15909 | q |
| 15910 | } |
| 15911 | /^X\(\/\/\)[^/].*/{ |
| 15912 | s//\1/ |
| 15913 | q |
| 15914 | } |
| 15915 | /^X\(\/\/\)$/{ |
| 15916 | s//\1/ |
| 15917 | q |
| 15918 | } |
| 15919 | /^X\(\/\).*/{ |
| 15920 | s//\1/ |
| 15921 | q |
| 15922 | } |
| 15923 | s/.*/./; q'` |
| 15924 | test -d "$as_dir" && break |
| 15925 | done |
| 15926 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15927 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15928 | |
| 15929 | |
| 15930 | } # as_fn_mkdir_p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15931 | if mkdir -p . 2>/dev/null; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15932 | as_mkdir_p='mkdir -p "$as_dir"' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15933 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15934 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15935 | as_mkdir_p=false |
| 15936 | fi |
| 15937 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15938 | if test -x / >/dev/null 2>&1; then |
| 15939 | as_test_x='test -x' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15940 | else |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15941 | if ls -dL / >/dev/null 2>&1; then |
| 15942 | as_ls_L_option=L |
| 15943 | else |
| 15944 | as_ls_L_option= |
| 15945 | fi |
| 15946 | as_test_x=' |
| 15947 | eval sh -c '\'' |
| 15948 | if test -d "$1"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15949 | test -d "$1/."; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15950 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15951 | case $1 in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15952 | -*)set "./$1";; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15953 | esac; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15954 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15955 | ???[sx]*):;;*)false;;esac;fi |
| 15956 | '\'' sh |
| 15957 | ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15958 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15959 | as_executable_p=$as_test_x |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15960 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15961 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15962 | 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] | 15963 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15964 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15965 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15966 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15967 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15968 | exec 6>&1 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15969 | ## ----------------------------------- ## |
| 15970 | ## Main body of $CONFIG_STATUS script. ## |
| 15971 | ## ----------------------------------- ## |
| 15972 | _ASEOF |
| 15973 | 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] | 15974 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15975 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15976 | # 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] | 15977 | # report actual input values of CONFIG_FILES etc. instead of their |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15978 | # values after options handling. |
| 15979 | ac_log=" |
Alexandre Julliard | 8c00ee0 | 2011-08-05 19:24:22 +0200 | [diff] [blame] | 15980 | This file was extended by Wine $as_me 1.3.26, which was |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 15981 | generated by GNU Autoconf 2.68. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15982 | |
| 15983 | CONFIG_FILES = $CONFIG_FILES |
| 15984 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15985 | CONFIG_LINKS = $CONFIG_LINKS |
| 15986 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15987 | $ $0 $@ |
| 15988 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15989 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15990 | " |
| 15991 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15992 | _ACEOF |
| 15993 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15994 | case $ac_config_files in *" |
| 15995 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 15996 | esac |
| 15997 | |
| 15998 | case $ac_config_headers in *" |
| 15999 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 16000 | esac |
| 16001 | |
| 16002 | |
| 16003 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16004 | # Files that config.status was made for. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16005 | config_files="$ac_config_files" |
| 16006 | config_headers="$ac_config_headers" |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16007 | config_links="$ac_config_links" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16008 | config_commands="$ac_config_commands" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16009 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16010 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16011 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16012 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16013 | ac_cs_usage="\ |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16014 | \`$as_me' instantiates files and other configuration actions |
| 16015 | from templates according to the current configuration. Unless the files |
| 16016 | and actions are specified as TAGs, all are instantiated by default. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16017 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16018 | Usage: $0 [OPTION]... [TAG]... |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16019 | |
| 16020 | -h, --help print this help, then exit |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 16021 | -V, --version print version number and configuration settings, then exit |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16022 | --config print configuration, then exit |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16023 | -q, --quiet, --silent |
| 16024 | do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16025 | -d, --debug don't remove temporary files |
| 16026 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16027 | --file=FILE[:TEMPLATE] |
| 16028 | instantiate the configuration file FILE |
| 16029 | --header=FILE[:TEMPLATE] |
| 16030 | instantiate the configuration header FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16031 | |
| 16032 | Configuration files: |
| 16033 | $config_files |
| 16034 | |
| 16035 | Configuration headers: |
| 16036 | $config_headers |
| 16037 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16038 | Configuration links: |
| 16039 | $config_links |
| 16040 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16041 | Configuration commands: |
| 16042 | $config_commands |
| 16043 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16044 | Report bugs to <wine-devel@winehq.org>. |
| 16045 | Wine home page: <http://www.winehq.org>." |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 16046 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16047 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16048 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16049 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16050 | ac_cs_version="\\ |
Alexandre Julliard | 8c00ee0 | 2011-08-05 19:24:22 +0200 | [diff] [blame] | 16051 | Wine config.status 1.3.26 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16052 | configured by $0, generated by GNU Autoconf 2.68, |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16053 | with options \\"\$ac_cs_config\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16054 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16055 | Copyright (C) 2010 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16056 | This config.status script is free software; the Free Software Foundation |
| 16057 | gives unlimited permission to copy, distribute and modify it." |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16058 | |
| 16059 | ac_pwd='$ac_pwd' |
| 16060 | srcdir='$srcdir' |
| 16061 | INSTALL='$INSTALL' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16062 | test -n "\$AWK" || AWK=awk |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16063 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16064 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16065 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16066 | # The default lists apply if the user does not specify any file. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16067 | ac_need_defaults=: |
| 16068 | while test $# != 0 |
| 16069 | do |
| 16070 | case $1 in |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16071 | --*=?*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16072 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16073 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16074 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16075 | ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16076 | --*=) |
| 16077 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16078 | ac_optarg= |
| 16079 | ac_shift=: |
| 16080 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16081 | *) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16082 | ac_option=$1 |
| 16083 | ac_optarg=$2 |
| 16084 | ac_shift=shift |
| 16085 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16086 | esac |
| 16087 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16088 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16089 | # Handling of the options. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16090 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16091 | ac_cs_recheck=: ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16092 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16093 | $as_echo "$ac_cs_version"; exit ;; |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16094 | --config | --confi | --conf | --con | --co | --c ) |
| 16095 | $as_echo "$ac_cs_config"; exit ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16096 | --debug | --debu | --deb | --de | --d | -d ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16097 | debug=: ;; |
| 16098 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16099 | $ac_shift |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16100 | case $ac_optarg in |
| 16101 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16102 | '') as_fn_error $? "missing file argument" ;; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16103 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16104 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16105 | ac_need_defaults=false;; |
| 16106 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16107 | $ac_shift |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16108 | case $ac_optarg in |
| 16109 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 16110 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16111 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16112 | ac_need_defaults=false;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16113 | --he | --h) |
| 16114 | # Conflict between --help and --header |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16115 | as_fn_error $? "ambiguous option: \`$1' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16116 | Try \`$0 --help' for more information.";; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16117 | --help | --hel | -h ) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16118 | $as_echo "$ac_cs_usage"; exit ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16119 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16120 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16121 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16122 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16123 | # This is an error. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16124 | -*) as_fn_error $? "unrecognized option: \`$1' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16125 | Try \`$0 --help' for more information." ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16126 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16127 | *) as_fn_append ac_config_targets " $1" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16128 | ac_need_defaults=false ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16129 | |
| 16130 | esac |
| 16131 | shift |
| 16132 | done |
| 16133 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16134 | ac_configure_extra_args= |
| 16135 | |
| 16136 | if $ac_cs_silent; then |
| 16137 | exec 6>/dev/null |
| 16138 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16139 | fi |
| 16140 | |
| 16141 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16142 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16143 | if \$ac_cs_recheck; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16144 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 16145 | shift |
| 16146 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 16147 | CONFIG_SHELL='$SHELL' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16148 | export CONFIG_SHELL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16149 | exec "\$@" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16150 | fi |
| 16151 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16152 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16153 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16154 | exec 5>>config.log |
| 16155 | { |
| 16156 | echo |
| 16157 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16158 | ## Running $as_me. ## |
| 16159 | _ASBOX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16160 | $as_echo "$ac_log" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16161 | } >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16162 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16163 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16164 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16165 | # |
| 16166 | # INIT-COMMANDS |
| 16167 | # |
| 16168 | wine_fn_output_makefile () |
| 16169 | { |
| 16170 | cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return |
| 16171 | $ALL_MAKEFILE_DEPENDS |
| 16172 | _WINE_EOF |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16173 | as_fn_error $? "could not create Makefile" "$LINENO" 5 |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16174 | } |
| 16175 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16176 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16177 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16178 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16179 | |
| 16180 | # Handling of arguments. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16181 | for ac_config_target in $ac_config_targets |
| 16182 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16183 | case $ac_config_target in |
| 16184 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | c4704c2 | 2006-09-22 09:33:00 +0200 | [diff] [blame] | 16185 | "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;; |
Alexandre Julliard | 40977bf | 2010-11-11 12:24:46 +0100 | [diff] [blame] | 16186 | "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;; |
Alexandre Julliard | a632052 | 2010-02-03 13:14:03 +0100 | [diff] [blame] | 16187 | "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] | 16188 | "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;; |
| 16189 | "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;; |
| 16190 | "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;; |
| 16191 | "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;; |
Alexandre Julliard | 321d388 | 2010-05-06 20:51:53 +0200 | [diff] [blame] | 16192 | "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] | 16193 | "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;; |
Alexandre Julliard | 4422d22 | 2011-05-10 13:26:28 +0200 | [diff] [blame] | 16194 | "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;; |
Huw Davies | 4cffb2d | 2011-04-01 15:27:48 +0100 | [diff] [blame] | 16195 | "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;; |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 16196 | "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;; |
| 16197 | "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;; |
Alexandre Julliard | 1c60e3b | 2006-09-12 16:10:51 +0200 | [diff] [blame] | 16198 | "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;; |
Alexandre Julliard | b8a2e3b | 2006-11-16 14:49:25 +0100 | [diff] [blame] | 16199 | "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16200 | "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;; |
| 16201 | "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
| 16202 | "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 16203 | "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16204 | "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
| 16205 | "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16206 | "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16207 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 16208 | "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] | 16209 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16210 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16211 | esac |
| 16212 | done |
| 16213 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16214 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16215 | # If the user did not use the arguments to specify the items to instantiate, |
| 16216 | # then the envvar interface is used. Set only those that are not. |
| 16217 | # We use the long form for the default assignment because of an extremely |
| 16218 | # bizarre bug on SunOS 4.1.3. |
| 16219 | if $ac_need_defaults; then |
| 16220 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16221 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16222 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16223 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 16224 | fi |
| 16225 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16226 | # Have a temporary directory for convenience. Make it in the build tree |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16227 | # 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] | 16228 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16229 | # Hook for its removal unless debugging. |
| 16230 | # Note that there is a small window in which the directory will not be cleaned: |
| 16231 | # after its creation but before its name has been assigned to `$tmp'. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16232 | $debug || |
| 16233 | { |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16234 | tmp= ac_tmp= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16235 | trap 'exit_status=$? |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16236 | : "${ac_tmp:=$tmp}" |
| 16237 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16238 | ' 0 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16239 | trap 'as_fn_exit 1' 1 2 13 15 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16240 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16241 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16242 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16243 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16244 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16245 | test -d "$tmp" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16246 | } || |
| 16247 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16248 | tmp=./conf$$-$RANDOM |
| 16249 | (umask 077 && mkdir "$tmp") |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16250 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16251 | ac_tmp=$tmp |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16252 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16253 | # Set up the scripts for CONFIG_FILES section. |
| 16254 | # No need to generate them if there are no CONFIG_FILES. |
| 16255 | # This happens for instance with `./config.status config.h'. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16256 | if test -n "$CONFIG_FILES"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16257 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16258 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 16259 | ac_cs_awk_getline=: |
| 16260 | ac_cs_awk_pipe_init= |
| 16261 | ac_cs_awk_read_file=' |
| 16262 | while ((getline aline < (F[key])) > 0) |
| 16263 | print(aline) |
| 16264 | close(F[key])' |
| 16265 | ac_cs_awk_pipe_fini= |
| 16266 | else |
| 16267 | ac_cs_awk_getline=false |
| 16268 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 16269 | ac_cs_awk_read_file=' |
| 16270 | print "|#_!!_#|" |
| 16271 | print "cat " F[key] " &&" |
| 16272 | '$ac_cs_awk_pipe_init |
| 16273 | # The final `:' finishes the AND list. |
| 16274 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 16275 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16276 | ac_cr=`echo X | tr X '\015'` |
| 16277 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16278 | # But we know of no other shell where ac_cr would be empty at this |
| 16279 | # point, so we can use a bashism as a fallback. |
| 16280 | if test "x$ac_cr" = x; then |
| 16281 | eval ac_cr=\$\'\\r\' |
| 16282 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16283 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16284 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16285 | ac_cs_awk_cr='\\r' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16286 | else |
| 16287 | ac_cs_awk_cr=$ac_cr |
| 16288 | fi |
| 16289 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16290 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16291 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16292 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16293 | # Create commands to substitute file output variables. |
| 16294 | { |
| 16295 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16296 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16297 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 16298 | echo "_ACAWK" && |
| 16299 | echo "_ACEOF" |
| 16300 | } >conf$$files.sh && |
| 16301 | . ./conf$$files.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16302 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16303 | rm -f conf$$files.sh |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16304 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16305 | { |
| 16306 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16307 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16308 | echo "_ACEOF" |
| 16309 | } >conf$$subs.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16310 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16311 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16312 | ac_delim='%!_!# ' |
| 16313 | for ac_last_try in false false false false false :; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16314 | . ./conf$$subs.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16315 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16316 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16317 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16318 | if test $ac_delim_n = $ac_delim_num; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16319 | break |
| 16320 | elif $ac_last_try; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16321 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16322 | else |
| 16323 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16324 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16325 | done |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16326 | rm -f conf$$subs.sh |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16327 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16328 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16329 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16330 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16331 | sed -n ' |
| 16332 | h |
| 16333 | s/^/S["/; s/!.*/"]=/ |
| 16334 | p |
| 16335 | g |
| 16336 | s/^[^!]*!// |
| 16337 | :repl |
| 16338 | t repl |
| 16339 | s/'"$ac_delim"'$// |
| 16340 | t delim |
| 16341 | :nl |
| 16342 | h |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16343 | s/\(.\{148\}\)..*/\1/ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16344 | t more1 |
| 16345 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16346 | p |
| 16347 | n |
| 16348 | b repl |
| 16349 | :more1 |
| 16350 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16351 | p |
| 16352 | g |
| 16353 | s/.\{148\}// |
| 16354 | t nl |
| 16355 | :delim |
| 16356 | h |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16357 | s/\(.\{148\}\)..*/\1/ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16358 | t more2 |
| 16359 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 16360 | p |
| 16361 | b |
| 16362 | :more2 |
| 16363 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16364 | p |
| 16365 | g |
| 16366 | s/.\{148\}// |
| 16367 | t delim |
| 16368 | ' <conf$$subs.awk | sed ' |
| 16369 | /^[^""]/{ |
| 16370 | N |
| 16371 | s/\n// |
| 16372 | } |
| 16373 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16374 | rm -f conf$$subs.awk |
| 16375 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16376 | _ACAWK |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16377 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16378 | for (key in S) S_is_set[key] = 1 |
| 16379 | FS = "" |
| 16380 | \$ac_cs_awk_pipe_init |
| 16381 | } |
| 16382 | { |
| 16383 | line = $ 0 |
| 16384 | nfields = split(line, field, "@") |
| 16385 | substed = 0 |
| 16386 | len = length(field[1]) |
| 16387 | for (i = 2; i < nfields; i++) { |
| 16388 | key = field[i] |
| 16389 | keylen = length(key) |
| 16390 | if (S_is_set[key]) { |
| 16391 | value = S[key] |
| 16392 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 16393 | len += length(value) + length(field[++i]) |
| 16394 | substed = 1 |
| 16395 | } else |
| 16396 | len += 1 + keylen |
| 16397 | } |
| 16398 | if (nfields == 3 && !substed) { |
| 16399 | key = field[2] |
| 16400 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 16401 | \$ac_cs_awk_read_file |
| 16402 | next |
| 16403 | } |
| 16404 | } |
| 16405 | print line |
| 16406 | } |
| 16407 | \$ac_cs_awk_pipe_fini |
| 16408 | _ACAWK |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16409 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16410 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16411 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 16412 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 16413 | else |
| 16414 | cat |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16415 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16416 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16417 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16418 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16419 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 16420 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16421 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16422 | # (actually we leave an empty line to preserve line numbers). |
| 16423 | if test "x$srcdir" = x.; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16424 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 16425 | h |
| 16426 | s/// |
| 16427 | s/^/:/ |
| 16428 | s/[ ]*$/:/ |
| 16429 | s/:\$(srcdir):/:/g |
| 16430 | s/:\${srcdir}:/:/g |
| 16431 | s/:@srcdir@:/:/g |
| 16432 | s/^:*// |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16433 | s/:*$// |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16434 | x |
| 16435 | s/\(=[ ]*\).*/\1/ |
| 16436 | G |
| 16437 | s/\n// |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16438 | s/^[^=]*=[ ]*$// |
| 16439 | }' |
| 16440 | fi |
| 16441 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16442 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16443 | fi # test -n "$CONFIG_FILES" |
| 16444 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16445 | # Set up the scripts for CONFIG_HEADERS section. |
| 16446 | # No need to generate them if there are no CONFIG_HEADERS. |
| 16447 | # This happens for instance with `./config.status Makefile'. |
| 16448 | if test -n "$CONFIG_HEADERS"; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16449 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16450 | BEGIN { |
| 16451 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16452 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16453 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 16454 | # here-document in config.status, that substitutes the proper values into |
| 16455 | # config.h.in to produce config.h. |
| 16456 | |
| 16457 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 16458 | # handling of long lines. |
| 16459 | ac_delim='%!_!# ' |
| 16460 | for ac_last_try in false false :; do |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16461 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 16462 | if test -z "$ac_tt"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16463 | break |
| 16464 | elif $ac_last_try; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16465 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16466 | else |
| 16467 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16468 | fi |
| 16469 | done |
| 16470 | |
| 16471 | # For the awk script, D is an array of macro values keyed by name, |
| 16472 | # likewise P contains macro parameters if any. Preserve backslash |
| 16473 | # newline sequences. |
| 16474 | |
| 16475 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 16476 | sed -n ' |
| 16477 | s/.\{148\}/&'"$ac_delim"'/g |
| 16478 | t rset |
| 16479 | :rset |
| 16480 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 16481 | t def |
| 16482 | d |
| 16483 | :def |
| 16484 | s/\\$// |
| 16485 | t bsnl |
| 16486 | s/["\\]/\\&/g |
| 16487 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16488 | D["\1"]=" \3"/p |
| 16489 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 16490 | d |
| 16491 | :bsnl |
| 16492 | s/["\\]/\\&/g |
| 16493 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16494 | D["\1"]=" \3\\\\\\n"\\/p |
| 16495 | t cont |
| 16496 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 16497 | t cont |
| 16498 | d |
| 16499 | :cont |
| 16500 | n |
| 16501 | s/.\{148\}/&'"$ac_delim"'/g |
| 16502 | t clear |
| 16503 | :clear |
| 16504 | s/\\$// |
| 16505 | t bsnlc |
| 16506 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 16507 | d |
| 16508 | :bsnlc |
| 16509 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 16510 | b cont |
| 16511 | ' <confdefs.h | sed ' |
| 16512 | s/'"$ac_delim"'/"\\\ |
| 16513 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16514 | |
| 16515 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16516 | for (key in D) D_is_set[key] = 1 |
| 16517 | FS = "" |
| 16518 | } |
| 16519 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 16520 | line = \$ 0 |
| 16521 | split(line, arg, " ") |
| 16522 | if (arg[1] == "#") { |
| 16523 | defundef = arg[2] |
| 16524 | mac1 = arg[3] |
| 16525 | } else { |
| 16526 | defundef = substr(arg[1], 2) |
| 16527 | mac1 = arg[2] |
| 16528 | } |
| 16529 | split(mac1, mac2, "(") #) |
| 16530 | macro = mac2[1] |
| 16531 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 16532 | if (D_is_set[macro]) { |
| 16533 | # Preserve the white space surrounding the "#". |
| 16534 | print prefix "define", macro P[macro] D[macro] |
| 16535 | next |
| 16536 | } else { |
| 16537 | # Replace #undef with comments. This is necessary, for example, |
| 16538 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 16539 | # on some systems where configure will not decide to define it. |
| 16540 | if (defundef == "undef") { |
| 16541 | print "/*", prefix defundef, macro, "*/" |
| 16542 | next |
| 16543 | } |
| 16544 | } |
| 16545 | } |
| 16546 | { print } |
| 16547 | _ACAWK |
| 16548 | _ACEOF |
| 16549 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16550 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16551 | fi # test -n "$CONFIG_HEADERS" |
| 16552 | |
| 16553 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16554 | 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] | 16555 | shift |
| 16556 | for ac_tag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16557 | do |
| 16558 | case $ac_tag in |
| 16559 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16560 | esac |
| 16561 | case $ac_mode$ac_tag in |
| 16562 | :[FHL]*:*);; |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16563 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16564 | :[FH]-) ac_tag=-:-;; |
| 16565 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16566 | esac |
| 16567 | ac_save_IFS=$IFS |
| 16568 | IFS=: |
| 16569 | set x $ac_tag |
| 16570 | IFS=$ac_save_IFS |
| 16571 | shift |
| 16572 | ac_file=$1 |
| 16573 | shift |
| 16574 | |
| 16575 | case $ac_mode in |
| 16576 | :L) ac_source=$1;; |
| 16577 | :[FH]) |
| 16578 | ac_file_inputs= |
| 16579 | for ac_f |
| 16580 | do |
| 16581 | case $ac_f in |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16582 | -) ac_f="$ac_tmp/stdin";; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16583 | *) # Look for the file first in the build tree, then in the source tree |
| 16584 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16585 | # because $ac_f cannot contain `:'. |
| 16586 | test -f "$ac_f" || |
| 16587 | case $ac_f in |
| 16588 | [\\/$]*) false;; |
| 16589 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16590 | esac || |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16591 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16592 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16593 | 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] | 16594 | as_fn_append ac_file_inputs " '$ac_f'" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16595 | done |
| 16596 | |
| 16597 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16598 | # use $as_me), people would be surprised to read: |
| 16599 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16600 | configure_input='Generated from '` |
| 16601 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 16602 | `' by configure.' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16603 | if test x"$ac_file" != x-; then |
| 16604 | configure_input="$ac_file. $configure_input" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16605 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16606 | $as_echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16607 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16608 | # Neutralize special characters interpreted by sed in replacement strings. |
| 16609 | case $configure_input in #( |
| 16610 | *\&* | *\|* | *\\* ) |
| 16611 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 16612 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 16613 | *) ac_sed_conf_input=$configure_input;; |
| 16614 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16615 | |
| 16616 | case $ac_tag in |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16617 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 16618 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16619 | esac |
| 16620 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16621 | esac |
| 16622 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16623 | ac_dir=`$as_dirname -- "$ac_file" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16624 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16625 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16626 | X"$ac_file" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16627 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16628 | $as_echo X"$ac_file" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16629 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16630 | s//\1/ |
| 16631 | q |
| 16632 | } |
| 16633 | /^X\(\/\/\)[^/].*/{ |
| 16634 | s//\1/ |
| 16635 | q |
| 16636 | } |
| 16637 | /^X\(\/\/\)$/{ |
| 16638 | s//\1/ |
| 16639 | q |
| 16640 | } |
| 16641 | /^X\(\/\).*/{ |
| 16642 | s//\1/ |
| 16643 | q |
| 16644 | } |
| 16645 | s/.*/./; q'` |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16646 | as_dir="$ac_dir"; as_fn_mkdir_p |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16647 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16648 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16649 | case "$ac_dir" in |
| 16650 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16651 | *) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16652 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16653 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16654 | 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] | 16655 | case $ac_top_builddir_sub in |
| 16656 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16657 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16658 | esac ;; |
| 16659 | esac |
| 16660 | ac_abs_top_builddir=$ac_pwd |
| 16661 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16662 | # for backward compatibility: |
| 16663 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16664 | |
| 16665 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16666 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16667 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16668 | ac_top_srcdir=$ac_top_builddir_sub |
| 16669 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16670 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16671 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16672 | ac_top_srcdir=$srcdir |
| 16673 | ac_abs_top_srcdir=$srcdir ;; |
| 16674 | *) # Relative name. |
| 16675 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16676 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16677 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16678 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16679 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16680 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16681 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16682 | case $ac_mode in |
| 16683 | :F) |
| 16684 | # |
| 16685 | # CONFIG_FILE |
| 16686 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16687 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16688 | case $INSTALL in |
| 16689 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16690 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 16691 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16692 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16693 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16694 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16695 | # If the template does not know about datarootdir, expand it. |
| 16696 | # FIXME: This hack should be removed a few years after 2.60. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16697 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16698 | ac_sed_dataroot=' |
| 16699 | /datarootdir/ { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16700 | p |
| 16701 | q |
| 16702 | } |
| 16703 | /@datadir@/p |
| 16704 | /@docdir@/p |
| 16705 | /@infodir@/p |
| 16706 | /@localedir@/p |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16707 | /@mandir@/p' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16708 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16709 | *datarootdir*) ac_datarootdir_seen=yes;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16710 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16711 | { $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] | 16712 | $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] | 16713 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16714 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16715 | ac_datarootdir_hack=' |
| 16716 | s&@datadir@&$datadir&g |
| 16717 | s&@docdir@&$docdir&g |
| 16718 | s&@infodir@&$infodir&g |
| 16719 | s&@localedir@&$localedir&g |
| 16720 | s&@mandir@&$mandir&g |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16721 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16722 | esac |
| 16723 | _ACEOF |
| 16724 | |
| 16725 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16726 | # Shell code in configure.ac might set extrasub. |
| 16727 | # FIXME: do we really want to maintain this feature? |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16728 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16729 | ac_sed_extra="$ac_vpsub |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16730 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16731 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16732 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16733 | :t |
| 16734 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16735 | s|@configure_input@|$ac_sed_conf_input|;t t |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16736 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16737 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16738 | s&@srcdir@&$ac_srcdir&;t t |
| 16739 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16740 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16741 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16742 | s&@builddir@&$ac_builddir&;t t |
| 16743 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16744 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16745 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16746 | $ac_datarootdir_hack |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16747 | " |
| 16748 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 16749 | if $ac_cs_awk_getline; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16750 | $AWK -f "$ac_tmp/subs.awk" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16751 | else |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16752 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 16753 | fi \ |
| 16754 | >$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] | 16755 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16756 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16757 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 16758 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 16759 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16760 | { $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] | 16761 | which seems to be undefined. Please make sure it is defined" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16762 | $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] | 16763 | which seems to be undefined. Please make sure it is defined" >&2;} |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16764 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16765 | rm -f "$ac_tmp/stdin" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16766 | case $ac_file in |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16767 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 16768 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16769 | esac \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16770 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16771 | ;; |
| 16772 | :H) |
| 16773 | # |
| 16774 | # CONFIG_HEADER |
| 16775 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16776 | if test x"$ac_file" != x-; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16777 | { |
| 16778 | $as_echo "/* $configure_input */" \ |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16779 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 16780 | } >"$ac_tmp/config.h" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16781 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16782 | 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] | 16783 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16784 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16785 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16786 | rm -f "$ac_file" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16787 | mv "$ac_tmp/config.h" "$ac_file" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16788 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16789 | fi |
| 16790 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16791 | $as_echo "/* $configure_input */" \ |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16792 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16793 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16794 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16795 | ;; |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16796 | :L) |
| 16797 | # |
| 16798 | # CONFIG_LINK |
| 16799 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16800 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16801 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then |
| 16802 | : |
| 16803 | else |
| 16804 | # Prefer the file from the source tree if names are identical. |
| 16805 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then |
| 16806 | ac_source=$srcdir/$ac_source |
| 16807 | fi |
| 16808 | |
| 16809 | { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 |
| 16810 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} |
| 16811 | |
| 16812 | if test ! -r "$ac_source"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16813 | as_fn_error $? "$ac_source: file not found" "$LINENO" 5 |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16814 | fi |
| 16815 | rm -f "$ac_file" |
| 16816 | |
| 16817 | # Try a relative symlink, then a hard link, then a copy. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16818 | case $ac_source in |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16819 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; |
| 16820 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; |
| 16821 | esac |
| 16822 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || |
| 16823 | ln "$ac_source" "$ac_file" 2>/dev/null || |
| 16824 | cp -p "$ac_source" "$ac_file" || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16825 | 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] | 16826 | fi |
| 16827 | ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16828 | :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] | 16829 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16830 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16831 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16832 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16833 | |
| 16834 | case $ac_file$ac_mode in |
Alexandre Julliard | c4704c2 | 2006-09-22 09:33:00 +0200 | [diff] [blame] | 16835 | "include/stamp-h":C) echo timestamp > include/stamp-h ;; |
Huw Davies | 4cffb2d | 2011-04-01 15:27:48 +0100 | [diff] [blame] | 16836 | "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5 |
| 16837 | $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] | 16838 | "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5 |
| 16839 | $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;; |
| 16840 | "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5 |
| 16841 | $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;; |
| 16842 | "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5 |
| 16843 | $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;; |
| 16844 | "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5 |
| 16845 | $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;; |
| 16846 | "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5 |
| 16847 | $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;; |
| 16848 | "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5 |
| 16849 | $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] | 16850 | "Makefile":C) wine_fn_output_makefile Makefile ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16851 | |
| 16852 | esac |
| 16853 | done # for ac_tag |
| 16854 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 16855 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16856 | as_fn_exit 0 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16857 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16858 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16859 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16860 | test $ac_write_fail = 0 || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16861 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16862 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16863 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16864 | # configure is writing to config.log, and then calls config.status. |
| 16865 | # config.status does its own redirection, appending to config.log. |
| 16866 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16867 | # by configure, so config.status won't be able to write to it; its |
| 16868 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16869 | # effectively closing config.log, so it can be properly (re)opened and |
| 16870 | # appended to by config.status. When coming back to configure, we |
| 16871 | # need to make the FD available again. |
| 16872 | if test "$no_create" != yes; then |
| 16873 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16874 | ac_config_status_args= |
| 16875 | test "$silent" = yes && |
| 16876 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16877 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16878 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16879 | exec 5>>config.log |
| 16880 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16881 | # would make configure fail if this is the last instruction. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16882 | $ac_cs_success || as_fn_exit 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16883 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16884 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16885 | { $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] | 16886 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 16887 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16888 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16889 | |
Alexandre Julliard | e3bd111 | 2006-09-21 11:14:38 +0200 | [diff] [blame] | 16890 | if test "$no_create" = "yes" |
| 16891 | then |
| 16892 | exit 0 |
| 16893 | fi |
| 16894 | |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16895 | ac_save_IFS="$IFS" |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 16896 | if test "x$wine_notices != "x; then |
| 16897 | echo >&6 |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 16898 | IFS="|" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16899 | for msg in $wine_notices; do |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 16900 | IFS="$ac_save_IFS" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16901 | if test -n "$msg"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16902 | { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16903 | $as_echo "$as_me: $msg" >&6;} |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16904 | fi |
| 16905 | done |
| 16906 | fi |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 16907 | IFS="|" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16908 | for msg in $wine_warnings; do |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 16909 | IFS="$ac_save_IFS" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16910 | if test -n "$msg"; then |
| 16911 | echo >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16913 | $as_echo "$as_me: WARNING: $msg" >&2;} |
Detlef Riekenberg | e84a382 | 2006-08-21 05:28:17 +0200 | [diff] [blame] | 16914 | fi |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 16915 | done |
| 16916 | IFS="$ac_save_IFS" |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 16917 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 16918 | echo " |
Alexandre Julliard | 64362ac | 2010-02-23 13:33:52 +0100 | [diff] [blame] | 16919 | $as_me: Finished. Do '${ac_make}' to compile Wine. |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 16920 | " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16921 | |